nomoss 0.0.1 → 0.0.5

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 (710) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +1 -1
  3. package/README.md +52 -26
  4. package/ROADMAP.md +19 -0
  5. package/docs/README.md +19 -0
  6. package/docs/application/aws-resource-coverage.md +26 -0
  7. package/docs/application/aws-resource-lifecycle-management.md +47 -0
  8. package/docs/application/cli-workflow.md +111 -0
  9. package/docs/application/engine-design.md +43 -0
  10. package/docs/application/generation-architecture.md +285 -0
  11. package/docs/application/resource-command-policy-stage.md +37 -0
  12. package/docs/application/resource-graph.md +45 -0
  13. package/docs/application/resource-lifecycle-tracker.md +43 -0
  14. package/docs/application/resource-mapping.md +112 -0
  15. package/docs/application/resource-operations.md +41 -0
  16. package/docs/application/resource-outputs.md +66 -0
  17. package/docs/application/tracing.md +27 -0
  18. package/docs/development/code-documentation.md +54 -0
  19. package/docs/development/commit-message-spec.md +9 -0
  20. package/docs/development/effect-native-development.md +89 -0
  21. package/docs/development/linting.md +39 -0
  22. package/docs/development/resource-graph-testing-approach.md +9 -0
  23. package/docs/development/review-code.md +73 -0
  24. package/docs/development/review-docs.md +27 -0
  25. package/docs/development/review-remediation-spec.md +40 -0
  26. package/docs/development/spec-writing.md +35 -0
  27. package/docs/development/testing.md +125 -0
  28. package/docs/development/unslop.md +55 -0
  29. package/docs/operations/observability-sop.md +32 -0
  30. package/docs/operations/releasing.md +7 -0
  31. package/examples/README.md +11 -0
  32. package/examples/cli.ts +15 -0
  33. package/examples/commands.ts +32 -0
  34. package/examples/http-echo/index.ts +54 -0
  35. package/examples/queue/application.ts +37 -0
  36. package/examples/state-machine/application.ts +57 -0
  37. package/examples/stripe-billing/application.ts +56 -0
  38. package/media/nomoss-http-demo.gif +0 -0
  39. package/package.json +63 -24
  40. package/providers/aws/README.md +21 -0
  41. package/providers/aws/awsEnvironment.ts +114 -0
  42. package/providers/aws/generated/managementRegistry.ts +136 -0
  43. package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
  44. package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
  45. package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
  46. package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
  47. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  48. package/providers/aws/generated/resources/iam/group.ts +294 -0
  49. package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
  50. package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
  51. package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
  52. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  53. package/providers/aws/generated/resources/iam/policy.ts +264 -0
  54. package/providers/aws/generated/resources/iam/role.ts +444 -0
  55. package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
  56. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  57. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  58. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  59. package/providers/aws/generated/resources/iam/user.ts +435 -0
  60. package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
  61. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
  62. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  63. package/providers/aws/generated/resources/kms/key.ts +552 -0
  64. package/providers/aws/generated/resources/lambda/function.ts +1924 -0
  65. package/providers/aws/generated/resources/lambda/permission.ts +913 -0
  66. package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
  67. package/providers/aws/generated/resources/sns/topic.ts +536 -0
  68. package/providers/aws/generated/resources/sqs/queue.ts +476 -0
  69. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
  70. package/providers/aws/management/mappings/iam/group.ts +63 -0
  71. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  72. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  73. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  74. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  75. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  76. package/providers/aws/management/mappings/iam/role.ts +74 -0
  77. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  78. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  79. package/providers/aws/management/mappings/iam/user.ts +61 -0
  80. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  81. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  82. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  83. package/providers/aws/management/operations/iam/policy.ts +476 -0
  84. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  85. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  86. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  87. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  88. package/providers/aws/management/resourceAssociations.ts +168 -0
  89. package/providers/aws/management/resourceConfiguration.ts +119 -0
  90. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  91. package/providers/aws/management/resourceManagementModule.ts +31 -0
  92. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  93. package/providers/aws/management/resourceMapping.ts +84 -0
  94. package/providers/aws/management/resourceOperation.ts +134 -0
  95. package/providers/aws/management/resourceTagOperations.ts +108 -0
  96. package/providers/aws/management/resourceTiming.ts +4 -0
  97. package/providers/aws/runtime.ts +52 -0
  98. package/src/cli.ts +31 -13
  99. package/src/cliCommand.ts +207 -170
  100. package/src/cliDiagnostics.ts +104 -0
  101. package/src/core/asset.ts +350 -0
  102. package/src/core/index.ts +61 -17
  103. package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
  104. package/src/core/resource/model.ts +1168 -0
  105. package/src/core/resource/resourceCommandPolicy.ts +88 -0
  106. package/src/core/resource/resourceGraphBuilder.ts +319 -0
  107. package/src/core/resource/resourceGraphStore.ts +373 -0
  108. package/src/core/resource/resourceLifecycle.ts +644 -0
  109. package/src/core/resource/resourceOutputBinding.ts +113 -0
  110. package/src/core/resource/resourceOutputResolver.ts +365 -0
  111. package/src/core/resource/resourceRequest.ts +186 -0
  112. package/src/core/resource/resourceStabilization.ts +120 -0
  113. package/src/core/resource/resourceVersions.ts +102 -0
  114. package/src/core/runtime/stackRuntimeLayer.ts +16 -0
  115. package/src/core/runtime/tracing.ts +43 -0
  116. package/src/core/stack/planner.ts +663 -0
  117. package/src/core/stack/resourceDisplay.ts +213 -0
  118. package/src/core/stack/resourceStackDefinition.ts +32 -0
  119. package/src/core/stack/resourceStackLifecycle.ts +1229 -0
  120. package/src/core/stack/resourceStackOperations.ts +642 -0
  121. package/src/core/stack/resourceStackProgress.ts +169 -0
  122. package/src/core/stack/stackWorkflowRenderer.ts +756 -0
  123. package/src/core/state/localState.ts +18 -0
  124. package/src/core/state/resourceState.ts +77 -0
  125. package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
  126. package/src/core/state/stateStore.ts +600 -0
  127. package/src/providers/file/jsonFile.ts +94 -0
  128. package/src/providers/file/model.ts +29 -0
  129. package/src/providers/file/resourcePolicy.ts +271 -0
  130. package/src/providers/index.ts +0 -2
  131. package/src/providers/providerRuntimeLayer.ts +27 -113
  132. package/src/providers/resourceCommandPolicyLayer.ts +151 -200
  133. package/src/providers/stripe/client/generated/LICENSE +21 -0
  134. package/src/providers/stripe/client/generated/accounts.ts +14360 -0
  135. package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
  136. package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
  137. package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
  138. package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
  139. package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
  140. package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
  141. package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
  142. package/src/providers/stripe/client/generated/catalog.ts +18881 -0
  143. package/src/providers/stripe/client/generated/charges.ts +2637 -0
  144. package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
  145. package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
  146. package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
  147. package/src/providers/stripe/client/generated/configuration.ts +3 -0
  148. package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
  149. package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
  150. package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
  151. package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
  152. package/src/providers/stripe/client/generated/coupons.ts +562 -0
  153. package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
  154. package/src/providers/stripe/client/generated/customers.ts +10712 -0
  155. package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
  156. package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
  157. package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
  158. package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
  159. package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
  160. package/src/providers/stripe/client/generated/index.ts +330 -0
  161. package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
  162. package/src/providers/stripe/client/generated/invoices.ts +8412 -0
  163. package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
  164. package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
  165. package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
  166. package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
  167. package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
  168. package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
  169. package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
  170. package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
  171. package/src/providers/stripe/client/generated/models/common.ts +25024 -0
  172. package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
  173. package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
  174. package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
  175. package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
  176. package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
  177. package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
  178. package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
  179. package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
  180. package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
  181. package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
  182. package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
  183. package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
  184. package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
  185. package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
  186. package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
  187. package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
  188. package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
  189. package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
  190. package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
  191. package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
  192. package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
  193. package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
  194. package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
  195. package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
  196. package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
  197. package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
  198. package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
  199. package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
  200. package/src/providers/stripe/client/generated/payouts.ts +589 -0
  201. package/src/providers/stripe/client/generated/plans.ts +712 -0
  202. package/src/providers/stripe/client/generated/prices.ts +1045 -0
  203. package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
  204. package/src/providers/stripe/client/generated/products.ts +1370 -0
  205. package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
  206. package/src/providers/stripe/client/generated/quotes.ts +1874 -0
  207. package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
  208. package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
  209. package/src/providers/stripe/client/generated/refunds.ts +493 -0
  210. package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
  211. package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
  212. package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
  213. package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
  214. package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
  215. package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
  216. package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
  217. package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
  218. package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
  219. package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
  220. package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
  221. package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
  222. package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
  223. package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
  224. package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
  225. package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
  226. package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
  227. package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
  228. package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
  229. package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
  230. package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
  231. package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
  232. package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
  233. package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
  234. package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
  235. package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
  236. package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
  237. package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
  238. package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
  239. package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
  240. package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
  241. package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
  242. package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
  243. package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
  244. package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
  245. package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
  246. package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
  247. package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
  248. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
  249. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
  250. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
  251. package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
  252. package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
  253. package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
  254. package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
  255. package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
  256. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
  257. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
  258. package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
  259. package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
  260. package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
  261. package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
  262. package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
  263. package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
  264. package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
  265. package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
  266. package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
  267. package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
  268. package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
  269. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
  270. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
  271. package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
  272. package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
  273. package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
  274. package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
  275. package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
  276. package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
  277. package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
  278. package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
  279. package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
  280. package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
  281. package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
  282. package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
  283. package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
  284. package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
  285. package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
  286. package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
  287. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
  288. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
  289. package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
  290. package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
  291. package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
  292. package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
  293. package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
  294. package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
  321. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
  322. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
  324. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
  325. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
  327. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
  328. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
  330. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
  331. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
  333. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
  334. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
  336. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
  337. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
  339. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
  340. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
  342. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
  343. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
  345. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
  346. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
  357. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
  358. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
  366. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
  367. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
  369. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
  370. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
  372. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
  373. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
  375. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
  376. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
  378. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
  379. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
  381. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
  382. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
  390. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
  391. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
  458. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
  459. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
  460. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
  461. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
  462. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
  463. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
  464. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
  465. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
  466. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
  467. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
  468. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
  469. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
  470. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
  471. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
  472. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
  473. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
  474. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
  475. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
  476. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
  477. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
  478. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
  479. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
  480. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
  481. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
  482. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
  483. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
  484. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
  485. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
  486. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
  610. package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
  611. package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
  612. package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
  613. package/src/providers/stripe/client/generated/sources.ts +1482 -0
  614. package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
  615. package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
  616. package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
  617. package/src/providers/stripe/client/generated/taxIds.ts +644 -0
  618. package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
  619. package/src/providers/stripe/client/generated/taxRates.ts +620 -0
  620. package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
  621. package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
  622. package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
  623. package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
  624. package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
  625. package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
  626. package/src/providers/stripe/client/generated/tokens.ts +2498 -0
  627. package/src/providers/stripe/client/generated/topups.ts +556 -0
  628. package/src/providers/stripe/client/generated/transfers.ts +786 -0
  629. package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
  630. package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
  631. package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
  632. package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
  633. package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
  634. package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
  635. package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
  636. package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
  637. package/src/providers/stripe/client/stripeClient.ts +212 -0
  638. package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
  639. package/src/providers/stripe/client/stripeClientModel.ts +40 -0
  640. package/src/providers/stripe/index.ts +8 -15
  641. package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
  642. package/src/providers/stripe/management/resourcePolicy.ts +500 -0
  643. package/src/providers/stripe/management/resources.ts +36 -0
  644. package/src/providers/stripe/runtime.ts +74 -0
  645. package/bin/nomoss +0 -13
  646. package/docs/code-documentation.md +0 -36
  647. package/docs/effect-native-development.md +0 -55
  648. package/docs/engine-design.md +0 -93
  649. package/docs/linting.md +0 -88
  650. package/docs/releasing.md +0 -13
  651. package/docs/resource-command-policy-stage.md +0 -71
  652. package/docs/resource-graph-mvp.md +0 -31
  653. package/docs/resource-graph-testing-approach.md +0 -11
  654. package/docs/resource-lifecycle-tracker.md +0 -93
  655. package/docs/testing.md +0 -86
  656. package/examples/upload-events/README.md +0 -41
  657. package/src/cliRuntimeLayer.ts +0 -49
  658. package/src/core/model.ts +0 -229
  659. package/src/core/physicalNameStore.ts +0 -226
  660. package/src/core/planner.ts +0 -645
  661. package/src/core/resourceCommandPolicy.ts +0 -79
  662. package/src/core/resourceGraphBuilder.ts +0 -167
  663. package/src/core/resourceGraphStore.ts +0 -288
  664. package/src/core/resourceOutputResolver.ts +0 -185
  665. package/src/core/resourcePolicy.ts +0 -77
  666. package/src/core/resourceStackDefinition.ts +0 -17
  667. package/src/core/resourceStackLifecycle.ts +0 -456
  668. package/src/core/resourceStackOperations.ts +0 -129
  669. package/src/core/runtimeLayer.ts +0 -73
  670. package/src/core/stackWorkflowRenderer.ts +0 -239
  671. package/src/core/stateStore.ts +0 -652
  672. package/src/core/tracing.ts +0 -26
  673. package/src/providers/aws/awsApply.ts +0 -132
  674. package/src/providers/aws/awsBucket.ts +0 -329
  675. package/src/providers/aws/awsBucketNotification.ts +0 -351
  676. package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
  677. package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
  678. package/src/providers/aws/awsProviderLayer.ts +0 -274
  679. package/src/providers/aws/awsQueue.ts +0 -346
  680. package/src/providers/aws/awsQueuePolicy.ts +0 -419
  681. package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
  682. package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
  683. package/src/providers/aws/awsReconciliation.ts +0 -92
  684. package/src/providers/aws/awsRefresh.ts +0 -50
  685. package/src/providers/aws/awsResourceLifecycle.ts +0 -118
  686. package/src/providers/aws/awsResourcePolicy.ts +0 -83
  687. package/src/providers/aws/awsResources.ts +0 -274
  688. package/src/providers/aws/awsRuntimeLayer.ts +0 -21
  689. package/src/providers/aws/awsSqsTransport.ts +0 -33
  690. package/src/providers/aws/awsStackLifecycle.ts +0 -272
  691. package/src/providers/aws/awsTagging.ts +0 -186
  692. package/src/providers/aws/constants.ts +0 -3
  693. package/src/providers/aws/index.ts +0 -22
  694. package/src/providers/aws/sampleStack.ts +0 -65
  695. package/src/providers/aws/stackWorkflow.ts +0 -443
  696. package/src/providers/stripe/stripeAccount.ts +0 -139
  697. package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
  698. package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
  699. package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
  700. package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
  701. package/src/providers/stripe/stripeCustomer.ts +0 -148
  702. package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
  703. package/src/providers/stripe/stripePrice.ts +0 -218
  704. package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
  705. package/src/providers/stripe/stripeProduct.ts +0 -171
  706. package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
  707. package/src/providers/stripe/stripeResources.ts +0 -454
  708. package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
  709. package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
  710. package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
