@fantastic.dev/better-stripe 0.40.0 → 0.42.0

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 (183) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/dist/client/balanceFundingWorkflow/client.d.ts +172 -0
  4. package/dist/client/balanceFundingWorkflow/client.d.ts.map +1 -0
  5. package/dist/client/balanceFundingWorkflow/client.js +289 -0
  6. package/dist/client/balanceFundingWorkflow/client.js.map +1 -0
  7. package/dist/client/billing/balanceFunding.d.ts +5 -0
  8. package/dist/client/billing/balanceFunding.d.ts.map +1 -1
  9. package/dist/client/billing/balanceFunding.js +30 -0
  10. package/dist/client/billing/balanceFunding.js.map +1 -1
  11. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +808 -2
  12. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  13. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +404 -1
  14. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  15. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +808 -2
  16. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  17. package/dist/client/connect/payoutSyncTestHelpers.d.ts +404 -1
  18. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  19. package/dist/client/costRecovery-invoices.d.ts +2 -2
  20. package/dist/client/costRecovery-invoices.d.ts.map +1 -1
  21. package/dist/client/costRecovery-invoices.js +4 -1
  22. package/dist/client/costRecovery-invoices.js.map +1 -1
  23. package/dist/client/costRecovery.d.ts +5 -2
  24. package/dist/client/costRecovery.d.ts.map +1 -1
  25. package/dist/client/costRecovery.js +3 -1
  26. package/dist/client/costRecovery.js.map +1 -1
  27. package/dist/client/index.d.ts +3 -0
  28. package/dist/client/index.d.ts.map +1 -1
  29. package/dist/client/index.js +4 -0
  30. package/dist/client/index.js.map +1 -1
  31. package/dist/client/recoveryWorkflow/client.d.ts +14 -0
  32. package/dist/client/recoveryWorkflow/client.d.ts.map +1 -0
  33. package/dist/client/recoveryWorkflow/client.js +34 -0
  34. package/dist/client/recoveryWorkflow/client.js.map +1 -0
  35. package/dist/client/recoveryWorkflow/contracts.d.ts +63 -0
  36. package/dist/client/recoveryWorkflow/contracts.d.ts.map +1 -0
  37. package/dist/client/recoveryWorkflow/contracts.js +11 -0
  38. package/dist/client/recoveryWorkflow/contracts.js.map +1 -0
  39. package/dist/client/recoveryWorkflow/provider.d.ts +10 -0
  40. package/dist/client/recoveryWorkflow/provider.d.ts.map +1 -0
  41. package/dist/client/recoveryWorkflow/provider.js +80 -0
  42. package/dist/client/recoveryWorkflow/provider.js.map +1 -0
  43. package/dist/client/recoveryWorkflow/settlement.d.ts +6 -0
  44. package/dist/client/recoveryWorkflow/settlement.d.ts.map +1 -0
  45. package/dist/client/recoveryWorkflow/settlement.js +43 -0
  46. package/dist/client/recoveryWorkflow/settlement.js.map +1 -0
  47. package/dist/component/_generated/api.d.ts +30 -0
  48. package/dist/component/_generated/api.d.ts.map +1 -1
  49. package/dist/component/_generated/api.js.map +1 -1
  50. package/dist/component/_generated/component.d.ts +637 -0
  51. package/dist/component/_generated/component.d.ts.map +1 -1
  52. package/dist/component/balanceFunding/helpers.d.ts +42 -0
  53. package/dist/component/balanceFunding/helpers.d.ts.map +1 -1
  54. package/dist/component/balanceFunding/internal/actions.d.ts +39 -0
  55. package/dist/component/balanceFunding/internal/actions.d.ts.map +1 -0
  56. package/dist/component/balanceFunding/internal/actions.js +80 -0
  57. package/dist/component/balanceFunding/internal/actions.js.map +1 -0
  58. package/dist/component/balanceFunding/internal/mutations.d.ts +55 -0
  59. package/dist/component/balanceFunding/internal/mutations.d.ts.map +1 -0
  60. package/dist/component/balanceFunding/internal/mutations.js +54 -0
  61. package/dist/component/balanceFunding/internal/mutations.js.map +1 -0
  62. package/dist/component/balanceFunding/internal/queries.d.ts +116 -0
  63. package/dist/component/balanceFunding/internal/queries.d.ts.map +1 -0
  64. package/dist/component/balanceFunding/internal/queries.js +35 -0
  65. package/dist/component/balanceFunding/internal/queries.js.map +1 -0
  66. package/dist/component/balanceFunding/internal/workflow.d.ts +10 -0
  67. package/dist/component/balanceFunding/internal/workflow.d.ts.map +1 -0
  68. package/dist/component/balanceFunding/internal/workflow.js +31 -0
  69. package/dist/component/balanceFunding/internal/workflow.js.map +1 -0
  70. package/dist/component/balanceFunding/lifecycleHandlers.d.ts +126 -0
  71. package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -1
  72. package/dist/component/balanceFunding/mutations.d.ts +419 -16
  73. package/dist/component/balanceFunding/mutations.d.ts.map +1 -1
  74. package/dist/component/balanceFunding/mutations.js +24 -0
  75. package/dist/component/balanceFunding/mutations.js.map +1 -1
  76. package/dist/component/balanceFunding/preparationHandlers.d.ts +42 -0
  77. package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -1
  78. package/dist/component/balanceFunding/queries.d.ts +78 -0
  79. package/dist/component/balanceFunding/queries.d.ts.map +1 -1
  80. package/dist/component/balanceFunding/queries.js +35 -0
  81. package/dist/component/balanceFunding/queries.js.map +1 -1
  82. package/dist/component/balanceFunding/receipt.d.ts +5 -0
  83. package/dist/component/balanceFunding/receipt.d.ts.map +1 -0
  84. package/dist/component/balanceFunding/receipt.js +37 -0
  85. package/dist/component/balanceFunding/receipt.js.map +1 -0
  86. package/dist/component/balanceFunding/schema.d.ts +506 -2
  87. package/dist/component/balanceFunding/schema.d.ts.map +1 -1
  88. package/dist/component/balanceFunding/schema.js +2 -0
  89. package/dist/component/balanceFunding/schema.js.map +1 -1
  90. package/dist/component/balanceFunding/stateHandlers.d.ts +42 -0
  91. package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -1
  92. package/dist/component/balanceFunding/workflowControl.d.ts +19 -0
  93. package/dist/component/balanceFunding/workflowControl.d.ts.map +1 -0
  94. package/dist/component/balanceFunding/workflowControl.js +149 -0
  95. package/dist/component/balanceFunding/workflowControl.js.map +1 -0
  96. package/dist/component/balanceFunding/workflowSchema.d.ts +356 -0
  97. package/dist/component/balanceFunding/workflowSchema.d.ts.map +1 -0
  98. package/dist/component/balanceFunding/workflowSchema.js +48 -0
  99. package/dist/component/balanceFunding/workflowSchema.js.map +1 -0
  100. package/dist/component/balanceFunding/workflowState.d.ts +157 -0
  101. package/dist/component/balanceFunding/workflowState.d.ts.map +1 -0
  102. package/dist/component/balanceFunding/workflowState.js +194 -0
  103. package/dist/component/balanceFunding/workflowState.js.map +1 -0
  104. package/dist/component/balanceFunding/workflowValidators.d.ts +306 -0
  105. package/dist/component/balanceFunding/workflowValidators.d.ts.map +1 -0
  106. package/dist/component/balanceFunding/workflowValidators.js +27 -0
  107. package/dist/component/balanceFunding/workflowValidators.js.map +1 -0
  108. package/dist/component/earnings/triggers.d.ts +280 -2
  109. package/dist/component/earnings/triggers.d.ts.map +1 -1
  110. package/dist/component/payoutRelease/queries.d.ts +2 -2
  111. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  112. package/dist/component/recoveryWorkflow/bridge.d.ts +21 -0
  113. package/dist/component/recoveryWorkflow/bridge.d.ts.map +1 -0
  114. package/dist/component/recoveryWorkflow/bridge.js +52 -0
  115. package/dist/component/recoveryWorkflow/bridge.js.map +1 -0
  116. package/dist/component/recoveryWorkflow/helpers.d.ts +83 -0
  117. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -0
  118. package/dist/component/recoveryWorkflow/helpers.js +48 -0
  119. package/dist/component/recoveryWorkflow/helpers.js.map +1 -0
  120. package/dist/component/recoveryWorkflow/mutations.d.ts +91 -0
  121. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -0
  122. package/dist/component/recoveryWorkflow/mutations.js +177 -0
  123. package/dist/component/recoveryWorkflow/mutations.js.map +1 -0
  124. package/dist/component/recoveryWorkflow/queries.d.ts +118 -0
  125. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -0
  126. package/dist/component/recoveryWorkflow/queries.js +20 -0
  127. package/dist/component/recoveryWorkflow/queries.js.map +1 -0
  128. package/dist/component/recoveryWorkflow/schema.d.ts +653 -0
  129. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -0
  130. package/dist/component/recoveryWorkflow/schema.js +81 -0
  131. package/dist/component/recoveryWorkflow/schema.js.map +1 -0
  132. package/dist/component/recoveryWorkflow/steps.d.ts +70 -0
  133. package/dist/component/recoveryWorkflow/steps.d.ts.map +1 -0
  134. package/dist/component/recoveryWorkflow/steps.js +94 -0
  135. package/dist/component/recoveryWorkflow/steps.js.map +1 -0
  136. package/dist/component/recoveryWorkflow/workflow.d.ts +22 -0
  137. package/dist/component/recoveryWorkflow/workflow.d.ts.map +1 -0
  138. package/dist/component/recoveryWorkflow/workflow.js +56 -0
  139. package/dist/component/recoveryWorkflow/workflow.js.map +1 -0
  140. package/dist/component/schema.d.ts +404 -1
  141. package/dist/component/schema.js +3 -0
  142. package/dist/component/schema.js.map +1 -1
  143. package/package.json +1 -1
  144. package/src/client/balanceFundingWorkflow/capture.test.ts +144 -0
  145. package/src/client/balanceFundingWorkflow/client.ts +419 -0
  146. package/src/client/billing/balanceFunding.ts +50 -0
  147. package/src/client/costRecovery-invoices.ts +6 -0
  148. package/src/client/costRecovery.ts +8 -3
  149. package/src/client/index.ts +15 -0
  150. package/src/client/recoveryWorkflow/client.test.ts +37 -0
  151. package/src/client/recoveryWorkflow/client.ts +76 -0
  152. package/src/client/recoveryWorkflow/contracts.ts +72 -0
  153. package/src/client/recoveryWorkflow/provider.test.ts +424 -0
  154. package/src/client/recoveryWorkflow/provider.ts +119 -0
  155. package/src/client/recoveryWorkflow/settlement.ts +67 -0
  156. package/src/component/_generated/api.ts +30 -0
  157. package/src/component/_generated/component.ts +746 -0
  158. package/src/component/balanceFunding/internal/actions.ts +107 -0
  159. package/src/component/balanceFunding/internal/mutations.ts +66 -0
  160. package/src/component/balanceFunding/internal/queries.ts +34 -0
  161. package/src/component/balanceFunding/internal/workflow.ts +49 -0
  162. package/src/component/balanceFunding/mutations.ts +34 -0
  163. package/src/component/balanceFunding/queries.ts +38 -0
  164. package/src/component/balanceFunding/receipt.ts +48 -0
  165. package/src/component/balanceFunding/schema.ts +2 -0
  166. package/src/component/balanceFunding/scopeLookup.test.ts +94 -0
  167. package/src/component/balanceFunding/workflow.fixtures.ts +366 -0
  168. package/src/component/balanceFunding/workflow.test.ts +552 -0
  169. package/src/component/balanceFunding/workflowControl.ts +198 -0
  170. package/src/component/balanceFunding/workflowSchema.ts +78 -0
  171. package/src/component/balanceFunding/workflowState.ts +285 -0
  172. package/src/component/balanceFunding/workflowValidators.ts +40 -0
  173. package/src/component/recoveryWorkflow/bridge.test.ts +481 -0
  174. package/src/component/recoveryWorkflow/bridge.ts +66 -0
  175. package/src/component/recoveryWorkflow/helpers.ts +58 -0
  176. package/src/component/recoveryWorkflow/journal.test.ts +104 -0
  177. package/src/component/recoveryWorkflow/mutations.ts +224 -0
  178. package/src/component/recoveryWorkflow/queries.ts +19 -0
  179. package/src/component/recoveryWorkflow/schema.ts +92 -0
  180. package/src/component/recoveryWorkflow/state.test.ts +191 -0
  181. package/src/component/recoveryWorkflow/steps.ts +97 -0
  182. package/src/component/recoveryWorkflow/workflow.ts +73 -0
  183. package/src/component/schema.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGtC,MAAM;yBACT;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
