nomoss 0.0.1 → 0.0.4

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 +27 -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,3344 @@
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 { Stripeaccount } from "./accounts.js";
6
+ import {
7
+ Stripeapi_errors,
8
+ Stripeapplication,
9
+ Stripelinked_account_options_common,
10
+ Stripemandate,
11
+ Stripesmor_resource_managed_payments,
12
+ Stripethree_d_secure_details,
13
+ } from "./common.js";
14
+ import { Stripecustomer, Stripedeleted_customer } from "./customers.js";
15
+ import {
16
+ Stripepayment_intent_next_action_blik_authorize,
17
+ Stripepayment_intent_next_action_cashapp_handle_redirect_or_display_qr_code,
18
+ Stripepayment_intent_next_action_upi_handle_redirect_or_display_qr_code,
19
+ } from "./paymentIntents.js";
20
+ import {
21
+ Stripepayment_method_details_card_present_offline,
22
+ Stripepayment_method_details_card_wallet_apple_pay,
23
+ Stripepayment_method_details_card_wallet_google_pay,
24
+ } from "./paymentMethodDetails.js";
25
+ import {
26
+ Stripepayment_method_options_mandate_options_pix,
27
+ Stripepayment_method_options_mandate_options_upi,
28
+ Stripepayment_method_options_us_bank_account_mandate_options,
29
+ } from "./paymentMethodOptions.js";
30
+ import {
31
+ Stripepayment_method,
32
+ Stripepayment_method_config_biz_payment_method_configuration_details,
33
+ } from "./paymentMethods.js";
34
+ import {
35
+ Stripepayment_flows_automatic_payment_methods_setup_intent,
36
+ Stripepayment_flows_private_payment_methods_satispay_setup_attempt_details,
37
+ } from "./payments.js";
38
+
39
+ export type Stripesetup_attempt = {
40
+ readonly application?: string | Stripeapplication | null;
41
+ readonly attach_to_self?: boolean;
42
+ readonly created: number;
43
+ readonly customer?: string | Stripecustomer | Stripedeleted_customer | null;
44
+ readonly customer_account?: string | null;
45
+ readonly flow_directions?: ReadonlyArray<"inbound" | "outbound"> | null;
46
+ readonly id: string;
47
+ readonly livemode: boolean;
48
+ readonly object: "setup_attempt";
49
+ readonly on_behalf_of?: string | Stripeaccount | null;
50
+ readonly payment_method: string | Stripepayment_method;
51
+ readonly payment_method_details: Stripesetup_attempt_payment_method_details;
52
+ readonly setup_error?: Stripeapi_errors | null;
53
+ readonly setup_intent: string | Stripesetup_intent;
54
+ readonly status: string;
55
+ readonly usage: string;
56
+ } & { readonly [x: string]: Schema.Json };
57
+ export type Stripesetup_intent = {
58
+ readonly allowed_payment_method_types?: ReadonlyArray<
59
+ | "acss_debit"
60
+ | "affirm"
61
+ | "afterpay_clearpay"
62
+ | "alipay"
63
+ | "alma"
64
+ | "amazon_pay"
65
+ | "au_becs_debit"
66
+ | "bacs_debit"
67
+ | "bancontact"
68
+ | "billie"
69
+ | "bizum"
70
+ | "blik"
71
+ | "boku_promptpay"
72
+ | "boleto"
73
+ | "capchase_pay"
74
+ | "card"
75
+ | "card_present"
76
+ | "cashapp"
77
+ | "check_scan"
78
+ | "click_to_pay"
79
+ | "crypto"
80
+ | "customer_balance"
81
+ | "demo_pay"
82
+ | "duitnow"
83
+ | "dummy_auth_push"
84
+ | "dummy_passthrough_card"
85
+ | "edenred"
86
+ | "eps"
87
+ | "fpx"
88
+ | "gcash"
89
+ | "getbalance"
90
+ | "gift_card"
91
+ | "giropay"
92
+ | "gopay"
93
+ | "grabpay"
94
+ | "id_bank_transfer"
95
+ | "ideal"
96
+ | "interac_present"
97
+ | "kakao_pay"
98
+ | "klarna"
99
+ | "knet"
100
+ | "konbini"
101
+ | "kr_card"
102
+ | "kr_market"
103
+ | "kriya"
104
+ | "link"
105
+ | "mb_way"
106
+ | "mobilepay"
107
+ | "momo"
108
+ | "mondu"
109
+ | "multibanco"
110
+ | "naver_pay"
111
+ | "netbanking"
112
+ | "ng_bank"
113
+ | "ng_bank_transfer"
114
+ | "ng_card"
115
+ | "ng_market"
116
+ | "ng_ussd"
117
+ | "ng_wallet"
118
+ | "nz_bank_account"
119
+ | "octopus"
120
+ | "oxxo"
121
+ | "p24"
122
+ | "paper_check"
123
+ | "pay_by_bank"
124
+ | "payco"
125
+ | "paynow"
126
+ | "paypal"
127
+ | "paypay"
128
+ | "payto"
129
+ | "pix"
130
+ | "promptpay"
131
+ | "qris"
132
+ | "rechnung"
133
+ | "revolut_pay"
134
+ | "samsung_pay"
135
+ | "satispay"
136
+ | "scalapay"
137
+ | "sepa_debit"
138
+ | "sequra"
139
+ | "shop_pay"
140
+ | "shopeepay"
141
+ | "sofort"
142
+ | "south_korea_market"
143
+ | "stripe_balance"
144
+ | "sunbit"
145
+ | "swish"
146
+ | "tamara"
147
+ | "test_pay"
148
+ | "touch_n_go"
149
+ | "truemoney"
150
+ | "twint"
151
+ | "upi"
152
+ | "us_bank_account"
153
+ | "us_cash_voucher"
154
+ | "vipps"
155
+ | "wechat_pay"
156
+ | "wero"
157
+ | "zip"
158
+ > | null;
159
+ readonly application?: string | Stripeapplication | null;
160
+ readonly attach_to_self?: boolean;
161
+ readonly automatic_payment_methods?: Stripepayment_flows_automatic_payment_methods_setup_intent | null;
162
+ readonly cancellation_reason?:
163
+ | "abandoned"
164
+ | "duplicate"
165
+ | "requested_by_customer"
166
+ | null;
167
+ readonly client_secret?: string | null;
168
+ readonly created: number;
169
+ readonly customer?: string | Stripecustomer | Stripedeleted_customer | null;
170
+ readonly customer_account?: string | null;
171
+ readonly description?: string | null;
172
+ readonly excluded_payment_method_types?: ReadonlyArray<
173
+ | "acss_debit"
174
+ | "affirm"
175
+ | "afterpay_clearpay"
176
+ | "alipay"
177
+ | "alma"
178
+ | "amazon_pay"
179
+ | "au_becs_debit"
180
+ | "bacs_debit"
181
+ | "bancontact"
182
+ | "billie"
183
+ | "bizum"
184
+ | "blik"
185
+ | "boleto"
186
+ | "card"
187
+ | "cashapp"
188
+ | "crypto"
189
+ | "customer_balance"
190
+ | "eps"
191
+ | "fpx"
192
+ | "giropay"
193
+ | "grabpay"
194
+ | "ideal"
195
+ | "kakao_pay"
196
+ | "klarna"
197
+ | "konbini"
198
+ | "kr_card"
199
+ | "mb_way"
200
+ | "mobilepay"
201
+ | "multibanco"
202
+ | "naver_pay"
203
+ | "nz_bank_account"
204
+ | "oxxo"
205
+ | "p24"
206
+ | "pay_by_bank"
207
+ | "payco"
208
+ | "paynow"
209
+ | "paypal"
210
+ | "paypay"
211
+ | "payto"
212
+ | "pix"
213
+ | "promptpay"
214
+ | "revolut_pay"
215
+ | "samsung_pay"
216
+ | "satispay"
217
+ | "scalapay"
218
+ | "sepa_debit"
219
+ | "sequra"
220
+ | "sofort"
221
+ | "sunbit"
222
+ | "swish"
223
+ | "twint"
224
+ | "upi"
225
+ | "us_bank_account"
226
+ | "wechat_pay"
227
+ | "zip"
228
+ > | null;
229
+ readonly flow_directions?: ReadonlyArray<"inbound" | "outbound"> | null;
230
+ readonly id: string;
231
+ readonly last_setup_error?: Stripeapi_errors | null;
232
+ readonly latest_attempt?: string | Stripesetup_attempt | null;
233
+ readonly livemode: boolean;
234
+ readonly managed_payments?: Stripesmor_resource_managed_payments | null;
235
+ readonly mandate?: string | Stripemandate | null;
236
+ readonly metadata?: { readonly [x: string]: string } | null;
237
+ readonly next_action?: Stripesetup_intent_next_action | null;
238
+ readonly object: "setup_intent";
239
+ readonly on_behalf_of?: string | Stripeaccount | null;
240
+ readonly payment_method?: string | Stripepayment_method | null;
241
+ readonly payment_method_configuration_details?: Stripepayment_method_config_biz_payment_method_configuration_details | null;
242
+ readonly payment_method_options?: Stripesetup_intent_payment_method_options | null;
243
+ readonly payment_method_types: ReadonlyArray<string>;
244
+ readonly single_use_mandate?: string | Stripemandate | null;
245
+ readonly status:
246
+ | "canceled"
247
+ | "processing"
248
+ | "requires_action"
249
+ | "requires_confirmation"
250
+ | "requires_payment_method"
251
+ | "succeeded";
252
+ readonly usage: string;
253
+ } & { readonly [x: string]: Schema.Json };
254
+ export type Stripesetup_attempt_payment_method_details = {
255
+ readonly acss_debit?: Stripesetup_attempt_payment_method_details_acss_debit;
256
+ readonly amazon_pay?: Stripesetup_attempt_payment_method_details_amazon_pay;
257
+ readonly au_becs_debit?: Stripesetup_attempt_payment_method_details_au_becs_debit;
258
+ readonly bacs_debit?: Stripesetup_attempt_payment_method_details_bacs_debit;
259
+ readonly bancontact?: Stripesetup_attempt_payment_method_details_bancontact;
260
+ readonly blik?: Stripesetup_attempt_payment_method_details_blik;
261
+ readonly boleto?: Stripesetup_attempt_payment_method_details_boleto;
262
+ readonly card?: Stripesetup_attempt_payment_method_details_card;
263
+ readonly card_present?: Stripesetup_attempt_payment_method_details_card_present;
264
+ readonly cashapp?: Stripesetup_attempt_payment_method_details_cashapp;
265
+ readonly ideal?: Stripesetup_attempt_payment_method_details_ideal;
266
+ readonly kakao_pay?: Stripesetup_attempt_payment_method_details_kakao_pay;
267
+ readonly klarna?: Stripesetup_attempt_payment_method_details_klarna;
268
+ readonly kr_card?: Stripesetup_attempt_payment_method_details_kr_card;
269
+ readonly link?: Stripesetup_attempt_payment_method_details_link;
270
+ readonly naver_pay?: Stripesetup_attempt_payment_method_details_naver_pay;
271
+ readonly nz_bank_account?: Stripesetup_attempt_payment_method_details_nz_bank_account;
272
+ readonly paypal?: Stripesetup_attempt_payment_method_details_paypal;
273
+ readonly payto?: Stripesetup_attempt_payment_method_details_payto;
274
+ readonly pix?: Stripesetup_attempt_payment_method_details_pix;
275
+ readonly revolut_pay?: Stripesetup_attempt_payment_method_details_revolut_pay;
276
+ readonly satispay?: Stripepayment_flows_private_payment_methods_satispay_setup_attempt_details;
277
+ readonly sepa_debit?: Stripesetup_attempt_payment_method_details_sepa_debit;
278
+ readonly sofort?: Stripesetup_attempt_payment_method_details_sofort;
279
+ readonly twint?: Stripesetup_attempt_payment_method_details_twint;
280
+ readonly type: string;
281
+ readonly upi?: Stripesetup_attempt_payment_method_details_upi;
282
+ readonly us_bank_account?: Stripesetup_attempt_payment_method_details_us_bank_account;
283
+ } & { readonly [x: string]: Schema.Json };
284
+ export type Stripesetup_attempt_payment_method_details_sofort = {
285
+ readonly bank_code?: string | null;
286
+ readonly bank_name?: string | null;
287
+ readonly bic?: string | null;
288
+ readonly generated_sepa_debit?: string | Stripepayment_method | null;
289
+ readonly generated_sepa_debit_mandate?: string | Stripemandate | null;
290
+ readonly iban_last4?: string | null;
291
+ readonly preferred_language?: "de" | "en" | "fr" | "nl" | null;
292
+ readonly verified_name?: string | null;
293
+ } & { readonly [x: string]: Schema.Json };
294
+ export type Stripesetup_attempt_payment_method_details_ideal = {
295
+ readonly bank?:
296
+ | "abn_amro"
297
+ | "adyen"
298
+ | "asn_bank"
299
+ | "bunq"
300
+ | "buut"
301
+ | "finom"
302
+ | "handelsbanken"
303
+ | "ing"
304
+ | "knab"
305
+ | "mollie"
306
+ | "moneyou"
307
+ | "n26"
308
+ | "nn"
309
+ | "rabobank"
310
+ | "regiobank"
311
+ | "revolut"
312
+ | "sns_bank"
313
+ | "triodos_bank"
314
+ | "van_lanschot"
315
+ | "yoursafe"
316
+ | null;
317
+ readonly bic?:
318
+ | "ABNANL2A"
319
+ | "ADYBNL2A"
320
+ | "ASNBNL21"
321
+ | "BITSNL2A"
322
+ | "BUNQNL2A"
323
+ | "BUUTNL2A"
324
+ | "FNOMNL22"
325
+ | "FVLBNL22"
326
+ | "HANDNL2A"
327
+ | "INGBNL2A"
328
+ | "KNABNL2H"
329
+ | "MLLENL2A"
330
+ | "MOYONL21"
331
+ | "NNBANL2G"
332
+ | "NTSBDEB1"
333
+ | "RABONL2U"
334
+ | "RBRBNL21"
335
+ | "REVOIE23"
336
+ | "REVOLT21"
337
+ | "SNSBNL2A"
338
+ | "TRIONL2U"
339
+ | null;
340
+ readonly generated_sepa_debit?: string | Stripepayment_method | null;
341
+ readonly generated_sepa_debit_mandate?: string | Stripemandate | null;
342
+ readonly iban_last4?: string | null;
343
+ readonly verified_name?: string | null;
344
+ } & { readonly [x: string]: Schema.Json };
345
+ export type Stripesetup_attempt_payment_method_details_card_present = {
346
+ readonly generated_card?: string | Stripepayment_method | null;
347
+ readonly offline?: Stripepayment_method_details_card_present_offline | null;
348
+ } & { readonly [x: string]: Schema.Json };
349
+ export type Stripesetup_attempt_payment_method_details_bancontact = {
350
+ readonly bank_code?: string | null;
351
+ readonly bank_name?: string | null;
352
+ readonly bic?: string | null;
353
+ readonly generated_sepa_debit?: string | Stripepayment_method | null;
354
+ readonly generated_sepa_debit_mandate?: string | Stripemandate | null;
355
+ readonly iban_last4?: string | null;
356
+ readonly preferred_language?: "de" | "en" | "fr" | "nl" | null;
357
+ readonly verified_name?: string | null;
358
+ } & { readonly [x: string]: Schema.Json };
359
+ export type Stripesetup_attempt_payment_method_details_acss_debit = {
360
+ readonly [x: string]: Schema.Json;
361
+ };
362
+ export type Stripesetup_attempt_payment_method_details_amazon_pay = {
363
+ readonly [x: string]: Schema.Json;
364
+ };
365
+ export type Stripesetup_attempt_payment_method_details_au_becs_debit = {
366
+ readonly [x: string]: Schema.Json;
367
+ };
368
+ export type Stripesetup_attempt_payment_method_details_bacs_debit = {
369
+ readonly [x: string]: Schema.Json;
370
+ };
371
+ export type Stripesetup_attempt_payment_method_details_blik = {
372
+ readonly buyer_id?: string | null;
373
+ } & { readonly [x: string]: Schema.Json };
374
+ export type Stripesetup_attempt_payment_method_details_boleto = {
375
+ readonly [x: string]: Schema.Json;
376
+ };
377
+ export type Stripesetup_attempt_payment_method_details_card_checks = {
378
+ readonly address_line1_check?: string | null;
379
+ readonly address_postal_code_check?: string | null;
380
+ readonly cvc_check?: string | null;
381
+ } & { readonly [x: string]: Schema.Json };
382
+ export type Stripesetup_attempt_payment_method_details_cashapp = {
383
+ readonly [x: string]: Schema.Json;
384
+ };
385
+ export type Stripesetup_attempt_payment_method_details_kakao_pay = {
386
+ readonly [x: string]: Schema.Json;
387
+ };
388
+ export type Stripesetup_attempt_payment_method_details_klarna = {
389
+ readonly [x: string]: Schema.Json;
390
+ };
391
+ export type Stripesetup_attempt_payment_method_details_kr_card = {
392
+ readonly [x: string]: Schema.Json;
393
+ };
394
+ export type Stripesetup_attempt_payment_method_details_link = {
395
+ readonly [x: string]: Schema.Json;
396
+ };
397
+ export type Stripesetup_attempt_payment_method_details_naver_pay = {
398
+ readonly buyer_id?: string;
399
+ } & { readonly [x: string]: Schema.Json };
400
+ export type Stripesetup_attempt_payment_method_details_nz_bank_account = {
401
+ readonly [x: string]: Schema.Json;
402
+ };
403
+ export type Stripesetup_attempt_payment_method_details_paypal = {
404
+ readonly [x: string]: Schema.Json;
405
+ };
406
+ export type Stripesetup_attempt_payment_method_details_payto = {
407
+ readonly [x: string]: Schema.Json;
408
+ };
409
+ export type Stripesetup_attempt_payment_method_details_pix = {
410
+ readonly fingerprint?: string | null;
411
+ } & { readonly [x: string]: Schema.Json };
412
+ export type Stripesetup_attempt_payment_method_details_revolut_pay = {
413
+ readonly [x: string]: Schema.Json;
414
+ };
415
+ export type Stripesetup_attempt_payment_method_details_sepa_debit = {
416
+ readonly [x: string]: Schema.Json;
417
+ };
418
+ export type Stripesetup_attempt_payment_method_details_twint = {
419
+ readonly [x: string]: Schema.Json;
420
+ };
421
+ export type Stripesetup_attempt_payment_method_details_upi = {
422
+ readonly [x: string]: Schema.Json;
423
+ };
424
+ export type Stripesetup_attempt_payment_method_details_us_bank_account = {
425
+ readonly [x: string]: Schema.Json;
426
+ };
427
+ export type Stripesetup_intent_next_action_pix_display_qr_code = {
428
+ readonly data: string;
429
+ readonly expires_at: number;
430
+ readonly hosted_instructions_url: string;
431
+ readonly image_url_png: string;
432
+ readonly image_url_svg: string;
433
+ } & { readonly [x: string]: Schema.Json };
434
+ export type Stripesetup_intent_next_action_redirect_to_url = {
435
+ readonly return_url?: string | null;
436
+ readonly url?: string | null;
437
+ } & { readonly [x: string]: Schema.Json };
438
+ export type Stripesetup_intent_next_action_verify_with_microdeposits = {
439
+ readonly arrival_date: number;
440
+ readonly hosted_verification_url: string;
441
+ readonly microdeposit_type?: "amounts" | "descriptor_code" | null;
442
+ } & { readonly [x: string]: Schema.Json };
443
+ export type Stripesetup_intent_payment_method_options_mandate_options_acss_debit =
444
+ {
445
+ readonly custom_mandate_url?: string;
446
+ readonly default_for?: ReadonlyArray<"invoice" | "subscription">;
447
+ readonly interval_description?: string | null;
448
+ readonly payment_schedule?: "combined" | "interval" | "sporadic" | null;
449
+ readonly transaction_type?: "business" | "personal" | null;
450
+ } & { readonly [x: string]: Schema.Json };
451
+ export type Stripesetup_intent_payment_method_options_mandate_options_payto = {
452
+ readonly amount?: number | null;
453
+ readonly amount_type?: "fixed" | "maximum" | null;
454
+ readonly end_date?: string | null;
455
+ readonly payment_schedule?:
456
+ | "adhoc"
457
+ | "annual"
458
+ | "daily"
459
+ | "fortnightly"
460
+ | "monthly"
461
+ | "quarterly"
462
+ | "semi_annual"
463
+ | "weekly"
464
+ | null;
465
+ readonly payments_per_period?: number | null;
466
+ readonly purpose?:
467
+ | "dependant_support"
468
+ | "government"
469
+ | "loan"
470
+ | "mortgage"
471
+ | "other"
472
+ | "pension"
473
+ | "personal"
474
+ | "retail"
475
+ | "salary"
476
+ | "tax"
477
+ | "utility"
478
+ | null;
479
+ readonly start_date?: string | null;
480
+ } & { readonly [x: string]: Schema.Json };
481
+ export type Stripesetup_intent_payment_method_options_amazon_pay = {
482
+ readonly [x: string]: Schema.Json;
483
+ };
484
+ export type Stripesetup_intent_payment_method_options_mandate_options_bacs_debit =
485
+ { readonly reference_prefix?: string } & {
486
+ readonly [x: string]: Schema.Json;
487
+ };
488
+ export type Stripesetup_intent_payment_method_options_bizum = {
489
+ readonly [x: string]: Schema.Json;
490
+ };
491
+ export type Stripesetup_intent_payment_method_options_mandate_options_blik = {
492
+ readonly expires_at?: number | null;
493
+ readonly type?: "off_session" | null;
494
+ } & { readonly [x: string]: Schema.Json };
495
+ export type Stripesetup_intent_payment_method_options_card_mandate_options = {
496
+ readonly amount: number;
497
+ readonly amount_type: "fixed" | "maximum";
498
+ readonly currency: string;
499
+ readonly description?: string | null;
500
+ readonly end_date?: number | null;
501
+ readonly interval: "day" | "month" | "sporadic" | "week" | "year";
502
+ readonly interval_count?: number | null;
503
+ readonly reference: string;
504
+ readonly start_date: number;
505
+ readonly supported_types?: ReadonlyArray<"india"> | null;
506
+ } & { readonly [x: string]: Schema.Json };
507
+ export type Stripesetup_intent_payment_method_options_card_present = {
508
+ readonly [x: string]: Schema.Json;
509
+ };
510
+ export type Stripesetup_intent_payment_method_options_klarna = {
511
+ readonly currency?: string | null;
512
+ readonly preferred_locale?: string | null;
513
+ } & { readonly [x: string]: Schema.Json };
514
+ export type Stripesetup_intent_payment_method_options_link = {
515
+ readonly [x: string]: Schema.Json;
516
+ };
517
+ export type Stripesetup_intent_payment_method_options_paypal = {
518
+ readonly billing_agreement_id?: string | null;
519
+ } & { readonly [x: string]: Schema.Json };
520
+ export type Stripesetup_intent_payment_method_options_mandate_options_sepa_debit =
521
+ { readonly reference_prefix?: string } & {
522
+ readonly [x: string]: Schema.Json;
523
+ };
524
+ export type Stripesetup_attempt_payment_method_details_card_wallet = {
525
+ readonly apple_pay?: Stripepayment_method_details_card_wallet_apple_pay;
526
+ readonly google_pay?: Stripepayment_method_details_card_wallet_google_pay;
527
+ readonly type: "apple_pay" | "google_pay" | "link";
528
+ } & { readonly [x: string]: Schema.Json };
529
+ export type Stripesetup_intent_payment_method_options_pix = {
530
+ readonly mandate_options?: Stripepayment_method_options_mandate_options_pix;
531
+ } & { readonly [x: string]: Schema.Json };
532
+ export type Stripesetup_intent_payment_method_options_acss_debit = {
533
+ readonly currency?: "cad" | "usd" | null;
534
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_acss_debit;
535
+ readonly verification_method?: "automatic" | "instant" | "microdeposits";
536
+ } & { readonly [x: string]: Schema.Json };
537
+ export type Stripesetup_intent_type_specific_payment_method_options_client = {
538
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_payto;
539
+ readonly verification_method?: "automatic" | "instant" | "microdeposits";
540
+ } & { readonly [x: string]: Schema.Json };
541
+ export type Stripesetup_intent_payment_method_options_payto = {
542
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_payto;
543
+ } & { readonly [x: string]: Schema.Json };
544
+ export type Stripesetup_intent_payment_method_options_bacs_debit = {
545
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_bacs_debit;
546
+ } & { readonly [x: string]: Schema.Json };
547
+ export type Stripesetup_intent_payment_method_options_blik = {
548
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_blik;
549
+ } & { readonly [x: string]: Schema.Json };
550
+ export type Stripesetup_intent_payment_method_options_card = {
551
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_card_mandate_options | null;
552
+ readonly network?:
553
+ | "amex"
554
+ | "cartes_bancaires"
555
+ | "diners"
556
+ | "discover"
557
+ | "eftpos_au"
558
+ | "girocard"
559
+ | "interac"
560
+ | "jcb"
561
+ | "link"
562
+ | "mastercard"
563
+ | "unionpay"
564
+ | "unknown"
565
+ | "visa"
566
+ | null;
567
+ readonly request_three_d_secure?: "any" | "automatic" | "challenge" | null;
568
+ readonly setup_credential_usage?: "installment" | "recurring" | "unscheduled";
569
+ } & { readonly [x: string]: Schema.Json };
570
+ export type Stripesetup_intent_payment_method_options_sepa_debit = {
571
+ readonly mandate_options?: Stripesetup_intent_payment_method_options_mandate_options_sepa_debit;
572
+ } & { readonly [x: string]: Schema.Json };
573
+ export type Stripesetup_intent_payment_method_options_upi = {
574
+ readonly mandate_options?: Stripepayment_method_options_mandate_options_upi;
575
+ } & { readonly [x: string]: Schema.Json };
576
+ export type Stripesetup_attempt_payment_method_details_card = {
577
+ readonly brand?: string | null;
578
+ readonly checks?: Stripesetup_attempt_payment_method_details_card_checks | null;
579
+ readonly country?: string | null;
580
+ readonly exp_month?: number | null;
581
+ readonly exp_year?: number | null;
582
+ readonly fingerprint?: string | null;
583
+ readonly funding?: string | null;
584
+ readonly last4?: string | null;
585
+ readonly network?: string | null;
586
+ readonly three_d_secure?: Stripethree_d_secure_details | null;
587
+ readonly wallet?: Stripesetup_attempt_payment_method_details_card_wallet | null;
588
+ } & { readonly [x: string]: Schema.Json };
589
+ export type Stripesetup_intent_next_action = {
590
+ readonly blik_authorize?: Stripepayment_intent_next_action_blik_authorize;
591
+ readonly cashapp_handle_redirect_or_display_qr_code?: Stripepayment_intent_next_action_cashapp_handle_redirect_or_display_qr_code;
592
+ readonly pix_display_qr_code?: Stripesetup_intent_next_action_pix_display_qr_code;
593
+ readonly redirect_to_url?: Stripesetup_intent_next_action_redirect_to_url;
594
+ readonly type: string;
595
+ readonly upi_handle_redirect_or_display_qr_code?: Stripepayment_intent_next_action_upi_handle_redirect_or_display_qr_code;
596
+ readonly use_stripe_sdk?: { readonly [x: string]: Schema.Json };
597
+ readonly verify_with_microdeposits?: Stripesetup_intent_next_action_verify_with_microdeposits;
598
+ } & { readonly [x: string]: Schema.Json };
599
+ export type Stripesetup_intent_payment_method_options_us_bank_account = {
600
+ readonly financial_connections?: Stripelinked_account_options_common;
601
+ readonly mandate_options?: Stripepayment_method_options_us_bank_account_mandate_options;
602
+ readonly verification_method?: "automatic" | "instant" | "microdeposits";
603
+ } & { readonly [x: string]: Schema.Json };
604
+ export type Stripesetup_intent_payment_method_options = {
605
+ readonly acss_debit?:
606
+ | Stripesetup_intent_payment_method_options_acss_debit
607
+ | Stripesetup_intent_type_specific_payment_method_options_client;
608
+ readonly amazon_pay?:
609
+ | Stripesetup_intent_payment_method_options_amazon_pay
610
+ | Stripesetup_intent_type_specific_payment_method_options_client;
611
+ readonly bacs_debit?:
612
+ | Stripesetup_intent_payment_method_options_bacs_debit
613
+ | Stripesetup_intent_type_specific_payment_method_options_client;
614
+ readonly bizum?:
615
+ | Stripesetup_intent_payment_method_options_bizum
616
+ | Stripesetup_intent_type_specific_payment_method_options_client;
617
+ readonly blik?:
618
+ | Stripesetup_intent_payment_method_options_blik
619
+ | Stripesetup_intent_type_specific_payment_method_options_client;
620
+ readonly card?:
621
+ | Stripesetup_intent_payment_method_options_card
622
+ | Stripesetup_intent_type_specific_payment_method_options_client;
623
+ readonly card_present?:
624
+ | Stripesetup_intent_payment_method_options_card_present
625
+ | Stripesetup_intent_type_specific_payment_method_options_client;
626
+ readonly klarna?:
627
+ | Stripesetup_intent_payment_method_options_klarna
628
+ | Stripesetup_intent_type_specific_payment_method_options_client;
629
+ readonly link?:
630
+ | Stripesetup_intent_payment_method_options_link
631
+ | Stripesetup_intent_type_specific_payment_method_options_client;
632
+ readonly paypal?:
633
+ | Stripesetup_intent_payment_method_options_paypal
634
+ | Stripesetup_intent_type_specific_payment_method_options_client;
635
+ readonly payto?:
636
+ | Stripesetup_intent_payment_method_options_payto
637
+ | Stripesetup_intent_type_specific_payment_method_options_client;
638
+ readonly pix?:
639
+ | Stripesetup_intent_payment_method_options_pix
640
+ | Stripesetup_intent_type_specific_payment_method_options_client;
641
+ readonly sepa_debit?:
642
+ | Stripesetup_intent_payment_method_options_sepa_debit
643
+ | Stripesetup_intent_type_specific_payment_method_options_client;
644
+ readonly upi?:
645
+ | Stripesetup_intent_payment_method_options_upi
646
+ | Stripesetup_intent_type_specific_payment_method_options_client;
647
+ readonly us_bank_account?:
648
+ | Stripesetup_intent_payment_method_options_us_bank_account
649
+ | Stripesetup_intent_type_specific_payment_method_options_client;
650
+ } & { readonly [x: string]: Schema.Json };
651
+
652
+ export const Stripesetup_attempt = Schema.suspend(
653
+ (): Schema.Codec<Stripesetup_attempt> =>
654
+ Schema.StructWithRest(
655
+ Schema.Struct({
656
+ application: Schema.optionalKey(
657
+ Schema.Union([
658
+ Schema.Union([
659
+ Schema.String.check(
660
+ Schema.isMaxCodePoints(5000).annotate({
661
+ expected: "a string with at most 5000 code points",
662
+ }),
663
+ ),
664
+ Stripeapplication,
665
+ ]).annotate({
666
+ description:
667
+ "The value of [application](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation.",
668
+ }),
669
+ Schema.Null,
670
+ ]),
671
+ ),
672
+ attach_to_self: Schema.optionalKey(
673
+ Schema.Boolean.annotate({
674
+ description:
675
+ "If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.\n\nIt can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.",
676
+ }),
677
+ ),
678
+ created: Schema.Number.annotate({
679
+ description:
680
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
681
+ format: "unix-time",
682
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
683
+ customer: Schema.optionalKey(
684
+ Schema.Union([
685
+ Schema.Union([
686
+ Schema.String.check(
687
+ Schema.isMaxCodePoints(5000).annotate({
688
+ expected: "a string with at most 5000 code points",
689
+ }),
690
+ ),
691
+ Schema.suspend(
692
+ (): Schema.Codec<Stripecustomer> => Stripecustomer,
693
+ ),
694
+ Stripedeleted_customer,
695
+ ]).annotate({
696
+ description:
697
+ "The value of [customer](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-customer) on the SetupIntent at the time of this confirmation.",
698
+ }),
699
+ Schema.Null,
700
+ ]),
701
+ ),
702
+ customer_account: Schema.optionalKey(
703
+ Schema.Union([
704
+ Schema.String.annotate({
705
+ description:
706
+ "The value of [customer_account](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-customer_account) on the SetupIntent at the time of this confirmation.",
707
+ }).check(
708
+ Schema.isMaxCodePoints(5000).annotate({
709
+ expected: "a string with at most 5000 code points",
710
+ }),
711
+ ),
712
+ Schema.Null,
713
+ ]),
714
+ ),
715
+ flow_directions: Schema.optionalKey(
716
+ Schema.Union([
717
+ Schema.Array(Schema.Literals(["inbound", "outbound"])).annotate({
718
+ description:
719
+ "Indicates the directions of money movement for which this payment method is intended to be used.\n\nInclude `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.",
720
+ }),
721
+ Schema.Null,
722
+ ]),
723
+ ),
724
+ id: Schema.String.annotate({
725
+ description: "Unique identifier for the object.",
726
+ }).check(
727
+ Schema.isMaxCodePoints(5000).annotate({
728
+ expected: "a string with at most 5000 code points",
729
+ }),
730
+ ),
731
+ livemode: Schema.Boolean.annotate({
732
+ description:
733
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
734
+ }),
735
+ object: Schema.Literal("setup_attempt").annotate({
736
+ description:
737
+ "String representing the object's type. Objects of the same type share the same value.",
738
+ }),
739
+ on_behalf_of: Schema.optionalKey(
740
+ Schema.Union([
741
+ Schema.Union([
742
+ Schema.String.check(
743
+ Schema.isMaxCodePoints(5000).annotate({
744
+ expected: "a string with at most 5000 code points",
745
+ }),
746
+ ),
747
+ Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
748
+ ]).annotate({
749
+ description:
750
+ "The value of [on_behalf_of](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-on_behalf_of) on the SetupIntent at the time of this confirmation.",
751
+ }),
752
+ Schema.Null,
753
+ ]),
754
+ ),
755
+ payment_method: Schema.Union([
756
+ Schema.String.check(
757
+ Schema.isMaxCodePoints(5000).annotate({
758
+ expected: "a string with at most 5000 code points",
759
+ }),
760
+ ),
761
+ Schema.suspend(
762
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
763
+ ),
764
+ ]).annotate({
765
+ description: "ID of the payment method used with this SetupAttempt.",
766
+ }),
767
+ payment_method_details: Schema.suspend(
768
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details> =>
769
+ Stripesetup_attempt_payment_method_details,
770
+ ),
771
+ setup_error: Schema.optionalKey(
772
+ Schema.Union([
773
+ Schema.Union([
774
+ Schema.suspend(
775
+ (): Schema.Codec<Stripeapi_errors> => Stripeapi_errors,
776
+ ),
777
+ ]).annotate({
778
+ description:
779
+ "The error encountered during this attempt to confirm the SetupIntent, if any.",
780
+ }),
781
+ Schema.Null,
782
+ ]),
783
+ ),
784
+ setup_intent: Schema.Union([
785
+ Schema.String.check(
786
+ Schema.isMaxCodePoints(5000).annotate({
787
+ expected: "a string with at most 5000 code points",
788
+ }),
789
+ ),
790
+ Schema.suspend(
791
+ (): Schema.Codec<Stripesetup_intent> => Stripesetup_intent,
792
+ ),
793
+ ]).annotate({
794
+ description: "ID of the SetupIntent that this attempt belongs to.",
795
+ }),
796
+ status: Schema.String.annotate({
797
+ description:
798
+ "Status of this SetupAttempt, one of `requires_confirmation`, `requires_action`, `processing`, `succeeded`, `failed`, or `abandoned`.",
799
+ }).check(
800
+ Schema.isMaxCodePoints(5000).annotate({
801
+ expected: "a string with at most 5000 code points",
802
+ }),
803
+ ),
804
+ usage: Schema.String.annotate({
805
+ description:
806
+ "The value of [usage](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) on the SetupIntent at the time of this confirmation, one of `off_session` or `on_session`.",
807
+ }).check(
808
+ Schema.isMaxCodePoints(5000).annotate({
809
+ expected: "a string with at most 5000 code points",
810
+ }),
811
+ ),
812
+ }),
813
+ [
814
+ Schema.Record(
815
+ Schema.String,
816
+ Schema.Json.annotate({ expected: "JSON value" }),
817
+ ),
818
+ ],
819
+ ).annotate({
820
+ title: "SetupAttempt",
821
+ description:
822
+ "A SetupAttempt describes one attempted confirmation of a SetupIntent,\nwhether that confirmation is successful or unsuccessful. You can use\nSetupAttempts to inspect details of a specific attempt at setting up a\npayment method using a SetupIntent.",
823
+ identifier: "Stripesetup_attempt",
824
+ }),
825
+ );
826
+ export const Stripesetup_intent = Schema.suspend(
827
+ (): Schema.Codec<Stripesetup_intent> =>
828
+ Schema.StructWithRest(
829
+ Schema.Struct({
830
+ allowed_payment_method_types: Schema.optionalKey(
831
+ Schema.Union([
832
+ Schema.Array(
833
+ Schema.Literals([
834
+ "acss_debit",
835
+ "affirm",
836
+ "afterpay_clearpay",
837
+ "alipay",
838
+ "alma",
839
+ "amazon_pay",
840
+ "au_becs_debit",
841
+ "bacs_debit",
842
+ "bancontact",
843
+ "billie",
844
+ "bizum",
845
+ "blik",
846
+ "boku_promptpay",
847
+ "boleto",
848
+ "capchase_pay",
849
+ "card",
850
+ "card_present",
851
+ "cashapp",
852
+ "check_scan",
853
+ "click_to_pay",
854
+ "crypto",
855
+ "customer_balance",
856
+ "demo_pay",
857
+ "duitnow",
858
+ "dummy_auth_push",
859
+ "dummy_passthrough_card",
860
+ "edenred",
861
+ "eps",
862
+ "fpx",
863
+ "gcash",
864
+ "getbalance",
865
+ "gift_card",
866
+ "giropay",
867
+ "gopay",
868
+ "grabpay",
869
+ "id_bank_transfer",
870
+ "ideal",
871
+ "interac_present",
872
+ "kakao_pay",
873
+ "klarna",
874
+ "knet",
875
+ "konbini",
876
+ "kr_card",
877
+ "kr_market",
878
+ "kriya",
879
+ "link",
880
+ "mb_way",
881
+ "mobilepay",
882
+ "momo",
883
+ "mondu",
884
+ "multibanco",
885
+ "naver_pay",
886
+ "netbanking",
887
+ "ng_bank",
888
+ "ng_bank_transfer",
889
+ "ng_card",
890
+ "ng_market",
891
+ "ng_ussd",
892
+ "ng_wallet",
893
+ "nz_bank_account",
894
+ "octopus",
895
+ "oxxo",
896
+ "p24",
897
+ "paper_check",
898
+ "pay_by_bank",
899
+ "payco",
900
+ "paynow",
901
+ "paypal",
902
+ "paypay",
903
+ "payto",
904
+ "pix",
905
+ "promptpay",
906
+ "qris",
907
+ "rechnung",
908
+ "revolut_pay",
909
+ "samsung_pay",
910
+ "satispay",
911
+ "scalapay",
912
+ "sepa_debit",
913
+ "sequra",
914
+ "shop_pay",
915
+ "shopeepay",
916
+ "sofort",
917
+ "south_korea_market",
918
+ "stripe_balance",
919
+ "sunbit",
920
+ "swish",
921
+ "tamara",
922
+ "test_pay",
923
+ "touch_n_go",
924
+ "truemoney",
925
+ "twint",
926
+ "upi",
927
+ "us_bank_account",
928
+ "us_cash_voucher",
929
+ "vipps",
930
+ "wechat_pay",
931
+ "wero",
932
+ "zip",
933
+ ]),
934
+ ).annotate({
935
+ description:
936
+ "The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer.",
937
+ }),
938
+ Schema.Null,
939
+ ]),
940
+ ),
941
+ application: Schema.optionalKey(
942
+ Schema.Union([
943
+ Schema.Union([
944
+ Schema.String.check(
945
+ Schema.isMaxCodePoints(5000).annotate({
946
+ expected: "a string with at most 5000 code points",
947
+ }),
948
+ ),
949
+ Stripeapplication,
950
+ ]).annotate({
951
+ description:
952
+ "ID of the Connect application that created the SetupIntent.",
953
+ }),
954
+ Schema.Null,
955
+ ]),
956
+ ),
957
+ attach_to_self: Schema.optionalKey(
958
+ Schema.Boolean.annotate({
959
+ description:
960
+ "If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.\n\nIt can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.",
961
+ }),
962
+ ),
963
+ automatic_payment_methods: Schema.optionalKey(
964
+ Schema.Union([
965
+ Schema.Union([
966
+ Stripepayment_flows_automatic_payment_methods_setup_intent,
967
+ ]).annotate({
968
+ description:
969
+ "Settings for dynamic payment methods compatible with this Setup Intent",
970
+ }),
971
+ Schema.Null,
972
+ ]),
973
+ ),
974
+ cancellation_reason: Schema.optionalKey(
975
+ Schema.Union([
976
+ Schema.Literals([
977
+ "abandoned",
978
+ "duplicate",
979
+ "requested_by_customer",
980
+ ]).annotate({
981
+ description:
982
+ "Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`.",
983
+ }),
984
+ Schema.Null,
985
+ ]),
986
+ ),
987
+ client_secret: Schema.optionalKey(
988
+ Schema.Union([
989
+ Schema.String.annotate({
990
+ description:
991
+ "The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.\n\nThe client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.",
992
+ }).check(
993
+ Schema.isMaxCodePoints(5000).annotate({
994
+ expected: "a string with at most 5000 code points",
995
+ }),
996
+ ),
997
+ Schema.Null,
998
+ ]),
999
+ ),
1000
+ created: Schema.Number.annotate({
1001
+ description:
1002
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1003
+ format: "unix-time",
1004
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1005
+ customer: Schema.optionalKey(
1006
+ Schema.Union([
1007
+ Schema.Union([
1008
+ Schema.String.check(
1009
+ Schema.isMaxCodePoints(5000).annotate({
1010
+ expected: "a string with at most 5000 code points",
1011
+ }),
1012
+ ),
1013
+ Schema.suspend(
1014
+ (): Schema.Codec<Stripecustomer> => Stripecustomer,
1015
+ ),
1016
+ Stripedeleted_customer,
1017
+ ]).annotate({
1018
+ description:
1019
+ "ID of the Customer this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.",
1020
+ }),
1021
+ Schema.Null,
1022
+ ]),
1023
+ ),
1024
+ customer_account: Schema.optionalKey(
1025
+ Schema.Union([
1026
+ Schema.String.annotate({
1027
+ description:
1028
+ "ID of the Account this SetupIntent belongs to, if one exists.\n\nIf present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.",
1029
+ }).check(
1030
+ Schema.isMaxCodePoints(5000).annotate({
1031
+ expected: "a string with at most 5000 code points",
1032
+ }),
1033
+ ),
1034
+ Schema.Null,
1035
+ ]),
1036
+ ),
1037
+ description: Schema.optionalKey(
1038
+ Schema.Union([
1039
+ Schema.String.annotate({
1040
+ description:
1041
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
1042
+ }).check(
1043
+ Schema.isMaxCodePoints(5000).annotate({
1044
+ expected: "a string with at most 5000 code points",
1045
+ }),
1046
+ ),
1047
+ Schema.Null,
1048
+ ]),
1049
+ ),
1050
+ excluded_payment_method_types: Schema.optionalKey(
1051
+ Schema.Union([
1052
+ Schema.Array(
1053
+ Schema.Literals([
1054
+ "acss_debit",
1055
+ "affirm",
1056
+ "afterpay_clearpay",
1057
+ "alipay",
1058
+ "alma",
1059
+ "amazon_pay",
1060
+ "au_becs_debit",
1061
+ "bacs_debit",
1062
+ "bancontact",
1063
+ "billie",
1064
+ "bizum",
1065
+ "blik",
1066
+ "boleto",
1067
+ "card",
1068
+ "cashapp",
1069
+ "crypto",
1070
+ "customer_balance",
1071
+ "eps",
1072
+ "fpx",
1073
+ "giropay",
1074
+ "grabpay",
1075
+ "ideal",
1076
+ "kakao_pay",
1077
+ "klarna",
1078
+ "konbini",
1079
+ "kr_card",
1080
+ "mb_way",
1081
+ "mobilepay",
1082
+ "multibanco",
1083
+ "naver_pay",
1084
+ "nz_bank_account",
1085
+ "oxxo",
1086
+ "p24",
1087
+ "pay_by_bank",
1088
+ "payco",
1089
+ "paynow",
1090
+ "paypal",
1091
+ "paypay",
1092
+ "payto",
1093
+ "pix",
1094
+ "promptpay",
1095
+ "revolut_pay",
1096
+ "samsung_pay",
1097
+ "satispay",
1098
+ "scalapay",
1099
+ "sepa_debit",
1100
+ "sequra",
1101
+ "sofort",
1102
+ "sunbit",
1103
+ "swish",
1104
+ "twint",
1105
+ "upi",
1106
+ "us_bank_account",
1107
+ "wechat_pay",
1108
+ "zip",
1109
+ ]),
1110
+ ).annotate({
1111
+ description:
1112
+ "Payment method types that are excluded from this SetupIntent.",
1113
+ }),
1114
+ Schema.Null,
1115
+ ]),
1116
+ ),
1117
+ flow_directions: Schema.optionalKey(
1118
+ Schema.Union([
1119
+ Schema.Array(Schema.Literals(["inbound", "outbound"])).annotate({
1120
+ description:
1121
+ "Indicates the directions of money movement for which this payment method is intended to be used.\n\nInclude `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.",
1122
+ }),
1123
+ Schema.Null,
1124
+ ]),
1125
+ ),
1126
+ id: Schema.String.annotate({
1127
+ description: "Unique identifier for the object.",
1128
+ }).check(
1129
+ Schema.isMaxCodePoints(5000).annotate({
1130
+ expected: "a string with at most 5000 code points",
1131
+ }),
1132
+ ),
1133
+ last_setup_error: Schema.optionalKey(
1134
+ Schema.Union([
1135
+ Schema.Union([
1136
+ Schema.suspend(
1137
+ (): Schema.Codec<Stripeapi_errors> => Stripeapi_errors,
1138
+ ),
1139
+ ]).annotate({
1140
+ description:
1141
+ "The error encountered in the previous SetupIntent confirmation.",
1142
+ }),
1143
+ Schema.Null,
1144
+ ]),
1145
+ ),
1146
+ latest_attempt: Schema.optionalKey(
1147
+ Schema.Union([
1148
+ Schema.Union([
1149
+ Schema.String.check(
1150
+ Schema.isMaxCodePoints(5000).annotate({
1151
+ expected: "a string with at most 5000 code points",
1152
+ }),
1153
+ ),
1154
+ Schema.suspend(
1155
+ (): Schema.Codec<Stripesetup_attempt> => Stripesetup_attempt,
1156
+ ),
1157
+ ]).annotate({
1158
+ description: "The most recent SetupAttempt for this SetupIntent.",
1159
+ }),
1160
+ Schema.Null,
1161
+ ]),
1162
+ ),
1163
+ livemode: Schema.Boolean.annotate({
1164
+ description:
1165
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1166
+ }),
1167
+ managed_payments: Schema.optionalKey(
1168
+ Schema.Union([
1169
+ Schema.Union([Stripesmor_resource_managed_payments]),
1170
+ Schema.Null,
1171
+ ]),
1172
+ ),
1173
+ mandate: Schema.optionalKey(
1174
+ Schema.Union([
1175
+ Schema.Union([
1176
+ Schema.String.check(
1177
+ Schema.isMaxCodePoints(5000).annotate({
1178
+ expected: "a string with at most 5000 code points",
1179
+ }),
1180
+ ),
1181
+ Schema.suspend((): Schema.Codec<Stripemandate> => Stripemandate),
1182
+ ]).annotate({
1183
+ description:
1184
+ "ID of the multi use Mandate generated by the SetupIntent.",
1185
+ }),
1186
+ Schema.Null,
1187
+ ]),
1188
+ ),
1189
+ metadata: Schema.optionalKey(
1190
+ Schema.Union([
1191
+ Schema.Record(
1192
+ Schema.String,
1193
+ Schema.String.check(
1194
+ Schema.isMaxCodePoints(500).annotate({
1195
+ expected: "a string with at most 500 code points",
1196
+ }),
1197
+ ),
1198
+ ).annotate({
1199
+ description:
1200
+ "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.",
1201
+ }),
1202
+ Schema.Null,
1203
+ ]),
1204
+ ),
1205
+ next_action: Schema.optionalKey(
1206
+ Schema.Union([
1207
+ Schema.Union([Stripesetup_intent_next_action]).annotate({
1208
+ description:
1209
+ "If present, this property tells you what actions you need to take in order for your customer to continue payment setup.",
1210
+ }),
1211
+ Schema.Null,
1212
+ ]),
1213
+ ),
1214
+ object: Schema.Literal("setup_intent").annotate({
1215
+ description:
1216
+ "String representing the object's type. Objects of the same type share the same value.",
1217
+ }),
1218
+ on_behalf_of: Schema.optionalKey(
1219
+ Schema.Union([
1220
+ Schema.Union([
1221
+ Schema.String.check(
1222
+ Schema.isMaxCodePoints(5000).annotate({
1223
+ expected: "a string with at most 5000 code points",
1224
+ }),
1225
+ ),
1226
+ Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
1227
+ ]).annotate({
1228
+ description:
1229
+ "The account (if any) for which the setup is intended.",
1230
+ }),
1231
+ Schema.Null,
1232
+ ]),
1233
+ ),
1234
+ payment_method: Schema.optionalKey(
1235
+ Schema.Union([
1236
+ Schema.Union([
1237
+ Schema.String.check(
1238
+ Schema.isMaxCodePoints(5000).annotate({
1239
+ expected: "a string with at most 5000 code points",
1240
+ }),
1241
+ ),
1242
+ Schema.suspend(
1243
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
1244
+ ),
1245
+ ]).annotate({
1246
+ description:
1247
+ "ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.",
1248
+ }),
1249
+ Schema.Null,
1250
+ ]),
1251
+ ),
1252
+ payment_method_configuration_details: Schema.optionalKey(
1253
+ Schema.Union([
1254
+ Schema.Union([
1255
+ Stripepayment_method_config_biz_payment_method_configuration_details,
1256
+ ]).annotate({
1257
+ description:
1258
+ "Information about the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) used for this Setup Intent.",
1259
+ }),
1260
+ Schema.Null,
1261
+ ]),
1262
+ ),
1263
+ payment_method_options: Schema.optionalKey(
1264
+ Schema.Union([
1265
+ Schema.Union([Stripesetup_intent_payment_method_options]).annotate({
1266
+ description:
1267
+ "Payment method-specific configuration for this SetupIntent.",
1268
+ }),
1269
+ Schema.Null,
1270
+ ]),
1271
+ ),
1272
+ payment_method_types: Schema.Array(
1273
+ Schema.String.check(
1274
+ Schema.isMaxCodePoints(5000).annotate({
1275
+ expected: "a string with at most 5000 code points",
1276
+ }),
1277
+ ),
1278
+ ).annotate({
1279
+ description:
1280
+ "The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).",
1281
+ }),
1282
+ single_use_mandate: Schema.optionalKey(
1283
+ Schema.Union([
1284
+ Schema.Union([
1285
+ Schema.String.check(
1286
+ Schema.isMaxCodePoints(5000).annotate({
1287
+ expected: "a string with at most 5000 code points",
1288
+ }),
1289
+ ),
1290
+ Schema.suspend((): Schema.Codec<Stripemandate> => Stripemandate),
1291
+ ]).annotate({
1292
+ description:
1293
+ "ID of the single_use Mandate generated by the SetupIntent.",
1294
+ }),
1295
+ Schema.Null,
1296
+ ]),
1297
+ ),
1298
+ status: Schema.Literals([
1299
+ "canceled",
1300
+ "processing",
1301
+ "requires_action",
1302
+ "requires_confirmation",
1303
+ "requires_payment_method",
1304
+ "succeeded",
1305
+ ]).annotate({
1306
+ description:
1307
+ "[Status](https://docs.stripe.com/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`.",
1308
+ }),
1309
+ usage: Schema.String.annotate({
1310
+ description:
1311
+ "Indicates how the payment method is intended to be used in the future.\n\nUse `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`.",
1312
+ }).check(
1313
+ Schema.isMaxCodePoints(5000).annotate({
1314
+ expected: "a string with at most 5000 code points",
1315
+ }),
1316
+ ),
1317
+ }),
1318
+ [
1319
+ Schema.Record(
1320
+ Schema.String,
1321
+ Schema.Json.annotate({ expected: "JSON value" }),
1322
+ ),
1323
+ ],
1324
+ ).annotate({
1325
+ title: "SetupIntent",
1326
+ description:
1327
+ "A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.\nFor example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.\nLater, you can use [PaymentIntents](https://docs.stripe.com/api#payment_intents) to drive the payment flow.\n\nCreate a SetupIntent when you're ready to collect your customer's payment credentials.\nDon't maintain long-lived, unconfirmed SetupIntents because they might not be valid.\nThe SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides\nyou through the setup process.\n\nSuccessful SetupIntents result in payment credentials that are optimized for future payments.\nFor example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through\n[Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection\nto streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).\nIf you use the SetupIntent with a [Customer](https://docs.stripe.com/api#setup_intent_object-customer),\nit automatically attaches the resulting payment method to that Customer after successful setup.\nWe recommend using SetupIntents or [setup_future_usage](https://docs.stripe.com/api#payment_intent_object-setup_future_usage) on\nPaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.\n\nBy using SetupIntents, you can reduce friction for your customers, even as regulations change over time.\n\nRelated guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)",
1328
+ identifier: "Stripesetup_intent",
1329
+ }),
1330
+ );
1331
+ export const Stripesetup_attempt_payment_method_details = Schema.suspend(
1332
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details> =>
1333
+ Schema.StructWithRest(
1334
+ Schema.Struct({
1335
+ acss_debit: Schema.optionalKey(
1336
+ Stripesetup_attempt_payment_method_details_acss_debit,
1337
+ ),
1338
+ amazon_pay: Schema.optionalKey(
1339
+ Stripesetup_attempt_payment_method_details_amazon_pay,
1340
+ ),
1341
+ au_becs_debit: Schema.optionalKey(
1342
+ Stripesetup_attempt_payment_method_details_au_becs_debit,
1343
+ ),
1344
+ bacs_debit: Schema.optionalKey(
1345
+ Stripesetup_attempt_payment_method_details_bacs_debit,
1346
+ ),
1347
+ bancontact: Schema.optionalKey(
1348
+ Schema.suspend(
1349
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_bancontact> =>
1350
+ Stripesetup_attempt_payment_method_details_bancontact,
1351
+ ),
1352
+ ),
1353
+ blik: Schema.optionalKey(
1354
+ Stripesetup_attempt_payment_method_details_blik,
1355
+ ),
1356
+ boleto: Schema.optionalKey(
1357
+ Stripesetup_attempt_payment_method_details_boleto,
1358
+ ),
1359
+ card: Schema.optionalKey(
1360
+ Stripesetup_attempt_payment_method_details_card,
1361
+ ),
1362
+ card_present: Schema.optionalKey(
1363
+ Schema.suspend(
1364
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_card_present> =>
1365
+ Stripesetup_attempt_payment_method_details_card_present,
1366
+ ),
1367
+ ),
1368
+ cashapp: Schema.optionalKey(
1369
+ Stripesetup_attempt_payment_method_details_cashapp,
1370
+ ),
1371
+ ideal: Schema.optionalKey(
1372
+ Schema.suspend(
1373
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_ideal> =>
1374
+ Stripesetup_attempt_payment_method_details_ideal,
1375
+ ),
1376
+ ),
1377
+ kakao_pay: Schema.optionalKey(
1378
+ Stripesetup_attempt_payment_method_details_kakao_pay,
1379
+ ),
1380
+ klarna: Schema.optionalKey(
1381
+ Stripesetup_attempt_payment_method_details_klarna,
1382
+ ),
1383
+ kr_card: Schema.optionalKey(
1384
+ Stripesetup_attempt_payment_method_details_kr_card,
1385
+ ),
1386
+ link: Schema.optionalKey(
1387
+ Stripesetup_attempt_payment_method_details_link,
1388
+ ),
1389
+ naver_pay: Schema.optionalKey(
1390
+ Stripesetup_attempt_payment_method_details_naver_pay,
1391
+ ),
1392
+ nz_bank_account: Schema.optionalKey(
1393
+ Stripesetup_attempt_payment_method_details_nz_bank_account,
1394
+ ),
1395
+ paypal: Schema.optionalKey(
1396
+ Stripesetup_attempt_payment_method_details_paypal,
1397
+ ),
1398
+ payto: Schema.optionalKey(
1399
+ Stripesetup_attempt_payment_method_details_payto,
1400
+ ),
1401
+ pix: Schema.optionalKey(Stripesetup_attempt_payment_method_details_pix),
1402
+ revolut_pay: Schema.optionalKey(
1403
+ Stripesetup_attempt_payment_method_details_revolut_pay,
1404
+ ),
1405
+ satispay: Schema.optionalKey(
1406
+ Stripepayment_flows_private_payment_methods_satispay_setup_attempt_details,
1407
+ ),
1408
+ sepa_debit: Schema.optionalKey(
1409
+ Stripesetup_attempt_payment_method_details_sepa_debit,
1410
+ ),
1411
+ sofort: Schema.optionalKey(
1412
+ Schema.suspend(
1413
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_sofort> =>
1414
+ Stripesetup_attempt_payment_method_details_sofort,
1415
+ ),
1416
+ ),
1417
+ twint: Schema.optionalKey(
1418
+ Stripesetup_attempt_payment_method_details_twint,
1419
+ ),
1420
+ type: Schema.String.annotate({
1421
+ description:
1422
+ "The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.",
1423
+ }).check(
1424
+ Schema.isMaxCodePoints(5000).annotate({
1425
+ expected: "a string with at most 5000 code points",
1426
+ }),
1427
+ ),
1428
+ upi: Schema.optionalKey(Stripesetup_attempt_payment_method_details_upi),
1429
+ us_bank_account: Schema.optionalKey(
1430
+ Stripesetup_attempt_payment_method_details_us_bank_account,
1431
+ ),
1432
+ }),
1433
+ [
1434
+ Schema.Record(
1435
+ Schema.String,
1436
+ Schema.Json.annotate({ expected: "JSON value" }),
1437
+ ),
1438
+ ],
1439
+ ).annotate({
1440
+ title: "SetupAttemptPaymentMethodDetails",
1441
+ description: "",
1442
+ identifier: "Stripesetup_attempt_payment_method_details",
1443
+ }),
1444
+ );
1445
+ export const Stripesetup_attempt_payment_method_details_sofort =
1446
+ Schema.StructWithRest(
1447
+ Schema.Struct({
1448
+ bank_code: Schema.optionalKey(
1449
+ Schema.Union([
1450
+ Schema.String.annotate({
1451
+ description: "Bank code of bank associated with the bank account.",
1452
+ }).check(
1453
+ Schema.isMaxCodePoints(5000).annotate({
1454
+ expected: "a string with at most 5000 code points",
1455
+ }),
1456
+ ),
1457
+ Schema.Null,
1458
+ ]),
1459
+ ),
1460
+ bank_name: Schema.optionalKey(
1461
+ Schema.Union([
1462
+ Schema.String.annotate({
1463
+ description: "Name of the bank associated with the bank account.",
1464
+ }).check(
1465
+ Schema.isMaxCodePoints(5000).annotate({
1466
+ expected: "a string with at most 5000 code points",
1467
+ }),
1468
+ ),
1469
+ Schema.Null,
1470
+ ]),
1471
+ ),
1472
+ bic: Schema.optionalKey(
1473
+ Schema.Union([
1474
+ Schema.String.annotate({
1475
+ description:
1476
+ "Bank Identifier Code of the bank associated with the bank account.",
1477
+ }).check(
1478
+ Schema.isMaxCodePoints(5000).annotate({
1479
+ expected: "a string with at most 5000 code points",
1480
+ }),
1481
+ ),
1482
+ Schema.Null,
1483
+ ]),
1484
+ ),
1485
+ generated_sepa_debit: Schema.optionalKey(
1486
+ Schema.Union([
1487
+ Schema.Union([
1488
+ Schema.String.check(
1489
+ Schema.isMaxCodePoints(5000).annotate({
1490
+ expected: "a string with at most 5000 code points",
1491
+ }),
1492
+ ),
1493
+ Schema.suspend(
1494
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
1495
+ ),
1496
+ ]).annotate({
1497
+ description:
1498
+ "The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1499
+ }),
1500
+ Schema.Null,
1501
+ ]),
1502
+ ),
1503
+ generated_sepa_debit_mandate: Schema.optionalKey(
1504
+ Schema.Union([
1505
+ Schema.Union([
1506
+ Schema.String.check(
1507
+ Schema.isMaxCodePoints(5000).annotate({
1508
+ expected: "a string with at most 5000 code points",
1509
+ }),
1510
+ ),
1511
+ Schema.suspend((): Schema.Codec<Stripemandate> => Stripemandate),
1512
+ ]).annotate({
1513
+ description:
1514
+ "The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1515
+ }),
1516
+ Schema.Null,
1517
+ ]),
1518
+ ),
1519
+ iban_last4: Schema.optionalKey(
1520
+ Schema.Union([
1521
+ Schema.String.annotate({
1522
+ description: "Last four characters of the IBAN.",
1523
+ }).check(
1524
+ Schema.isMaxCodePoints(5000).annotate({
1525
+ expected: "a string with at most 5000 code points",
1526
+ }),
1527
+ ),
1528
+ Schema.Null,
1529
+ ]),
1530
+ ),
1531
+ preferred_language: Schema.optionalKey(
1532
+ Schema.Union([
1533
+ Schema.Literals(["de", "en", "fr", "nl"]).annotate({
1534
+ description:
1535
+ "Preferred language of the Sofort authorization page that the customer is redirected to.\nCan be one of `en`, `de`, `fr`, or `nl`",
1536
+ }),
1537
+ Schema.Null,
1538
+ ]),
1539
+ ),
1540
+ verified_name: Schema.optionalKey(
1541
+ Schema.Union([
1542
+ Schema.String.annotate({
1543
+ description:
1544
+ "Owner's verified full name. Values are verified or provided by Sofort directly\n(if supported) at the time of authorization or settlement. They cannot be set or mutated.",
1545
+ }).check(
1546
+ Schema.isMaxCodePoints(5000).annotate({
1547
+ expected: "a string with at most 5000 code points",
1548
+ }),
1549
+ ),
1550
+ Schema.Null,
1551
+ ]),
1552
+ ),
1553
+ }),
1554
+ [
1555
+ Schema.Record(
1556
+ Schema.String,
1557
+ Schema.Json.annotate({ expected: "JSON value" }),
1558
+ ),
1559
+ ],
1560
+ ).annotate({
1561
+ title: "setup_attempt_payment_method_details_sofort",
1562
+ description: "",
1563
+ identifier: "Stripesetup_attempt_payment_method_details_sofort",
1564
+ });
1565
+ export const Stripesetup_attempt_payment_method_details_ideal =
1566
+ Schema.StructWithRest(
1567
+ Schema.Struct({
1568
+ bank: Schema.optionalKey(
1569
+ Schema.Union([
1570
+ Schema.Literals([
1571
+ "abn_amro",
1572
+ "adyen",
1573
+ "asn_bank",
1574
+ "bunq",
1575
+ "buut",
1576
+ "finom",
1577
+ "handelsbanken",
1578
+ "ing",
1579
+ "knab",
1580
+ "mollie",
1581
+ "moneyou",
1582
+ "n26",
1583
+ "nn",
1584
+ "rabobank",
1585
+ "regiobank",
1586
+ "revolut",
1587
+ "sns_bank",
1588
+ "triodos_bank",
1589
+ "van_lanschot",
1590
+ "yoursafe",
1591
+ ]).annotate({
1592
+ description:
1593
+ "The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.",
1594
+ }),
1595
+ Schema.Null,
1596
+ ]),
1597
+ ),
1598
+ bic: Schema.optionalKey(
1599
+ Schema.Union([
1600
+ Schema.Literals([
1601
+ "ABNANL2A",
1602
+ "ADYBNL2A",
1603
+ "ASNBNL21",
1604
+ "BITSNL2A",
1605
+ "BUNQNL2A",
1606
+ "BUUTNL2A",
1607
+ "FNOMNL22",
1608
+ "FVLBNL22",
1609
+ "HANDNL2A",
1610
+ "INGBNL2A",
1611
+ "KNABNL2H",
1612
+ "MLLENL2A",
1613
+ "MOYONL21",
1614
+ "NNBANL2G",
1615
+ "NTSBDEB1",
1616
+ "RABONL2U",
1617
+ "RBRBNL21",
1618
+ "REVOIE23",
1619
+ "REVOLT21",
1620
+ "SNSBNL2A",
1621
+ "TRIONL2U",
1622
+ ]).annotate({
1623
+ description: "The Bank Identifier Code of the customer's bank.",
1624
+ }),
1625
+ Schema.Null,
1626
+ ]),
1627
+ ),
1628
+ generated_sepa_debit: Schema.optionalKey(
1629
+ Schema.Union([
1630
+ Schema.Union([
1631
+ Schema.String.check(
1632
+ Schema.isMaxCodePoints(5000).annotate({
1633
+ expected: "a string with at most 5000 code points",
1634
+ }),
1635
+ ),
1636
+ Schema.suspend(
1637
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
1638
+ ),
1639
+ ]).annotate({
1640
+ description:
1641
+ "The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1642
+ }),
1643
+ Schema.Null,
1644
+ ]),
1645
+ ),
1646
+ generated_sepa_debit_mandate: Schema.optionalKey(
1647
+ Schema.Union([
1648
+ Schema.Union([
1649
+ Schema.String.check(
1650
+ Schema.isMaxCodePoints(5000).annotate({
1651
+ expected: "a string with at most 5000 code points",
1652
+ }),
1653
+ ),
1654
+ Schema.suspend((): Schema.Codec<Stripemandate> => Stripemandate),
1655
+ ]).annotate({
1656
+ description:
1657
+ "The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1658
+ }),
1659
+ Schema.Null,
1660
+ ]),
1661
+ ),
1662
+ iban_last4: Schema.optionalKey(
1663
+ Schema.Union([
1664
+ Schema.String.annotate({
1665
+ description: "Last four characters of the IBAN.",
1666
+ }).check(
1667
+ Schema.isMaxCodePoints(5000).annotate({
1668
+ expected: "a string with at most 5000 code points",
1669
+ }),
1670
+ ),
1671
+ Schema.Null,
1672
+ ]),
1673
+ ),
1674
+ verified_name: Schema.optionalKey(
1675
+ Schema.Union([
1676
+ Schema.String.annotate({
1677
+ description:
1678
+ "Owner's verified full name. Values are verified or provided by iDEAL directly\n(if supported) at the time of authorization or settlement. They cannot be set or mutated.",
1679
+ }).check(
1680
+ Schema.isMaxCodePoints(5000).annotate({
1681
+ expected: "a string with at most 5000 code points",
1682
+ }),
1683
+ ),
1684
+ Schema.Null,
1685
+ ]),
1686
+ ),
1687
+ }),
1688
+ [
1689
+ Schema.Record(
1690
+ Schema.String,
1691
+ Schema.Json.annotate({ expected: "JSON value" }),
1692
+ ),
1693
+ ],
1694
+ ).annotate({
1695
+ title: "setup_attempt_payment_method_details_ideal",
1696
+ description: "",
1697
+ identifier: "Stripesetup_attempt_payment_method_details_ideal",
1698
+ });
1699
+ export const Stripesetup_attempt_payment_method_details_card_present =
1700
+ Schema.suspend(
1701
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_card_present> =>
1702
+ Schema.StructWithRest(
1703
+ Schema.Struct({
1704
+ generated_card: Schema.optionalKey(
1705
+ Schema.Union([
1706
+ Schema.Union([
1707
+ Schema.String.check(
1708
+ Schema.isMaxCodePoints(5000).annotate({
1709
+ expected: "a string with at most 5000 code points",
1710
+ }),
1711
+ ),
1712
+ Schema.suspend(
1713
+ (): Schema.Codec<Stripepayment_method> =>
1714
+ Stripepayment_method,
1715
+ ),
1716
+ ]).annotate({
1717
+ description:
1718
+ "The ID of the Card PaymentMethod which was generated by this SetupAttempt.",
1719
+ }),
1720
+ Schema.Null,
1721
+ ]),
1722
+ ),
1723
+ offline: Schema.optionalKey(
1724
+ Schema.Union([
1725
+ Schema.Union([
1726
+ Stripepayment_method_details_card_present_offline,
1727
+ ]).annotate({
1728
+ description: "Details about payments collected offline.",
1729
+ }),
1730
+ Schema.Null,
1731
+ ]),
1732
+ ),
1733
+ }),
1734
+ [
1735
+ Schema.Record(
1736
+ Schema.String,
1737
+ Schema.Json.annotate({ expected: "JSON value" }),
1738
+ ),
1739
+ ],
1740
+ ).annotate({
1741
+ title: "setup_attempt_payment_method_details_card_present",
1742
+ description: "",
1743
+ identifier: "Stripesetup_attempt_payment_method_details_card_present",
1744
+ }),
1745
+ );
1746
+ export const Stripesetup_attempt_payment_method_details_bancontact =
1747
+ Schema.StructWithRest(
1748
+ Schema.Struct({
1749
+ bank_code: Schema.optionalKey(
1750
+ Schema.Union([
1751
+ Schema.String.annotate({
1752
+ description: "Bank code of bank associated with the bank account.",
1753
+ }).check(
1754
+ Schema.isMaxCodePoints(5000).annotate({
1755
+ expected: "a string with at most 5000 code points",
1756
+ }),
1757
+ ),
1758
+ Schema.Null,
1759
+ ]),
1760
+ ),
1761
+ bank_name: Schema.optionalKey(
1762
+ Schema.Union([
1763
+ Schema.String.annotate({
1764
+ description: "Name of the bank associated with the bank account.",
1765
+ }).check(
1766
+ Schema.isMaxCodePoints(5000).annotate({
1767
+ expected: "a string with at most 5000 code points",
1768
+ }),
1769
+ ),
1770
+ Schema.Null,
1771
+ ]),
1772
+ ),
1773
+ bic: Schema.optionalKey(
1774
+ Schema.Union([
1775
+ Schema.String.annotate({
1776
+ description:
1777
+ "Bank Identifier Code of the bank associated with the bank account.",
1778
+ }).check(
1779
+ Schema.isMaxCodePoints(5000).annotate({
1780
+ expected: "a string with at most 5000 code points",
1781
+ }),
1782
+ ),
1783
+ Schema.Null,
1784
+ ]),
1785
+ ),
1786
+ generated_sepa_debit: Schema.optionalKey(
1787
+ Schema.Union([
1788
+ Schema.Union([
1789
+ Schema.String.check(
1790
+ Schema.isMaxCodePoints(5000).annotate({
1791
+ expected: "a string with at most 5000 code points",
1792
+ }),
1793
+ ),
1794
+ Schema.suspend(
1795
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
1796
+ ),
1797
+ ]).annotate({
1798
+ description:
1799
+ "The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1800
+ }),
1801
+ Schema.Null,
1802
+ ]),
1803
+ ),
1804
+ generated_sepa_debit_mandate: Schema.optionalKey(
1805
+ Schema.Union([
1806
+ Schema.Union([
1807
+ Schema.String.check(
1808
+ Schema.isMaxCodePoints(5000).annotate({
1809
+ expected: "a string with at most 5000 code points",
1810
+ }),
1811
+ ),
1812
+ Schema.suspend((): Schema.Codec<Stripemandate> => Stripemandate),
1813
+ ]).annotate({
1814
+ description:
1815
+ "The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.",
1816
+ }),
1817
+ Schema.Null,
1818
+ ]),
1819
+ ),
1820
+ iban_last4: Schema.optionalKey(
1821
+ Schema.Union([
1822
+ Schema.String.annotate({
1823
+ description: "Last four characters of the IBAN.",
1824
+ }).check(
1825
+ Schema.isMaxCodePoints(5000).annotate({
1826
+ expected: "a string with at most 5000 code points",
1827
+ }),
1828
+ ),
1829
+ Schema.Null,
1830
+ ]),
1831
+ ),
1832
+ preferred_language: Schema.optionalKey(
1833
+ Schema.Union([
1834
+ Schema.Literals(["de", "en", "fr", "nl"]).annotate({
1835
+ description:
1836
+ "Preferred language of the Bancontact authorization page that the customer is redirected to.\nCan be one of `en`, `de`, `fr`, or `nl`",
1837
+ }),
1838
+ Schema.Null,
1839
+ ]),
1840
+ ),
1841
+ verified_name: Schema.optionalKey(
1842
+ Schema.Union([
1843
+ Schema.String.annotate({
1844
+ description:
1845
+ "Owner's verified full name. Values are verified or provided by Bancontact directly\n(if supported) at the time of authorization or settlement. They cannot be set or mutated.",
1846
+ }).check(
1847
+ Schema.isMaxCodePoints(5000).annotate({
1848
+ expected: "a string with at most 5000 code points",
1849
+ }),
1850
+ ),
1851
+ Schema.Null,
1852
+ ]),
1853
+ ),
1854
+ }),
1855
+ [
1856
+ Schema.Record(
1857
+ Schema.String,
1858
+ Schema.Json.annotate({ expected: "JSON value" }),
1859
+ ),
1860
+ ],
1861
+ ).annotate({
1862
+ title: "setup_attempt_payment_method_details_bancontact",
1863
+ description: "",
1864
+ identifier: "Stripesetup_attempt_payment_method_details_bancontact",
1865
+ });
1866
+ export const Stripesetup_attempt_payment_method_details_acss_debit =
1867
+ Schema.Record(
1868
+ Schema.String,
1869
+ Schema.Json.annotate({ expected: "JSON value" }),
1870
+ ).annotate({
1871
+ title: "setup_attempt_payment_method_details_acss_debit",
1872
+ description: "",
1873
+ identifier: "Stripesetup_attempt_payment_method_details_acss_debit",
1874
+ });
1875
+ export const Stripesetup_attempt_payment_method_details_amazon_pay =
1876
+ Schema.Record(
1877
+ Schema.String,
1878
+ Schema.Json.annotate({ expected: "JSON value" }),
1879
+ ).annotate({
1880
+ title: "setup_attempt_payment_method_details_amazon_pay",
1881
+ description: "",
1882
+ identifier: "Stripesetup_attempt_payment_method_details_amazon_pay",
1883
+ });
1884
+ export const Stripesetup_attempt_payment_method_details_au_becs_debit =
1885
+ Schema.Record(
1886
+ Schema.String,
1887
+ Schema.Json.annotate({ expected: "JSON value" }),
1888
+ ).annotate({
1889
+ title: "setup_attempt_payment_method_details_au_becs_debit",
1890
+ description: "",
1891
+ identifier: "Stripesetup_attempt_payment_method_details_au_becs_debit",
1892
+ });
1893
+ export const Stripesetup_attempt_payment_method_details_bacs_debit =
1894
+ Schema.Record(
1895
+ Schema.String,
1896
+ Schema.Json.annotate({ expected: "JSON value" }),
1897
+ ).annotate({
1898
+ title: "setup_attempt_payment_method_details_bacs_debit",
1899
+ description: "",
1900
+ identifier: "Stripesetup_attempt_payment_method_details_bacs_debit",
1901
+ });
1902
+ export const Stripesetup_attempt_payment_method_details_blik =
1903
+ Schema.StructWithRest(
1904
+ Schema.Struct({
1905
+ buyer_id: Schema.optionalKey(
1906
+ Schema.Union([
1907
+ Schema.String.annotate({
1908
+ description:
1909
+ "A unique and immutable identifier assigned by BLIK to every buyer.",
1910
+ }).check(
1911
+ Schema.isMaxCodePoints(5000).annotate({
1912
+ expected: "a string with at most 5000 code points",
1913
+ }),
1914
+ ),
1915
+ Schema.Null,
1916
+ ]),
1917
+ ),
1918
+ }),
1919
+ [
1920
+ Schema.Record(
1921
+ Schema.String,
1922
+ Schema.Json.annotate({ expected: "JSON value" }),
1923
+ ),
1924
+ ],
1925
+ ).annotate({
1926
+ title: "setup_attempt_payment_method_details_blik",
1927
+ description: "",
1928
+ identifier: "Stripesetup_attempt_payment_method_details_blik",
1929
+ });
1930
+ export const Stripesetup_attempt_payment_method_details_boleto = Schema.Record(
1931
+ Schema.String,
1932
+ Schema.Json.annotate({ expected: "JSON value" }),
1933
+ ).annotate({
1934
+ title: "setup_attempt_payment_method_details_boleto",
1935
+ description: "",
1936
+ identifier: "Stripesetup_attempt_payment_method_details_boleto",
1937
+ });
1938
+ export const Stripesetup_attempt_payment_method_details_card_checks =
1939
+ Schema.StructWithRest(
1940
+ Schema.Struct({
1941
+ address_line1_check: Schema.optionalKey(
1942
+ Schema.Union([
1943
+ Schema.String.annotate({
1944
+ description:
1945
+ "If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.",
1946
+ }).check(
1947
+ Schema.isMaxCodePoints(5000).annotate({
1948
+ expected: "a string with at most 5000 code points",
1949
+ }),
1950
+ ),
1951
+ Schema.Null,
1952
+ ]),
1953
+ ),
1954
+ address_postal_code_check: Schema.optionalKey(
1955
+ Schema.Union([
1956
+ Schema.String.annotate({
1957
+ description:
1958
+ "If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.",
1959
+ }).check(
1960
+ Schema.isMaxCodePoints(5000).annotate({
1961
+ expected: "a string with at most 5000 code points",
1962
+ }),
1963
+ ),
1964
+ Schema.Null,
1965
+ ]),
1966
+ ),
1967
+ cvc_check: Schema.optionalKey(
1968
+ Schema.Union([
1969
+ Schema.String.annotate({
1970
+ description:
1971
+ "If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.",
1972
+ }).check(
1973
+ Schema.isMaxCodePoints(5000).annotate({
1974
+ expected: "a string with at most 5000 code points",
1975
+ }),
1976
+ ),
1977
+ Schema.Null,
1978
+ ]),
1979
+ ),
1980
+ }),
1981
+ [
1982
+ Schema.Record(
1983
+ Schema.String,
1984
+ Schema.Json.annotate({ expected: "JSON value" }),
1985
+ ),
1986
+ ],
1987
+ ).annotate({
1988
+ title: "setup_attempt_payment_method_details_card_checks",
1989
+ description: "",
1990
+ identifier: "Stripesetup_attempt_payment_method_details_card_checks",
1991
+ });
1992
+ export const Stripesetup_attempt_payment_method_details_cashapp = Schema.Record(
1993
+ Schema.String,
1994
+ Schema.Json.annotate({ expected: "JSON value" }),
1995
+ ).annotate({
1996
+ title: "setup_attempt_payment_method_details_cashapp",
1997
+ description: "",
1998
+ identifier: "Stripesetup_attempt_payment_method_details_cashapp",
1999
+ });
2000
+ export const Stripesetup_attempt_payment_method_details_kakao_pay =
2001
+ Schema.Record(
2002
+ Schema.String,
2003
+ Schema.Json.annotate({ expected: "JSON value" }),
2004
+ ).annotate({
2005
+ title: "setup_attempt_payment_method_details_kakao_pay",
2006
+ description: "",
2007
+ identifier: "Stripesetup_attempt_payment_method_details_kakao_pay",
2008
+ });
2009
+ export const Stripesetup_attempt_payment_method_details_klarna = Schema.Record(
2010
+ Schema.String,
2011
+ Schema.Json.annotate({ expected: "JSON value" }),
2012
+ ).annotate({
2013
+ title: "setup_attempt_payment_method_details_klarna",
2014
+ description: "",
2015
+ identifier: "Stripesetup_attempt_payment_method_details_klarna",
2016
+ });
2017
+ export const Stripesetup_attempt_payment_method_details_kr_card = Schema.Record(
2018
+ Schema.String,
2019
+ Schema.Json.annotate({ expected: "JSON value" }),
2020
+ ).annotate({
2021
+ title: "setup_attempt_payment_method_details_kr_card",
2022
+ description: "",
2023
+ identifier: "Stripesetup_attempt_payment_method_details_kr_card",
2024
+ });
2025
+ export const Stripesetup_attempt_payment_method_details_link = Schema.Record(
2026
+ Schema.String,
2027
+ Schema.Json.annotate({ expected: "JSON value" }),
2028
+ ).annotate({
2029
+ title: "setup_attempt_payment_method_details_link",
2030
+ description: "",
2031
+ identifier: "Stripesetup_attempt_payment_method_details_link",
2032
+ });
2033
+ export const Stripesetup_attempt_payment_method_details_naver_pay =
2034
+ Schema.StructWithRest(
2035
+ Schema.Struct({
2036
+ buyer_id: Schema.optionalKey(
2037
+ Schema.String.annotate({
2038
+ description:
2039
+ "Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.",
2040
+ }).check(
2041
+ Schema.isMaxCodePoints(5000).annotate({
2042
+ expected: "a string with at most 5000 code points",
2043
+ }),
2044
+ ),
2045
+ ),
2046
+ }),
2047
+ [
2048
+ Schema.Record(
2049
+ Schema.String,
2050
+ Schema.Json.annotate({ expected: "JSON value" }),
2051
+ ),
2052
+ ],
2053
+ ).annotate({
2054
+ title: "setup_attempt_payment_method_details_naver_pay",
2055
+ description: "",
2056
+ identifier: "Stripesetup_attempt_payment_method_details_naver_pay",
2057
+ });
2058
+ export const Stripesetup_attempt_payment_method_details_nz_bank_account =
2059
+ Schema.Record(
2060
+ Schema.String,
2061
+ Schema.Json.annotate({ expected: "JSON value" }),
2062
+ ).annotate({
2063
+ title: "setup_attempt_payment_method_details_nz_bank_account",
2064
+ description: "",
2065
+ identifier: "Stripesetup_attempt_payment_method_details_nz_bank_account",
2066
+ });
2067
+ export const Stripesetup_attempt_payment_method_details_paypal = Schema.Record(
2068
+ Schema.String,
2069
+ Schema.Json.annotate({ expected: "JSON value" }),
2070
+ ).annotate({
2071
+ title: "setup_attempt_payment_method_details_paypal",
2072
+ description: "",
2073
+ identifier: "Stripesetup_attempt_payment_method_details_paypal",
2074
+ });
2075
+ export const Stripesetup_attempt_payment_method_details_payto = Schema.Record(
2076
+ Schema.String,
2077
+ Schema.Json.annotate({ expected: "JSON value" }),
2078
+ ).annotate({
2079
+ title: "setup_attempt_payment_method_details_payto",
2080
+ description: "",
2081
+ identifier: "Stripesetup_attempt_payment_method_details_payto",
2082
+ });
2083
+ export const Stripesetup_attempt_payment_method_details_pix =
2084
+ Schema.StructWithRest(
2085
+ Schema.Struct({
2086
+ fingerprint: Schema.optionalKey(
2087
+ Schema.Union([
2088
+ Schema.String.annotate({
2089
+ description:
2090
+ "Uniquely identifies this particular Pix account. You can use this attribute to check whether two Pix accounts are the same.",
2091
+ }).check(
2092
+ Schema.isMaxCodePoints(5000).annotate({
2093
+ expected: "a string with at most 5000 code points",
2094
+ }),
2095
+ ),
2096
+ Schema.Null,
2097
+ ]),
2098
+ ),
2099
+ }),
2100
+ [
2101
+ Schema.Record(
2102
+ Schema.String,
2103
+ Schema.Json.annotate({ expected: "JSON value" }),
2104
+ ),
2105
+ ],
2106
+ ).annotate({
2107
+ title: "setup_attempt_payment_method_details_pix",
2108
+ description: "",
2109
+ identifier: "Stripesetup_attempt_payment_method_details_pix",
2110
+ });
2111
+ export const Stripesetup_attempt_payment_method_details_revolut_pay =
2112
+ Schema.Record(
2113
+ Schema.String,
2114
+ Schema.Json.annotate({ expected: "JSON value" }),
2115
+ ).annotate({
2116
+ title: "setup_attempt_payment_method_details_revolut_pay",
2117
+ description: "",
2118
+ identifier: "Stripesetup_attempt_payment_method_details_revolut_pay",
2119
+ });
2120
+ export const Stripesetup_attempt_payment_method_details_sepa_debit =
2121
+ Schema.Record(
2122
+ Schema.String,
2123
+ Schema.Json.annotate({ expected: "JSON value" }),
2124
+ ).annotate({
2125
+ title: "setup_attempt_payment_method_details_sepa_debit",
2126
+ description: "",
2127
+ identifier: "Stripesetup_attempt_payment_method_details_sepa_debit",
2128
+ });
2129
+ export const Stripesetup_attempt_payment_method_details_twint = Schema.Record(
2130
+ Schema.String,
2131
+ Schema.Json.annotate({ expected: "JSON value" }),
2132
+ ).annotate({
2133
+ title: "setup_attempt_payment_method_details_twint",
2134
+ description: "",
2135
+ identifier: "Stripesetup_attempt_payment_method_details_twint",
2136
+ });
2137
+ export const Stripesetup_attempt_payment_method_details_upi = Schema.Record(
2138
+ Schema.String,
2139
+ Schema.Json.annotate({ expected: "JSON value" }),
2140
+ ).annotate({
2141
+ title: "setup_attempt_payment_method_details_upi",
2142
+ description: "",
2143
+ identifier: "Stripesetup_attempt_payment_method_details_upi",
2144
+ });
2145
+ export const Stripesetup_attempt_payment_method_details_us_bank_account =
2146
+ Schema.Record(
2147
+ Schema.String,
2148
+ Schema.Json.annotate({ expected: "JSON value" }),
2149
+ ).annotate({
2150
+ title: "setup_attempt_payment_method_details_us_bank_account",
2151
+ description: "",
2152
+ identifier: "Stripesetup_attempt_payment_method_details_us_bank_account",
2153
+ });
2154
+ export const Stripesetup_intent_next_action_pix_display_qr_code =
2155
+ Schema.StructWithRest(
2156
+ Schema.Struct({
2157
+ data: Schema.String.annotate({
2158
+ description:
2159
+ "The raw data string used to generate QR code, it should be used together with QR code library.",
2160
+ }).check(
2161
+ Schema.isMaxCodePoints(5000).annotate({
2162
+ expected: "a string with at most 5000 code points",
2163
+ }),
2164
+ ),
2165
+ expires_at: Schema.Number.annotate({
2166
+ description: "The date (unix timestamp) when the PIX expires.",
2167
+ format: "unix-time",
2168
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2169
+ hosted_instructions_url: Schema.String.annotate({
2170
+ description:
2171
+ "The URL to the hosted pix instructions page, which allows customers to view the pix QR code.",
2172
+ }).check(
2173
+ Schema.isMaxCodePoints(5000).annotate({
2174
+ expected: "a string with at most 5000 code points",
2175
+ }),
2176
+ ),
2177
+ image_url_png: Schema.String.annotate({
2178
+ description: "The image_url_png string used to render png QR code",
2179
+ }).check(
2180
+ Schema.isMaxCodePoints(5000).annotate({
2181
+ expected: "a string with at most 5000 code points",
2182
+ }),
2183
+ ),
2184
+ image_url_svg: Schema.String.annotate({
2185
+ description: "The image_url_svg string used to render svg QR code",
2186
+ }).check(
2187
+ Schema.isMaxCodePoints(5000).annotate({
2188
+ expected: "a string with at most 5000 code points",
2189
+ }),
2190
+ ),
2191
+ }),
2192
+ [
2193
+ Schema.Record(
2194
+ Schema.String,
2195
+ Schema.Json.annotate({ expected: "JSON value" }),
2196
+ ),
2197
+ ],
2198
+ ).annotate({
2199
+ title: "SetupIntentNextActionPixDisplayQrCode",
2200
+ description: "",
2201
+ identifier: "Stripesetup_intent_next_action_pix_display_qr_code",
2202
+ });
2203
+ export const Stripesetup_intent_next_action_redirect_to_url =
2204
+ Schema.StructWithRest(
2205
+ Schema.Struct({
2206
+ return_url: Schema.optionalKey(
2207
+ Schema.Union([
2208
+ Schema.String.annotate({
2209
+ description:
2210
+ "If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.",
2211
+ }).check(
2212
+ Schema.isMaxCodePoints(5000).annotate({
2213
+ expected: "a string with at most 5000 code points",
2214
+ }),
2215
+ ),
2216
+ Schema.Null,
2217
+ ]),
2218
+ ),
2219
+ url: Schema.optionalKey(
2220
+ Schema.Union([
2221
+ Schema.String.annotate({
2222
+ description:
2223
+ "The URL you must redirect your customer to in order to authenticate.",
2224
+ }).check(
2225
+ Schema.isMaxCodePoints(5000).annotate({
2226
+ expected: "a string with at most 5000 code points",
2227
+ }),
2228
+ ),
2229
+ Schema.Null,
2230
+ ]),
2231
+ ),
2232
+ }),
2233
+ [
2234
+ Schema.Record(
2235
+ Schema.String,
2236
+ Schema.Json.annotate({ expected: "JSON value" }),
2237
+ ),
2238
+ ],
2239
+ ).annotate({
2240
+ title: "SetupIntentNextActionRedirectToUrl",
2241
+ description: "",
2242
+ identifier: "Stripesetup_intent_next_action_redirect_to_url",
2243
+ });
2244
+ export const Stripesetup_intent_next_action_verify_with_microdeposits =
2245
+ Schema.StructWithRest(
2246
+ Schema.Struct({
2247
+ arrival_date: Schema.Number.annotate({
2248
+ description:
2249
+ "The timestamp when the microdeposits are expected to land.",
2250
+ format: "unix-time",
2251
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2252
+ hosted_verification_url: Schema.String.annotate({
2253
+ description:
2254
+ "The URL for the hosted verification page, which allows customers to verify their bank account.",
2255
+ }).check(
2256
+ Schema.isMaxCodePoints(5000).annotate({
2257
+ expected: "a string with at most 5000 code points",
2258
+ }),
2259
+ ),
2260
+ microdeposit_type: Schema.optionalKey(
2261
+ Schema.Union([
2262
+ Schema.Literals(["amounts", "descriptor_code"]).annotate({
2263
+ description:
2264
+ "The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.",
2265
+ }),
2266
+ Schema.Null,
2267
+ ]),
2268
+ ),
2269
+ }),
2270
+ [
2271
+ Schema.Record(
2272
+ Schema.String,
2273
+ Schema.Json.annotate({ expected: "JSON value" }),
2274
+ ),
2275
+ ],
2276
+ ).annotate({
2277
+ title: "SetupIntentNextActionVerifyWithMicrodeposits",
2278
+ description: "",
2279
+ identifier: "Stripesetup_intent_next_action_verify_with_microdeposits",
2280
+ });
2281
+ export const Stripesetup_intent_payment_method_options_mandate_options_acss_debit =
2282
+ Schema.StructWithRest(
2283
+ Schema.Struct({
2284
+ custom_mandate_url: Schema.optionalKey(
2285
+ Schema.String.annotate({
2286
+ description: "A URL for custom mandate text",
2287
+ }).check(
2288
+ Schema.isMaxCodePoints(5000).annotate({
2289
+ expected: "a string with at most 5000 code points",
2290
+ }),
2291
+ ),
2292
+ ),
2293
+ default_for: Schema.optionalKey(
2294
+ Schema.Array(Schema.Literals(["invoice", "subscription"])).annotate({
2295
+ description:
2296
+ "List of Stripe products where this mandate can be selected automatically.",
2297
+ }),
2298
+ ),
2299
+ interval_description: Schema.optionalKey(
2300
+ Schema.Union([
2301
+ Schema.String.annotate({
2302
+ description:
2303
+ "Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.",
2304
+ }).check(
2305
+ Schema.isMaxCodePoints(5000).annotate({
2306
+ expected: "a string with at most 5000 code points",
2307
+ }),
2308
+ ),
2309
+ Schema.Null,
2310
+ ]),
2311
+ ),
2312
+ payment_schedule: Schema.optionalKey(
2313
+ Schema.Union([
2314
+ Schema.Literals(["combined", "interval", "sporadic"]).annotate({
2315
+ description: "Payment schedule for the mandate.",
2316
+ }),
2317
+ Schema.Null,
2318
+ ]),
2319
+ ),
2320
+ transaction_type: Schema.optionalKey(
2321
+ Schema.Union([
2322
+ Schema.Literals(["business", "personal"]).annotate({
2323
+ description: "Transaction type of the mandate.",
2324
+ }),
2325
+ Schema.Null,
2326
+ ]),
2327
+ ),
2328
+ }),
2329
+ [
2330
+ Schema.Record(
2331
+ Schema.String,
2332
+ Schema.Json.annotate({ expected: "JSON value" }),
2333
+ ),
2334
+ ],
2335
+ ).annotate({
2336
+ title: "setup_intent_payment_method_options_mandate_options_acss_debit",
2337
+ description: "",
2338
+ identifier:
2339
+ "Stripesetup_intent_payment_method_options_mandate_options_acss_debit",
2340
+ });
2341
+ export const Stripesetup_intent_payment_method_options_mandate_options_payto =
2342
+ Schema.StructWithRest(
2343
+ Schema.Struct({
2344
+ amount: Schema.optionalKey(
2345
+ Schema.Union([
2346
+ Schema.Number.annotate({
2347
+ description:
2348
+ "Amount that will be collected. It is required when `amount_type` is `fixed`.",
2349
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2350
+ Schema.Null,
2351
+ ]),
2352
+ ),
2353
+ amount_type: Schema.optionalKey(
2354
+ Schema.Union([
2355
+ Schema.Literals(["fixed", "maximum"]).annotate({
2356
+ description:
2357
+ "The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.",
2358
+ }),
2359
+ Schema.Null,
2360
+ ]),
2361
+ ),
2362
+ end_date: Schema.optionalKey(
2363
+ Schema.Union([
2364
+ Schema.String.annotate({
2365
+ description:
2366
+ "Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.",
2367
+ }).check(
2368
+ Schema.isMaxCodePoints(5000).annotate({
2369
+ expected: "a string with at most 5000 code points",
2370
+ }),
2371
+ ),
2372
+ Schema.Null,
2373
+ ]),
2374
+ ),
2375
+ payment_schedule: Schema.optionalKey(
2376
+ Schema.Union([
2377
+ Schema.Literals([
2378
+ "adhoc",
2379
+ "annual",
2380
+ "daily",
2381
+ "fortnightly",
2382
+ "monthly",
2383
+ "quarterly",
2384
+ "semi_annual",
2385
+ "weekly",
2386
+ ]).annotate({
2387
+ description:
2388
+ "The periodicity at which payments will be collected. Defaults to `adhoc`.",
2389
+ }),
2390
+ Schema.Null,
2391
+ ]),
2392
+ ),
2393
+ payments_per_period: Schema.optionalKey(
2394
+ Schema.Union([
2395
+ Schema.Number.annotate({
2396
+ description:
2397
+ "The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.",
2398
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2399
+ Schema.Null,
2400
+ ]),
2401
+ ),
2402
+ purpose: Schema.optionalKey(
2403
+ Schema.Union([
2404
+ Schema.Literals([
2405
+ "dependant_support",
2406
+ "government",
2407
+ "loan",
2408
+ "mortgage",
2409
+ "other",
2410
+ "pension",
2411
+ "personal",
2412
+ "retail",
2413
+ "salary",
2414
+ "tax",
2415
+ "utility",
2416
+ ]).annotate({
2417
+ description:
2418
+ "The purpose for which payments are made. Has a default value based on your merchant category code.",
2419
+ }),
2420
+ Schema.Null,
2421
+ ]),
2422
+ ),
2423
+ start_date: Schema.optionalKey(
2424
+ Schema.Union([
2425
+ Schema.String.annotate({
2426
+ description:
2427
+ "Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.",
2428
+ }).check(
2429
+ Schema.isMaxCodePoints(5000).annotate({
2430
+ expected: "a string with at most 5000 code points",
2431
+ }),
2432
+ ),
2433
+ Schema.Null,
2434
+ ]),
2435
+ ),
2436
+ }),
2437
+ [
2438
+ Schema.Record(
2439
+ Schema.String,
2440
+ Schema.Json.annotate({ expected: "JSON value" }),
2441
+ ),
2442
+ ],
2443
+ ).annotate({
2444
+ title: "setup_intent_payment_method_options_mandate_options_payto",
2445
+ description: "",
2446
+ identifier:
2447
+ "Stripesetup_intent_payment_method_options_mandate_options_payto",
2448
+ });
2449
+ export const Stripesetup_intent_payment_method_options_amazon_pay =
2450
+ Schema.Record(
2451
+ Schema.String,
2452
+ Schema.Json.annotate({ expected: "JSON value" }),
2453
+ ).annotate({
2454
+ title: "setup_intent_payment_method_options_amazon_pay",
2455
+ description: "",
2456
+ identifier: "Stripesetup_intent_payment_method_options_amazon_pay",
2457
+ });
2458
+ export const Stripesetup_intent_payment_method_options_mandate_options_bacs_debit =
2459
+ Schema.StructWithRest(
2460
+ Schema.Struct({
2461
+ reference_prefix: Schema.optionalKey(
2462
+ Schema.String.annotate({
2463
+ description:
2464
+ "Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.",
2465
+ }).check(
2466
+ Schema.isMaxCodePoints(5000).annotate({
2467
+ expected: "a string with at most 5000 code points",
2468
+ }),
2469
+ ),
2470
+ ),
2471
+ }),
2472
+ [
2473
+ Schema.Record(
2474
+ Schema.String,
2475
+ Schema.Json.annotate({ expected: "JSON value" }),
2476
+ ),
2477
+ ],
2478
+ ).annotate({
2479
+ title: "setup_intent_payment_method_options_mandate_options_bacs_debit",
2480
+ description: "",
2481
+ identifier:
2482
+ "Stripesetup_intent_payment_method_options_mandate_options_bacs_debit",
2483
+ });
2484
+ export const Stripesetup_intent_payment_method_options_bizum = Schema.Record(
2485
+ Schema.String,
2486
+ Schema.Json.annotate({ expected: "JSON value" }),
2487
+ ).annotate({
2488
+ title: "setup_intent_payment_method_options_bizum",
2489
+ description: "",
2490
+ identifier: "Stripesetup_intent_payment_method_options_bizum",
2491
+ });
2492
+ export const Stripesetup_intent_payment_method_options_mandate_options_blik =
2493
+ Schema.StructWithRest(
2494
+ Schema.Struct({
2495
+ expires_at: Schema.optionalKey(
2496
+ Schema.Union([
2497
+ Schema.Number.annotate({
2498
+ description: "Date at which the mandate expires.",
2499
+ format: "unix-time",
2500
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2501
+ Schema.Null,
2502
+ ]),
2503
+ ),
2504
+ type: Schema.optionalKey(
2505
+ Schema.Union([
2506
+ Schema.Literal("off_session").annotate({
2507
+ description: "Type of the mandate.",
2508
+ }),
2509
+ Schema.Null,
2510
+ ]),
2511
+ ),
2512
+ }),
2513
+ [
2514
+ Schema.Record(
2515
+ Schema.String,
2516
+ Schema.Json.annotate({ expected: "JSON value" }),
2517
+ ),
2518
+ ],
2519
+ ).annotate({
2520
+ title: "setup_intent_payment_method_options_mandate_options_blik",
2521
+ description: "",
2522
+ identifier:
2523
+ "Stripesetup_intent_payment_method_options_mandate_options_blik",
2524
+ });
2525
+ export const Stripesetup_intent_payment_method_options_card_mandate_options =
2526
+ Schema.StructWithRest(
2527
+ Schema.Struct({
2528
+ amount: Schema.Number.annotate({
2529
+ description:
2530
+ "Amount to be charged for future payments, specified in the presentment currency.",
2531
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2532
+ amount_type: Schema.Literals(["fixed", "maximum"]).annotate({
2533
+ description:
2534
+ "One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.",
2535
+ }),
2536
+ currency: Schema.String.annotate({
2537
+ description:
2538
+ "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).",
2539
+ format: "currency",
2540
+ }),
2541
+ description: Schema.optionalKey(
2542
+ Schema.Union([
2543
+ Schema.String.annotate({
2544
+ description:
2545
+ "A description of the mandate or subscription that is meant to be displayed to the customer.",
2546
+ }).check(
2547
+ Schema.isMaxCodePoints(200).annotate({
2548
+ expected: "a string with at most 200 code points",
2549
+ }),
2550
+ ),
2551
+ Schema.Null,
2552
+ ]),
2553
+ ),
2554
+ end_date: Schema.optionalKey(
2555
+ Schema.Union([
2556
+ Schema.Number.annotate({
2557
+ description:
2558
+ "End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.",
2559
+ format: "unix-time",
2560
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2561
+ Schema.Null,
2562
+ ]),
2563
+ ),
2564
+ interval: Schema.Literals([
2565
+ "day",
2566
+ "month",
2567
+ "sporadic",
2568
+ "week",
2569
+ "year",
2570
+ ]).annotate({
2571
+ description:
2572
+ "Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.",
2573
+ }),
2574
+ interval_count: Schema.optionalKey(
2575
+ Schema.Union([
2576
+ Schema.Number.annotate({
2577
+ description:
2578
+ "The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.",
2579
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2580
+ Schema.Null,
2581
+ ]),
2582
+ ),
2583
+ reference: Schema.String.annotate({
2584
+ description: "Unique identifier for the mandate or subscription.",
2585
+ }).check(
2586
+ Schema.isMaxCodePoints(80).annotate({
2587
+ expected: "a string with at most 80 code points",
2588
+ }),
2589
+ ),
2590
+ start_date: Schema.Number.annotate({
2591
+ description:
2592
+ "Start date of the mandate or subscription. Start date should not be lesser than yesterday.",
2593
+ format: "unix-time",
2594
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2595
+ supported_types: Schema.optionalKey(
2596
+ Schema.Union([
2597
+ Schema.Array(Schema.Literal("india")).annotate({
2598
+ description:
2599
+ "Specifies the type of mandates supported. Possible values are `india`.",
2600
+ }),
2601
+ Schema.Null,
2602
+ ]),
2603
+ ),
2604
+ }),
2605
+ [
2606
+ Schema.Record(
2607
+ Schema.String,
2608
+ Schema.Json.annotate({ expected: "JSON value" }),
2609
+ ),
2610
+ ],
2611
+ ).annotate({
2612
+ title: "setup_intent_payment_method_options_card_mandate_options",
2613
+ description: "",
2614
+ identifier:
2615
+ "Stripesetup_intent_payment_method_options_card_mandate_options",
2616
+ });
2617
+ export const Stripesetup_intent_payment_method_options_card_present =
2618
+ Schema.Record(
2619
+ Schema.String,
2620
+ Schema.Json.annotate({ expected: "JSON value" }),
2621
+ ).annotate({
2622
+ title: "setup_intent_payment_method_options_card_present",
2623
+ description: "",
2624
+ identifier: "Stripesetup_intent_payment_method_options_card_present",
2625
+ });
2626
+ export const Stripesetup_intent_payment_method_options_klarna =
2627
+ Schema.StructWithRest(
2628
+ Schema.Struct({
2629
+ currency: Schema.optionalKey(
2630
+ Schema.Union([
2631
+ Schema.String.annotate({
2632
+ description:
2633
+ "The currency of the setup intent. Three letter ISO currency code.",
2634
+ format: "currency",
2635
+ }),
2636
+ Schema.Null,
2637
+ ]),
2638
+ ),
2639
+ preferred_locale: Schema.optionalKey(
2640
+ Schema.Union([
2641
+ Schema.String.annotate({
2642
+ description:
2643
+ "Preferred locale of the Klarna checkout page that the customer is redirected to.",
2644
+ }).check(
2645
+ Schema.isMaxCodePoints(5000).annotate({
2646
+ expected: "a string with at most 5000 code points",
2647
+ }),
2648
+ ),
2649
+ Schema.Null,
2650
+ ]),
2651
+ ),
2652
+ }),
2653
+ [
2654
+ Schema.Record(
2655
+ Schema.String,
2656
+ Schema.Json.annotate({ expected: "JSON value" }),
2657
+ ),
2658
+ ],
2659
+ ).annotate({
2660
+ title: "setup_intent_payment_method_options_klarna",
2661
+ description: "",
2662
+ identifier: "Stripesetup_intent_payment_method_options_klarna",
2663
+ });
2664
+ export const Stripesetup_intent_payment_method_options_link = Schema.Record(
2665
+ Schema.String,
2666
+ Schema.Json.annotate({ expected: "JSON value" }),
2667
+ ).annotate({
2668
+ title: "setup_intent_payment_method_options_link",
2669
+ description: "",
2670
+ identifier: "Stripesetup_intent_payment_method_options_link",
2671
+ });
2672
+ export const Stripesetup_intent_payment_method_options_paypal =
2673
+ Schema.StructWithRest(
2674
+ Schema.Struct({
2675
+ billing_agreement_id: Schema.optionalKey(
2676
+ Schema.Union([
2677
+ Schema.String.annotate({
2678
+ description:
2679
+ "The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.",
2680
+ }).check(
2681
+ Schema.isMaxCodePoints(5000).annotate({
2682
+ expected: "a string with at most 5000 code points",
2683
+ }),
2684
+ ),
2685
+ Schema.Null,
2686
+ ]),
2687
+ ),
2688
+ }),
2689
+ [
2690
+ Schema.Record(
2691
+ Schema.String,
2692
+ Schema.Json.annotate({ expected: "JSON value" }),
2693
+ ),
2694
+ ],
2695
+ ).annotate({
2696
+ title: "setup_intent_payment_method_options_paypal",
2697
+ description: "",
2698
+ identifier: "Stripesetup_intent_payment_method_options_paypal",
2699
+ });
2700
+ export const Stripesetup_intent_payment_method_options_mandate_options_sepa_debit =
2701
+ Schema.StructWithRest(
2702
+ Schema.Struct({
2703
+ reference_prefix: Schema.optionalKey(
2704
+ Schema.String.annotate({
2705
+ description:
2706
+ "Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.",
2707
+ }).check(
2708
+ Schema.isMaxCodePoints(5000).annotate({
2709
+ expected: "a string with at most 5000 code points",
2710
+ }),
2711
+ ),
2712
+ ),
2713
+ }),
2714
+ [
2715
+ Schema.Record(
2716
+ Schema.String,
2717
+ Schema.Json.annotate({ expected: "JSON value" }),
2718
+ ),
2719
+ ],
2720
+ ).annotate({
2721
+ title: "setup_intent_payment_method_options_mandate_options_sepa_debit",
2722
+ description: "",
2723
+ identifier:
2724
+ "Stripesetup_intent_payment_method_options_mandate_options_sepa_debit",
2725
+ });
2726
+ export const Stripesetup_attempt_payment_method_details_card_wallet =
2727
+ Schema.suspend(
2728
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_card_wallet> =>
2729
+ Schema.StructWithRest(
2730
+ Schema.Struct({
2731
+ apple_pay: Schema.optionalKey(
2732
+ Stripepayment_method_details_card_wallet_apple_pay,
2733
+ ),
2734
+ google_pay: Schema.optionalKey(
2735
+ Stripepayment_method_details_card_wallet_google_pay,
2736
+ ),
2737
+ type: Schema.Literals(["apple_pay", "google_pay", "link"]).annotate({
2738
+ description:
2739
+ "The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.",
2740
+ }),
2741
+ }),
2742
+ [
2743
+ Schema.Record(
2744
+ Schema.String,
2745
+ Schema.Json.annotate({ expected: "JSON value" }),
2746
+ ),
2747
+ ],
2748
+ ).annotate({
2749
+ title: "setup_attempt_payment_method_details_card_wallet",
2750
+ description: "",
2751
+ identifier: "Stripesetup_attempt_payment_method_details_card_wallet",
2752
+ }),
2753
+ );
2754
+ export const Stripesetup_intent_payment_method_options_pix = Schema.suspend(
2755
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_pix> =>
2756
+ Schema.StructWithRest(
2757
+ Schema.Struct({
2758
+ mandate_options: Schema.optionalKey(
2759
+ Stripepayment_method_options_mandate_options_pix,
2760
+ ),
2761
+ }),
2762
+ [
2763
+ Schema.Record(
2764
+ Schema.String,
2765
+ Schema.Json.annotate({ expected: "JSON value" }),
2766
+ ),
2767
+ ],
2768
+ ).annotate({
2769
+ title: "setup_intent_payment_method_options_pix",
2770
+ description: "",
2771
+ identifier: "Stripesetup_intent_payment_method_options_pix",
2772
+ }),
2773
+ );
2774
+ export const Stripesetup_intent_payment_method_options_acss_debit =
2775
+ Schema.suspend(
2776
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_acss_debit> =>
2777
+ Schema.StructWithRest(
2778
+ Schema.Struct({
2779
+ currency: Schema.optionalKey(
2780
+ Schema.Union([
2781
+ Schema.Literals(["cad", "usd"]).annotate({
2782
+ description: "Currency supported by the bank account",
2783
+ }),
2784
+ Schema.Null,
2785
+ ]),
2786
+ ),
2787
+ mandate_options: Schema.optionalKey(
2788
+ Stripesetup_intent_payment_method_options_mandate_options_acss_debit,
2789
+ ),
2790
+ verification_method: Schema.optionalKey(
2791
+ Schema.Literals(["automatic", "instant", "microdeposits"]).annotate(
2792
+ {
2793
+ description:
2794
+ "Bank account verification method. The default value is `automatic`.",
2795
+ },
2796
+ ),
2797
+ ),
2798
+ }),
2799
+ [
2800
+ Schema.Record(
2801
+ Schema.String,
2802
+ Schema.Json.annotate({ expected: "JSON value" }),
2803
+ ),
2804
+ ],
2805
+ ).annotate({
2806
+ title: "setup_intent_payment_method_options_acss_debit",
2807
+ description: "",
2808
+ identifier: "Stripesetup_intent_payment_method_options_acss_debit",
2809
+ }),
2810
+ );
2811
+ export const Stripesetup_intent_type_specific_payment_method_options_client =
2812
+ Schema.suspend(
2813
+ (): Schema.Codec<Stripesetup_intent_type_specific_payment_method_options_client> =>
2814
+ Schema.StructWithRest(
2815
+ Schema.Struct({
2816
+ mandate_options: Schema.optionalKey(
2817
+ Stripesetup_intent_payment_method_options_mandate_options_payto,
2818
+ ),
2819
+ verification_method: Schema.optionalKey(
2820
+ Schema.Literals(["automatic", "instant", "microdeposits"]).annotate(
2821
+ {
2822
+ description:
2823
+ "Bank account verification method. The default value is `automatic`.",
2824
+ },
2825
+ ),
2826
+ ),
2827
+ }),
2828
+ [
2829
+ Schema.Record(
2830
+ Schema.String,
2831
+ Schema.Json.annotate({ expected: "JSON value" }),
2832
+ ),
2833
+ ],
2834
+ ).annotate({
2835
+ title: "SetupIntentTypeSpecificPaymentMethodOptionsClient",
2836
+ description: "",
2837
+ identifier:
2838
+ "Stripesetup_intent_type_specific_payment_method_options_client",
2839
+ }),
2840
+ );
2841
+ export const Stripesetup_intent_payment_method_options_payto = Schema.suspend(
2842
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_payto> =>
2843
+ Schema.StructWithRest(
2844
+ Schema.Struct({
2845
+ mandate_options: Schema.optionalKey(
2846
+ Stripesetup_intent_payment_method_options_mandate_options_payto,
2847
+ ),
2848
+ }),
2849
+ [
2850
+ Schema.Record(
2851
+ Schema.String,
2852
+ Schema.Json.annotate({ expected: "JSON value" }),
2853
+ ),
2854
+ ],
2855
+ ).annotate({
2856
+ title: "setup_intent_payment_method_options_payto",
2857
+ description: "",
2858
+ identifier: "Stripesetup_intent_payment_method_options_payto",
2859
+ }),
2860
+ );
2861
+ export const Stripesetup_intent_payment_method_options_bacs_debit =
2862
+ Schema.suspend(
2863
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_bacs_debit> =>
2864
+ Schema.StructWithRest(
2865
+ Schema.Struct({
2866
+ mandate_options: Schema.optionalKey(
2867
+ Stripesetup_intent_payment_method_options_mandate_options_bacs_debit,
2868
+ ),
2869
+ }),
2870
+ [
2871
+ Schema.Record(
2872
+ Schema.String,
2873
+ Schema.Json.annotate({ expected: "JSON value" }),
2874
+ ),
2875
+ ],
2876
+ ).annotate({
2877
+ title: "setup_intent_payment_method_options_bacs_debit",
2878
+ description: "",
2879
+ identifier: "Stripesetup_intent_payment_method_options_bacs_debit",
2880
+ }),
2881
+ );
2882
+ export const Stripesetup_intent_payment_method_options_blik = Schema.suspend(
2883
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_blik> =>
2884
+ Schema.StructWithRest(
2885
+ Schema.Struct({
2886
+ mandate_options: Schema.optionalKey(
2887
+ Stripesetup_intent_payment_method_options_mandate_options_blik,
2888
+ ),
2889
+ }),
2890
+ [
2891
+ Schema.Record(
2892
+ Schema.String,
2893
+ Schema.Json.annotate({ expected: "JSON value" }),
2894
+ ),
2895
+ ],
2896
+ ).annotate({
2897
+ title: "setup_intent_payment_method_options_blik",
2898
+ description: "",
2899
+ identifier: "Stripesetup_intent_payment_method_options_blik",
2900
+ }),
2901
+ );
2902
+ export const Stripesetup_intent_payment_method_options_card = Schema.suspend(
2903
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_card> =>
2904
+ Schema.StructWithRest(
2905
+ Schema.Struct({
2906
+ mandate_options: Schema.optionalKey(
2907
+ Schema.Union([
2908
+ Schema.Union([
2909
+ Stripesetup_intent_payment_method_options_card_mandate_options,
2910
+ ]).annotate({
2911
+ description:
2912
+ "Configuration options for setting up an eMandate for cards issued in India.",
2913
+ }),
2914
+ Schema.Null,
2915
+ ]),
2916
+ ),
2917
+ network: Schema.optionalKey(
2918
+ Schema.Union([
2919
+ Schema.Literals([
2920
+ "amex",
2921
+ "cartes_bancaires",
2922
+ "diners",
2923
+ "discover",
2924
+ "eftpos_au",
2925
+ "girocard",
2926
+ "interac",
2927
+ "jcb",
2928
+ "link",
2929
+ "mastercard",
2930
+ "unionpay",
2931
+ "unknown",
2932
+ "visa",
2933
+ ]).annotate({
2934
+ description:
2935
+ "Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the setup intent. Can be only set confirm-time.",
2936
+ }),
2937
+ Schema.Null,
2938
+ ]),
2939
+ ),
2940
+ request_three_d_secure: Schema.optionalKey(
2941
+ Schema.Union([
2942
+ Schema.Literals(["any", "automatic", "challenge"]).annotate({
2943
+ description:
2944
+ "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.",
2945
+ }),
2946
+ Schema.Null,
2947
+ ]),
2948
+ ),
2949
+ setup_credential_usage: Schema.optionalKey(
2950
+ Schema.Literals(["installment", "recurring", "unscheduled"]).annotate(
2951
+ {
2952
+ description:
2953
+ "Set to indicate the future transaction type usage for the card being set up.",
2954
+ },
2955
+ ),
2956
+ ),
2957
+ }),
2958
+ [
2959
+ Schema.Record(
2960
+ Schema.String,
2961
+ Schema.Json.annotate({ expected: "JSON value" }),
2962
+ ),
2963
+ ],
2964
+ ).annotate({
2965
+ title: "setup_intent_payment_method_options_card",
2966
+ description: "",
2967
+ identifier: "Stripesetup_intent_payment_method_options_card",
2968
+ }),
2969
+ );
2970
+ export const Stripesetup_intent_payment_method_options_sepa_debit =
2971
+ Schema.suspend(
2972
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_sepa_debit> =>
2973
+ Schema.StructWithRest(
2974
+ Schema.Struct({
2975
+ mandate_options: Schema.optionalKey(
2976
+ Stripesetup_intent_payment_method_options_mandate_options_sepa_debit,
2977
+ ),
2978
+ }),
2979
+ [
2980
+ Schema.Record(
2981
+ Schema.String,
2982
+ Schema.Json.annotate({ expected: "JSON value" }),
2983
+ ),
2984
+ ],
2985
+ ).annotate({
2986
+ title: "setup_intent_payment_method_options_sepa_debit",
2987
+ description: "",
2988
+ identifier: "Stripesetup_intent_payment_method_options_sepa_debit",
2989
+ }),
2990
+ );
2991
+ export const Stripesetup_intent_payment_method_options_upi = Schema.suspend(
2992
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_upi> =>
2993
+ Schema.StructWithRest(
2994
+ Schema.Struct({
2995
+ mandate_options: Schema.optionalKey(
2996
+ Stripepayment_method_options_mandate_options_upi,
2997
+ ),
2998
+ }),
2999
+ [
3000
+ Schema.Record(
3001
+ Schema.String,
3002
+ Schema.Json.annotate({ expected: "JSON value" }),
3003
+ ),
3004
+ ],
3005
+ ).annotate({
3006
+ title: "setup_intent_payment_method_options_upi",
3007
+ description: "",
3008
+ identifier: "Stripesetup_intent_payment_method_options_upi",
3009
+ }),
3010
+ );
3011
+ export const Stripesetup_attempt_payment_method_details_card = Schema.suspend(
3012
+ (): Schema.Codec<Stripesetup_attempt_payment_method_details_card> =>
3013
+ Schema.StructWithRest(
3014
+ Schema.Struct({
3015
+ brand: Schema.optionalKey(
3016
+ Schema.Union([
3017
+ Schema.String.annotate({
3018
+ description:
3019
+ "Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.",
3020
+ }).check(
3021
+ Schema.isMaxCodePoints(5000).annotate({
3022
+ expected: "a string with at most 5000 code points",
3023
+ }),
3024
+ ),
3025
+ Schema.Null,
3026
+ ]),
3027
+ ),
3028
+ checks: Schema.optionalKey(
3029
+ Schema.Union([
3030
+ Schema.Union([
3031
+ Stripesetup_attempt_payment_method_details_card_checks,
3032
+ ]).annotate({
3033
+ description:
3034
+ "Check results by Card networks on Card address and CVC at the time of authorization",
3035
+ }),
3036
+ Schema.Null,
3037
+ ]),
3038
+ ),
3039
+ country: Schema.optionalKey(
3040
+ Schema.Union([
3041
+ Schema.String.annotate({
3042
+ description:
3043
+ "Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.",
3044
+ }).check(
3045
+ Schema.isMaxCodePoints(5000).annotate({
3046
+ expected: "a string with at most 5000 code points",
3047
+ }),
3048
+ ),
3049
+ Schema.Null,
3050
+ ]),
3051
+ ),
3052
+ exp_month: Schema.optionalKey(
3053
+ Schema.Union([
3054
+ Schema.Number.annotate({
3055
+ description:
3056
+ "Two-digit number representing the card's expiration month.",
3057
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3058
+ Schema.Null,
3059
+ ]),
3060
+ ),
3061
+ exp_year: Schema.optionalKey(
3062
+ Schema.Union([
3063
+ Schema.Number.annotate({
3064
+ description:
3065
+ "Four-digit number representing the card's expiration year.",
3066
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3067
+ Schema.Null,
3068
+ ]),
3069
+ ),
3070
+ fingerprint: Schema.optionalKey(
3071
+ Schema.Union([
3072
+ Schema.String.annotate({
3073
+ description:
3074
+ "Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.\n\n*As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*",
3075
+ }).check(
3076
+ Schema.isMaxCodePoints(5000).annotate({
3077
+ expected: "a string with at most 5000 code points",
3078
+ }),
3079
+ ),
3080
+ Schema.Null,
3081
+ ]),
3082
+ ),
3083
+ funding: Schema.optionalKey(
3084
+ Schema.Union([
3085
+ Schema.String.annotate({
3086
+ description:
3087
+ "Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.",
3088
+ }).check(
3089
+ Schema.isMaxCodePoints(5000).annotate({
3090
+ expected: "a string with at most 5000 code points",
3091
+ }),
3092
+ ),
3093
+ Schema.Null,
3094
+ ]),
3095
+ ),
3096
+ last4: Schema.optionalKey(
3097
+ Schema.Union([
3098
+ Schema.String.annotate({
3099
+ description: "The last four digits of the card.",
3100
+ }).check(
3101
+ Schema.isMaxCodePoints(5000).annotate({
3102
+ expected: "a string with at most 5000 code points",
3103
+ }),
3104
+ ),
3105
+ Schema.Null,
3106
+ ]),
3107
+ ),
3108
+ network: Schema.optionalKey(
3109
+ Schema.Union([
3110
+ Schema.String.annotate({
3111
+ description:
3112
+ "Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.",
3113
+ }).check(
3114
+ Schema.isMaxCodePoints(5000).annotate({
3115
+ expected: "a string with at most 5000 code points",
3116
+ }),
3117
+ ),
3118
+ Schema.Null,
3119
+ ]),
3120
+ ),
3121
+ three_d_secure: Schema.optionalKey(
3122
+ Schema.Union([
3123
+ Schema.Union([Stripethree_d_secure_details]).annotate({
3124
+ description:
3125
+ "Populated if this authorization used 3D Secure authentication.",
3126
+ }),
3127
+ Schema.Null,
3128
+ ]),
3129
+ ),
3130
+ wallet: Schema.optionalKey(
3131
+ Schema.Union([
3132
+ Schema.Union([
3133
+ Stripesetup_attempt_payment_method_details_card_wallet,
3134
+ ]).annotate({
3135
+ description:
3136
+ "If this Card is part of a card wallet, this contains the details of the card wallet.",
3137
+ }),
3138
+ Schema.Null,
3139
+ ]),
3140
+ ),
3141
+ }),
3142
+ [
3143
+ Schema.Record(
3144
+ Schema.String,
3145
+ Schema.Json.annotate({ expected: "JSON value" }),
3146
+ ),
3147
+ ],
3148
+ ).annotate({
3149
+ title: "setup_attempt_payment_method_details_card",
3150
+ description: "",
3151
+ identifier: "Stripesetup_attempt_payment_method_details_card",
3152
+ }),
3153
+ );
3154
+ export const Stripesetup_intent_next_action = Schema.suspend(
3155
+ (): Schema.Codec<Stripesetup_intent_next_action> =>
3156
+ Schema.StructWithRest(
3157
+ Schema.Struct({
3158
+ blik_authorize: Schema.optionalKey(
3159
+ Stripepayment_intent_next_action_blik_authorize,
3160
+ ),
3161
+ cashapp_handle_redirect_or_display_qr_code: Schema.optionalKey(
3162
+ Stripepayment_intent_next_action_cashapp_handle_redirect_or_display_qr_code,
3163
+ ),
3164
+ pix_display_qr_code: Schema.optionalKey(
3165
+ Stripesetup_intent_next_action_pix_display_qr_code,
3166
+ ),
3167
+ redirect_to_url: Schema.optionalKey(
3168
+ Stripesetup_intent_next_action_redirect_to_url,
3169
+ ),
3170
+ type: Schema.String.annotate({
3171
+ description:
3172
+ "Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.",
3173
+ }).check(
3174
+ Schema.isMaxCodePoints(5000).annotate({
3175
+ expected: "a string with at most 5000 code points",
3176
+ }),
3177
+ ),
3178
+ upi_handle_redirect_or_display_qr_code: Schema.optionalKey(
3179
+ Stripepayment_intent_next_action_upi_handle_redirect_or_display_qr_code,
3180
+ ),
3181
+ use_stripe_sdk: Schema.optionalKey(
3182
+ Schema.Record(
3183
+ Schema.String,
3184
+ Schema.Json.annotate({ expected: "JSON value" }),
3185
+ ).annotate({
3186
+ description:
3187
+ "When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.",
3188
+ }),
3189
+ ),
3190
+ verify_with_microdeposits: Schema.optionalKey(
3191
+ Stripesetup_intent_next_action_verify_with_microdeposits,
3192
+ ),
3193
+ }),
3194
+ [
3195
+ Schema.Record(
3196
+ Schema.String,
3197
+ Schema.Json.annotate({ expected: "JSON value" }),
3198
+ ),
3199
+ ],
3200
+ ).annotate({
3201
+ title: "SetupIntentNextAction",
3202
+ description: "",
3203
+ identifier: "Stripesetup_intent_next_action",
3204
+ }),
3205
+ );
3206
+ export const Stripesetup_intent_payment_method_options_us_bank_account =
3207
+ Schema.suspend(
3208
+ (): Schema.Codec<Stripesetup_intent_payment_method_options_us_bank_account> =>
3209
+ Schema.StructWithRest(
3210
+ Schema.Struct({
3211
+ financial_connections: Schema.optionalKey(
3212
+ Stripelinked_account_options_common,
3213
+ ),
3214
+ mandate_options: Schema.optionalKey(
3215
+ Stripepayment_method_options_us_bank_account_mandate_options,
3216
+ ),
3217
+ verification_method: Schema.optionalKey(
3218
+ Schema.Literals(["automatic", "instant", "microdeposits"]).annotate(
3219
+ {
3220
+ description:
3221
+ "Bank account verification method. The default value is `automatic`.",
3222
+ },
3223
+ ),
3224
+ ),
3225
+ }),
3226
+ [
3227
+ Schema.Record(
3228
+ Schema.String,
3229
+ Schema.Json.annotate({ expected: "JSON value" }),
3230
+ ),
3231
+ ],
3232
+ ).annotate({
3233
+ title: "setup_intent_payment_method_options_us_bank_account",
3234
+ description: "",
3235
+ identifier: "Stripesetup_intent_payment_method_options_us_bank_account",
3236
+ }),
3237
+ );
3238
+ export const Stripesetup_intent_payment_method_options = Schema.suspend(
3239
+ (): Schema.Codec<Stripesetup_intent_payment_method_options> =>
3240
+ Schema.StructWithRest(
3241
+ Schema.Struct({
3242
+ acss_debit: Schema.optionalKey(
3243
+ Schema.Union([
3244
+ Stripesetup_intent_payment_method_options_acss_debit,
3245
+ Stripesetup_intent_type_specific_payment_method_options_client,
3246
+ ]),
3247
+ ),
3248
+ amazon_pay: Schema.optionalKey(
3249
+ Schema.Union([
3250
+ Stripesetup_intent_payment_method_options_amazon_pay,
3251
+ Stripesetup_intent_type_specific_payment_method_options_client,
3252
+ ]),
3253
+ ),
3254
+ bacs_debit: Schema.optionalKey(
3255
+ Schema.Union([
3256
+ Stripesetup_intent_payment_method_options_bacs_debit,
3257
+ Stripesetup_intent_type_specific_payment_method_options_client,
3258
+ ]),
3259
+ ),
3260
+ bizum: Schema.optionalKey(
3261
+ Schema.Union([
3262
+ Stripesetup_intent_payment_method_options_bizum,
3263
+ Stripesetup_intent_type_specific_payment_method_options_client,
3264
+ ]),
3265
+ ),
3266
+ blik: Schema.optionalKey(
3267
+ Schema.Union([
3268
+ Stripesetup_intent_payment_method_options_blik,
3269
+ Stripesetup_intent_type_specific_payment_method_options_client,
3270
+ ]),
3271
+ ),
3272
+ card: Schema.optionalKey(
3273
+ Schema.Union([
3274
+ Stripesetup_intent_payment_method_options_card,
3275
+ Stripesetup_intent_type_specific_payment_method_options_client,
3276
+ ]),
3277
+ ),
3278
+ card_present: Schema.optionalKey(
3279
+ Schema.Union([
3280
+ Stripesetup_intent_payment_method_options_card_present,
3281
+ Stripesetup_intent_type_specific_payment_method_options_client,
3282
+ ]),
3283
+ ),
3284
+ klarna: Schema.optionalKey(
3285
+ Schema.Union([
3286
+ Stripesetup_intent_payment_method_options_klarna,
3287
+ Stripesetup_intent_type_specific_payment_method_options_client,
3288
+ ]),
3289
+ ),
3290
+ link: Schema.optionalKey(
3291
+ Schema.Union([
3292
+ Stripesetup_intent_payment_method_options_link,
3293
+ Stripesetup_intent_type_specific_payment_method_options_client,
3294
+ ]),
3295
+ ),
3296
+ paypal: Schema.optionalKey(
3297
+ Schema.Union([
3298
+ Stripesetup_intent_payment_method_options_paypal,
3299
+ Stripesetup_intent_type_specific_payment_method_options_client,
3300
+ ]),
3301
+ ),
3302
+ payto: Schema.optionalKey(
3303
+ Schema.Union([
3304
+ Stripesetup_intent_payment_method_options_payto,
3305
+ Stripesetup_intent_type_specific_payment_method_options_client,
3306
+ ]),
3307
+ ),
3308
+ pix: Schema.optionalKey(
3309
+ Schema.Union([
3310
+ Stripesetup_intent_payment_method_options_pix,
3311
+ Stripesetup_intent_type_specific_payment_method_options_client,
3312
+ ]),
3313
+ ),
3314
+ sepa_debit: Schema.optionalKey(
3315
+ Schema.Union([
3316
+ Stripesetup_intent_payment_method_options_sepa_debit,
3317
+ Stripesetup_intent_type_specific_payment_method_options_client,
3318
+ ]),
3319
+ ),
3320
+ upi: Schema.optionalKey(
3321
+ Schema.Union([
3322
+ Stripesetup_intent_payment_method_options_upi,
3323
+ Stripesetup_intent_type_specific_payment_method_options_client,
3324
+ ]),
3325
+ ),
3326
+ us_bank_account: Schema.optionalKey(
3327
+ Schema.Union([
3328
+ Stripesetup_intent_payment_method_options_us_bank_account,
3329
+ Stripesetup_intent_type_specific_payment_method_options_client,
3330
+ ]),
3331
+ ),
3332
+ }),
3333
+ [
3334
+ Schema.Record(
3335
+ Schema.String,
3336
+ Schema.Json.annotate({ expected: "JSON value" }),
3337
+ ),
3338
+ ],
3339
+ ).annotate({
3340
+ title: "SetupIntentPaymentMethodOptions",
3341
+ description: "",
3342
+ identifier: "Stripesetup_intent_payment_method_options",
3343
+ }),
3344
+ );