@fantastic.dev/better-stripe 0.37.1 → 0.39.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 (210) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/MIGRATION.md +9 -0
  3. package/README.md +25 -1
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +506 -2
  5. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +253 -1
  7. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +506 -2
  9. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts +253 -1
  11. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  12. package/dist/client/core/accountCapabilities.d.ts +20 -0
  13. package/dist/client/core/accountCapabilities.d.ts.map +1 -0
  14. package/dist/client/core/accountCapabilities.js +7 -0
  15. package/dist/client/core/accountCapabilities.js.map +1 -0
  16. package/dist/client/core/accountConfigurations.d.ts +46 -0
  17. package/dist/client/core/accountConfigurations.d.ts.map +1 -0
  18. package/dist/client/core/accountConfigurations.js +99 -0
  19. package/dist/client/core/accountConfigurations.js.map +1 -0
  20. package/dist/client/core/accountLinks.d.ts +29 -2
  21. package/dist/client/core/accountLinks.d.ts.map +1 -1
  22. package/dist/client/core/accountLinks.js +56 -4
  23. package/dist/client/core/accountLinks.js.map +1 -1
  24. package/dist/client/core/accounts.d.ts +2 -36
  25. package/dist/client/core/accounts.d.ts.map +1 -1
  26. package/dist/client/core/accounts.js +3 -73
  27. package/dist/client/core/accounts.js.map +1 -1
  28. package/dist/client/core/billingPortalClient.d.ts +14 -0
  29. package/dist/client/core/billingPortalClient.d.ts.map +1 -0
  30. package/dist/client/core/billingPortalClient.js +18 -0
  31. package/dist/client/core/billingPortalClient.js.map +1 -0
  32. package/dist/client/costRecovery-invoices.d.ts +4 -4
  33. package/dist/client/costRecovery.d.ts +19 -1
  34. package/dist/client/costRecovery.d.ts.map +1 -1
  35. package/dist/client/costRecovery.js +4 -0
  36. package/dist/client/costRecovery.js.map +1 -1
  37. package/dist/client/financialOutcomes/adapters.d.ts +18 -0
  38. package/dist/client/financialOutcomes/adapters.d.ts.map +1 -0
  39. package/dist/client/financialOutcomes/adapters.js +60 -0
  40. package/dist/client/financialOutcomes/adapters.js.map +1 -0
  41. package/dist/client/financialOutcomes/contracts.d.ts +42 -0
  42. package/dist/client/financialOutcomes/contracts.d.ts.map +1 -0
  43. package/dist/client/financialOutcomes/contracts.js +39 -0
  44. package/dist/client/financialOutcomes/contracts.js.map +1 -0
  45. package/dist/client/financialOutcomes/errors.d.ts +6 -0
  46. package/dist/client/financialOutcomes/errors.d.ts.map +1 -0
  47. package/dist/client/financialOutcomes/errors.js +22 -0
  48. package/dist/client/financialOutcomes/errors.js.map +1 -0
  49. package/dist/client/financialOutcomes/index.d.ts +6 -0
  50. package/dist/client/financialOutcomes/index.d.ts.map +1 -0
  51. package/dist/client/financialOutcomes/index.js +4 -0
  52. package/dist/client/financialOutcomes/index.js.map +1 -0
  53. package/dist/client/financialOutcomes/retry.d.ts +24 -0
  54. package/dist/client/financialOutcomes/retry.d.ts.map +1 -0
  55. package/dist/client/financialOutcomes/retry.js +31 -0
  56. package/dist/client/financialOutcomes/retry.js.map +1 -0
  57. package/dist/client/index.d.ts +21 -111
  58. package/dist/client/index.d.ts.map +1 -1
  59. package/dist/client/index.js +11 -85
  60. package/dist/client/index.js.map +1 -1
  61. package/dist/client/processingCostDeficit/index.d.ts +27 -0
  62. package/dist/client/processingCostDeficit/index.d.ts.map +1 -0
  63. package/dist/client/processingCostDeficit/index.js +54 -0
  64. package/dist/client/processingCostDeficit/index.js.map +1 -0
  65. package/dist/client/products/catalog.d.ts +26 -0
  66. package/dist/client/products/catalog.d.ts.map +1 -0
  67. package/dist/client/products/catalog.js +140 -0
  68. package/dist/client/products/catalog.js.map +1 -0
  69. package/dist/client/products/catalogClient.d.ts +109 -0
  70. package/dist/client/products/catalogClient.d.ts.map +1 -0
  71. package/dist/client/products/catalogClient.js +84 -0
  72. package/dist/client/products/catalogClient.js.map +1 -0
  73. package/dist/client/products/prices.d.ts +1 -0
  74. package/dist/client/products/prices.d.ts.map +1 -1
  75. package/dist/client/products/prices.js +1 -0
  76. package/dist/client/products/prices.js.map +1 -1
  77. package/dist/client/publicTypes.d.ts +2 -0
  78. package/dist/client/publicTypes.d.ts.map +1 -1
  79. package/dist/component/_generated/api.d.ts +284 -0
  80. package/dist/component/_generated/api.d.ts.map +1 -0
  81. package/dist/component/_generated/api.js +31 -0
  82. package/dist/component/_generated/api.js.map +1 -0
  83. package/dist/component/_generated/component.d.ts +535 -0
  84. package/dist/component/_generated/component.d.ts.map +1 -1
  85. package/dist/component/balanceFunding/helpers.d.ts +86 -0
  86. package/dist/component/balanceFunding/helpers.d.ts.map +1 -0
  87. package/dist/component/balanceFunding/helpers.js +68 -0
  88. package/dist/component/balanceFunding/helpers.js.map +1 -0
  89. package/dist/component/balanceFunding/importHandler.d.ts +13 -0
  90. package/dist/component/balanceFunding/importHandler.d.ts.map +1 -0
  91. package/dist/component/balanceFunding/importHandler.js +130 -0
  92. package/dist/component/balanceFunding/importHandler.js.map +1 -0
  93. package/dist/component/balanceFunding/lifecycleHandlers.d.ts +85 -0
  94. package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -0
  95. package/dist/component/balanceFunding/lifecycleHandlers.js +60 -0
  96. package/dist/component/balanceFunding/lifecycleHandlers.js.map +1 -0
  97. package/dist/component/balanceFunding/mutationValidators.d.ts +238 -0
  98. package/dist/component/balanceFunding/mutationValidators.d.ts.map +1 -0
  99. package/dist/component/balanceFunding/mutationValidators.js +55 -0
  100. package/dist/component/balanceFunding/mutationValidators.js.map +1 -0
  101. package/dist/component/balanceFunding/mutations.d.ts +335 -0
  102. package/dist/component/balanceFunding/mutations.d.ts.map +1 -0
  103. package/dist/component/balanceFunding/mutations.js +106 -0
  104. package/dist/component/balanceFunding/mutations.js.map +1 -0
  105. package/dist/component/balanceFunding/preparationHandlers.d.ts +55 -0
  106. package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -0
  107. package/dist/component/balanceFunding/preparationHandlers.js +165 -0
  108. package/dist/component/balanceFunding/preparationHandlers.js.map +1 -0
  109. package/dist/component/balanceFunding/queries.d.ts +151 -0
  110. package/dist/component/balanceFunding/queries.d.ts.map +1 -0
  111. package/dist/component/balanceFunding/queries.js +180 -0
  112. package/dist/component/balanceFunding/queries.js.map +1 -0
  113. package/dist/component/balanceFunding/schema.d.ts +748 -0
  114. package/dist/component/balanceFunding/schema.d.ts.map +1 -0
  115. package/dist/component/balanceFunding/schema.js +124 -0
  116. package/dist/component/balanceFunding/schema.js.map +1 -0
  117. package/dist/component/balanceFunding/stateHandlers.d.ts +58 -0
  118. package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -0
  119. package/dist/component/balanceFunding/stateHandlers.js +160 -0
  120. package/dist/component/balanceFunding/stateHandlers.js.map +1 -0
  121. package/dist/component/convex.config.d.ts.map +1 -1
  122. package/dist/component/convex.config.js +2 -0
  123. package/dist/component/convex.config.js.map +1 -1
  124. package/dist/component/costRecovery/completion.d.ts +1 -0
  125. package/dist/component/costRecovery/completion.d.ts.map +1 -1
  126. package/dist/component/costRecovery/helpers.d.ts +1 -0
  127. package/dist/component/costRecovery/helpers.d.ts.map +1 -1
  128. package/dist/component/costRecovery/mutations.d.ts +5 -0
  129. package/dist/component/costRecovery/mutations.d.ts.map +1 -1
  130. package/dist/component/costRecovery/preparation.d.ts +50 -0
  131. package/dist/component/costRecovery/preparation.d.ts.map +1 -0
  132. package/dist/component/costRecovery/preparation.js +108 -0
  133. package/dist/component/costRecovery/preparation.js.map +1 -0
  134. package/dist/component/costRecovery/queries.d.ts +1 -0
  135. package/dist/component/costRecovery/queries.d.ts.map +1 -1
  136. package/dist/component/costRecovery/reservations.d.ts +2 -0
  137. package/dist/component/costRecovery/reservations.d.ts.map +1 -1
  138. package/dist/component/costRecovery/schema.d.ts +7 -2
  139. package/dist/component/costRecovery/schema.d.ts.map +1 -1
  140. package/dist/component/costRecovery/schema.js +1 -0
  141. package/dist/component/costRecovery/schema.js.map +1 -1
  142. package/dist/component/durableExecution/runtime.d.ts +3 -0
  143. package/dist/component/durableExecution/runtime.d.ts.map +1 -0
  144. package/dist/component/durableExecution/runtime.js +12 -0
  145. package/dist/component/durableExecution/runtime.js.map +1 -0
  146. package/dist/component/earnings/triggers.d.ts +242 -2
  147. package/dist/component/earnings/triggers.d.ts.map +1 -1
  148. package/dist/component/products/mutations.d.ts +9 -0
  149. package/dist/component/products/mutations.d.ts.map +1 -1
  150. package/dist/component/products/mutations.js +31 -2
  151. package/dist/component/products/mutations.js.map +1 -1
  152. package/dist/component/schema.d.ts +253 -1
  153. package/dist/component/schema.js +4 -0
  154. package/dist/component/schema.js.map +1 -1
  155. package/docs/read-contracts.md +33 -0
  156. package/package.json +4 -2
  157. package/src/client/core/account-session-client.test.ts +74 -0
  158. package/src/client/core/accountCapabilities.ts +22 -0
  159. package/src/client/core/accountConfigurations.test.ts +183 -0
  160. package/src/client/core/accountConfigurations.ts +161 -0
  161. package/src/client/core/accountLinks.test.ts +6 -2
  162. package/src/client/core/accountLinks.ts +122 -5
  163. package/src/client/core/accounts.ts +8 -115
  164. package/src/client/core/billingPortal.test.ts +247 -0
  165. package/src/client/core/billingPortalClient.ts +35 -0
  166. package/src/client/costRecovery.test.ts +34 -0
  167. package/src/client/costRecovery.ts +21 -0
  168. package/src/client/financialOutcomes/adapters.ts +88 -0
  169. package/src/client/financialOutcomes/contracts.ts +43 -0
  170. package/src/client/financialOutcomes/errors.ts +29 -0
  171. package/src/client/financialOutcomes/index.ts +5 -0
  172. package/src/client/financialOutcomes/outcomes.test.ts +254 -0
  173. package/src/client/financialOutcomes/retry.ts +52 -0
  174. package/src/client/index.test.ts +0 -64
  175. package/src/client/index.ts +35 -185
  176. package/src/client/processingCostDeficit/README.md +35 -0
  177. package/src/client/processingCostDeficit/calculator.test.ts +176 -0
  178. package/src/client/processingCostDeficit/index.ts +91 -0
  179. package/src/client/products/catalog.test.ts +389 -0
  180. package/src/client/products/catalog.ts +225 -0
  181. package/src/client/products/catalogClient.ts +172 -0
  182. package/src/client/products/prices.test.ts +24 -0
  183. package/src/client/products/prices.ts +2 -0
  184. package/src/client/publicTypes.ts +13 -0
  185. package/src/component/_generated/api.ts +27 -1
  186. package/src/component/_generated/component.ts +707 -0
  187. package/src/component/balanceFunding/failure.test.ts +116 -0
  188. package/src/component/balanceFunding/helpers.ts +102 -0
  189. package/src/component/balanceFunding/import.test.ts +221 -0
  190. package/src/component/balanceFunding/importHandler.ts +146 -0
  191. package/src/component/balanceFunding/lifecycleHandlers.ts +90 -0
  192. package/src/component/balanceFunding/lookup.test.ts +113 -0
  193. package/src/component/balanceFunding/mutationValidators.ts +63 -0
  194. package/src/component/balanceFunding/mutations.ts +136 -0
  195. package/src/component/balanceFunding/preparation.test.ts +146 -0
  196. package/src/component/balanceFunding/preparationHandlers.ts +204 -0
  197. package/src/component/balanceFunding/queries.ts +221 -0
  198. package/src/component/balanceFunding/requestLookup.test.ts +160 -0
  199. package/src/component/balanceFunding/schema.ts +169 -0
  200. package/src/component/balanceFunding/state.test.ts +352 -0
  201. package/src/component/balanceFunding/stateHandlers.ts +198 -0
  202. package/src/component/balanceFunding/validation.test.ts +100 -0
  203. package/src/component/convex.config.ts +2 -0
  204. package/src/component/costRecovery/preparation.test.ts +355 -0
  205. package/src/component/costRecovery/preparation.ts +124 -0
  206. package/src/component/costRecovery/schema.ts +1 -0
  207. package/src/component/durableExecution/composition.test.ts +568 -0
  208. package/src/component/durableExecution/runtime.ts +12 -0
  209. package/src/component/products/mutations.ts +39 -2
  210. package/src/component/schema.ts +8 -0
@@ -14,6 +14,256 @@ 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
+ balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
+ accountId: string;
19
+ activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
20
+ consentAt: number;
21
+ consentReference: string;
22
+ enabled: boolean;
23
+ operationVersion: number;
24
+ preparation: {
25
+ customerAccount: string;
26
+ paymentMethodId?: string | undefined;
27
+ previousPaymentMethodId: string | null;
28
+ previousPaymentMethodTypes: string[] | null;
29
+ stripeSubscriptionId: string;
30
+ };
31
+ preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
32
+ providerApiVersion: string;
33
+ scopeKey: string;
34
+ startsPaused: boolean;
35
+ verified: boolean;
36
+ }, {
37
+ accountId: import("convex/values").VString<string, "required">;
38
+ scopeKey: import("convex/values").VString<string, "required">;
39
+ preparation: import("convex/values").VObject<{
40
+ customerAccount: string;
41
+ paymentMethodId?: string | undefined;
42
+ previousPaymentMethodId: string | null;
43
+ previousPaymentMethodTypes: string[] | null;
44
+ stripeSubscriptionId: string;
45
+ }, {
46
+ customerAccount: import("convex/values").VString<string, "required">;
47
+ stripeSubscriptionId: import("convex/values").VString<string, "required">;
48
+ previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
49
+ previousPaymentMethodTypes: 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>;
50
+ paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
51
+ }, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
52
+ consentAt: import("convex/values").VFloat64<number, "required">;
53
+ consentReference: import("convex/values").VString<string, "required">;
54
+ providerApiVersion: import("convex/values").VString<string, "required">;
55
+ enabled: import("convex/values").VBoolean<boolean, "required">;
56
+ startsPaused: import("convex/values").VBoolean<boolean, "required">;
57
+ verified: import("convex/values").VBoolean<boolean, "required">;
58
+ preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
59
+ operationVersion: import("convex/values").VFloat64<number, "required">;
60
+ activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
61
+ }, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
62
+ by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
63
+ }, {}, {}>;
64
+ balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
65
+ accountId: string;
66
+ cancelRequested: boolean;
67
+ enabled: boolean;
68
+ failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
69
+ kind: "apply" | "prepare";
70
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
71
+ providerKey: string;
72
+ providerKeys: {
73
+ attach?: string | undefined;
74
+ create?: string | undefined;
75
+ disable: string;
76
+ enable: string;
77
+ };
78
+ receipt?: {
79
+ customerAccount: string;
80
+ paymentMethodId: string | null;
81
+ paymentMethodTypes: string[] | null;
82
+ providerApiVersion: string;
83
+ stripeSubscriptionId: string;
84
+ } | undefined;
85
+ scopeKey: string;
86
+ state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
87
+ version: number;
88
+ }, {
89
+ accountId: import("convex/values").VString<string, "required">;
90
+ scopeKey: import("convex/values").VString<string, "required">;
91
+ preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
92
+ version: import("convex/values").VFloat64<number, "required">;
93
+ enabled: import("convex/values").VBoolean<boolean, "required">;
94
+ kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
95
+ providerKey: import("convex/values").VString<string, "required">;
96
+ state: import("convex/values").VUnion<"canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
97
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
98
+ failureCode: import("convex/values").VUnion<"invalid_scope" | "policy_invalid" | "unsupported_source" | undefined, [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">], "optional", never>;
99
+ providerKeys: import("convex/values").VObject<{
100
+ attach?: string | undefined;
101
+ create?: string | undefined;
102
+ disable: string;
103
+ enable: string;
104
+ }, {
105
+ enable: import("convex/values").VString<string, "required">;
106
+ disable: import("convex/values").VString<string, "required">;
107
+ create: import("convex/values").VString<string | undefined, "optional">;
108
+ attach: import("convex/values").VString<string | undefined, "optional">;
109
+ }, "required", "attach" | "create" | "disable" | "enable">;
110
+ receipt: import("convex/values").VObject<{
111
+ customerAccount: string;
112
+ paymentMethodId: string | null;
113
+ paymentMethodTypes: string[] | null;
114
+ providerApiVersion: string;
115
+ stripeSubscriptionId: string;
116
+ } | undefined, {
117
+ customerAccount: import("convex/values").VString<string, "required">;
118
+ stripeSubscriptionId: import("convex/values").VString<string, "required">;
119
+ paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
120
+ 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
+ providerApiVersion: import("convex/values").VString<string, "required">;
122
+ }, "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">, {
124
+ by_preparation_version: ["preparationId", "version", "_creationTime"];
125
+ }, {}, {}>;
126
+ balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
127
+ imported?: {
128
+ operation?: {
129
+ accountId: string;
130
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
131
+ scopeKey: string;
132
+ version: number;
133
+ } | undefined;
134
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
135
+ } | undefined;
136
+ payload: string;
137
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
138
+ requestKey: string;
139
+ result?: {
140
+ operation: {
141
+ accountId: string;
142
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
143
+ scopeKey: string;
144
+ version: number;
145
+ };
146
+ status: "accepted";
147
+ } | {
148
+ enabled: boolean;
149
+ status: "unchanged";
150
+ } | {
151
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
152
+ retryable: false;
153
+ status: "conflict";
154
+ } | {
155
+ reason: "policy_invalid";
156
+ retryable: false;
157
+ status: "rejected";
158
+ } | {
159
+ reason: "provider_pending";
160
+ retryable: true;
161
+ status: "not_ready";
162
+ } | undefined;
163
+ }, {
164
+ requestKey: import("convex/values").VString<string, "required">;
165
+ payload: import("convex/values").VString<string, "required">;
166
+ preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
167
+ result: import("convex/values").VUnion<{
168
+ operation: {
169
+ accountId: string;
170
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
171
+ scopeKey: string;
172
+ version: number;
173
+ };
174
+ status: "accepted";
175
+ } | {
176
+ enabled: boolean;
177
+ status: "unchanged";
178
+ } | {
179
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
180
+ retryable: false;
181
+ status: "conflict";
182
+ } | {
183
+ reason: "policy_invalid";
184
+ retryable: false;
185
+ status: "rejected";
186
+ } | {
187
+ reason: "provider_pending";
188
+ retryable: true;
189
+ status: "not_ready";
190
+ } | undefined, [import("convex/values").VObject<{
191
+ operation: {
192
+ accountId: string;
193
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
194
+ scopeKey: string;
195
+ version: number;
196
+ };
197
+ status: "accepted";
198
+ }, {
199
+ status: import("convex/values").VLiteral<"accepted", "required">;
200
+ operation: import("convex/values").VObject<{
201
+ accountId: string;
202
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
203
+ scopeKey: string;
204
+ version: number;
205
+ }, {
206
+ accountId: import("convex/values").VString<string, "required">;
207
+ scopeKey: import("convex/values").VString<string, "required">;
208
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
209
+ version: import("convex/values").VFloat64<number, "required">;
210
+ }, "required", "accountId" | "operationId" | "scopeKey" | "version">;
211
+ }, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
212
+ enabled: boolean;
213
+ status: "unchanged";
214
+ }, {
215
+ status: import("convex/values").VLiteral<"unchanged", "required">;
216
+ enabled: import("convex/values").VBoolean<boolean, "required">;
217
+ }, "required", "enabled" | "status">, import("convex/values").VObject<{
218
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
219
+ retryable: false;
220
+ status: "conflict";
221
+ }, {
222
+ status: import("convex/values").VLiteral<"conflict", "required">;
223
+ reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"identity_changed", "required">, import("convex/values").VLiteral<"revision_changed", "required">], "required", never>;
224
+ retryable: import("convex/values").VLiteral<false, "required">;
225
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
226
+ reason: "policy_invalid";
227
+ retryable: false;
228
+ status: "rejected";
229
+ }, {
230
+ status: import("convex/values").VLiteral<"rejected", "required">;
231
+ reason: import("convex/values").VLiteral<"policy_invalid", "required">;
232
+ retryable: import("convex/values").VLiteral<false, "required">;
233
+ }, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
234
+ reason: "provider_pending";
235
+ retryable: true;
236
+ status: "not_ready";
237
+ }, {
238
+ status: import("convex/values").VLiteral<"not_ready", "required">;
239
+ reason: import("convex/values").VLiteral<"provider_pending", "required">;
240
+ retryable: import("convex/values").VLiteral<true, "required">;
241
+ }, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
242
+ imported: import("convex/values").VObject<{
243
+ operation?: {
244
+ accountId: string;
245
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
246
+ scopeKey: string;
247
+ version: number;
248
+ } | undefined;
249
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
250
+ } | undefined, {
251
+ preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
252
+ operation: import("convex/values").VObject<{
253
+ accountId: string;
254
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
255
+ scopeKey: string;
256
+ version: number;
257
+ } | undefined, {
258
+ accountId: import("convex/values").VString<string, "required">;
259
+ scopeKey: import("convex/values").VString<string, "required">;
260
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
261
+ version: import("convex/values").VFloat64<number, "required">;
262
+ }, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
263
+ }, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
264
+ }, "required", "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status">, {
265
+ by_request: ["requestKey", "_creationTime"];
266
+ }, {}, {}>;
17
267
  operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