@@ -0,0 +1,2808 @@
1
+ // This schema module comes from the selected resource contracts. Do not edit.
2
+
3
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
4
+ import { Schema } from "effect";
5
+ import { Stripetax_id } from "./catalog.js";
6
+ import {
7
+ Stripeaddress,
8
+ Stripefile,
9
+ Stripelegal_entity_company,
10
+ Stripeperson,
11
+ } from "./common.js";
12
+ import {
13
+ Stripebank_account,
14
+ Stripecard,
15
+ Stripecard_issuing_account_terms_of_service,
16
+ } from "./paymentSources.js";
17
+ import { Stripetransfer_schedule } from "./transfers.js";
18
+
19
+ export type Stripeaccount = {
20
+ readonly business_profile?: Stripeaccount_business_profile | null;
21
+ readonly business_type?:
22
+ | "company"
23
+ | "government_entity"
24
+ | "individual"
25
+ | "non_profit"
26
+ | null;
27
+ readonly capabilities?: Stripeaccount_capabilities;
28
+ readonly charges_enabled?: boolean;
29
+ readonly company?: Stripelegal_entity_company;
30
+ readonly controller?: Stripeaccount_unification_account_controller;
31
+ readonly country?: string;
32
+ readonly created?: number;
33
+ readonly default_currency?: string;
34
+ readonly details_submitted?: boolean;
35
+ readonly email?: string | null;
36
+ readonly external_accounts?: {
37
+ readonly data: ReadonlyArray<Stripebank_account | Stripecard>;
38
+ readonly has_more: boolean;
39
+ readonly object: "list";
40
+ readonly url: string;
41
+ } & { readonly [x: string]: Schema.Json };
42
+ readonly future_requirements?: Stripeaccount_future_requirements;
43
+ readonly groups?: Stripeaccount_group_membership | null;
44
+ readonly id: string;
45
+ readonly individual?: Stripeperson;
46
+ readonly metadata?: { readonly [x: string]: string };
47
+ readonly object: "account";
48
+ readonly payouts_enabled?: boolean;
49
+ readonly requirements?: Stripeaccount_requirements;
50
+ readonly settings?: Stripeaccount_settings | null;
51
+ readonly tos_acceptance?: Stripeaccount_tos_acceptance;
52
+ readonly type?: "custom" | "express" | "none" | "standard";
53
+ } & { readonly [x: string]: Schema.Json };
54
+ export type Stripeaccount_settings = {
55
+ readonly bacs_debit_payments?: Stripeaccount_bacs_debit_payments_settings;
56
+ readonly branding: Stripeaccount_branding_settings;
57
+ readonly card_issuing?: Stripeaccount_card_issuing_settings;
58
+ readonly card_payments: Stripeaccount_card_payments_settings;
59
+ readonly dashboard: Stripeaccount_dashboard_settings;
60
+ readonly invoices?: Stripeaccount_invoices_settings;
61
+ readonly payments: Stripeaccount_payments_settings;
62
+ readonly payouts?: Stripeaccount_payout_settings;
63
+ readonly paypay_payments?: Stripeaccount_paypay_payments_settings;
64
+ readonly sepa_debit_payments?: Stripeaccount_sepa_debit_payments_settings;
65
+ readonly treasury?: Stripeaccount_treasury_settings;
66
+ } & { readonly [x: string]: Schema.Json };
67
+ export type Stripeaccount_invoices_settings = {
68
+ readonly default_account_tax_ids?: ReadonlyArray<
69
+ string | Stripetax_id
70
+ > | null;
71
+ readonly hosted_payment_method_save?: "always" | "never" | "offer" | null;
72
+ } & { readonly [x: string]: Schema.Json };
73
+ export type Stripeaccount_annual_revenue = {
74
+ readonly amount?: number | null;
75
+ readonly currency?: string | null;
76
+ readonly fiscal_year_end?: string | null;
77
+ } & { readonly [x: string]: Schema.Json };
78
+ export type Stripeaccount_monthly_estimated_revenue = {
79
+ readonly amount: number;
80
+ readonly currency: string;
81
+ } & { readonly [x: string]: Schema.Json };
82
+ export type Stripeaccount_capabilities = {
83
+ readonly acss_debit_payments?: "active" | "inactive" | "pending";
84
+ readonly affirm_payments?: "active" | "inactive" | "pending";
85
+ readonly afterpay_clearpay_payments?: "active" | "inactive" | "pending";
86
+ readonly alma_payments?: "active" | "inactive" | "pending";
87
+ readonly amazon_pay_payments?: "active" | "inactive" | "pending";
88
+ readonly app_distribution?: "active" | "inactive" | "pending";
89
+ readonly au_becs_debit_payments?: "active" | "inactive" | "pending";
90
+ readonly bacs_debit_payments?: "active" | "inactive" | "pending";
91
+ readonly bancontact_payments?: "active" | "inactive" | "pending";
92
+ readonly bank_transfer_payments?: "active" | "inactive" | "pending";
93
+ readonly billie_payments?: "active" | "inactive" | "pending";
94
+ readonly bizum_payments?: "active" | "inactive" | "pending";
95
+ readonly blik_payments?: "active" | "inactive" | "pending";
96
+ readonly blik_recurring_payments?: "active" | "inactive" | "pending";
97
+ readonly boleto_payments?: "active" | "inactive" | "pending";
98
+ readonly card_issuing?: "active" | "inactive" | "pending";
99
+ readonly card_payments?: "active" | "inactive" | "pending";
100
+ readonly cartes_bancaires_payments?: "active" | "inactive" | "pending";
101
+ readonly cashapp_payments?: "active" | "inactive" | "pending";
102
+ readonly crypto_payments?: "active" | "inactive" | "pending";
103
+ readonly eps_payments?: "active" | "inactive" | "pending";
104
+ readonly fpx_payments?: "active" | "inactive" | "pending";
105
+ readonly gb_bank_transfer_payments?: "active" | "inactive" | "pending";
106
+ readonly giropay_payments?: "active" | "inactive" | "pending";
107
+ readonly grabpay_payments?: "active" | "inactive" | "pending";
108
+ readonly ideal_payments?: "active" | "inactive" | "pending";
109
+ readonly india_international_payments?: "active" | "inactive" | "pending";
110
+ readonly jcb_payments?: "active" | "inactive" | "pending";
111
+ readonly jp_bank_transfer_payments?: "active" | "inactive" | "pending";
112
+ readonly kakao_pay_payments?: "active" | "inactive" | "pending";
113
+ readonly klarna_payments?: "active" | "inactive" | "pending";
114
+ readonly konbini_payments?: "active" | "inactive" | "pending";
115
+ readonly kr_card_payments?: "active" | "inactive" | "pending";
116
+ readonly legacy_payments?: "active" | "inactive" | "pending";
117
+ readonly link_payments?: "active" | "inactive" | "pending";
118
+ readonly mb_way_payments?: "active" | "inactive" | "pending";
119
+ readonly mobilepay_payments?: "active" | "inactive" | "pending";
120
+ readonly multibanco_payments?: "active" | "inactive" | "pending";
121
+ readonly mx_bank_transfer_payments?: "active" | "inactive" | "pending";
122
+ readonly naver_pay_payments?: "active" | "inactive" | "pending";
123
+ readonly nz_bank_account_becs_debit_payments?:
124
+ | "active"
125
+ | "inactive"
126
+ | "pending";
127
+ readonly oxxo_payments?: "active" | "inactive" | "pending";
128
+ readonly p24_payments?: "active" | "inactive" | "pending";
129
+ readonly pay_by_bank_payments?: "active" | "inactive" | "pending";
130
+ readonly payco_payments?: "active" | "inactive" | "pending";
131
+ readonly paynow_payments?: "active" | "inactive" | "pending";
132
+ readonly paypay_payments?: "active" | "inactive" | "pending";
133
+ readonly payto_payments?: "active" | "inactive" | "pending";
134
+ readonly pix_payments?: "active" | "inactive" | "pending";
135
+ readonly promptpay_payments?: "active" | "inactive" | "pending";
136
+ readonly revolut_pay_payments?: "active" | "inactive" | "pending";
137
+ readonly samsung_pay_payments?: "active" | "inactive" | "pending";
138
+ readonly satispay_payments?: "active" | "inactive" | "pending";
139
+ readonly scalapay_payments?: "active" | "inactive" | "pending";
140
+ readonly sepa_bank_transfer_payments?: "active" | "inactive" | "pending";
141
+ readonly sepa_debit_payments?: "active" | "inactive" | "pending";
142
+ readonly sequra_payments?: "active" | "inactive" | "pending";
143
+ readonly sofort_payments?: "active" | "inactive" | "pending";
144
+ readonly sunbit_payments?: "active" | "inactive" | "pending";
145
+ readonly swish_payments?: "active" | "inactive" | "pending";
146
+ readonly tax_reporting_us_1099_k?: "active" | "inactive" | "pending";
147
+ readonly tax_reporting_us_1099_misc?: "active" | "inactive" | "pending";
148
+ readonly transfers?: "active" | "inactive" | "pending";
149
+ readonly treasury?: "active" | "inactive" | "pending";
150
+ readonly twint_payments?: "active" | "inactive" | "pending";
151
+ readonly upi_payments?: "active" | "inactive" | "pending";
152
+ readonly us_bank_account_ach_payments?: "active" | "inactive" | "pending";
153
+ readonly us_bank_transfer_payments?: "active" | "inactive" | "pending";
154
+ readonly wero_payments?: "active" | "inactive" | "pending";
155
+ readonly zip_payments?: "active" | "inactive" | "pending";
156
+ } & { readonly [x: string]: Schema.Json };
157
+ export type Stripeaccount_unification_account_controller_fees = {
158
+ readonly payer:
159
+ | "account"
160
+ | "application"
161
+ | "application_custom"
162
+ | "application_express";
163
+ } & { readonly [x: string]: Schema.Json };
164
+ export type Stripeaccount_unification_account_controller_losses = {
165
+ readonly payments: "application" | "stripe";
166
+ } & { readonly [x: string]: Schema.Json };
167
+ export type Stripeaccount_unification_account_controller_stripe_dashboard = {
168
+ readonly type: "express" | "full" | "none";
169
+ } & { readonly [x: string]: Schema.Json };
170
+ export type Stripeaccount_requirements_error = {
171
+ readonly code:
172
+ | "external_request"
173
+ | "information_missing"
174
+ | "invalid_address_city_state_postal_code"
175
+ | "invalid_address_cmra_address"
176
+ | "invalid_address_highway_contract_box"
177
+ | "invalid_address_private_mailbox"
178
+ | "invalid_address_registered_agent_address"
179
+ | "invalid_business_profile_name"
180
+ | "invalid_business_profile_name_denylisted"
181
+ | "invalid_company_name_denylisted"
182
+ | "invalid_dob_age_over_maximum"
183
+ | "invalid_dob_age_under_18"
184
+ | "invalid_dob_age_under_minimum"
185
+ | "invalid_product_description_length"
186
+ | "invalid_product_description_url_match"
187
+ | "invalid_representative_country"
188
+ | "invalid_signator"
189
+ | "invalid_statement_descriptor_business_mismatch"
190
+ | "invalid_statement_descriptor_denylisted"
191
+ | "invalid_statement_descriptor_length"
192
+ | "invalid_statement_descriptor_prefix_denylisted"
193
+ | "invalid_statement_descriptor_prefix_mismatch"
194
+ | "invalid_street_address"
195
+ | "invalid_tax_id"
196
+ | "invalid_tax_id_format"
197
+ | "invalid_tos_acceptance"
198
+ | "invalid_url_denylisted"
199
+ | "invalid_url_format"
200
+ | "invalid_url_web_presence_detected"
201
+ | "invalid_url_website_business_information_mismatch"
202
+ | "invalid_url_website_empty"
203
+ | "invalid_url_website_inaccessible"
204
+ | "invalid_url_website_inaccessible_geoblocked"
205
+ | "invalid_url_website_inaccessible_password_protected"
206
+ | "invalid_url_website_incomplete"
207
+ | "invalid_url_website_incomplete_cancellation_policy"
208
+ | "invalid_url_website_incomplete_customer_service_details"
209
+ | "invalid_url_website_incomplete_legal_restrictions"
210
+ | "invalid_url_website_incomplete_refund_policy"
211
+ | "invalid_url_website_incomplete_return_policy"
212
+ | "invalid_url_website_incomplete_terms_and_conditions"
213
+ | "invalid_url_website_incomplete_under_construction"
214
+ | "invalid_url_website_other"
215
+ | "invalid_value_other"
216
+ | "unsupported_business_type"
217
+ | "verification_directors_mismatch"
218
+ | "verification_document_address_mismatch"
219
+ | "verification_document_address_missing"
220
+ | "verification_document_corrupt"
221
+ | "verification_document_country_not_supported"
222
+ | "verification_document_directors_mismatch"
223
+ | "verification_document_dob_mismatch"
224
+ | "verification_document_duplicate_type"
225
+ | "verification_document_expired"
226
+ | "verification_document_failed_copy"
227
+ | "verification_document_failed_greyscale"
228
+ | "verification_document_failed_other"
229
+ | "verification_document_failed_test_mode"
230
+ | "verification_document_fraudulent"
231
+ | "verification_document_id_number_mismatch"
232
+ | "verification_document_id_number_missing"
233
+ | "verification_document_incomplete"
234
+ | "verification_document_invalid"
235
+ | "verification_document_issue_or_expiry_date_missing"
236
+ | "verification_document_manipulated"
237
+ | "verification_document_missing_back"
238
+ | "verification_document_missing_front"
239
+ | "verification_document_name_mismatch"
240
+ | "verification_document_name_missing"
241
+ | "verification_document_nationality_mismatch"
242
+ | "verification_document_not_readable"
243
+ | "verification_document_not_signed"
244
+ | "verification_document_not_uploaded"
245
+ | "verification_document_photo_mismatch"
246
+ | "verification_document_too_large"
247
+ | "verification_document_type_not_supported"
248
+ | "verification_extraneous_directors"
249
+ | "verification_failed_address_match"
250
+ | "verification_failed_authorizer_authority"
251
+ | "verification_failed_business_iec_number"
252
+ | "verification_failed_document_match"
253
+ | "verification_failed_id_number_match"
254
+ | "verification_failed_keyed_identity"
255
+ | "verification_failed_keyed_match"
256
+ | "verification_failed_name_match"
257
+ | "verification_failed_other"
258
+ | "verification_failed_representative_authority"
259
+ | "verification_failed_residential_address"
260
+ | "verification_failed_tax_id_match"
261
+ | "verification_failed_tax_id_not_issued"
262
+ | "verification_legal_entity_structure_mismatch"
263
+ | "verification_missing_directors"
264
+ | "verification_missing_executives"
265
+ | "verification_missing_owners"
266
+ | "verification_rejected_ownership_exemption_reason"
267
+ | "verification_requires_additional_memorandum_of_associations"
268
+ | "verification_requires_additional_proof_of_registration"
269
+ | "verification_supportability";
270
+ readonly reason: string;
271
+ readonly requirement: string;
272
+ } & { readonly [x: string]: Schema.Json };
273
+ export type Stripeaccount_requirements_alternative = {
274
+ readonly alternative_fields_due: ReadonlyArray<string>;
275
+ readonly original_fields_due: ReadonlyArray<string>;
276
+ } & { readonly [x: string]: Schema.Json };
277
+ export type Stripeaccount_group_membership = {
278
+ readonly payments_pricing?: string | null;
279
+ } & { readonly [x: string]: Schema.Json };
280
+ export type Stripeaccount_bacs_debit_payments_settings = {
281
+ readonly display_name?: string | null;
282
+ readonly service_user_number?: string | null;
283
+ } & { readonly [x: string]: Schema.Json };
284
+ export type Stripeaccount_branding_settings = {
285
+ readonly icon?: string | Stripefile | null;
286
+ readonly logo?: string | Stripefile | null;
287
+ readonly primary_color?: string | null;
288
+ readonly secondary_color?: string | null;
289
+ } & { readonly [x: string]: Schema.Json };
290
+ export type Stripeaccount_decline_charge_on = {
291
+ readonly avs_failure: boolean;
292
+ readonly cvc_failure: boolean;
293
+ } & { readonly [x: string]: Schema.Json };
294
+ export type Stripeaccount_dashboard_settings = {
295
+ readonly display_name?: string | null;
296
+ readonly timezone?: string | null;
297
+ } & { readonly [x: string]: Schema.Json };
298
+ export type Stripeaccount_payments_settings = {
299
+ readonly statement_descriptor?: string | null;
300
+ readonly statement_descriptor_kana?: string | null;
301
+ readonly statement_descriptor_kanji?: string | null;
302
+ } & { readonly [x: string]: Schema.Json };
303
+ export type Stripeaccount_paypay_site_accessible_settings = {
304
+ readonly [x: string]: Schema.Json;
305
+ };
306
+ export type Stripeaccount_paypay_site_in_development_settings = {
307
+ readonly password_provided?: boolean;
308
+ readonly username?: string | null;
309
+ } & { readonly [x: string]: Schema.Json };
310
+ export type Stripeaccount_paypay_site_restricted_settings = {
311
+ readonly payment_flow_file?: string | null;
312
+ } & { readonly [x: string]: Schema.Json };
313
+ export type Stripeaccount_sepa_debit_payments_settings = {
314
+ readonly creditor_id?: string;
315
+ } & { readonly [x: string]: Schema.Json };
316
+ export type Stripeaccount_terms_of_service = {
317
+ readonly date?: number | null;
318
+ readonly ip?: string | null;
319
+ readonly user_agent?: string;
320
+ } & { readonly [x: string]: Schema.Json };
321
+ export type Stripeaccount_tos_acceptance = {
322
+ readonly date?: number | null;
323
+ readonly ip?: string | null;
324
+ readonly service_agreement?: string;
325
+ readonly user_agent?: string | null;
326
+ } & { readonly [x: string]: Schema.Json };
327
+ export type Stripeaccount_business_profile = {
328
+ readonly annual_revenue?: Stripeaccount_annual_revenue | null;
329
+ readonly estimated_worker_count?: number | null;
330
+ readonly mcc?: string | null;
331
+ readonly minority_owned_business_designation?: ReadonlyArray<
332
+ | "lgbtqi_owned_business"
333
+ | "minority_owned_business"
334
+ | "none_of_these_apply"
335
+ | "prefer_not_to_answer"
336
+ | "women_owned_business"
337
+ > | null;
338
+ readonly monthly_estimated_revenue?: Stripeaccount_monthly_estimated_revenue;
339
+ readonly name?: string | null;
340
+ readonly product_description?: string | null;
341
+ readonly specified_commercial_transactions_act_url?: string | null;
342
+ readonly support_address?: Stripeaddress | null;
343
+ readonly support_email?: string | null;
344
+ readonly support_phone?: string | null;
345
+ readonly support_url?: string | null;
346
+ readonly url?: string | null;
347
+ } & { readonly [x: string]: Schema.Json };
348
+ export type Stripeaccount_unification_account_controller = {
349
+ readonly fees?: Stripeaccount_unification_account_controller_fees;
350
+ readonly is_controller?: boolean;
351
+ readonly losses?: Stripeaccount_unification_account_controller_losses;
352
+ readonly requirement_collection?: "application" | "stripe";
353
+ readonly stripe_dashboard?: Stripeaccount_unification_account_controller_stripe_dashboard;
354
+ readonly type: "account" | "application";
355
+ } & { readonly [x: string]: Schema.Json };
356
+ export type Stripeaccount_future_requirements = {
357
+ readonly alternatives?: ReadonlyArray<Stripeaccount_requirements_alternative> | null;
358
+ readonly current_deadline?: number | null;
359
+ readonly currently_due?: ReadonlyArray<string> | null;
360
+ readonly disabled_reason?:
361
+ | "action_required.requested_capabilities"
362
+ | "listed"
363
+ | "other"
364
+ | "platform_paused"
365
+ | "rejected.fraud"
366
+ | "rejected.incomplete_verification"
367
+ | "rejected.listed"
368
+ | "rejected.other"
369
+ | "rejected.platform_fraud"
370
+ | "rejected.platform_other"
371
+ | "rejected.platform_terms_of_service"
372
+ | "rejected.terms_of_service"
373
+ | "requirements.past_due"
374
+ | "requirements.pending_verification"
375
+ | "under_review"
376
+ | null;
377
+ readonly errors?: ReadonlyArray<Stripeaccount_requirements_error> | null;
378
+ readonly eventually_due?: ReadonlyArray<string> | null;
379
+ readonly past_due?: ReadonlyArray<string> | null;
380
+ readonly pending_verification?: ReadonlyArray<string> | null;
381
+ } & { readonly [x: string]: Schema.Json };
382
+ export type Stripeaccount_requirements = {
383
+ readonly alternatives?: ReadonlyArray<Stripeaccount_requirements_alternative> | null;
384
+ readonly current_deadline?: number | null;
385
+ readonly currently_due?: ReadonlyArray<string> | null;
386
+ readonly disabled_reason?:
387
+ | "action_required.requested_capabilities"
388
+ | "listed"
389
+ | "other"
390
+ | "platform_paused"
391
+ | "rejected.fraud"
392
+ | "rejected.incomplete_verification"
393
+ | "rejected.listed"
394
+ | "rejected.other"
395
+ | "rejected.platform_fraud"
396
+ | "rejected.platform_other"
397
+ | "rejected.platform_terms_of_service"
398
+ | "rejected.terms_of_service"
399
+ | "requirements.past_due"
400
+ | "requirements.pending_verification"
401
+ | "under_review"
402
+ | null;
403
+ readonly errors?: ReadonlyArray<Stripeaccount_requirements_error> | null;
404
+ readonly eventually_due?: ReadonlyArray<string> | null;
405
+ readonly past_due?: ReadonlyArray<string> | null;
406
+ readonly pending_verification?: ReadonlyArray<string> | null;
407
+ } & { readonly [x: string]: Schema.Json };
408
+ export type Stripeaccount_capability_future_requirements = {
409
+ readonly alternatives?: ReadonlyArray<Stripeaccount_requirements_alternative> | null;
410
+ readonly current_deadline?: number | null;
411
+ readonly currently_due: ReadonlyArray<string>;
412
+ readonly disabled_reason?:
413
+ | "other"
414
+ | "paused.inactivity"
415
+ | "pending.onboarding"
416
+ | "pending.review"
417
+ | "platform_disabled"
418
+ | "platform_paused"
419
+ | "rejected.inactivity"
420
+ | "rejected.other"
421
+ | "rejected.unsupported_business"
422
+ | "requirements.fields_needed"
423
+ | null;
424
+ readonly errors: ReadonlyArray<Stripeaccount_requirements_error>;
425
+ readonly eventually_due: ReadonlyArray<string>;
426
+ readonly past_due: ReadonlyArray<string>;
427
+ readonly pending_verification: ReadonlyArray<string>;
428
+ } & { readonly [x: string]: Schema.Json };
429
+ export type Stripeaccount_capability_requirements = {
430
+ readonly alternatives?: ReadonlyArray<Stripeaccount_requirements_alternative> | null;
431
+ readonly current_deadline?: number | null;
432
+ readonly currently_due: ReadonlyArray<string>;
433
+ readonly disabled_reason?:
434
+ | "other"
435
+ | "paused.inactivity"
436
+ | "pending.onboarding"
437
+ | "pending.review"
438
+ | "platform_disabled"
439
+ | "platform_paused"
440
+ | "rejected.inactivity"
441
+ | "rejected.other"
442
+ | "rejected.unsupported_business"
443
+ | "requirements.fields_needed"
444
+ | null;
445
+ readonly errors: ReadonlyArray<Stripeaccount_requirements_error>;
446
+ readonly eventually_due: ReadonlyArray<string>;
447
+ readonly past_due: ReadonlyArray<string>;
448
+ readonly pending_verification: ReadonlyArray<string>;
449
+ } & { readonly [x: string]: Schema.Json };
450
+ export type Stripeaccount_card_issuing_settings = {
451
+ readonly tos_acceptance?: Stripecard_issuing_account_terms_of_service;
452
+ } & { readonly [x: string]: Schema.Json };
453
+ export type Stripeaccount_card_payments_settings = {
454
+ readonly decline_on?: Stripeaccount_decline_charge_on;
455
+ readonly statement_descriptor_prefix?: string | null;
456
+ readonly statement_descriptor_prefix_kana?: string | null;
457
+ readonly statement_descriptor_prefix_kanji?: string | null;
458
+ } & { readonly [x: string]: Schema.Json };
459
+ export type Stripeaccount_payout_settings = {
460
+ readonly debit_negative_balances: boolean;
461
+ readonly schedule: Stripetransfer_schedule;
462
+ readonly statement_descriptor?: string | null;
463
+ } & { readonly [x: string]: Schema.Json };
464
+ export type Stripeaccount_paypay_site_settings = {
465
+ readonly accessible?: Stripeaccount_paypay_site_accessible_settings;
466
+ readonly in_development?: Stripeaccount_paypay_site_in_development_settings;
467
+ readonly restricted?: Stripeaccount_paypay_site_restricted_settings;
468
+ readonly type?: "accessible" | "in_development" | "restricted";
469
+ } & { readonly [x: string]: Schema.Json };
470
+ export type Stripeaccount_treasury_settings = {
471
+ readonly tos_acceptance?: Stripeaccount_terms_of_service;
472
+ } & { readonly [x: string]: Schema.Json };
473
+ export type Stripeaccount_paypay_payments_settings = {
474
+ readonly additional_files?: ReadonlyArray<string>;
475
+ readonly goods_type?: "digital_content" | "other";
476
+ readonly site?: Stripeaccount_paypay_site_settings;
477
+ } & { readonly [x: string]: Schema.Json };
478
+
479
+ export const Stripeaccount = Schema.suspend(
480
+ (): Schema.Codec<Stripeaccount> =>
481
+ Schema.StructWithRest(
482
+ Schema.Struct({
483
+ business_profile: Schema.optionalKey(
484
+ Schema.Union([
485
+ Schema.Union([Stripeaccount_business_profile]).annotate({
486
+ description: "Business information about the account.",
487
+ }),
488
+ Schema.Null,
489
+ ]),
490
+ ),
491
+ business_type: Schema.optionalKey(
492
+ Schema.Union([
493
+ Schema.Literals([
494
+ "company",
495
+ "government_entity",
496
+ "individual",
497
+ "non_profit",
498
+ ]).annotate({ description: "The business type." }),
499
+ Schema.Null,
500
+ ]),
501
+ ),
502
+ capabilities: Schema.optionalKey(Stripeaccount_capabilities),
503
+ charges_enabled: Schema.optionalKey(
504
+ Schema.Boolean.annotate({
505
+ description: "Whether the account can process charges.",
506
+ }),
507
+ ),
508
+ company: Schema.optionalKey(Stripelegal_entity_company),
509
+ controller: Schema.optionalKey(
510
+ Stripeaccount_unification_account_controller,
511
+ ),
512
+ country: Schema.optionalKey(
513
+ Schema.String.annotate({
514
+ description: "The account's country.",
515
+ }).check(
516
+ Schema.isMaxCodePoints(5000).annotate({
517
+ expected: "a string with at most 5000 code points",
518
+ }),
519
+ ),
520
+ ),
521
+ created: Schema.optionalKey(
522
+ Schema.Number.annotate({
523
+ description:
524
+ "Time at which the account was connected. Measured in seconds since the Unix epoch.",
525
+ format: "unix-time",
526
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
527
+ ),
528
+ default_currency: Schema.optionalKey(
529
+ Schema.String.annotate({
530
+ description:
531
+ "Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://stripe.com/docs/payouts).",
532
+ }).check(
533
+ Schema.isMaxCodePoints(5000).annotate({
534
+ expected: "a string with at most 5000 code points",
535
+ }),
536
+ ),
537
+ ),
538
+ details_submitted: Schema.optionalKey(
539
+ Schema.Boolean.annotate({
540
+ description:
541
+ "Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](/connect/onboarding) to finish submitting account details.",
542
+ }),
543
+ ),
544
+ email: Schema.optionalKey(
545
+ Schema.Union([
546
+ Schema.String.annotate({
547
+ description:
548
+ "An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform.",
549
+ }).check(
550
+ Schema.isMaxCodePoints(5000).annotate({
551
+ expected: "a string with at most 5000 code points",
552
+ }),
553
+ ),
554
+ Schema.Null,
555
+ ]),
556
+ ),
557
+ external_accounts: Schema.optionalKey(
558
+ Schema.StructWithRest(
559
+ Schema.Struct({
560
+ data: Schema.Array(
561
+ Schema.Union([
562
+ Schema.suspend(
563
+ (): Schema.Codec<Stripebank_account> => Stripebank_account,
564
+ ),
565
+ Schema.suspend((): Schema.Codec<Stripecard> => Stripecard),
566
+ ]).annotate({ title: "Polymorphic" }),
567
+ ).annotate({
568
+ description:
569
+ "The list contains all external accounts that have been attached to the Stripe account. These may be bank accounts or cards.",
570
+ }),
571
+ has_more: Schema.Boolean.annotate({
572
+ description:
573
+ "True if this list has another page of items after this one that can be fetched.",
574
+ }),
575
+ object: Schema.Literal("list").annotate({
576
+ description:
577
+ "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
578
+ }),
579
+ url: Schema.String.annotate({
580
+ description: "The URL where this list can be accessed.",
581
+ }).check(
582
+ Schema.isMaxCodePoints(5000).annotate({
583
+ expected: "a string with at most 5000 code points",
584
+ }),
585
+ ),
586
+ }),
587
+ [
588
+ Schema.Record(
589
+ Schema.String,
590
+ Schema.Json.annotate({ expected: "JSON value" }),
591
+ ),
592
+ ],
593
+ ).annotate({
594
+ title: "ExternalAccountList",
595
+ description:
596
+ "External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.",
597
+ }),
598
+ ),
599
+ future_requirements: Schema.optionalKey(
600
+ Stripeaccount_future_requirements,
601
+ ),
602
+ groups: Schema.optionalKey(
603
+ Schema.Union([
604
+ Schema.Union([Stripeaccount_group_membership]).annotate({
605
+ description: "The groups associated with the account.",
606
+ }),
607
+ Schema.Null,
608
+ ]),
609
+ ),
610
+ id: Schema.String.annotate({
611
+ description: "Unique identifier for the object.",
612
+ }).check(
613
+ Schema.isMaxCodePoints(5000).annotate({
614
+ expected: "a string with at most 5000 code points",
615
+ }),
616
+ ),
617
+ individual: Schema.optionalKey(Stripeperson),
618
+ metadata: Schema.optionalKey(
619
+ Schema.Record(
620
+ Schema.String,
621
+ Schema.String.check(
622
+ Schema.isMaxCodePoints(500).annotate({
623
+ expected: "a string with at most 500 code points",
624
+ }),
625
+ ),
626
+ ).annotate({
627
+ description:
628
+ "Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.",
629
+ }),
630
+ ),
631
+ object: Schema.Literal("account").annotate({
632
+ description:
633
+ "String representing the object's type. Objects of the same type share the same value.",
634
+ }),
635
+ payouts_enabled: Schema.optionalKey(
636
+ Schema.Boolean.annotate({
637
+ description: "Whether the funds in this account can be paid out.",
638
+ }),
639
+ ),
640
+ requirements: Schema.optionalKey(Stripeaccount_requirements),
641
+ settings: Schema.optionalKey(
642
+ Schema.Union([
643
+ Schema.Union([
644
+ Schema.suspend(
645
+ (): Schema.Codec<Stripeaccount_settings> =>
646
+ Stripeaccount_settings,
647
+ ),
648
+ ]).annotate({
649
+ description:
650
+ "Options for customizing how the account functions within Stripe.",
651
+ }),
652
+ Schema.Null,
653
+ ]),
654
+ ),
655
+ tos_acceptance: Schema.optionalKey(Stripeaccount_tos_acceptance),
656
+ type: Schema.optionalKey(
657
+ Schema.Literals(["custom", "express", "none", "standard"]).annotate({
658
+ description:
659
+ "The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.",
660
+ }),
661
+ ),
662
+ }),
663
+ [
664
+ Schema.Record(
665
+ Schema.String,
666
+ Schema.Json.annotate({ expected: "JSON value" }),
667
+ ),
668
+ ],
669
+ ).annotate({
670
+ title: "Account",
671
+ description:
672
+ "For new integrations, we recommend using the [Accounts v2 API](/api/v2/core/accounts), in place of /v1/accounts and /v1/customers to represent a user.\n\nThis is an object representing a Stripe account. You can retrieve it to see\nproperties on the account like its current requirements or if the account is\nenabled to make live charges or receive payouts.\n\nFor accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection)\nis `application`, which includes Custom accounts, the properties below are always\nreturned.\n\nFor accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection)\nis `stripe`, which includes Standard and Express accounts, some properties are only returned\nuntil you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions)\nto start Connect Onboarding. Learn about the [differences between accounts](/connect/accounts).",
673
+ identifier: "Stripeaccount",
674
+ }),
675
+ );
676
+ export const Stripeaccount_settings = Schema.suspend(
677
+ (): Schema.Codec<Stripeaccount_settings> =>
678
+ Schema.StructWithRest(
679
+ Schema.Struct({
680
+ bacs_debit_payments: Schema.optionalKey(
681
+ Stripeaccount_bacs_debit_payments_settings,
682
+ ),
683
+ branding: Stripeaccount_branding_settings,
684
+ card_issuing: Schema.optionalKey(Stripeaccount_card_issuing_settings),
685
+ card_payments: Stripeaccount_card_payments_settings,
686
+ dashboard: Stripeaccount_dashboard_settings,
687
+ invoices: Schema.optionalKey(
688
+ Schema.suspend(
689
+ (): Schema.Codec<Stripeaccount_invoices_settings> =>
690
+ Stripeaccount_invoices_settings,
691
+ ),
692
+ ),
693
+ payments: Stripeaccount_payments_settings,
694
+ payouts: Schema.optionalKey(Stripeaccount_payout_settings),
695
+ paypay_payments: Schema.optionalKey(
696
+ Stripeaccount_paypay_payments_settings,
697
+ ),
698
+ sepa_debit_payments: Schema.optionalKey(
699
+ Stripeaccount_sepa_debit_payments_settings,
700
+ ),
701
+ treasury: Schema.optionalKey(Stripeaccount_treasury_settings),
702
+ }),
703
+ [
704
+ Schema.Record(
705
+ Schema.String,
706
+ Schema.Json.annotate({ expected: "JSON value" }),
707
+ ),
708
+ ],
709
+ ).annotate({
710
+ title: "AccountSettings",
711
+ description: "",
712
+ identifier: "Stripeaccount_settings",
713
+ }),
714
+ );
715
+ export const Stripeaccount_invoices_settings = Schema.StructWithRest(
716
+ Schema.Struct({
717
+ default_account_tax_ids: Schema.optionalKey(
718
+ Schema.Union([
719
+ Schema.Array(
720
+ Schema.Union([
721
+ Schema.String.check(
722
+ Schema.isMaxCodePoints(5000).annotate({
723
+ expected: "a string with at most 5000 code points",
724
+ }),
725
+ ),
726
+ Schema.suspend((): Schema.Codec<Stripetax_id> => Stripetax_id),
727
+ ]),
728
+ ).annotate({
729
+ description:
730
+ "The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.",
731
+ }),
732
+ Schema.Null,
733
+ ]),
734
+ ),
735
+ hosted_payment_method_save: Schema.optionalKey(
736
+ Schema.Union([
737
+ Schema.Literals(["always", "never", "offer"]).annotate({
738
+ description:
739
+ "Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.",
740
+ }),
741
+ Schema.Null,
742
+ ]),
743
+ ),
744
+ }),
745
+ [
746
+ Schema.Record(
747
+ Schema.String,
748
+ Schema.Json.annotate({ expected: "JSON value" }),
749
+ ),
750
+ ],
751
+ ).annotate({
752
+ title: "AccountInvoicesSettings",
753
+ description: "",
754
+ identifier: "Stripeaccount_invoices_settings",
755
+ });
756
+ export const Stripeaccount_annual_revenue = Schema.StructWithRest(
757
+ Schema.Struct({
758
+ amount: Schema.optionalKey(
759
+ Schema.Union([
760
+ Schema.Number.annotate({
761
+ description:
762
+ "A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).",
763
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
764
+ Schema.Null,
765
+ ]),
766
+ ),
767
+ currency: Schema.optionalKey(
768
+ Schema.Union([
769
+ Schema.String.annotate({
770
+ description:
771
+ "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
772
+ format: "currency",
773
+ }),
774
+ Schema.Null,
775
+ ]),
776
+ ),
777
+ fiscal_year_end: Schema.optionalKey(
778
+ Schema.Union([
779
+ Schema.String.annotate({
780
+ description:
781
+ "The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.",
782
+ }).check(
783
+ Schema.isMaxCodePoints(5000).annotate({
784
+ expected: "a string with at most 5000 code points",
785
+ }),
786
+ ),
787
+ Schema.Null,
788
+ ]),
789
+ ),
790
+ }),
791
+ [
792
+ Schema.Record(
793
+ Schema.String,
794
+ Schema.Json.annotate({ expected: "JSON value" }),
795
+ ),
796
+ ],
797
+ ).annotate({
798
+ title: "AccountAnnualRevenue",
799
+ description: "",
800
+ identifier: "Stripeaccount_annual_revenue",
801
+ });
802
+ export const Stripeaccount_monthly_estimated_revenue = Schema.StructWithRest(
803
+ Schema.Struct({
804
+ amount: Schema.Number.annotate({
805
+ description:
806
+ "A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).",
807
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
808
+ currency: Schema.String.annotate({
809
+ description:
810
+ "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
811
+ format: "currency",
812
+ }),
813
+ }),
814
+ [
815
+ Schema.Record(
816
+ Schema.String,
817
+ Schema.Json.annotate({ expected: "JSON value" }),
818
+ ),
819
+ ],
820
+ ).annotate({
821
+ title: "AccountMonthlyEstimatedRevenue",
822
+ description: "",
823
+ identifier: "Stripeaccount_monthly_estimated_revenue",
824
+ });
825
+ export const Stripeaccount_capabilities = Schema.StructWithRest(
826
+ Schema.Struct({
827
+ acss_debit_payments: Schema.optionalKey(
828
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
829
+ description:
830
+ "The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.",
831
+ }),
832
+ ),
833
+ affirm_payments: Schema.optionalKey(
834
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
835
+ description:
836
+ "The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.",
837
+ }),
838
+ ),
839
+ afterpay_clearpay_payments: Schema.optionalKey(
840
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
841
+ description:
842
+ "The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.",
843
+ }),
844
+ ),
845
+ alma_payments: Schema.optionalKey(
846
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
847
+ description:
848
+ "The status of the Alma capability of the account, or whether the account can directly process Alma payments.",
849
+ }),
850
+ ),
851
+ amazon_pay_payments: Schema.optionalKey(
852
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
853
+ description:
854
+ "The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.",
855
+ }),
856
+ ),
857
+ app_distribution: Schema.optionalKey(
858
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
859
+ description:
860
+ "The status of the `app_distribution` capability of the account, or whether the platform can distribute apps to other accounts.",
861
+ }),
862
+ ),
863
+ au_becs_debit_payments: Schema.optionalKey(
864
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
865
+ description:
866
+ "The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.",
867
+ }),
868
+ ),
869
+ bacs_debit_payments: Schema.optionalKey(
870
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
871
+ description:
872
+ "The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.",
873
+ }),
874
+ ),
875
+ bancontact_payments: Schema.optionalKey(
876
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
877
+ description:
878
+ "The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.",
879
+ }),
880
+ ),
881
+ bank_transfer_payments: Schema.optionalKey(
882
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
883
+ description:
884
+ "The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.",
885
+ }),
886
+ ),
887
+ billie_payments: Schema.optionalKey(
888
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
889
+ description:
890
+ "The status of the Billie capability of the account, or whether the account can directly process Billie payments.",
891
+ }),
892
+ ),
893
+ bizum_payments: Schema.optionalKey(
894
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
895
+ description:
896
+ "The status of the Bizum capability of the account, or whether the account can directly process Bizum payments.",
897
+ }),
898
+ ),
899
+ blik_payments: Schema.optionalKey(
900
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
901
+ description:
902
+ "The status of the blik payments capability of the account, or whether the account can directly process blik charges.",
903
+ }),
904
+ ),
905
+ blik_recurring_payments: Schema.optionalKey(
906
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
907
+ description:
908
+ "The status of the BLIK recurring payments capability of the account, or whether the account can accept recurring and subscription BLIK payments.",
909
+ }),
910
+ ),
911
+ boleto_payments: Schema.optionalKey(
912
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
913
+ description:
914
+ "The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.",
915
+ }),
916
+ ),
917
+ card_issuing: Schema.optionalKey(
918
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
919
+ description:
920
+ "The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards",
921
+ }),
922
+ ),
923
+ card_payments: Schema.optionalKey(
924
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
925
+ description:
926
+ "The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.",
927
+ }),
928
+ ),
929
+ cartes_bancaires_payments: Schema.optionalKey(
930
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
931
+ description:
932
+ "The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.",
933
+ }),
934
+ ),
935
+ cashapp_payments: Schema.optionalKey(
936
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
937
+ description:
938
+ "The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.",
939
+ }),
940
+ ),
941
+ crypto_payments: Schema.optionalKey(
942
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
943
+ description:
944
+ "The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.",
945
+ }),
946
+ ),
947
+ eps_payments: Schema.optionalKey(
948
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
949
+ description:
950
+ "The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.",
951
+ }),
952
+ ),
953
+ fpx_payments: Schema.optionalKey(
954
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
955
+ description:
956
+ "The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.",
957
+ }),
958
+ ),
959
+ gb_bank_transfer_payments: Schema.optionalKey(
960
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
961
+ description:
962
+ "The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.",
963
+ }),
964
+ ),
965
+ giropay_payments: Schema.optionalKey(
966
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
967
+ description:
968
+ "The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.",
969
+ }),
970
+ ),
971
+ grabpay_payments: Schema.optionalKey(
972
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
973
+ description:
974
+ "The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.",
975
+ }),
976
+ ),
977
+ ideal_payments: Schema.optionalKey(
978
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
979
+ description:
980
+ "The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.",
981
+ }),
982
+ ),
983
+ india_international_payments: Schema.optionalKey(
984
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
985
+ description:
986
+ "The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.",
987
+ }),
988
+ ),
989
+ jcb_payments: Schema.optionalKey(
990
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
991
+ description:
992
+ "The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.",
993
+ }),
994
+ ),
995
+ jp_bank_transfer_payments: Schema.optionalKey(
996
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
997
+ description:
998
+ "The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.",
999
+ }),
1000
+ ),
1001
+ kakao_pay_payments: Schema.optionalKey(
1002
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1003
+ description:
1004
+ "The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments.",
1005
+ }),
1006
+ ),
1007
+ klarna_payments: Schema.optionalKey(
1008
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1009
+ description:
1010
+ "The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.",
1011
+ }),
1012
+ ),
1013
+ konbini_payments: Schema.optionalKey(
1014
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1015
+ description:
1016
+ "The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.",
1017
+ }),
1018
+ ),
1019
+ kr_card_payments: Schema.optionalKey(
1020
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1021
+ description:
1022
+ "The status of the KrCard capability of the account, or whether the account can directly process KrCard payments.",
1023
+ }),
1024
+ ),
1025
+ legacy_payments: Schema.optionalKey(
1026
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1027
+ description:
1028
+ "The status of the legacy payments capability of the account.",
1029
+ }),
1030
+ ),
1031
+ link_payments: Schema.optionalKey(
1032
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1033
+ description:
1034
+ "The status of the link_payments capability of the account, or whether the account can directly process Link charges.",
1035
+ }),
1036
+ ),
1037
+ mb_way_payments: Schema.optionalKey(
1038
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1039
+ description:
1040
+ "The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.",
1041
+ }),
1042
+ ),
1043
+ mobilepay_payments: Schema.optionalKey(
1044
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1045
+ description:
1046
+ "The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.",
1047
+ }),
1048
+ ),
1049
+ multibanco_payments: Schema.optionalKey(
1050
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1051
+ description:
1052
+ "The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.",
1053
+ }),
1054
+ ),
1055
+ mx_bank_transfer_payments: Schema.optionalKey(
1056
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1057
+ description:
1058
+ "The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.",
1059
+ }),
1060
+ ),
1061
+ naver_pay_payments: Schema.optionalKey(
1062
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1063
+ description:
1064
+ "The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments.",
1065
+ }),
1066
+ ),
1067
+ nz_bank_account_becs_debit_payments: Schema.optionalKey(
1068
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1069
+ description:
1070
+ "The status of the New Zealand BECS Direct Debit payments capability of the account, or whether the account can directly process New Zealand BECS Direct Debit charges.",
1071
+ }),
1072
+ ),
1073
+ oxxo_payments: Schema.optionalKey(
1074
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1075
+ description:
1076
+ "The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.",
1077
+ }),
1078
+ ),
1079
+ p24_payments: Schema.optionalKey(
1080
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1081
+ description:
1082
+ "The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.",
1083
+ }),
1084
+ ),
1085
+ pay_by_bank_payments: Schema.optionalKey(
1086
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1087
+ description:
1088
+ "The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.",
1089
+ }),
1090
+ ),
1091
+ payco_payments: Schema.optionalKey(
1092
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1093
+ description:
1094
+ "The status of the Payco capability of the account, or whether the account can directly process Payco payments.",
1095
+ }),
1096
+ ),
1097
+ paynow_payments: Schema.optionalKey(
1098
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1099
+ description:
1100
+ "The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.",
1101
+ }),
1102
+ ),
1103
+ paypay_payments: Schema.optionalKey(
1104
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1105
+ description:
1106
+ "The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.",
1107
+ }),
1108
+ ),
1109
+ payto_payments: Schema.optionalKey(
1110
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1111
+ description:
1112
+ "The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.",
1113
+ }),
1114
+ ),
1115
+ pix_payments: Schema.optionalKey(
1116
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1117
+ description:
1118
+ "The status of the pix payments capability of the account, or whether the account can directly process pix charges.",
1119
+ }),
1120
+ ),
1121
+ promptpay_payments: Schema.optionalKey(
1122
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1123
+ description:
1124
+ "The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.",
1125
+ }),
1126
+ ),
1127
+ revolut_pay_payments: Schema.optionalKey(
1128
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1129
+ description:
1130
+ "The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.",
1131
+ }),
1132
+ ),
1133
+ samsung_pay_payments: Schema.optionalKey(
1134
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1135
+ description:
1136
+ "The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.",
1137
+ }),
1138
+ ),
1139
+ satispay_payments: Schema.optionalKey(
1140
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1141
+ description:
1142
+ "The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.",
1143
+ }),
1144
+ ),
1145
+ scalapay_payments: Schema.optionalKey(
1146
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1147
+ description:
1148
+ "The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments.",
1149
+ }),
1150
+ ),
1151
+ sepa_bank_transfer_payments: Schema.optionalKey(
1152
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1153
+ description:
1154
+ "The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.",
1155
+ }),
1156
+ ),
1157
+ sepa_debit_payments: Schema.optionalKey(
1158
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1159
+ description:
1160
+ "The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.",
1161
+ }),
1162
+ ),
1163
+ sequra_payments: Schema.optionalKey(
1164
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1165
+ description:
1166
+ "The status of the SeQura capability of the account, or whether the account can directly process SeQura payments.",
1167
+ }),
1168
+ ),
1169
+ sofort_payments: Schema.optionalKey(
1170
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1171
+ description:
1172
+ "The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.",
1173
+ }),
1174
+ ),
1175
+ sunbit_payments: Schema.optionalKey(
1176
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1177
+ description:
1178
+ "The status of the Sunbit capability of the account, or whether the account can directly process Sunbit payments.",
1179
+ }),
1180
+ ),
1181
+ swish_payments: Schema.optionalKey(
1182
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1183
+ description:
1184
+ "The status of the Swish capability of the account, or whether the account can directly process Swish payments.",
1185
+ }),
1186
+ ),
1187
+ tax_reporting_us_1099_k: Schema.optionalKey(
1188
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1189
+ description:
1190
+ "The status of the tax reporting 1099-K (US) capability of the account.",
1191
+ }),
1192
+ ),
1193
+ tax_reporting_us_1099_misc: Schema.optionalKey(
1194
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1195
+ description:
1196
+ "The status of the tax reporting 1099-MISC (US) capability of the account.",
1197
+ }),
1198
+ ),
1199
+ transfers: Schema.optionalKey(
1200
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1201
+ description:
1202
+ "The status of the transfers capability of the account, or whether your platform can transfer funds to the account.",
1203
+ }),
1204
+ ),
1205
+ treasury: Schema.optionalKey(
1206
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1207
+ description:
1208
+ "The status of the banking capability, or whether the account can have bank accounts.",
1209
+ }),
1210
+ ),
1211
+ twint_payments: Schema.optionalKey(
1212
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1213
+ description:
1214
+ "The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.",
1215
+ }),
1216
+ ),
1217
+ upi_payments: Schema.optionalKey(
1218
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1219
+ description:
1220
+ "The status of the upi payments capability of the account, or whether the account can directly process upi charges.",
1221
+ }),
1222
+ ),
1223
+ us_bank_account_ach_payments: Schema.optionalKey(
1224
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1225
+ description:
1226
+ "The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.",
1227
+ }),
1228
+ ),
1229
+ us_bank_transfer_payments: Schema.optionalKey(
1230
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1231
+ description:
1232
+ "The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.",
1233
+ }),
1234
+ ),
1235
+ wero_payments: Schema.optionalKey(
1236
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1237
+ description:
1238
+ "The status of the Wero capability of the account, or whether the account can directly process Wero payments.",
1239
+ }),
1240
+ ),
1241
+ zip_payments: Schema.optionalKey(
1242
+ Schema.Literals(["active", "inactive", "pending"]).annotate({
1243
+ description:
1244
+ "The status of the Zip capability of the account, or whether the account can directly process Zip charges.",
1245
+ }),
1246
+ ),
1247
+ }),
1248
+ [
1249
+ Schema.Record(
1250
+ Schema.String,
1251
+ Schema.Json.annotate({ expected: "JSON value" }),
1252
+ ),
1253
+ ],
1254
+ ).annotate({
1255
+ title: "AccountCapabilities",
1256
+ description: "",
1257
+ identifier: "Stripeaccount_capabilities",
1258
+ });
1259
+ export const Stripeaccount_unification_account_controller_fees =
1260
+ Schema.StructWithRest(
1261
+ Schema.Struct({
1262
+ payer: Schema.Literals([
1263
+ "account",
1264
+ "application",
1265
+ "application_custom",
1266
+ "application_express",
1267
+ ]).annotate({
1268
+ description:
1269
+ "A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).",
1270
+ }),
1271
+ }),
1272
+ [
1273
+ Schema.Record(
1274
+ Schema.String,
1275
+ Schema.Json.annotate({ expected: "JSON value" }),
1276
+ ),
1277
+ ],
1278
+ ).annotate({
1279
+ title: "AccountUnificationAccountControllerFees",
1280
+ description: "",
1281
+ identifier: "Stripeaccount_unification_account_controller_fees",
1282
+ });
1283
+ export const Stripeaccount_unification_account_controller_losses =
1284
+ Schema.StructWithRest(
1285
+ Schema.Struct({
1286
+ payments: Schema.Literals(["application", "stripe"]).annotate({
1287
+ description:
1288
+ "A value indicating who is liable when this account can't pay back negative balances from payments.",
1289
+ }),
1290
+ }),
1291
+ [
1292
+ Schema.Record(
1293
+ Schema.String,
1294
+ Schema.Json.annotate({ expected: "JSON value" }),
1295
+ ),
1296
+ ],
1297
+ ).annotate({
1298
+ title: "AccountUnificationAccountControllerLosses",
1299
+ description: "",
1300
+ identifier: "Stripeaccount_unification_account_controller_losses",
1301
+ });
1302
+ export const Stripeaccount_unification_account_controller_stripe_dashboard =
1303
+ Schema.StructWithRest(
1304
+ Schema.Struct({
1305
+ type: Schema.Literals(["express", "full", "none"]).annotate({
1306
+ description:
1307
+ "A value indicating the Stripe dashboard this account has access to independent of the Connect application.",
1308
+ }),
1309
+ }),
1310
+ [
1311
+ Schema.Record(
1312
+ Schema.String,
1313
+ Schema.Json.annotate({ expected: "JSON value" }),
1314
+ ),
1315
+ ],
1316
+ ).annotate({
1317
+ title: "AccountUnificationAccountControllerStripeDashboard",
1318
+ description: "",
1319
+ identifier: "Stripeaccount_unification_account_controller_stripe_dashboard",
1320
+ });
1321
+ export const Stripeaccount_requirements_error = Schema.StructWithRest(
1322
+ Schema.Struct({
1323
+ code: Schema.Literals([
1324
+ "external_request",
1325
+ "information_missing",
1326
+ "invalid_address_city_state_postal_code",
1327
+ "invalid_address_cmra_address",
1328
+ "invalid_address_highway_contract_box",
1329
+ "invalid_address_private_mailbox",
1330
+ "invalid_address_registered_agent_address",
1331
+ "invalid_business_profile_name",
1332
+ "invalid_business_profile_name_denylisted",
1333
+ "invalid_company_name_denylisted",
1334
+ "invalid_dob_age_over_maximum",
1335
+ "invalid_dob_age_under_18",
1336
+ "invalid_dob_age_under_minimum",
1337
+ "invalid_product_description_length",
1338
+ "invalid_product_description_url_match",
1339
+ "invalid_representative_country",
1340
+ "invalid_signator",
1341
+ "invalid_statement_descriptor_business_mismatch",
1342
+ "invalid_statement_descriptor_denylisted",
1343
+ "invalid_statement_descriptor_length",
1344
+ "invalid_statement_descriptor_prefix_denylisted",
1345
+ "invalid_statement_descriptor_prefix_mismatch",
1346
+ "invalid_street_address",
1347
+ "invalid_tax_id",
1348
+ "invalid_tax_id_format",
1349
+ "invalid_tos_acceptance",
1350
+ "invalid_url_denylisted",
1351
+ "invalid_url_format",
1352
+ "invalid_url_web_presence_detected",
1353
+ "invalid_url_website_business_information_mismatch",
1354
+ "invalid_url_website_empty",
1355
+ "invalid_url_website_inaccessible",
1356
+ "invalid_url_website_inaccessible_geoblocked",
1357
+ "invalid_url_website_inaccessible_password_protected",
1358
+ "invalid_url_website_incomplete",
1359
+ "invalid_url_website_incomplete_cancellation_policy",
1360
+ "invalid_url_website_incomplete_customer_service_details",
1361
+ "invalid_url_website_incomplete_legal_restrictions",
1362
+ "invalid_url_website_incomplete_refund_policy",
1363
+ "invalid_url_website_incomplete_return_policy",
1364
+ "invalid_url_website_incomplete_terms_and_conditions",
1365
+ "invalid_url_website_incomplete_under_construction",
1366
+ "invalid_url_website_other",
1367
+ "invalid_value_other",
1368
+ "unsupported_business_type",
1369
+ "verification_directors_mismatch",
1370
+ "verification_document_address_mismatch",
1371
+ "verification_document_address_missing",
1372
+ "verification_document_corrupt",
1373
+ "verification_document_country_not_supported",
1374
+ "verification_document_directors_mismatch",
1375
+ "verification_document_dob_mismatch",
1376
+ "verification_document_duplicate_type",
1377
+ "verification_document_expired",
1378
+ "verification_document_failed_copy",
1379
+ "verification_document_failed_greyscale",
1380
+ "verification_document_failed_other",
1381
+ "verification_document_failed_test_mode",
1382
+ "verification_document_fraudulent",
1383
+ "verification_document_id_number_mismatch",
1384
+ "verification_document_id_number_missing",
1385
+ "verification_document_incomplete",
1386
+ "verification_document_invalid",
1387
+ "verification_document_issue_or_expiry_date_missing",
1388
+ "verification_document_manipulated",
1389
+ "verification_document_missing_back",
1390
+ "verification_document_missing_front",
1391
+ "verification_document_name_mismatch",
1392
+ "verification_document_name_missing",
1393
+ "verification_document_nationality_mismatch",
1394
+ "verification_document_not_readable",
1395
+ "verification_document_not_signed",
1396
+ "verification_document_not_uploaded",
1397
+ "verification_document_photo_mismatch",
1398
+ "verification_document_too_large",
1399
+ "verification_document_type_not_supported",
1400
+ "verification_extraneous_directors",
1401
+ "verification_failed_address_match",
1402
+ "verification_failed_authorizer_authority",
1403
+ "verification_failed_business_iec_number",
1404
+ "verification_failed_document_match",
1405
+ "verification_failed_id_number_match",
1406
+ "verification_failed_keyed_identity",
1407
+ "verification_failed_keyed_match",
1408
+ "verification_failed_name_match",
1409
+ "verification_failed_other",
1410
+ "verification_failed_representative_authority",
1411
+ "verification_failed_residential_address",
1412
+ "verification_failed_tax_id_match",
1413
+ "verification_failed_tax_id_not_issued",
1414
+ "verification_legal_entity_structure_mismatch",
1415
+ "verification_missing_directors",
1416
+ "verification_missing_executives",
1417
+ "verification_missing_owners",
1418
+ "verification_rejected_ownership_exemption_reason",
1419
+ "verification_requires_additional_memorandum_of_associations",
1420
+ "verification_requires_additional_proof_of_registration",
1421
+ "verification_supportability",
1422
+ ]).annotate({ description: "The code for the type of error." }),
1423
+ reason: Schema.String.annotate({
1424
+ description:
1425
+ "An informative message that indicates the error type and provides additional details about the error.",
1426
+ }).check(
1427
+ Schema.isMaxCodePoints(5000).annotate({
1428
+ expected: "a string with at most 5000 code points",
1429
+ }),
1430
+ ),
1431
+ requirement: Schema.String.annotate({
1432
+ description:
1433
+ "The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.",
1434
+ }).check(
1435
+ Schema.isMaxCodePoints(5000).annotate({
1436
+ expected: "a string with at most 5000 code points",
1437
+ }),
1438
+ ),
1439
+ }),
1440
+ [
1441
+ Schema.Record(
1442
+ Schema.String,
1443
+ Schema.Json.annotate({ expected: "JSON value" }),
1444
+ ),
1445
+ ],
1446
+ ).annotate({
1447
+ title: "AccountRequirementsError",
1448
+ description: "",
1449
+ identifier: "Stripeaccount_requirements_error",
1450
+ });
1451
+ export const Stripeaccount_requirements_alternative = Schema.StructWithRest(
1452
+ Schema.Struct({
1453
+ alternative_fields_due: Schema.Array(
1454
+ Schema.String.check(
1455
+ Schema.isMaxCodePoints(5000).annotate({
1456
+ expected: "a string with at most 5000 code points",
1457
+ }),
1458
+ ),
1459
+ ).annotate({
1460
+ description:
1461
+ "Fields that can be provided to resolve all fields in `original_fields_due`.",
1462
+ }),
1463
+ original_fields_due: Schema.Array(
1464
+ Schema.String.check(
1465
+ Schema.isMaxCodePoints(5000).annotate({
1466
+ expected: "a string with at most 5000 code points",
1467
+ }),
1468
+ ),
1469
+ ).annotate({
1470
+ description:
1471
+ "Fields that are due and can be resolved by providing all fields in `alternative_fields_due`.",
1472
+ }),
1473
+ }),
1474
+ [
1475
+ Schema.Record(
1476
+ Schema.String,
1477
+ Schema.Json.annotate({ expected: "JSON value" }),
1478
+ ),
1479
+ ],
1480
+ ).annotate({
1481
+ title: "AccountRequirementsAlternative",
1482
+ description: "",
1483
+ identifier: "Stripeaccount_requirements_alternative",
1484
+ });
1485
+ export const Stripeaccount_group_membership = Schema.StructWithRest(
1486
+ Schema.Struct({
1487
+ payments_pricing: Schema.optionalKey(
1488
+ Schema.Union([
1489
+ Schema.String.annotate({
1490
+ description:
1491
+ "The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://docs.stripe.com/connect/platform-pricing-tools) for details.",
1492
+ }).check(
1493
+ Schema.isMaxCodePoints(5000).annotate({
1494
+ expected: "a string with at most 5000 code points",
1495
+ }),
1496
+ ),
1497
+ Schema.Null,
1498
+ ]),
1499
+ ),
1500
+ }),
1501
+ [
1502
+ Schema.Record(
1503
+ Schema.String,
1504
+ Schema.Json.annotate({ expected: "JSON value" }),
1505
+ ),
1506
+ ],
1507
+ ).annotate({
1508
+ title: "AccountGroupMembership",
1509
+ description: "",
1510
+ identifier: "Stripeaccount_group_membership",
1511
+ });
1512
+ export const Stripeaccount_bacs_debit_payments_settings = Schema.StructWithRest(
1513
+ Schema.Struct({
1514
+ display_name: Schema.optionalKey(
1515
+ Schema.Union([
1516
+ Schema.String.annotate({
1517
+ description:
1518
+ "The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as \"Stripe\" and the account is onboarded to Stripe branding, which is free.",
1519
+ }).check(
1520
+ Schema.isMaxCodePoints(5000).annotate({
1521
+ expected: "a string with at most 5000 code points",
1522
+ }),
1523
+ ),
1524
+ Schema.Null,
1525
+ ]),
1526
+ ),
1527
+ service_user_number: Schema.optionalKey(
1528
+ Schema.Union([
1529
+ Schema.String.annotate({
1530
+ description:
1531
+ "The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.",
1532
+ }).check(
1533
+ Schema.isMaxCodePoints(5000).annotate({
1534
+ expected: "a string with at most 5000 code points",
1535
+ }),
1536
+ ),
1537
+ Schema.Null,
1538
+ ]),
1539
+ ),
1540
+ }),
1541
+ [
1542
+ Schema.Record(
1543
+ Schema.String,
1544
+ Schema.Json.annotate({ expected: "JSON value" }),
1545
+ ),
1546
+ ],
1547
+ ).annotate({
1548
+ title: "AccountBacsDebitPaymentsSettings",
1549
+ description: "",
1550
+ identifier: "Stripeaccount_bacs_debit_payments_settings",
1551
+ });
1552
+ export const Stripeaccount_branding_settings = Schema.suspend(
1553
+ (): Schema.Codec<Stripeaccount_branding_settings> =>
1554
+ Schema.StructWithRest(
1555
+ Schema.Struct({
1556
+ icon: Schema.optionalKey(
1557
+ Schema.Union([
1558
+ Schema.Union([
1559
+ Schema.String.check(
1560
+ Schema.isMaxCodePoints(5000).annotate({
1561
+ expected: "a string with at most 5000 code points",
1562
+ }),
1563
+ ),
1564
+ Stripefile,
1565
+ ]).annotate({
1566
+ description:
1567
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.",
1568
+ }),
1569
+ Schema.Null,
1570
+ ]),
1571
+ ),
1572
+ logo: Schema.optionalKey(
1573
+ Schema.Union([
1574
+ Schema.Union([
1575
+ Schema.String.check(
1576
+ Schema.isMaxCodePoints(5000).annotate({
1577
+ expected: "a string with at most 5000 code points",
1578
+ }),
1579
+ ),
1580
+ Stripefile,
1581
+ ]).annotate({
1582
+ description:
1583
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.",
1584
+ }),
1585
+ Schema.Null,
1586
+ ]),
1587
+ ),
1588
+ primary_color: Schema.optionalKey(
1589
+ Schema.Union([
1590
+ Schema.String.annotate({
1591
+ description:
1592
+ "A CSS hex color value representing the primary branding color for this account",
1593
+ }).check(
1594
+ Schema.isMaxCodePoints(5000).annotate({
1595
+ expected: "a string with at most 5000 code points",
1596
+ }),
1597
+ ),
1598
+ Schema.Null,
1599
+ ]),
1600
+ ),
1601
+ secondary_color: Schema.optionalKey(
1602
+ Schema.Union([
1603
+ Schema.String.annotate({
1604
+ description:
1605
+ "A CSS hex color value representing the secondary branding color for this account",
1606
+ }).check(
1607
+ Schema.isMaxCodePoints(5000).annotate({
1608
+ expected: "a string with at most 5000 code points",
1609
+ }),
1610
+ ),
1611
+ Schema.Null,
1612
+ ]),
1613
+ ),
1614
+ }),
1615
+ [
1616
+ Schema.Record(
1617
+ Schema.String,
1618
+ Schema.Json.annotate({ expected: "JSON value" }),
1619
+ ),
1620
+ ],
1621
+ ).annotate({
1622
+ title: "AccountBrandingSettings",
1623
+ description: "",
1624
+ identifier: "Stripeaccount_branding_settings",
1625
+ }),
1626
+ );
1627
+ export const Stripeaccount_decline_charge_on = Schema.StructWithRest(
1628
+ Schema.Struct({
1629
+ avs_failure: Schema.Boolean.annotate({
1630
+ description:
1631
+ "Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.",
1632
+ }),
1633
+ cvc_failure: Schema.Boolean.annotate({
1634
+ description:
1635
+ "Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.",
1636
+ }),
1637
+ }),
1638
+ [
1639
+ Schema.Record(
1640
+ Schema.String,
1641
+ Schema.Json.annotate({ expected: "JSON value" }),
1642
+ ),
1643
+ ],
1644
+ ).annotate({
1645
+ title: "AccountDeclineChargeOn",
1646
+ description: "",
1647
+ identifier: "Stripeaccount_decline_charge_on",
1648
+ });
1649
+ export const Stripeaccount_dashboard_settings = Schema.StructWithRest(
1650
+ Schema.Struct({
1651
+ display_name: Schema.optionalKey(
1652
+ Schema.Union([
1653
+ Schema.String.annotate({
1654
+ description:
1655
+ "The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.",
1656
+ }).check(
1657
+ Schema.isMaxCodePoints(5000).annotate({
1658
+ expected: "a string with at most 5000 code points",
1659
+ }),
1660
+ ),
1661
+ Schema.Null,
1662
+ ]),
1663
+ ),
1664
+ timezone: Schema.optionalKey(
1665
+ Schema.Union([
1666
+ Schema.String.annotate({
1667
+ description:
1668
+ "The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones).",
1669
+ }).check(
1670
+ Schema.isMaxCodePoints(5000).annotate({
1671
+ expected: "a string with at most 5000 code points",
1672
+ }),
1673
+ ),
1674
+ Schema.Null,
1675
+ ]),
1676
+ ),
1677
+ }),
1678
+ [
1679
+ Schema.Record(
1680
+ Schema.String,
1681
+ Schema.Json.annotate({ expected: "JSON value" }),
1682
+ ),
1683
+ ],
1684
+ ).annotate({
1685
+ title: "AccountDashboardSettings",
1686
+ description: "",
1687
+ identifier: "Stripeaccount_dashboard_settings",
1688
+ });
1689
+ export const Stripeaccount_payments_settings = Schema.StructWithRest(
1690
+ Schema.Struct({
1691
+ statement_descriptor: Schema.optionalKey(
1692
+ Schema.Union([
1693
+ Schema.String.annotate({
1694
+ description:
1695
+ "The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.",
1696
+ }).check(
1697
+ Schema.isMaxCodePoints(5000).annotate({
1698
+ expected: "a string with at most 5000 code points",
1699
+ }),
1700
+ ),
1701
+ Schema.Null,
1702
+ ]),
1703
+ ),
1704
+ statement_descriptor_kana: Schema.optionalKey(
1705
+ Schema.Union([
1706
+ Schema.String.annotate({
1707
+ description:
1708
+ "The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).",
1709
+ }).check(
1710
+ Schema.isMaxCodePoints(5000).annotate({
1711
+ expected: "a string with at most 5000 code points",
1712
+ }),
1713
+ ),
1714
+ Schema.Null,
1715
+ ]),
1716
+ ),
1717
+ statement_descriptor_kanji: Schema.optionalKey(
1718
+ Schema.Union([
1719
+ Schema.String.annotate({
1720
+ description:
1721
+ "The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).",
1722
+ }).check(
1723
+ Schema.isMaxCodePoints(5000).annotate({
1724
+ expected: "a string with at most 5000 code points",
1725
+ }),
1726
+ ),
1727
+ Schema.Null,
1728
+ ]),
1729
+ ),
1730
+ }),
1731
+ [
1732
+ Schema.Record(
1733
+ Schema.String,
1734
+ Schema.Json.annotate({ expected: "JSON value" }),
1735
+ ),
1736
+ ],
1737
+ ).annotate({
1738
+ title: "AccountPaymentsSettings",
1739
+ description: "",
1740
+ identifier: "Stripeaccount_payments_settings",
1741
+ });
1742
+ export const Stripeaccount_paypay_site_accessible_settings = Schema.Record(
1743
+ Schema.String,
1744
+ Schema.Json.annotate({ expected: "JSON value" }),
1745
+ ).annotate({
1746
+ title: "AccountPaypaySiteAccessibleSettings",
1747
+ description: "",
1748
+ identifier: "Stripeaccount_paypay_site_accessible_settings",
1749
+ });
1750
+ export const Stripeaccount_paypay_site_in_development_settings =
1751
+ Schema.StructWithRest(
1752
+ Schema.Struct({
1753
+ password_provided: Schema.optionalKey(
1754
+ Schema.Boolean.annotate({
1755
+ description:
1756
+ "Field to indicate that the website password has been provided.",
1757
+ }),
1758
+ ),
1759
+ username: Schema.optionalKey(
1760
+ Schema.Union([
1761
+ Schema.String.annotate({
1762
+ description:
1763
+ "The username needed to access your business's website.",
1764
+ }).check(
1765
+ Schema.isMaxCodePoints(5000).annotate({
1766
+ expected: "a string with at most 5000 code points",
1767
+ }),
1768
+ ),
1769
+ Schema.Null,
1770
+ ]),
1771
+ ),
1772
+ }),
1773
+ [
1774
+ Schema.Record(
1775
+ Schema.String,
1776
+ Schema.Json.annotate({ expected: "JSON value" }),
1777
+ ),
1778
+ ],
1779
+ ).annotate({
1780
+ title: "AccountPaypaySiteInDevelopmentSettings",
1781
+ description: "",
1782
+ identifier: "Stripeaccount_paypay_site_in_development_settings",
1783
+ });
1784
+ export const Stripeaccount_paypay_site_restricted_settings =
1785
+ Schema.StructWithRest(
1786
+ Schema.Struct({
1787
+ payment_flow_file: Schema.optionalKey(
1788
+ Schema.Union([
1789
+ Schema.String.annotate({
1790
+ description: "File explaining the payment flow for your business.",
1791
+ }).check(
1792
+ Schema.isMaxCodePoints(5000).annotate({
1793
+ expected: "a string with at most 5000 code points",
1794
+ }),
1795
+ ),
1796
+ Schema.Null,
1797
+ ]),
1798
+ ),
1799
+ }),
1800
+ [
1801
+ Schema.Record(
1802
+ Schema.String,
1803
+ Schema.Json.annotate({ expected: "JSON value" }),
1804
+ ),
1805
+ ],
1806
+ ).annotate({
1807
+ title: "AccountPaypaySiteRestrictedSettings",
1808
+ description: "",
1809
+ identifier: "Stripeaccount_paypay_site_restricted_settings",
1810
+ });
1811
+ export const Stripeaccount_sepa_debit_payments_settings = Schema.StructWithRest(
1812
+ Schema.Struct({
1813
+ creditor_id: Schema.optionalKey(
1814
+ Schema.String.annotate({
1815
+ description:
1816
+ "SEPA creditor identifier that identifies the company making the payment.",
1817
+ }).check(
1818
+ Schema.isMaxCodePoints(5000).annotate({
1819
+ expected: "a string with at most 5000 code points",
1820
+ }),
1821
+ ),
1822
+ ),
1823
+ }),
1824
+ [
1825
+ Schema.Record(
1826
+ Schema.String,
1827
+ Schema.Json.annotate({ expected: "JSON value" }),
1828
+ ),
1829
+ ],
1830
+ ).annotate({
1831
+ title: "AccountSepaDebitPaymentsSettings",
1832
+ description: "",
1833
+ identifier: "Stripeaccount_sepa_debit_payments_settings",
1834
+ });
1835
+ export const Stripeaccount_terms_of_service = Schema.StructWithRest(
1836
+ Schema.Struct({
1837
+ date: Schema.optionalKey(
1838
+ Schema.Union([
1839
+ Schema.Number.annotate({
1840
+ description:
1841
+ "The Unix timestamp marking when the account representative accepted the service agreement.",
1842
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1843
+ Schema.Null,
1844
+ ]),
1845
+ ),
1846
+ ip: Schema.optionalKey(
1847
+ Schema.Union([
1848
+ Schema.String.annotate({
1849
+ description:
1850
+ "The IP address from which the account representative accepted the service agreement.",
1851
+ }).check(
1852
+ Schema.isMaxCodePoints(5000).annotate({
1853
+ expected: "a string with at most 5000 code points",
1854
+ }),
1855
+ ),
1856
+ Schema.Null,
1857
+ ]),
1858
+ ),
1859
+ user_agent: Schema.optionalKey(
1860
+ Schema.String.annotate({
1861
+ description:
1862
+ "The user agent of the browser from which the account representative accepted the service agreement.",
1863
+ }).check(
1864
+ Schema.isMaxCodePoints(5000).annotate({
1865
+ expected: "a string with at most 5000 code points",
1866
+ }),
1867
+ ),
1868
+ ),
1869
+ }),
1870
+ [
1871
+ Schema.Record(
1872
+ Schema.String,
1873
+ Schema.Json.annotate({ expected: "JSON value" }),
1874
+ ),
1875
+ ],
1876
+ ).annotate({
1877
+ title: "AccountTermsOfService",
1878
+ description: "",
1879
+ identifier: "Stripeaccount_terms_of_service",
1880
+ });
1881
+ export const Stripeaccount_tos_acceptance = Schema.StructWithRest(
1882
+ Schema.Struct({
1883
+ date: Schema.optionalKey(
1884
+ Schema.Union([
1885
+ Schema.Number.annotate({
1886
+ description:
1887
+ "The Unix timestamp marking when the account representative accepted their service agreement",
1888
+ format: "unix-time",
1889
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1890
+ Schema.Null,
1891
+ ]),
1892
+ ),
1893
+ ip: Schema.optionalKey(
1894
+ Schema.Union([
1895
+ Schema.String.annotate({
1896
+ description:
1897
+ "The IP address from which the account representative accepted their service agreement",
1898
+ }).check(
1899
+ Schema.isMaxCodePoints(5000).annotate({
1900
+ expected: "a string with at most 5000 code points",
1901
+ }),
1902
+ ),
1903
+ Schema.Null,
1904
+ ]),
1905
+ ),
1906
+ service_agreement: Schema.optionalKey(
1907
+ Schema.String.annotate({
1908
+ description: "The user's service agreement type",
1909
+ }).check(
1910
+ Schema.isMaxCodePoints(5000).annotate({
1911
+ expected: "a string with at most 5000 code points",
1912
+ }),
1913
+ ),
1914
+ ),
1915
+ user_agent: Schema.optionalKey(
1916
+ Schema.Union([
1917
+ Schema.String.annotate({
1918
+ description:
1919
+ "The user agent of the browser from which the account representative accepted their service agreement",
1920
+ }).check(
1921
+ Schema.isMaxCodePoints(5000).annotate({
1922
+ expected: "a string with at most 5000 code points",
1923
+ }),
1924
+ ),
1925
+ Schema.Null,
1926
+ ]),
1927
+ ),
1928
+ }),
1929
+ [
1930
+ Schema.Record(
1931
+ Schema.String,
1932
+ Schema.Json.annotate({ expected: "JSON value" }),
1933
+ ),
1934
+ ],
1935
+ ).annotate({
1936
+ title: "AccountTOSAcceptance",
1937
+ description: "",
1938
+ identifier: "Stripeaccount_tos_acceptance",
1939
+ });
1940
+ export const Stripeaccount_business_profile = Schema.suspend(
1941
+ (): Schema.Codec<Stripeaccount_business_profile> =>
1942
+ Schema.StructWithRest(
1943
+ Schema.Struct({
1944
+ annual_revenue: Schema.optionalKey(
1945
+ Schema.Union([
1946
+ Schema.Union([Stripeaccount_annual_revenue]).annotate({
1947
+ description:
1948
+ "The applicant's gross annual revenue for its preceding fiscal year.",
1949
+ }),
1950
+ Schema.Null,
1951
+ ]),
1952
+ ),
1953
+ estimated_worker_count: Schema.optionalKey(
1954
+ Schema.Union([
1955
+ Schema.Number.annotate({
1956
+ description:
1957
+ "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.",
1958
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1959
+ Schema.Null,
1960
+ ]),
1961
+ ),
1962
+ mcc: Schema.optionalKey(
1963
+ Schema.Union([
1964
+ Schema.String.annotate({
1965
+ description:
1966
+ "[The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.",
1967
+ }).check(
1968
+ Schema.isMaxCodePoints(5000).annotate({
1969
+ expected: "a string with at most 5000 code points",
1970
+ }),
1971
+ ),
1972
+ Schema.Null,
1973
+ ]),
1974
+ ),
1975
+ minority_owned_business_designation: Schema.optionalKey(
1976
+ Schema.Union([
1977
+ Schema.Array(
1978
+ Schema.Literals([
1979
+ "lgbtqi_owned_business",
1980
+ "minority_owned_business",
1981
+ "none_of_these_apply",
1982
+ "prefer_not_to_answer",
1983
+ "women_owned_business",
1984
+ ]),
1985
+ ).annotate({
1986
+ description:
1987
+ "Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.",
1988
+ }),
1989
+ Schema.Null,
1990
+ ]),
1991
+ ),
1992
+ monthly_estimated_revenue: Schema.optionalKey(
1993
+ Stripeaccount_monthly_estimated_revenue,
1994
+ ),
1995
+ name: Schema.optionalKey(
1996
+ Schema.Union([
1997
+ Schema.String.annotate({
1998
+ description: "The customer-facing business name.",
1999
+ }).check(
2000
+ Schema.isMaxCodePoints(5000).annotate({
2001
+ expected: "a string with at most 5000 code points",
2002
+ }),
2003
+ ),
2004
+ Schema.Null,
2005
+ ]),
2006
+ ),
2007
+ product_description: Schema.optionalKey(
2008
+ Schema.Union([
2009
+ Schema.String.annotate({
2010
+ description:
2011
+ "Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.",
2012
+ }).check(
2013
+ Schema.isMaxCodePoints(40000).annotate({
2014
+ expected: "a string with at most 40000 code points",
2015
+ }),
2016
+ ),
2017
+ Schema.Null,
2018
+ ]),
2019
+ ),
2020
+ specified_commercial_transactions_act_url: Schema.optionalKey(
2021
+ Schema.Union([
2022
+ Schema.String.annotate({
2023
+ description:
2024
+ "A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.",
2025
+ }).check(
2026
+ Schema.isMaxCodePoints(5000).annotate({
2027
+ expected: "a string with at most 5000 code points",
2028
+ }),
2029
+ ),
2030
+ Schema.Null,
2031
+ ]),
2032
+ ),
2033
+ support_address: Schema.optionalKey(
2034
+ Schema.Union([
2035
+ Schema.Union([Stripeaddress]).annotate({
2036
+ description:
2037
+ "A publicly available mailing address for sending support issues to.",
2038
+ }),
2039
+ Schema.Null,
2040
+ ]),
2041
+ ),
2042
+ support_email: Schema.optionalKey(
2043
+ Schema.Union([
2044
+ Schema.String.annotate({
2045
+ description:
2046
+ "A publicly available email address for sending support issues to.",
2047
+ }).check(
2048
+ Schema.isMaxCodePoints(5000).annotate({
2049
+ expected: "a string with at most 5000 code points",
2050
+ }),
2051
+ ),
2052
+ Schema.Null,
2053
+ ]),
2054
+ ),
2055
+ support_phone: Schema.optionalKey(
2056
+ Schema.Union([
2057
+ Schema.String.annotate({
2058
+ description:
2059
+ "A publicly available phone number to call with support issues.",
2060
+ }).check(
2061
+ Schema.isMaxCodePoints(5000).annotate({
2062
+ expected: "a string with at most 5000 code points",
2063
+ }),
2064
+ ),
2065
+ Schema.Null,
2066
+ ]),
2067
+ ),
2068
+ support_url: Schema.optionalKey(
2069
+ Schema.Union([
2070
+ Schema.String.annotate({
2071
+ description:
2072
+ "A publicly available website for handling support issues.",
2073
+ }).check(
2074
+ Schema.isMaxCodePoints(5000).annotate({
2075
+ expected: "a string with at most 5000 code points",
2076
+ }),
2077
+ ),
2078
+ Schema.Null,
2079
+ ]),
2080
+ ),
2081
+ url: Schema.optionalKey(
2082
+ Schema.Union([
2083
+ Schema.String.annotate({
2084
+ description: "The business's publicly available website.",
2085
+ }).check(
2086
+ Schema.isMaxCodePoints(5000).annotate({
2087
+ expected: "a string with at most 5000 code points",
2088
+ }),
2089
+ ),
2090
+ Schema.Null,
2091
+ ]),
2092
+ ),
2093
+ }),
2094
+ [
2095
+ Schema.Record(
2096
+ Schema.String,
2097
+ Schema.Json.annotate({ expected: "JSON value" }),
2098
+ ),
2099
+ ],
2100
+ ).annotate({
2101
+ title: "AccountBusinessProfile",
2102
+ description: "",
2103
+ identifier: "Stripeaccount_business_profile",
2104
+ }),
2105
+ );
2106
+ export const Stripeaccount_unification_account_controller = Schema.suspend(
2107
+ (): Schema.Codec<Stripeaccount_unification_account_controller> =>
2108
+ Schema.StructWithRest(
2109
+ Schema.Struct({
2110
+ fees: Schema.optionalKey(
2111
+ Stripeaccount_unification_account_controller_fees,
2112
+ ),
2113
+ is_controller: Schema.optionalKey(
2114
+ Schema.Boolean.annotate({
2115
+ description:
2116
+ "`true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://docs.stripe.com/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.",
2117
+ }),
2118
+ ),
2119
+ losses: Schema.optionalKey(
2120
+ Stripeaccount_unification_account_controller_losses,
2121
+ ),
2122
+ requirement_collection: Schema.optionalKey(
2123
+ Schema.Literals(["application", "stripe"]).annotate({
2124
+ description:
2125
+ "A value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account.",
2126
+ }),
2127
+ ),
2128
+ stripe_dashboard: Schema.optionalKey(
2129
+ Stripeaccount_unification_account_controller_stripe_dashboard,
2130
+ ),
2131
+ type: Schema.Literals(["account", "application"]).annotate({
2132
+ description:
2133
+ "The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.",
2134
+ }),
2135
+ }),
2136
+ [
2137
+ Schema.Record(
2138
+ Schema.String,
2139
+ Schema.Json.annotate({ expected: "JSON value" }),
2140
+ ),
2141
+ ],
2142
+ ).annotate({
2143
+ title: "AccountUnificationAccountController",
2144
+ description: "",
2145
+ identifier: "Stripeaccount_unification_account_controller",
2146
+ }),
2147
+ );
2148
+ export const Stripeaccount_future_requirements = Schema.suspend(
2149
+ (): Schema.Codec<Stripeaccount_future_requirements> =>
2150
+ Schema.StructWithRest(
2151
+ Schema.Struct({
2152
+ alternatives: Schema.optionalKey(
2153
+ Schema.Union([
2154
+ Schema.Array(Stripeaccount_requirements_alternative).annotate({
2155
+ description:
2156
+ "Fields that are due and can be resolved by providing the corresponding alternative fields instead. Many alternatives can list the same `original_fields_due`, and any of these alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing `original_fields_due` also serves as a pathway for attempting to resolve the fields again.",
2157
+ }),
2158
+ Schema.Null,
2159
+ ]),
2160
+ ),
2161
+ current_deadline: Schema.optionalKey(
2162
+ Schema.Union([
2163
+ Schema.Number.annotate({
2164
+ description:
2165
+ "Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.",
2166
+ format: "unix-time",
2167
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2168
+ Schema.Null,
2169
+ ]),
2170
+ ),
2171
+ currently_due: Schema.optionalKey(
2172
+ Schema.Union([
2173
+ Schema.Array(
2174
+ Schema.String.check(
2175
+ Schema.isMaxCodePoints(5000).annotate({
2176
+ expected: "a string with at most 5000 code points",
2177
+ }),
2178
+ ),
2179
+ ).annotate({
2180
+ description:
2181
+ "Fields that need to be resolved to keep the account enabled. If not resolved by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.",
2182
+ }),
2183
+ Schema.Null,
2184
+ ]),
2185
+ ),
2186
+ disabled_reason: Schema.optionalKey(
2187
+ Schema.Union([
2188
+ Schema.Literals([
2189
+ "action_required.requested_capabilities",
2190
+ "listed",
2191
+ "other",
2192
+ "platform_paused",
2193
+ "rejected.fraud",
2194
+ "rejected.incomplete_verification",
2195
+ "rejected.listed",
2196
+ "rejected.other",
2197
+ "rejected.platform_fraud",
2198
+ "rejected.platform_other",
2199
+ "rejected.platform_terms_of_service",
2200
+ "rejected.terms_of_service",
2201
+ "requirements.past_due",
2202
+ "requirements.pending_verification",
2203
+ "under_review",
2204
+ ]).annotate({
2205
+ description:
2206
+ "This is typed as an enum for consistency with `requirements.disabled_reason`.",
2207
+ }),
2208
+ Schema.Null,
2209
+ ]),
2210
+ ),
2211
+ errors: Schema.optionalKey(
2212
+ Schema.Union([
2213
+ Schema.Array(Stripeaccount_requirements_error).annotate({
2214
+ description:
2215
+ "Fields that are `currently_due` and need to be collected again because validation or verification failed.",
2216
+ }),
2217
+ Schema.Null,
2218
+ ]),
2219
+ ),
2220
+ eventually_due: Schema.optionalKey(
2221
+ Schema.Union([
2222
+ Schema.Array(
2223
+ Schema.String.check(
2224
+ Schema.isMaxCodePoints(5000).annotate({
2225
+ expected: "a string with at most 5000 code points",
2226
+ }),
2227
+ ),
2228
+ ).annotate({
2229
+ description:
2230
+ "Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.",
2231
+ }),
2232
+ Schema.Null,
2233
+ ]),
2234
+ ),
2235
+ past_due: Schema.optionalKey(
2236
+ Schema.Union([
2237
+ Schema.Array(
2238
+ Schema.String.check(
2239
+ Schema.isMaxCodePoints(5000).annotate({
2240
+ expected: "a string with at most 5000 code points",
2241
+ }),
2242
+ ),
2243
+ ).annotate({
2244
+ description:
2245
+ "Fields that haven't been resolved by `requirements.current_deadline`. These fields need to be resolved to enable the capability on the account. `future_requirements.past_due` is a subset of `requirements.past_due`.",
2246
+ }),
2247
+ Schema.Null,
2248
+ ]),
2249
+ ),
2250
+ pending_verification: Schema.optionalKey(
2251
+ Schema.Union([
2252
+ Schema.Array(
2253
+ Schema.String.check(
2254
+ Schema.isMaxCodePoints(5000).annotate({
2255
+ expected: "a string with at most 5000 code points",
2256
+ }),
2257
+ ),
2258
+ ).annotate({
2259
+ description:
2260
+ "Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.",
2261
+ }),
2262
+ Schema.Null,
2263
+ ]),
2264
+ ),
2265
+ }),
2266
+ [
2267
+ Schema.Record(
2268
+ Schema.String,
2269
+ Schema.Json.annotate({ expected: "JSON value" }),
2270
+ ),
2271
+ ],
2272
+ ).annotate({
2273
+ title: "AccountFutureRequirements",
2274
+ description: "",
2275
+ identifier: "Stripeaccount_future_requirements",
2276
+ }),
2277
+ );
2278
+ export const Stripeaccount_requirements = Schema.suspend(
2279
+ (): Schema.Codec<Stripeaccount_requirements> =>
2280
+ Schema.StructWithRest(
2281
+ Schema.Struct({
2282
+ alternatives: Schema.optionalKey(
2283
+ Schema.Union([
2284
+ Schema.Array(Stripeaccount_requirements_alternative).annotate({
2285
+ description:
2286
+ "Fields that are due and can be resolved by providing the corresponding alternative fields instead. Many alternatives can list the same `original_fields_due`, and any of these alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing `original_fields_due` also serves as a pathway for attempting to resolve the fields again.",
2287
+ }),
2288
+ Schema.Null,
2289
+ ]),
2290
+ ),
2291
+ current_deadline: Schema.optionalKey(
2292
+ Schema.Union([
2293
+ Schema.Number.annotate({
2294
+ description:
2295
+ "Date by which the fields in `currently_due` must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.",
2296
+ format: "unix-time",
2297
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2298
+ Schema.Null,
2299
+ ]),
2300
+ ),
2301
+ currently_due: Schema.optionalKey(
2302
+ Schema.Union([
2303
+ Schema.Array(
2304
+ Schema.String.check(
2305
+ Schema.isMaxCodePoints(5000).annotate({
2306
+ expected: "a string with at most 5000 code points",
2307
+ }),
2308
+ ),
2309
+ ).annotate({
2310
+ description:
2311
+ "Fields that need to be resolved to keep the account enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the account will be disabled.",
2312
+ }),
2313
+ Schema.Null,
2314
+ ]),
2315
+ ),
2316
+ disabled_reason: Schema.optionalKey(
2317
+ Schema.Union([
2318
+ Schema.Literals([
2319
+ "action_required.requested_capabilities",
2320
+ "listed",
2321
+ "other",
2322
+ "platform_paused",
2323
+ "rejected.fraud",
2324
+ "rejected.incomplete_verification",
2325
+ "rejected.listed",
2326
+ "rejected.other",
2327
+ "rejected.platform_fraud",
2328
+ "rejected.platform_other",
2329
+ "rejected.platform_terms_of_service",
2330
+ "rejected.terms_of_service",
2331
+ "requirements.past_due",
2332
+ "requirements.pending_verification",
2333
+ "under_review",
2334
+ ]).annotate({
2335
+ description:
2336
+ "If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://docs.stripe.com/connect/handling-api-verification).",
2337
+ }),
2338
+ Schema.Null,
2339
+ ]),
2340
+ ),
2341
+ errors: Schema.optionalKey(
2342
+ Schema.Union([
2343
+ Schema.Array(Stripeaccount_requirements_error).annotate({
2344
+ description:
2345
+ "Fields that are `currently_due` and need to be collected again because validation or verification failed.",
2346
+ }),
2347
+ Schema.Null,
2348
+ ]),
2349
+ ),
2350
+ eventually_due: Schema.optionalKey(
2351
+ Schema.Union([
2352
+ Schema.Array(
2353
+ Schema.String.check(
2354
+ Schema.isMaxCodePoints(5000).annotate({
2355
+ expected: "a string with at most 5000 code points",
2356
+ }),
2357
+ ),
2358
+ ).annotate({
2359
+ description:
2360
+ "Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.",
2361
+ }),
2362
+ Schema.Null,
2363
+ ]),
2364
+ ),
2365
+ past_due: Schema.optionalKey(
2366
+ Schema.Union([
2367
+ Schema.Array(
2368
+ Schema.String.check(
2369
+ Schema.isMaxCodePoints(5000).annotate({
2370
+ expected: "a string with at most 5000 code points",
2371
+ }),
2372
+ ),
2373
+ ).annotate({
2374
+ description:
2375
+ "Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the account.",
2376
+ }),
2377
+ Schema.Null,
2378
+ ]),
2379
+ ),
2380
+ pending_verification: Schema.optionalKey(
2381
+ Schema.Union([
2382
+ Schema.Array(
2383
+ Schema.String.check(
2384
+ Schema.isMaxCodePoints(5000).annotate({
2385
+ expected: "a string with at most 5000 code points",
2386
+ }),
2387
+ ),
2388
+ ).annotate({
2389
+ description:
2390
+ "Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.",
2391
+ }),
2392
+ Schema.Null,
2393
+ ]),
2394
+ ),
2395
+ }),
2396
+ [
2397
+ Schema.Record(
2398
+ Schema.String,
2399
+ Schema.Json.annotate({ expected: "JSON value" }),
2400
+ ),
2401
+ ],
2402
+ ).annotate({
2403
+ title: "AccountRequirements",
2404
+ description: "",
2405
+ identifier: "Stripeaccount_requirements",
2406
+ }),
2407
+ );
2408
+ export const Stripeaccount_capability_future_requirements = Schema.suspend(
2409
+ (): Schema.Codec<Stripeaccount_capability_future_requirements> =>
2410
+ Schema.StructWithRest(
2411
+ Schema.Struct({
2412
+ alternatives: Schema.optionalKey(
2413
+ Schema.Union([
2414
+ Schema.Array(Stripeaccount_requirements_alternative).annotate({
2415
+ description:
2416
+ "Fields that are due and can be resolved by providing the corresponding alternative fields instead. Multiple alternatives can reference the same `original_fields_due`. When this happens, any of these alternatives can serve as a pathway for attempting to resolve the fields. Additionally, providing `original_fields_due` again also serves as a pathway for attempting to resolve the fields.",
2417
+ }),
2418
+ Schema.Null,
2419
+ ]),
2420
+ ),
2421
+ current_deadline: Schema.optionalKey(
2422
+ Schema.Union([
2423
+ Schema.Number.annotate({
2424
+ description:
2425
+ "Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.",
2426
+ format: "unix-time",
2427
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2428
+ Schema.Null,
2429
+ ]),
2430
+ ),
2431
+ currently_due: Schema.Array(
2432
+ Schema.String.check(
2433
+ Schema.isMaxCodePoints(5000).annotate({
2434
+ expected: "a string with at most 5000 code points",
2435
+ }),
2436
+ ),
2437
+ ).annotate({
2438
+ description:
2439
+ "Fields that need to be resolved to keep the capability enabled. If not resolved by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.",
2440
+ }),
2441
+ disabled_reason: Schema.optionalKey(
2442
+ Schema.Union([
2443
+ Schema.Literals([
2444
+ "other",
2445
+ "paused.inactivity",
2446
+ "pending.onboarding",
2447
+ "pending.review",
2448
+ "platform_disabled",
2449
+ "platform_paused",
2450
+ "rejected.inactivity",
2451
+ "rejected.other",
2452
+ "rejected.unsupported_business",
2453
+ "requirements.fields_needed",
2454
+ ]).annotate({
2455
+ description:
2456
+ "This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.",
2457
+ }),
2458
+ Schema.Null,
2459
+ ]),
2460
+ ),
2461
+ errors: Schema.Array(Stripeaccount_requirements_error).annotate({
2462
+ description:
2463
+ "Fields that are `currently_due` and need to be collected again because validation or verification failed.",
2464
+ }),
2465
+ eventually_due: Schema.Array(
2466
+ Schema.String.check(
2467
+ Schema.isMaxCodePoints(5000).annotate({
2468
+ expected: "a string with at most 5000 code points",
2469
+ }),
2470
+ ),
2471
+ ).annotate({
2472
+ description:
2473
+ "Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.",
2474
+ }),
2475
+ past_due: Schema.Array(
2476
+ Schema.String.check(
2477
+ Schema.isMaxCodePoints(5000).annotate({
2478
+ expected: "a string with at most 5000 code points",
2479
+ }),
2480
+ ),
2481
+ ).annotate({
2482
+ description:
2483
+ "Fields that haven't been resolved by `requirements.current_deadline`. These fields need to be resolved to enable the capability on the account. `future_requirements.past_due` is a subset of `requirements.past_due`.",
2484
+ }),
2485
+ pending_verification: Schema.Array(
2486
+ Schema.String.check(
2487
+ Schema.isMaxCodePoints(5000).annotate({
2488
+ expected: "a string with at most 5000 code points",
2489
+ }),
2490
+ ),
2491
+ ).annotate({
2492
+ description:
2493
+ "Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.",
2494
+ }),
2495
+ }),
2496
+ [
2497
+ Schema.Record(
2498
+ Schema.String,
2499
+ Schema.Json.annotate({ expected: "JSON value" }),
2500
+ ),
2501
+ ],
2502
+ ).annotate({
2503
+ title: "AccountCapabilityFutureRequirements",
2504
+ description: "",
2505
+ identifier: "Stripeaccount_capability_future_requirements",
2506
+ }),
2507
+ );
2508
+ export const Stripeaccount_capability_requirements = Schema.suspend(
2509
+ (): Schema.Codec<Stripeaccount_capability_requirements> =>
2510
+ Schema.StructWithRest(
2511
+ Schema.Struct({
2512
+ alternatives: Schema.optionalKey(
2513
+ Schema.Union([
2514
+ Schema.Array(Stripeaccount_requirements_alternative).annotate({
2515
+ description:
2516
+ "Fields that are due and can be resolved by providing the corresponding alternative fields instead. Multiple alternatives can reference the same `original_fields_due`. When this happens, any of these alternatives can serve as a pathway for attempting to resolve the fields. Additionally, providing `original_fields_due` again also serves as a pathway for attempting to resolve the fields.",
2517
+ }),
2518
+ Schema.Null,
2519
+ ]),
2520
+ ),
2521
+ current_deadline: Schema.optionalKey(
2522
+ Schema.Union([
2523
+ Schema.Number.annotate({
2524
+ description:
2525
+ "The date by which all required account information must be both submitted and verified. This includes fields listed in `currently_due` as well as those in `pending_verification`. If any required information is missing or unverified by this date, the account may be disabled. Note that `current_deadline` may change if additional `currently_due` requirements are requested.",
2526
+ format: "unix-time",
2527
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2528
+ Schema.Null,
2529
+ ]),
2530
+ ),
2531
+ currently_due: Schema.Array(
2532
+ Schema.String.check(
2533
+ Schema.isMaxCodePoints(5000).annotate({
2534
+ expected: "a string with at most 5000 code points",
2535
+ }),
2536
+ ),
2537
+ ).annotate({
2538
+ description:
2539
+ "Fields that need to be resolved to keep the capability enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the capability is disabled.",
2540
+ }),
2541
+ disabled_reason: Schema.optionalKey(
2542
+ Schema.Union([
2543
+ Schema.Literals([
2544
+ "other",
2545
+ "paused.inactivity",
2546
+ "pending.onboarding",
2547
+ "pending.review",
2548
+ "platform_disabled",
2549
+ "platform_paused",
2550
+ "rejected.inactivity",
2551
+ "rejected.other",
2552
+ "rejected.unsupported_business",
2553
+ "requirements.fields_needed",
2554
+ ]).annotate({
2555
+ description:
2556
+ "Description of why the capability is disabled. [Learn more about handling verification issues](https://docs.stripe.com/connect/handling-api-verification).",
2557
+ }),
2558
+ Schema.Null,
2559
+ ]),
2560
+ ),
2561
+ errors: Schema.Array(Stripeaccount_requirements_error).annotate({
2562
+ description:
2563
+ "Fields that are `currently_due` and need to be collected again because validation or verification failed.",
2564
+ }),
2565
+ eventually_due: Schema.Array(
2566
+ Schema.String.check(
2567
+ Schema.isMaxCodePoints(5000).annotate({
2568
+ expected: "a string with at most 5000 code points",
2569
+ }),
2570
+ ),
2571
+ ).annotate({
2572
+ description:
2573
+ "Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.",
2574
+ }),
2575
+ past_due: Schema.Array(
2576
+ Schema.String.check(
2577
+ Schema.isMaxCodePoints(5000).annotate({
2578
+ expected: "a string with at most 5000 code points",
2579
+ }),
2580
+ ),
2581
+ ).annotate({
2582
+ description:
2583
+ "Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the capability on the account.",
2584
+ }),
2585
+ pending_verification: Schema.Array(
2586
+ Schema.String.check(
2587
+ Schema.isMaxCodePoints(5000).annotate({
2588
+ expected: "a string with at most 5000 code points",
2589
+ }),
2590
+ ),
2591
+ ).annotate({
2592
+ description:
2593
+ "Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.",
2594
+ }),
2595
+ }),
2596
+ [
2597
+ Schema.Record(
2598
+ Schema.String,
2599
+ Schema.Json.annotate({ expected: "JSON value" }),
2600
+ ),
2601
+ ],
2602
+ ).annotate({
2603
+ title: "AccountCapabilityRequirements",
2604
+ description: "",
2605
+ identifier: "Stripeaccount_capability_requirements",
2606
+ }),
2607
+ );
2608
+ export const Stripeaccount_card_issuing_settings = Schema.suspend(
2609
+ (): Schema.Codec<Stripeaccount_card_issuing_settings> =>
2610
+ Schema.StructWithRest(
2611
+ Schema.Struct({
2612
+ tos_acceptance: Schema.optionalKey(
2613
+ Stripecard_issuing_account_terms_of_service,
2614
+ ),
2615
+ }),
2616
+ [
2617
+ Schema.Record(
2618
+ Schema.String,
2619
+ Schema.Json.annotate({ expected: "JSON value" }),
2620
+ ),
2621
+ ],
2622
+ ).annotate({
2623
+ title: "AccountCardIssuingSettings",
2624
+ description: "",
2625
+ identifier: "Stripeaccount_card_issuing_settings",
2626
+ }),
2627
+ );
2628
+ export const Stripeaccount_card_payments_settings = Schema.suspend(
2629
+ (): Schema.Codec<Stripeaccount_card_payments_settings> =>
2630
+ Schema.StructWithRest(
2631
+ Schema.Struct({
2632
+ decline_on: Schema.optionalKey(Stripeaccount_decline_charge_on),
2633
+ statement_descriptor_prefix: Schema.optionalKey(
2634
+ Schema.Union([
2635
+ Schema.String.annotate({
2636
+ description:
2637
+ "The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.",
2638
+ }).check(
2639
+ Schema.isMaxCodePoints(5000).annotate({
2640
+ expected: "a string with at most 5000 code points",
2641
+ }),
2642
+ ),
2643
+ Schema.Null,
2644
+ ]),
2645
+ ),
2646
+ statement_descriptor_prefix_kana: Schema.optionalKey(
2647
+ Schema.Union([
2648
+ Schema.String.annotate({
2649
+ description:
2650
+ "The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.",
2651
+ }).check(
2652
+ Schema.isMaxCodePoints(5000).annotate({
2653
+ expected: "a string with at most 5000 code points",
2654
+ }),
2655
+ ),
2656
+ Schema.Null,
2657
+ ]),
2658
+ ),
2659
+ statement_descriptor_prefix_kanji: Schema.optionalKey(
2660
+ Schema.Union([
2661
+ Schema.String.annotate({
2662
+ description:
2663
+ "The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.",
2664
+ }).check(
2665
+ Schema.isMaxCodePoints(5000).annotate({
2666
+ expected: "a string with at most 5000 code points",
2667
+ }),
2668
+ ),
2669
+ Schema.Null,
2670
+ ]),
2671
+ ),
2672
+ }),
2673
+ [
2674
+ Schema.Record(
2675
+ Schema.String,
2676
+ Schema.Json.annotate({ expected: "JSON value" }),
2677
+ ),
2678
+ ],
2679
+ ).annotate({
2680
+ title: "AccountCardPaymentsSettings",
2681
+ description: "",
2682
+ identifier: "Stripeaccount_card_payments_settings",
2683
+ }),
2684
+ );
2685
+ export const Stripeaccount_payout_settings = Schema.suspend(
2686
+ (): Schema.Codec<Stripeaccount_payout_settings> =>
2687
+ Schema.StructWithRest(
2688
+ Schema.Struct({
2689
+ debit_negative_balances: Schema.Boolean.annotate({
2690
+ description:
2691
+ "A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.",
2692
+ }),
2693
+ schedule: Stripetransfer_schedule,
2694
+ statement_descriptor: Schema.optionalKey(
2695
+ Schema.Union([
2696
+ Schema.String.annotate({
2697
+ description:
2698
+ "The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.",
2699
+ }).check(
2700
+ Schema.isMaxCodePoints(5000).annotate({
2701
+ expected: "a string with at most 5000 code points",
2702
+ }),
2703
+ ),
2704
+ Schema.Null,
2705
+ ]),
2706
+ ),
2707
+ }),
2708
+ [
2709
+ Schema.Record(
2710
+ Schema.String,
2711
+ Schema.Json.annotate({ expected: "JSON value" }),
2712
+ ),
2713
+ ],
2714
+ ).annotate({
2715
+ title: "AccountPayoutSettings",
2716
+ description: "",
2717
+ identifier: "Stripeaccount_payout_settings",
2718
+ }),
2719
+ );
2720
+ export const Stripeaccount_paypay_site_settings = Schema.suspend(
2721
+ (): Schema.Codec<Stripeaccount_paypay_site_settings> =>
2722
+ Schema.StructWithRest(
2723
+ Schema.Struct({
2724
+ accessible: Schema.optionalKey(
2725
+ Stripeaccount_paypay_site_accessible_settings,
2726
+ ),
2727
+ in_development: Schema.optionalKey(
2728
+ Stripeaccount_paypay_site_in_development_settings,
2729
+ ),
2730
+ restricted: Schema.optionalKey(
2731
+ Stripeaccount_paypay_site_restricted_settings,
2732
+ ),
2733
+ type: Schema.optionalKey(
2734
+ Schema.Literals([
2735
+ "accessible",
2736
+ "in_development",
2737
+ "restricted",
2738
+ ]).annotate({
2739
+ description: "The status of your business's website.",
2740
+ }),
2741
+ ),
2742
+ }),
2743
+ [
2744
+ Schema.Record(
2745
+ Schema.String,
2746
+ Schema.Json.annotate({ expected: "JSON value" }),
2747
+ ),
2748
+ ],
2749
+ ).annotate({
2750
+ title: "AccountPaypaySiteSettings",
2751
+ description: "",
2752
+ identifier: "Stripeaccount_paypay_site_settings",
2753
+ }),
2754
+ );
2755
+ export const Stripeaccount_treasury_settings = Schema.suspend(
2756
+ (): Schema.Codec<Stripeaccount_treasury_settings> =>
2757
+ Schema.StructWithRest(
2758
+ Schema.Struct({
2759
+ tos_acceptance: Schema.optionalKey(Stripeaccount_terms_of_service),
2760
+ }),
2761
+ [
2762
+ Schema.Record(
2763
+ Schema.String,
2764
+ Schema.Json.annotate({ expected: "JSON value" }),
2765
+ ),
2766
+ ],
2767
+ ).annotate({
2768
+ title: "AccountTreasurySettings",
2769
+ description: "",
2770
+ identifier: "Stripeaccount_treasury_settings",
2771
+ }),
2772
+ );
2773
+ export const Stripeaccount_paypay_payments_settings = Schema.suspend(
2774
+ (): Schema.Codec<Stripeaccount_paypay_payments_settings> =>
2775
+ Schema.StructWithRest(
2776
+ Schema.Struct({
2777
+ additional_files: Schema.optionalKey(
2778
+ Schema.Array(
2779
+ Schema.String.check(
2780
+ Schema.isMaxCodePoints(5000).annotate({
2781
+ expected: "a string with at most 5000 code points",
2782
+ }),
2783
+ ),
2784
+ ).annotate({
2785
+ description:
2786
+ "Additional files that are required to support the onboarding process of your business.",
2787
+ }),
2788
+ ),
2789
+ goods_type: Schema.optionalKey(
2790
+ Schema.Literals(["digital_content", "other"]).annotate({
2791
+ description:
2792
+ "The type of goods your business sells. Use `digital_content` if you sell digital content. Use `other` for all other types of goods or services.",
2793
+ }),
2794
+ ),
2795
+ site: Schema.optionalKey(Stripeaccount_paypay_site_settings),
2796
+ }),
2797
+ [
2798
+ Schema.Record(
2799
+ Schema.String,
2800
+ Schema.Json.annotate({ expected: "JSON value" }),
2801
+ ),
2802
+ ],
2803
+ ).annotate({
2804
+ title: "AccountPaypayPaymentsSettings",
2805
+ description: "",
2806
+ identifier: "Stripeaccount_paypay_payments_settings",
2807
+ }),
2808
+ );