Skip to content

Add BUY and TRANSFER transaction types#920

Open
gudnuf wants to merge 1 commit intomasterfrom
add-buy-transfer-types
Open

Add BUY and TRANSFER transaction types#920
gudnuf wants to merge 1 commit intomasterfrom
add-buy-transfer-types

Conversation

@gudnuf
Copy link
Contributor

@gudnuf gudnuf commented Mar 5, 2026

Summary

  • Adds BUY and TRANSFER to both receive_quote_type and transaction_type database enums
  • Updates create_cashu_receive_quote and create_spark_receive_quote DB functions to handle the new types (BUY → DRAFT, TRANSFER → PENDING)
  • Wires BUY through buy-store, receive quote hooks, services, and core types
  • Adds BUY and TRANSFER to the TransactionTypeSchema Zod enum

Context

  • BUY: Purchase bitcoin via external payment (e.g. Cash App). Invoice may not be paid, so transaction starts as DRAFT.
  • TRANSFER: Internal cross-account fund movement initiated by the app. Payment is guaranteed, so transaction starts as PENDING.
  • TRANSFER is defined at the DB/core/Zod layer only — hooks come in the transfers PR.

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agicash Ready Ready Preview, Comment Mar 5, 2026 9:31pm

Request Review

@supabase
Copy link

supabase bot commented Mar 5, 2026

Updates to Preview Branch (add-buy-transfer-types) ↗︎

Deployments Status Updated
Database Thu, 05 Mar 2026 21:31:09 UTC
Services Thu, 05 Mar 2026 21:31:09 UTC
APIs Thu, 05 Mar 2026 21:31:09 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Thu, 05 Mar 2026 21:31:10 UTC
Migrations Thu, 05 Mar 2026 21:31:10 UTC
Seeding Thu, 05 Mar 2026 21:31:10 UTC
Edge Functions Thu, 05 Mar 2026 21:31:10 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@gudnuf gudnuf changed the base branch from cash-app-topup to master March 5, 2026 06:39
@gudnuf gudnuf changed the base branch from master to cash-app-topup March 5, 2026 06:39
@gudnuf gudnuf force-pushed the add-buy-transfer-types branch from adf4b33 to 6f10605 Compare March 5, 2026 06:52
@gudnuf gudnuf requested a review from jbojcic1 March 5, 2026 07:35
Base automatically changed from cash-app-topup to master March 5, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant