@fantastic.dev/better-stripe 0.66.0 → 0.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +17 -20
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +126 -12
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +79 -22
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +158 -44
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +63 -6
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/index.d.ts +1 -0
  12. package/dist/client/index.d.ts.map +1 -1
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/recoveryWorkflow/provider.fixture.d.ts +21 -0
  15. package/dist/client/recoveryWorkflow/provider.fixture.d.ts.map +1 -0
  16. package/dist/client/recoveryWorkflow/provider.fixture.js +125 -0
  17. package/dist/client/recoveryWorkflow/provider.fixture.js.map +1 -0
  18. package/dist/client/settlement/authorization.d.ts.map +1 -1
  19. package/dist/client/settlement/authorization.fixture.d.ts +10 -0
  20. package/dist/client/settlement/authorization.fixture.d.ts.map +1 -1
  21. package/dist/client/settlement/authorization.js +1 -0
  22. package/dist/client/settlement/authorization.js.map +1 -1
  23. package/dist/client/settlement/execution.d.ts +2 -0
  24. package/dist/client/settlement/execution.d.ts.map +1 -1
  25. package/dist/client/settlement/execution.js +3 -0
  26. package/dist/client/settlement/execution.js.map +1 -1
  27. package/dist/client/settlement/settleSale.d.ts +2 -0
  28. package/dist/client/settlement/settleSale.d.ts.map +1 -1
  29. package/dist/client/settlement/settleSale.js +4 -0
  30. package/dist/client/settlement/settleSale.js.map +1 -1
  31. package/dist/client/usage/observationClient.d.ts +2 -2
  32. package/dist/client/usage/observationClient.d.ts.map +1 -1
  33. package/dist/component/_generated/component.d.ts +25 -0
  34. package/dist/component/_generated/component.d.ts.map +1 -1
  35. package/dist/component/balanceFunding/mutations.d.ts +27 -27
  36. package/dist/component/balanceFunding/queries.d.ts +1 -1
  37. package/dist/component/earnings/triggers.d.ts +36 -6
  38. package/dist/component/earnings/triggers.d.ts.map +1 -1
  39. package/dist/component/payoutRelease/queries.d.ts +2 -2
  40. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  41. package/dist/component/recoveryWorkflow/helpers.d.ts +5 -0
  42. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
  43. package/dist/component/recoveryWorkflow/mutations.d.ts +5 -0
  44. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
  45. package/dist/component/recoveryWorkflow/mutations.js +2 -0
  46. package/dist/component/recoveryWorkflow/mutations.js.map +1 -1
  47. package/dist/component/recoveryWorkflow/queries.d.ts +10 -0
  48. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
  49. package/dist/component/recoveryWorkflow/schema.d.ts +114 -10
  50. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
  51. package/dist/component/schema.d.ts +63 -6
  52. package/dist/component/settlement/mutations.d.ts +10 -0
  53. package/dist/component/settlement/mutations.d.ts.map +1 -1
  54. package/dist/component/settlement/mutations.js +3 -0
  55. package/dist/component/settlement/mutations.js.map +1 -1
  56. package/dist/component/settlement/queries.d.ts +5 -0
  57. package/dist/component/settlement/queries.d.ts.map +1 -1
  58. package/dist/component/settlement/schema.d.ts +24 -1
  59. package/dist/component/settlement/schema.d.ts.map +1 -1
  60. package/dist/component/settlement/schema.js +5 -0
  61. package/dist/component/settlement/schema.js.map +1 -1
  62. package/dist/component/usage/allowance.fixtures.d.ts +79 -22
  63. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  64. package/dist/component/usageCredits/accounting.fixtures.d.ts +63 -6
  65. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  66. package/dist/shared/settlementPolicyContext.d.ts +10 -0
  67. package/dist/shared/settlementPolicyContext.d.ts.map +1 -0
  68. package/dist/shared/settlementPolicyContext.js +40 -0
  69. package/dist/shared/settlementPolicyContext.js.map +1 -0
  70. package/docs/README.md +2 -1
  71. package/docs/metered-usage.md +174 -356
  72. package/docs/metering-setup.md +175 -168
  73. package/docs/settlement.md +38 -0
  74. package/docs/usage-catalog.md +1 -1
  75. package/docs/usage-ledger.md +9 -8
  76. package/docs/usage-rollout.md +147 -0
  77. package/package.json +3 -2
  78. package/src/client/index.ts +1 -0
  79. package/src/client/recoveryWorkflow/provider.fixture.ts +143 -0
  80. package/src/client/recoveryWorkflow/provider.test.ts +83 -140
  81. package/src/client/settlement/authorization.ts +1 -0
  82. package/src/client/settlement/execution.ts +7 -0
  83. package/src/client/settlement/policy-context.test.ts +277 -0
  84. package/src/client/settlement/settleSale.ts +12 -0
  85. package/src/component/_generated/component.ts +25 -0
  86. package/src/component/recoveryWorkflow/mutations.ts +2 -0
  87. package/src/component/settlement/mutations.ts +6 -0
  88. package/src/component/settlement/schema.ts +7 -0
  89. package/src/component/tsconfig.json +5 -0
  90. package/src/shared/settlementPolicyContext.ts +62 -0