@@ -14,6 +14,227 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
14
14
  export declare function operation(): Promise<Sync>;
15
15
  export declare function setup(scope?: Scope): Promise<{
16
16
  t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
17
+ recoveryWorkflowOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
+ accountId: string;
19
+ activePhase?: "execute" | "reconcile" | undefined;
20
+ allocation?: {
21
+ adjustmentAmount?: number | undefined;
22
+ currency: string;
23
+ gross: number;
24
+ paymentId?: string | undefined;
25
+ paymentIntentId?: string | undefined;
26
+ platformNet: number;
27
+ processingFee: number;
28
+ sourceChargeId: string;
29
+ sourceInvoiceId?: string | undefined;
30
+ transfers: {
31
+ amount: number;
32
+ destinationAccountId: string;
33
+ role: "affiliate" | "other" | "store";
34
+ }[];
35
+ } | undefined;
36
+ cancelRequested: boolean;
37
+ completion?: string | undefined;
38
+ currency: string;
39
+ definitionVersion: number;
40
+ groupKey: string;
41
+ maxAttempts: number;
42
+ outcome?: "collect" | "release" | undefined;
43
+ provider: string;
44
+ providerApiVersion: string;
45
+ providerStarted: boolean;
46
+ releaseUncollectible: boolean;
47
+ resumeQueued: boolean;
48
+ retryDelayMs: number;
49
+ scopeKey: string;
50
+ sourceId: string;
51
+ sourceKind: "invoice" | "settlement";
52
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
53
+ version: number;
54
+ workflowId?: string | undefined;
55
+ }, {
56
+ accountId: import("convex/values").VString<string, "required">;
57
+ scopeKey: import("convex/values").VString<string, "required">;
58
+ currency: import("convex/values").VString<string, "required">;
59
+ groupKey: import("convex/values").VString<string, "required">;
60
+ provider: import("convex/values").VString<string, "required">;
61
+ completion: import("convex/values").VString<string | undefined, "optional">;
62
+ providerApiVersion: import("convex/values").VString<string, "required">;
63
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
64
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
65
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
66
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
67
+ allocation: import("convex/values").VObject<{
68
+ adjustmentAmount?: number | undefined;
69
+ currency: string;
70
+ gross: number;
71
+ paymentId?: string | undefined;
72
+ paymentIntentId?: string | undefined;
73
+ platformNet: number;
74
+ processingFee: number;
75
+ sourceChargeId: string;
76
+ sourceInvoiceId?: string | undefined;
77
+ transfers: {
78
+ amount: number;
79
+ destinationAccountId: string;
80
+ role: "affiliate" | "other" | "store";
81
+ }[];
82
+ } | undefined, {
83
+ sourceChargeId: import("convex/values").VString<string, "required">;
84
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
85
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
86
+ gross: import("convex/values").VFloat64<number, "required">;
87
+ currency: import("convex/values").VString<string, "required">;
88
+ processingFee: import("convex/values").VFloat64<number, "required">;
89
+ platformNet: import("convex/values").VFloat64<number, "required">;
90
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
91
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
92
+ transfers: import("convex/values").VArray<{
93
+ amount: number;
94
+ destinationAccountId: string;
95
+ role: "affiliate" | "other" | "store";
96
+ }[], import("convex/values").VObject<{
97
+ amount: number;
98
+ destinationAccountId: string;
99
+ role: "affiliate" | "other" | "store";
100
+ }, {
101
+ destinationAccountId: import("convex/values").VString<string, "required">;
102
+ 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>;
103
+ amount: import("convex/values").VFloat64<number, "required">;
104
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
105
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
106
+ version: import("convex/values").VFloat64<number, "required">;
107
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
108
+ sourceId: import("convex/values").VString<string, "required">;
109
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
110
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
111
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
112
+ providerStarted: import("convex/values").VBoolean<boolean, "required">;
113
+ activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
114
+ resumeQueued: import("convex/values").VBoolean<boolean, "required">;
115
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
116
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
117
+ by_group: ["groupKey", "_creationTime"];
118
+ by_source: ["sourceKind", "sourceId", "_creationTime"];
119
+ }, {}, {}>;
120
+ recoveryWorkflowRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
121
+ binding: {
122
+ accountId: string;
123
+ allocation?: {
124
+ adjustmentAmount?: number | undefined;
125
+ currency: string;
126
+ gross: number;
127
+ paymentId?: string | undefined;
128
+ paymentIntentId?: string | undefined;
129
+ platformNet: number;
130
+ processingFee: number;
131
+ sourceChargeId: string;
132
+ sourceInvoiceId?: string | undefined;
133
+ transfers: {
134
+ amount: number;
135
+ destinationAccountId: string;
136
+ role: "affiliate" | "other" | "store";
137
+ }[];
138
+ } | undefined;
139
+ completion?: string | undefined;
140
+ currency: string;
141
+ definitionVersion: number;
142
+ groupKey: string;
143
+ maxAttempts: number;
144
+ provider: string;
145
+ providerApiVersion: string;
146
+ releaseUncollectible: boolean;
147
+ retryDelayMs: number;
148
+ scopeKey: string;
149
+ };
150
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
151
+ requestKey: string;
152
+ }, {
153
+ requestKey: import("convex/values").VString<string, "required">;
154
+ binding: import("convex/values").VObject<{
155
+ accountId: string;
156
+ allocation?: {
157
+ adjustmentAmount?: number | undefined;
158
+ currency: string;
159
+ gross: number;
160
+ paymentId?: string | undefined;
161
+ paymentIntentId?: string | undefined;
162
+ platformNet: number;
163
+ processingFee: number;
164
+ sourceChargeId: string;
165
+ sourceInvoiceId?: string | undefined;
166
+ transfers: {
167
+ amount: number;
168
+ destinationAccountId: string;
169
+ role: "affiliate" | "other" | "store";
170
+ }[];
171
+ } | undefined;
172
+ completion?: string | undefined;
173
+ currency: string;
174
+ definitionVersion: number;
175
+ groupKey: string;
176
+ maxAttempts: number;
177
+ provider: string;
178
+ providerApiVersion: string;
179
+ releaseUncollectible: boolean;
180
+ retryDelayMs: number;
181
+ scopeKey: string;
182
+ }, {
183
+ accountId: import("convex/values").VString<string, "required">;
184
+ scopeKey: import("convex/values").VString<string, "required">;
185
+ currency: import("convex/values").VString<string, "required">;
186
+ groupKey: import("convex/values").VString<string, "required">;
187
+ provider: import("convex/values").VString<string, "required">;
188
+ completion: import("convex/values").VString<string | undefined, "optional">;
189
+ providerApiVersion: import("convex/values").VString<string, "required">;
190
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
191
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
192
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
193
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
194
+ allocation: import("convex/values").VObject<{
195
+ adjustmentAmount?: number | undefined;
196
+ currency: string;
197
+ gross: number;
198
+ paymentId?: string | undefined;
199
+ paymentIntentId?: string | undefined;
200
+ platformNet: number;
201
+ processingFee: number;
202
+ sourceChargeId: string;
203
+ sourceInvoiceId?: string | undefined;
204
+ transfers: {
205
+ amount: number;
206
+ destinationAccountId: string;
207
+ role: "affiliate" | "other" | "store";
208
+ }[];
209
+ } | undefined, {
210
+ sourceChargeId: import("convex/values").VString<string, "required">;
211
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
212
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
213
+ gross: import("convex/values").VFloat64<number, "required">;
214
+ currency: import("convex/values").VString<string, "required">;
215
+ processingFee: import("convex/values").VFloat64<number, "required">;
216
+ platformNet: import("convex/values").VFloat64<number, "required">;
217
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
218
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
219
+ transfers: import("convex/values").VArray<{
220
+ amount: number;
221
+ destinationAccountId: string;
222
+ role: "affiliate" | "other" | "store";
223
+ }[], import("convex/values").VObject<{
224
+ amount: number;
225
+ destinationAccountId: string;
226
+ role: "affiliate" | "other" | "store";
227
+ }, {
228
+ destinationAccountId: import("convex/values").VString<string, "required">;
229
+ 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>;
230
+ amount: import("convex/values").VFloat64<number, "required">;
231
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
232
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
233
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
234
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
235
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "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.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
236
+ by_key: ["requestKey", "_creationTime"];
237
+ }, {}, {}>;
17
238
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
239
  accountId: string;
19
240
  activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
@@ -65,6 +286,48 @@ export declare function setup(scope?: Scope): Promise<{
65
286
  accountId: string;
66
287
  cancelRequested: boolean;
67
288
  enabled: boolean;
289
+ execution?: {
290
+ apply?: {
291
+ receipt?: {
292
+ customerAccount: string;
293
+ enabled?: boolean | undefined;
294
+ paymentMethodId: string | null;
295
+ paymentMethodTypes?: string[] | null | undefined;
296
+ phase: "apply" | "attach" | "create";
297
+ providerApiVersion: string;
298
+ stripeSubscriptionId: string;
299
+ } | undefined;
300
+ state: "running" | "succeeded" | "unknown";
301
+ } | undefined;
302
+ attach?: {
303
+ receipt?: {
304
+ customerAccount: string;
305
+ enabled?: boolean | undefined;
306
+ paymentMethodId: string | null;
307
+ paymentMethodTypes?: string[] | null | undefined;
308
+ phase: "apply" | "attach" | "create";
309
+ providerApiVersion: string;
310
+ stripeSubscriptionId: string;
311
+ } | undefined;
312
+ state: "running" | "succeeded" | "unknown";
313
+ } | undefined;
314
+ create?: {
315
+ receipt?: {
316
+ customerAccount: string;
317
+ enabled?: boolean | undefined;
318
+ paymentMethodId: string | null;
319
+ paymentMethodTypes?: string[] | null | undefined;
320
+ phase: "apply" | "attach" | "create";
321
+ providerApiVersion: string;
322
+ stripeSubscriptionId: string;
323
+ } | undefined;
324
+ state: "running" | "succeeded" | "unknown";
325
+ } | undefined;
326
+ definitionVersion: string;
327
+ providerAction: string;
328
+ providerApiVersion: string;
329
+ workflowId?: string | undefined;
330
+ } | undefined;
68
331
  failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
69
332
  kind: "apply" | "prepare";
70
333
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
@@ -120,7 +383,147 @@ export declare function setup(scope?: Scope): Promise<{
120
383
  paymentMethodTypes: import("convex/values").VUnion<string[] | null, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>;
121
384
  providerApiVersion: import("convex/values").VString<string, "required">;
122
385
  }, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
123
- }, "required", "accountId" | "cancelRequested" | "enabled" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version">, {
386
+ execution: import("convex/values").VObject<{
387
+ apply?: {
388
+ receipt?: {
389
+ customerAccount: string;
390
+ enabled?: boolean | undefined;
391
+ paymentMethodId: string | null;
392
+ paymentMethodTypes?: string[] | null | undefined;
393
+ phase: "apply" | "attach" | "create";
394
+ providerApiVersion: string;
395
+ stripeSubscriptionId: string;
396
+ } | undefined;
397
+ state: "running" | "succeeded" | "unknown";
398
+ } | undefined;
399
+ attach?: {
400
+ receipt?: {
401
+ customerAccount: string;
402
+ enabled?: boolean | undefined;
403
+ paymentMethodId: string | null;
404
+ paymentMethodTypes?: string[] | null | undefined;
405
+ phase: "apply" | "attach" | "create";
406
+ providerApiVersion: string;
407
+ stripeSubscriptionId: string;
408
+ } | undefined;
409
+ state: "running" | "succeeded" | "unknown";
410
+ } | undefined;
411
+ create?: {
412
+ receipt?: {
413
+ customerAccount: string;
414
+ enabled?: boolean | undefined;
415
+ paymentMethodId: string | null;
416
+ paymentMethodTypes?: string[] | null | undefined;
417
+ phase: "apply" | "attach" | "create";
418
+ providerApiVersion: string;
419
+ stripeSubscriptionId: string;
420
+ } | undefined;
421
+ state: "running" | "succeeded" | "unknown";
422
+ } | undefined;
423
+ definitionVersion: string;
424
+ providerAction: string;
425
+ providerApiVersion: string;
426
+ workflowId?: string | undefined;
427
+ } | undefined, {
428
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
429
+ definitionVersion: import("convex/values").VString<string, "required">;
430
+ providerApiVersion: import("convex/values").VString<string, "required">;
431
+ providerAction: import("convex/values").VString<string, "required">;
432
+ create: import("convex/values").VObject<{
433
+ receipt?: {
434
+ customerAccount: string;
435
+ enabled?: boolean | undefined;
436
+ paymentMethodId: string | null;
437
+ paymentMethodTypes?: string[] | null | undefined;
438
+ phase: "apply" | "attach" | "create";
439
+ providerApiVersion: string;
440
+ stripeSubscriptionId: string;
441
+ } | undefined;
442
+ state: "running" | "succeeded" | "unknown";
443
+ } | undefined, {
444
+ state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
445
+ receipt: import("convex/values").VObject<{
446
+ customerAccount: string;
447
+ enabled?: boolean | undefined;
448
+ paymentMethodId: string | null;
449
+ paymentMethodTypes?: string[] | null | undefined;
450
+ phase: "apply" | "attach" | "create";
451
+ providerApiVersion: string;
452
+ stripeSubscriptionId: string;
453
+ } | undefined, {
454
+ phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
455
+ customerAccount: import("convex/values").VString<string, "required">;
456
+ stripeSubscriptionId: import("convex/values").VString<string, "required">;
457
+ paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
458
+ paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
459
+ enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
460
+ providerApiVersion: import("convex/values").VString<string, "required">;
461
+ }, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
462
+ }, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
463
+ attach: import("convex/values").VObject<{
464
+ receipt?: {
465
+ customerAccount: string;
466
+ enabled?: boolean | undefined;
467
+ paymentMethodId: string | null;
468
+ paymentMethodTypes?: string[] | null | undefined;
469
+ phase: "apply" | "attach" | "create";
470
+ providerApiVersion: string;
471
+ stripeSubscriptionId: string;
472
+ } | undefined;
473
+ state: "running" | "succeeded" | "unknown";
474
+ } | undefined, {
475
+ state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
476
+ receipt: import("convex/values").VObject<{
477
+ customerAccount: string;
478
+ enabled?: boolean | undefined;
479
+ paymentMethodId: string | null;
480
+ paymentMethodTypes?: string[] | null | undefined;
481
+ phase: "apply" | "attach" | "create";
482
+ providerApiVersion: string;
483
+ stripeSubscriptionId: string;
484
+ } | undefined, {
485
+ phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
486
+ customerAccount: import("convex/values").VString<string, "required">;
487
+ stripeSubscriptionId: import("convex/values").VString<string, "required">;
488
+ paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
489
+ paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
490
+ enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
491
+ providerApiVersion: import("convex/values").VString<string, "required">;
492
+ }, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
493
+ }, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
494
+ apply: import("convex/values").VObject<{
495
+ receipt?: {
496
+ customerAccount: string;
497
+ enabled?: boolean | undefined;
498
+ paymentMethodId: string | null;
499
+ paymentMethodTypes?: string[] | null | undefined;
500
+ phase: "apply" | "attach" | "create";
501
+ providerApiVersion: string;
502
+ stripeSubscriptionId: string;
503
+ } | undefined;
504
+ state: "running" | "succeeded" | "unknown";
505
+ } | undefined, {
506
+ state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
507
+ receipt: import("convex/values").VObject<{
508
+ customerAccount: string;
509
+ enabled?: boolean | undefined;
510
+ paymentMethodId: string | null;
511
+ paymentMethodTypes?: string[] | null | undefined;
512
+ phase: "apply" | "attach" | "create";
513
+ providerApiVersion: string;
514
+ stripeSubscriptionId: string;
515
+ } | undefined, {
516
+ phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
517
+ customerAccount: import("convex/values").VString<string, "required">;
518
+ stripeSubscriptionId: import("convex/values").VString<string, "required">;
519
+ paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
520
+ paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
521
+ enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
522
+ providerApiVersion: import("convex/values").VString<string, "required">;
523
+ }, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
524
+ }, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
525
+ }, "optional", "apply" | "apply.receipt" | "apply.receipt.customerAccount" | "apply.receipt.enabled" | "apply.receipt.paymentMethodId" | "apply.receipt.paymentMethodTypes" | "apply.receipt.phase" | "apply.receipt.providerApiVersion" | "apply.receipt.stripeSubscriptionId" | "apply.state" | "attach" | "attach.receipt" | "attach.receipt.customerAccount" | "attach.receipt.enabled" | "attach.receipt.paymentMethodId" | "attach.receipt.paymentMethodTypes" | "attach.receipt.phase" | "attach.receipt.providerApiVersion" | "attach.receipt.stripeSubscriptionId" | "attach.state" | "create" | "create.receipt" | "create.receipt.customerAccount" | "create.receipt.enabled" | "create.receipt.paymentMethodId" | "create.receipt.paymentMethodTypes" | "create.receipt.phase" | "create.receipt.providerApiVersion" | "create.receipt.stripeSubscriptionId" | "create.state" | "definitionVersion" | "providerAction" | "providerApiVersion" | "workflowId">;
526
+ }, "required", "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version">, {
124
527
  by_preparation_version: ["preparationId", "version", "_creationTime"];
125
528
  }, {}, {}>;
126
529
  balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,MAAM,MAAM,KAAK,GACf;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA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;;;;;;;;;;;;;;;;;;;;GAQtC"}
@@ -10,8 +10,8 @@ type InvoiceReceipt = {
10
10
  };
11
11
  type BindInvoiceItem = (invoiceItemId: string) => Promise<RecoveryGroup>;
12
12
  /** Attachment always produces an item; reconciliation can release an unbound void invoice. */
13
- export declare function attachRecoveryInvoice(stripe: Stripe, group: RecoveryGroup | null, opts: RecoveryInvoiceOptions, bind: BindInvoiceItem, create?: true): Promise<InvoiceReceipt>;
14
- export declare function attachRecoveryInvoice(stripe: Stripe, group: RecoveryGroup | null, opts: RecoveryInvoiceOptions, bind: BindInvoiceItem, create: false): Promise<InvoiceReceipt | (Omit<InvoiceReceipt, "invoiceItemId"> & {
13
+ export declare function attachRecoveryInvoice(stripe: Stripe, group: RecoveryGroup | null, opts: RecoveryInvoiceOptions, bind: BindInvoiceItem, create?: true, maxItems?: number): Promise<InvoiceReceipt>;
14
+ export declare function attachRecoveryInvoice(stripe: Stripe, group: RecoveryGroup | null, opts: RecoveryInvoiceOptions, bind: BindInvoiceItem, create: false, maxItems?: number): Promise<InvoiceReceipt | (Omit<InvoiceReceipt, "invoiceItemId"> & {
15
15
  invoiceItemId: null;
16
16
  })>;
17
17
  /** Refuse ambiguous cash/credit or multi-payment allocations instead of inventing economics. */
@@ -1 +1 @@
1
- {"version":3,"file":"costRecovery-invoices.d.ts","sourceRoot":"","sources":["../../src/client/costRecovery-invoices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAK1E,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,aAAa,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;CACzC,CAA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AM,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAEzE,8FAA8F;AAC9F,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,eAAe,EACrB,MAAM,CAAC,EAAE,IAAI,EACb,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,CAAC;AAC3B,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,KAAK,EACb,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CACN,cAAc,GACd,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CACpE,CAAC;AAuGF,gGAAgG;AAChG,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;YAyB/D,WAAW;YACX,qCAAqC;GAYlD"}
@@ -3,7 +3,7 @@ import { getProcessingCostContext } from "./settlement/processingCosts.js";
3
3
  const marker = "bsRecoveryGroup";
4
4
  const id = (value) => typeof value === "string" ? value : value?.id;
5
5
  /** One immutable item per sealed group. Host serializes provider operations per group. */
6
- export async function attachRecoveryInvoice(stripe, group, opts, bind, create = true) {
6
+ export async function attachRecoveryInvoice(stripe, group, opts, bind, create = true, maxItems = Number.POSITIVE_INFINITY) {
7
7
  if (!group ||
8
8
  group.groupKey !== opts.groupKey ||
9
9
  group.sourceKind !== "invoice" ||
@@ -21,10 +21,13 @@ export async function attachRecoveryInvoice(stripe, group, opts, bind, create =
21
21
  if (invoice.currency !== group.currency)
22
22
  throw new Error("Recovery invoice currency does not match.");
23
23
  let found;
24
+ let inspected = 0;
24
25
  for await (const item of stripe.invoiceItems.list({
25
26
  invoice: invoice.id,
26
27
  limit: 100,
27
28
  })) {
29
+ if (++inspected > maxItems)
30
+ throw new Error("Recovery invoice history exceeded its item bound.");
28
31
  if (item.metadata?.[marker] !== group._id)
29
32
  continue;
30
33
  if (found)
@@ -1 +1 @@
1
- {"version":3,"file":"costRecovery-invoices.js","sourceRoot":"","sources":["../../src/client/costRecovery-invoices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAI3E,MAAM,MAAM,GAAG,iBAAiB,CAAC;AACjC,MAAM,EAAE,GAAG,CAAC,KAAqC,EAAE,EAAE,CACnD,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;AA4BhD,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,MAAc,EACd,KAA2B,EAC3B,IAA4B,EAC5B,IAAuD,EACvD,MAAM,GAAG,IAAI;IAEb,IACE,CAAC,KAAK;QACN,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ;QAChC,KAAK,CAAC,UAAU,KAAK,SAAS;QAC9B,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS;QAClC,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ;QAChC,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ;QAEhC,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAC;IACJ,IACE,KAAK,CAAC,MAAM,KAAK,MAAM;QACvB,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE5D,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,MAAM,OAAO,GA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wB,CAAC,MAAM,EAAE;QAClD,eAAe,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAE;KACrD,CAAC,CAAC;IACH,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC;IAC7C,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,WAAW;QACxE,OAAO;YACL,MAAM,EAAE,WAAoB;YAC5B,MAAM,EAAE,qCAA8C;SACvD,CAAC;IACJ,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,3 +1,6 @@
1
+ import { RecoveryWorkflowClient } from "./recoveryWorkflow/client.js";
2
+ export type * from "./recoveryWorkflow/contracts.js";
3
+ export type { RecoveryProviderOptions } from "./recoveryWorkflow/provider.js";
1
4
  import type Stripe from "stripe";
2
5
  import type { Component, RunCtx } from "./helpers.js";
3
6
  export type RecoveryScope = {
@@ -91,8 +94,8 @@ export type RecoveryPreparationResult = {
91
94
  retryable: false;
92
95
  };
93
96
  /** Host authorizes policy and scope. Provider methods verify invoice outcomes. */
94
- export declare class CostRecoveryClient {
95
- private readonly component;
97
+ export declare class CostRecoveryClient extends RecoveryWorkflowClient {
98
+ protected readonly component: Component;
96
99
  private readonly provider?;
97
100
  constructor(component: Component, provider?: (() => Stripe) | undefined);
98
101
  private mutate;
@@ -1 +1 @@
1
- {"version":3,"file":"costRecovery.d.ts","sourceRoot":"","sources":["../../src/client/costRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAKjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtD,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,mBAA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