18
268
  commissionExposure?: {
19
269
  chargeAmount: number;
@@ -1306,6 +1556,7 @@ export declare function setup(scope?: Scope): Promise<{
1306
1556
  maxCredit: number;
1307
1557
  maxDebit: number;
1308
1558
  pendingOperations: number;
1559
+ preparationSequence?: number | undefined;
1309
1560
  scopeKey: string;
1310
1561
  sourceGross?: number | undefined;
1311
1562
  sourceId: string;
@@ -1325,6 +1576,7 @@ export declare function setup(scope?: Scope): Promise<{
1325
1576
  maxCredit: import("convex/values").VFloat64<number, "required">;
1326
1577
  amount: import("convex/values").VFloat64<number, "required">;
1327
1578
  pendingOperations: import("convex/values").VFloat64<number, "required">;
1579
+ preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
1328
1580
  invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
1329
1581
  invoiceFunding: import("convex/values").VObject<{
1330
1582
  sourceChargeId: string;
@@ -1336,7 +1588,7 @@ export declare function setup(scope?: Scope): Promise<{
1336
1588
  sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
1337
1589
  }, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
1338
1590
  status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
1339
- }, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
1591
+ }, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
1340
1592
  by_key: ["groupKey", "_creationTime"];
1341
1593
  }, {}, {}>;
1342
1594
  recoveryReservations: 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;CAAE,CAAC;AAClE,KAAK,IAAI,GAAG,CACV,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,KAC3C,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC"}
@@ -0,0 +1,20 @@
1
+ /** Provider capability shape shared by V1 and V2 accounts. */
2
+ export type TransferCapabilityAccount = {
3
+ configuration?: {
4
+ recipient?: {
5
+ capabilities?: {
6
+ stripe_balance?: {
7
+ stripe_transfers?: {
8
+ status?: string;
9
+ };
10
+ };
11
+ };
12
+ } | null;
13
+ } | null;
14
+ capabilities?: {
15
+ transfers?: string;
16
+ } | null;
17
+ };
18
+ /** True when Stripe reports active recipient transfers in either supported API shape. */
19
+ export declare function canReceiveTransfers(account: TransferCapabilityAccount | null | undefined): boolean;
20
+ //# sourceMappingURL=accountCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountCapabilities.d.ts","sourceRoot":"","sources":["../../../src/client/core/accountCapabilities.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE;YACV,YAAY,CAAC,EAAE;gBACb,cAAc,CAAC,EAAE;oBAAE,gBAAgB,CAAC,EAAE;wBAAE,MAAM,CAAC,EAAE,MAAM,CAAA;qBAAE,CAAA;iBAAE,CAAC;aAC7D,CAAC;SACH,GAAG,IAAI,CAAC;KACV,GAAG,IAAI,CAAC;IACT,YAAY,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC9C,CAAC;AAEF,yFAAyF;AACzF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,yBAAyB,GAAG,IAAI,GAAG,SAAS,GACpD,OAAO,CAMT"}
@@ -0,0 +1,7 @@
1
+ /** True when Stripe reports active recipient transfers in either supported API shape. */
2
+ export function canReceiveTransfers(account) {
3
+ return (account?.configuration?.recipient?.capabilities?.stripe_balance
4
+ ?.stripe_transfers?.status === "active" ||
5
+ account?.capabilities?.transfers === "active");
6
+ }
7
+ //# sourceMappingURL=accountCapabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountCapabilities.js","sourceRoot":"","sources":["../../../src/client/core/accountCapabilities.ts"],"names":[],"mappings":"AAYA,yFAAyF;AACzF,MAAM,UAAU,mBAAmB,CACjC,OAAqD;IAErD,OAAO,CACL,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc;QAC7D,EAAE,gBAAgB,EAAE,MAAM,KAAK,QAAQ;QACzC,OAAO,EAAE,YAAY,EAAE,SAAS,KAAK,QAAQ,CAC9C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type Stripe from "stripe";
2
+ import type { Component, RunCtx } from "../helpers.js";
3
+ /**
4
+ * Default V2 customer configuration. Applying the customer configuration is
5
+ * what makes a V2 Account billable — the customer-facing payment/billing flows
6
+ * (subscriptions, invoices, billing portal). In the V2 Accounts API a single
7
+ * Account with this configuration replaces the legacy V1 Customer object, so
8
+ * `customer_account: acct_…` is what you pass to subscriptions, setup intents,
9
+ * and billing-portal sessions. No capabilities are requested by default;
10
+ * request `customer.capabilities.automatic_indirect_tax` separately if you need
11
+ * automatic tax on this account's invoices/subscriptions.
12
+ */
13
+ export declare const DEFAULT_CUSTOMER_CONFIGURATION: Record<string, unknown>;
14
+ /**
15
+ * Apply the customer configuration to an existing V2 Account, making it
16
+ * billable, and record the resulting applied configurations on the component
17
+ * account. The account must already exist in the component DB (e.g. created via
18
+ * `createAccount`); its owning `userId` is recovered from that record.
19
+ */
20
+ export declare function addCustomerConfiguration(stripe: Stripe, component: Component, ctx: RunCtx, opts: {
21
+ stripeAccountId: string;
22
+ }): Promise<{
23
+ success: true;
24
+ appliedConfigurations: string[];
25
+ }>;
26
+ /**
27
+ * Apply the V2 recipient configuration to an existing account, and record the
28
+ * resulting applied configurations on the component account. The account must
29
+ * already exist in the component DB (e.g. from {@link createAccount}); its
30
+ * owning `userId` is recovered from that record, matching
31
+ * {@link addCustomerConfiguration}.
32
+ */
33
+ export declare function addRecipientConfiguration(stripe: Stripe, component: Component, ctx: RunCtx, opts: {
34
+ stripeAccountId: string;
35
+ }): Promise<{
36
+ success: true;
37
+ appliedConfigurations: string[];
38
+ }>;
39
+ /** Request merchant card payments and refresh only this account's applied configurations. */
40
+ export declare function addMerchantConfiguration(stripe: Stripe, component: Component, ctx: RunCtx, opts: {
41
+ stripeAccountId: string;
42
+ }): Promise<{
43
+ success: true;
44
+ appliedConfigurations: string[];
45
+ }>;
46
+ //# sourceMappingURL=accountConfigurations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountConfigurations.d.ts","sourceRoot":"","sources":["../../../src/client/core/accountConfigurations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAQvD;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAElE,CAAC;AAEF;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAChC,OAAO,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAiC7D;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAChC,OAAO,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA4C7D;AAED,6FAA6F;AAC7F,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAChC,OAAO,CAAC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA2B7D"}
@@ -0,0 +1,99 @@
1
+ import { runMutationOrThrow } from "../helpers.js";
2
+ import { throwStripeError } from "../errors.js";
3
+ import { componentRef } from "../webhooks/helpers.js";
4
+ import { DEFAULT_ACCOUNT_CONFIGURATION } from "./accountDefaults.js";
5
+ /**
6
+ * Default V2 customer configuration. Applying the customer configuration is
7
+ * what makes a V2 Account billable — the customer-facing payment/billing flows
8
+ * (subscriptions, invoices, billing portal). In the V2 Accounts API a single
9
+ * Account with this configuration replaces the legacy V1 Customer object, so
10
+ * `customer_account: acct_…` is what you pass to subscriptions, setup intents,
11
+ * and billing-portal sessions. No capabilities are requested by default;
12
+ * request `customer.capabilities.automatic_indirect_tax` separately if you need
13
+ * automatic tax on this account's invoices/subscriptions.
14
+ */
15
+ export const DEFAULT_CUSTOMER_CONFIGURATION = {
16
+ customer: {},
17
+ };
18
+ /**
19
+ * Apply the customer configuration to an existing V2 Account, making it
20
+ * billable, and record the resulting applied configurations on the component
21
+ * account. The account must already exist in the component DB (e.g. created via
22
+ * `createAccount`); its owning `userId` is recovered from that record.
23
+ */
24
+ export async function addCustomerConfiguration(stripe, component, ctx, opts) {
25
+ const existing = (await ctx.runQuery(componentRef(component, "core/queries/getAccountByStripeId"), { stripeAccountId: opts.stripeAccountId }));
26
+ if (!existing) {
27
+ throwStripeError("ACCOUNT_NOT_FOUND", `No component account found for ${opts.stripeAccountId}; create it before applying the customer configuration`);
28
+ }
29
+ await stripe.v2.core.accounts.update(opts.stripeAccountId, {
30
+ configuration: DEFAULT_CUSTOMER_CONFIGURATION,
31
+ });
32
+ // Re-fetch to record the configurations Stripe actually applied
33
+ const updated = await stripe.v2.core.accounts.retrieve(opts.stripeAccountId);
34
+ const appliedConfigurations = updated.applied_configurations ?? [];
35
+ await runMutationOrThrow(ctx, componentRef(component, "core/mutations/upsertAccount"), {
36
+ stripeAccountId: opts.stripeAccountId,
37
+ userId: existing.userId,
38
+ ...(existing.orgId !== undefined ? { orgId: existing.orgId } : {}),
39
+ appliedConfigurations,
40
+ });
41
+ return { success: true, appliedConfigurations };
42
+ }
43
+ /**
44
+ * Apply the V2 recipient configuration to an existing account, and record the
45
+ * resulting applied configurations on the component account. The account must
46
+ * already exist in the component DB (e.g. from {@link createAccount}); its
47
+ * owning `userId` is recovered from that record, matching
48
+ * {@link addCustomerConfiguration}.
49
+ */
50
+ export async function addRecipientConfiguration(stripe, component, ctx, opts) {
51
+ const existing = (await ctx.runQuery(componentRef(component, "core/queries/getAccountByStripeId"), { stripeAccountId: opts.stripeAccountId }));
52
+ if (!existing) {
53
+ throwStripeError("ACCOUNT_NOT_FOUND", `No component account found for ${opts.stripeAccountId}; create it before applying the recipient configuration`);
54
+ }
55
+ await stripe.v2.core.accounts.update(opts.stripeAccountId, {
56
+ configuration: {
57
+ recipient: {
58
+ // V2 (API 2026-05-27.dahlia) requires the `capabilities` wrapper with an
59
+ // explicit `requested: true`. The bare `recipient.stripe_balance` shape
60
+ // is rejected with "Unknown field" (confirmed against the Stripe sandbox).
61
+ capabilities: {
62
+ stripe_balance: {
63
+ stripe_transfers: { requested: true },
64
+ },
65
+ },
66
+ },
67
+ },
68
+ });
69
+ // Re-fetch to record the configurations Stripe actually applied
70
+ const updated = await stripe.v2.core.accounts.retrieve(opts.stripeAccountId);
71
+ const appliedConfigurations = updated.applied_configurations ?? [];
72
+ await runMutationOrThrow(ctx, componentRef(component, "core/mutations/upsertAccount"), {
73
+ stripeAccountId: opts.stripeAccountId,
74
+ userId: existing.userId,
75
+ ...(existing.orgId !== undefined ? { orgId: existing.orgId } : {}),
76
+ appliedConfigurations,
77
+ });
78
+ return { success: true, appliedConfigurations };
79
+ }
80
+ /** Request merchant card payments and refresh only this account's applied configurations. */
81
+ export async function addMerchantConfiguration(stripe, component, ctx, opts) {
82
+ const existing = (await ctx.runQuery(componentRef(component, "core/queries/getAccountByStripeId"), { stripeAccountId: opts.stripeAccountId }));
83
+ if (!existing) {
84
+ throwStripeError("ACCOUNT_NOT_FOUND", `No component account found for ${opts.stripeAccountId}; create it before applying the merchant configuration`);
85
+ }
86
+ await stripe.v2.core.accounts.update(opts.stripeAccountId, {
87
+ configuration: DEFAULT_ACCOUNT_CONFIGURATION,
88
+ });
89
+ const updated = await stripe.v2.core.accounts.retrieve(opts.stripeAccountId);
90
+ const appliedConfigurations = updated.applied_configurations ?? [];
91
+ await runMutationOrThrow(ctx, componentRef(component, "core/mutations/upsertAccount"), {
92
+ stripeAccountId: opts.stripeAccountId,
93
+ userId: existing.userId,
94
+ ...(existing.orgId !== undefined ? { orgId: existing.orgId } : {}),
95
+ appliedConfigurations,
96
+ });
97
+ return { success: true, appliedConfigurations };
98
+ }
99
+ //# sourceMappingURL=accountConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountConfigurations.js","sourceRoot":"","sources":["../../../src/client/core/accountConfigurations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA4B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: RunCtx, opts:
36
36
  stripeAccountId: string;
37
37
  }): Promise<{
38
38
  clientSecret: string;
39
+ expiresAt: number;
39
40
  }>;