@@ -1413,6 +1413,11 @@ export declare function setup(amounts?: number[]): Promise<{
1413
1413
  paymentId?: string | undefined;
1414
1414
  paymentIntentId?: string | undefined;
1415
1415
  platformNet: number;
1416
+ policyContext?: {
1417
+ fields: Record<string, string>;
1418
+ namespace: string;
1419
+ version: 1;
1420
+ } | undefined;
1416
1421
  processingFee: number;
1417
1422
  sourceChargeId: string;
1418
1423
  sourceInvoiceId?: string | undefined;
@@ -1485,6 +1490,11 @@ export declare function setup(amounts?: number[]): Promise<{
1485
1490
  paymentId?: string | undefined;
1486
1491
  paymentIntentId?: string | undefined;
1487
1492
  platformNet: number;
1493
+ policyContext?: {
1494
+ fields: Record<string, string>;
1495
+ namespace: string;
1496
+ version: 1;
1497
+ } | undefined;
1488
1498
  processingFee: number;
1489
1499
  sourceChargeId: string;
1490
1500
  sourceInvoiceId?: string | undefined;
@@ -1510,6 +1520,15 @@ export declare function setup(amounts?: number[]): Promise<{
1510
1520
  subscriptionItemId: string;
1511
1521
  } | undefined;
1512
1522
  } | undefined, {
1523
+ policyContext: import("convex/values").VObject<{
1524
+ fields: Record<string, string>;
1525
+ namespace: string;
1526
+ version: 1;
1527
+ } | undefined, {
1528
+ namespace: import("convex/values").VString<string, "required">;
1529
+ version: import("convex/values").VLiteral<1, "required">;
1530
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
1531
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
1513
1532
  sourceChargeId: import("convex/values").VString<string, "required">;
1514
1533
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1515
1534
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -1583,7 +1602,7 @@ export declare function setup(amounts?: number[]): Promise<{
1583
1602
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
1584
1603
  amount: import("convex/values").VFloat64<number, "required">;
1585
1604
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1586
- }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
1605
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
1587
1606
  version: import("convex/values").VFloat64<number, "required">;
1588
1607
  sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
1589
1608
  sourceId: import("convex/values").VString<string, "required">;
@@ -1594,7 +1613,7 @@ export declare function setup(amounts?: number[]): Promise<{
1594
1613
  activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
1595
1614
  resumeQueued: import("convex/values").VBoolean<boolean, "required">;
1596
1615
  outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
1597
- }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
1616
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`>, {
1598
1617
  by_group: ["groupKey", "_creationTime"];
1599
1618
  by_source: ["sourceKind", "sourceId", "_creationTime"];
1600
1619
  }, {}, {}>;
@@ -1617,6 +1636,11 @@ export declare function setup(amounts?: number[]): Promise<{
1617
1636
  paymentId?: string | undefined;
1618
1637
  paymentIntentId?: string | undefined;
1619
1638
  platformNet: number;
1639
+ policyContext?: {
1640
+ fields: Record<string, string>;
1641
+ namespace: string;
1642
+ version: 1;
1643
+ } | undefined;
1620
1644
  processingFee: number;
1621
1645
  sourceChargeId: string;
1622
1646
  sourceInvoiceId?: string | undefined;
@@ -1675,6 +1699,11 @@ export declare function setup(amounts?: number[]): Promise<{
1675
1699
  paymentId?: string | undefined;
1676
1700
  paymentIntentId?: string | undefined;
1677
1701
  platformNet: number;
1702
+ policyContext?: {
1703
+ fields: Record<string, string>;
1704
+ namespace: string;
1705
+ version: 1;
1706
+ } | undefined;
1678
1707
  processingFee: number;
1679
1708
  sourceChargeId: string;
1680
1709
  sourceInvoiceId?: string | undefined;
@@ -1738,6 +1767,11 @@ export declare function setup(amounts?: number[]): Promise<{
1738
1767
  paymentId?: string | undefined;
1739
1768
  paymentIntentId?: string | undefined;
1740
1769
  platformNet: number;
1770
+ policyContext?: {
1771
+ fields: Record<string, string>;
1772
+ namespace: string;
1773
+ version: 1;
1774
+ } | undefined;
1741
1775
  processingFee: number;
1742
1776
  sourceChargeId: string;
1743
1777
  sourceInvoiceId?: string | undefined;
@@ -1763,6 +1797,15 @@ export declare function setup(amounts?: number[]): Promise<{
1763
1797
  subscriptionItemId: string;
1764
1798
  } | undefined;
1765
1799
  } | undefined, {
1800
+ policyContext: import("convex/values").VObject<{
1801
+ fields: Record<string, string>;
1802
+ namespace: string;
1803
+ version: 1;
1804
+ } | undefined, {
1805
+ namespace: import("convex/values").VString<string, "required">;
1806
+ version: import("convex/values").VLiteral<1, "required">;
1807
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
1808
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
1766
1809
  sourceChargeId: import("convex/values").VString<string, "required">;
1767
1810
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
1768
1811
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -1836,10 +1879,10 @@ export declare function setup(amounts?: number[]): Promise<{
1836
1879
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
1837
1880
  amount: import("convex/values").VFloat64<number, "required">;
1838
1881
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
1839
- }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">;
1840
- }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
1882
+ }, "optional", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>;
1883
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey" | `allocation.policyContext.fields.${string}`>;
1841
1884
  operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
1842
- }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
1885
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`>, {
1843
1886
  by_key: ["requestKey", "_creationTime"];
1844
1887
  }, {}, {}>;
1845
1888
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -2147,6 +2190,14 @@ export declare function setup(amounts?: number[]): Promise<{
2147
2190
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2148
2191
  requestKey: string;
2149
2192
  result?: {
2193
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2194
+ retryable: false;
2195
+ status: "conflict";
2196
+ } | {
2197
+ reason: "policy_invalid";
2198
+ retryable: false;
2199
+ status: "rejected";
2200
+ } | {
2150
2201
  operation: {
2151
2202
  accountId: string;
2152
2203
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2157,14 +2208,6 @@ export declare function setup(amounts?: number[]): Promise<{
2157
2208
  } | {
2158
2209
  enabled: boolean;
2159
2210
  status: "unchanged";
2160
- } | {
2161
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2162
- retryable: false;
2163
- status: "conflict";
2164
- } | {
2165
- reason: "policy_invalid";
2166
- retryable: false;
2167
- status: "rejected";
2168
2211
  } | {
2169
2212
  reason: "provider_pending";
2170
2213
  retryable: true;
@@ -2175,6 +2218,14 @@ export declare function setup(amounts?: number[]): Promise<{
2175
2218
  payload: import("convex/values").VString<string, "required">;
2176
2219
  preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
2177
2220
  result: import("convex/values").VUnion<{
2221
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2222
+ retryable: false;
2223
+ status: "conflict";
2224
+ } | {
2225
+ reason: "policy_invalid";
2226
+ retryable: false;
2227
+ status: "rejected";
2228
+ } | {
2178
2229
  operation: {
2179
2230
  accountId: string;
2180
2231
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -2185,14 +2236,6 @@ export declare function setup(amounts?: number[]): Promise<{
2185
2236
  } | {
2186
2237
  enabled: boolean;
2187
2238
  status: "unchanged";
2188
- } | {
2189
- reason: "identity_changed" | "revision_changed" | "scope_busy";
2190
- retryable: false;
2191
- status: "conflict";
2192
- } | {
2193
- reason: "policy_invalid";
2194
- retryable: false;
2195
- status: "rejected";
2196
2239
  } | {
2197
2240
  reason: "provider_pending";
2198
2241
  retryable: true;
@@ -3652,6 +3695,11 @@ export declare function setup(amounts?: number[]): Promise<{
3652
3695
  paymentId?: string | undefined;
3653
3696
  paymentIntentId?: string | undefined;
3654
3697
  platformNet: number;
3698
+ policyContext?: {
3699
+ fields: Record<string, string>;
3700
+ namespace: string;
3701
+ version: 1;
3702
+ } | undefined;
3655
3703
  processingFee: number;
3656
3704
  sourceChargeId: string;
3657
3705
  sourceInvoiceId?: string | undefined;
@@ -3677,6 +3725,15 @@ export declare function setup(amounts?: number[]): Promise<{
3677
3725
  subscriptionItemId: string;
3678
3726
  } | undefined;
3679
3727
  }, {
3728
+ policyContext: import("convex/values").VObject<{
3729
+ fields: Record<string, string>;
3730
+ namespace: string;
3731
+ version: 1;
3732
+ } | undefined, {
3733
+ namespace: import("convex/values").VString<string, "required">;
3734
+ version: import("convex/values").VLiteral<1, "required">;
3735
+ fields: import("convex/values").VRecord<Record<string, string>, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "required", string>;
3736
+ }, "optional", "fields" | "namespace" | "version" | `fields.${string}`>;
3680
3737
  sourceChargeId: import("convex/values").VString<string, "required">;
3681
3738
  paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
3682
3739
  sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
@@ -3750,7 +3807,7 @@ export declare function setup(amounts?: number[]): Promise<{
3750
3807
  role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
3751
3808
  amount: import("convex/values").VFloat64<number, "required">;
3752
3809
  }, "required", "amount" | "destinationAccountId" | "role">, "required">;
3753
- }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId">, {
3810
+ }, "required", "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`>, {
3754
3811
  by_source_charge: ["sourceChargeId", "_creationTime"];
3755
3812
  }, {}, {}>;
3756
3813
  commissionTerms: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.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