40
41
  export declare function createAccountSession(stripe: Stripe, _ctx: RunCtx, opts: {
41
42
  stripeAccountId: string;
42
43
  components: Stripe.AccountSessionCreateParams.Components;
43
44
  }): Promise<{
44
45
  clientSecret: string;
46
+ expiresAt: number;
45
47
  }>;
46
48
  export declare function createLoginLink(stripe: Stripe, _ctx: RunCtx, opts: {
47
49
  stripeAccountId: string;
@@ -57,13 +59,38 @@ export declare function getAccountLinkWithStatus(stripe: Stripe, ctx: RunCtx, op
57
59
  refreshUrl: string;
58
60
  returnUrl: string;
59
61
  }): Promise<AccountLinkWithStatus>;
60
- export declare function createBillingPortalSession(stripe: Stripe, _ctx: RunCtx, opts: {
62
+ /** The connected account that owns the configuration and its customer data.
63
+ * Omit for platform scope. Hosts must authorize both this scope and the customer.
64
+ */
65
+ type BillingPortalScope = {
66
+ connectedAccountId?: string;
67
+ };
68
+ export type CreateBillingPortalConfigurationOptions = BillingPortalScope & {
69
+ /** Host-owned allowlists, proration, cancellation, and branding policy. */
70
+ params: Stripe.BillingPortal.ConfigurationCreateParams;
71
+ };
72
+ export type RetrieveBillingPortalConfigurationOptions = BillingPortalScope & {
73
+ configurationId: string;
74
+ };
75
+ export type UpdateBillingPortalConfigurationOptions = BillingPortalScope & {
76
+ configurationId: string;
77
+ params: Stripe.BillingPortal.ConfigurationUpdateParams;
78
+ };
79
+ export type CreateBillingPortalSessionOptions = BillingPortalScope & {
80
+ /** Customer account opening the portal, distinct from connectedAccountId. */
61
81
  stripeAccountId: string;
62
82
  returnUrl: string;
63
- }): Promise<{
83
+ /** Omit to use Stripe's default portal configuration. */
84
+ configurationId?: string;
85
+ };
86
+ export declare function createBillingPortalConfiguration(stripe: Stripe, _ctx: RunCtx, opts: CreateBillingPortalConfigurationOptions): Promise<Stripe.BillingPortal.Configuration>;
87
+ export declare function retrieveBillingPortalConfiguration(stripe: Stripe, _ctx: RunCtx, opts: RetrieveBillingPortalConfigurationOptions): Promise<Stripe.BillingPortal.Configuration>;
88
+ export declare function updateBillingPortalConfiguration(stripe: Stripe, _ctx: RunCtx, opts: UpdateBillingPortalConfigurationOptions): Promise<Stripe.BillingPortal.Configuration>;
89
+ export declare function createBillingPortalSession(stripe: Stripe, _ctx: RunCtx, opts: CreateBillingPortalSessionOptions): Promise<{
64
90
  url: string;
65
91
  }>;
66
92
  export declare function getCountrySpecs(stripe: Stripe, _ctx: RunCtx, opts: {
67
93
  countryCode: string;
68
94
  }): Promise<Stripe.Response<Stripe.CountrySpec>>;
95
+ export {};
69
96
  //# sourceMappingURL=accountLinks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountLinks.d.ts","sourceRoot":"","sources":["../../../src/client/core/accountLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAMzD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAAC;CAC/C;;GASF;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAAC;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;;;GA4BF;AAED;;;;GAIG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