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,3852 @@
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 {
6
+ Stripeaddress,
7
+ Stripeinbound_transfers,
8
+ Stripeoutbound_payments_payment_method_details,
9
+ Stripeoutbound_transfers_payment_method_details,
10
+ Stripereceived_payment_method_details_financial_account,
11
+ } from "./common.js";
12
+ import { Stripeissuing_authorization } from "./issuing.js";
13
+ import { Stripepayout } from "./transfers.js";
14
+
15
+ export type Stripetreasury_transaction = {
16
+ readonly amount: number;
17
+ readonly balance_impact: Stripetreasury_transactions_resource_balance_impact;
18
+ readonly created: number;
19
+ readonly currency: string;
20
+ readonly description: string;
21
+ readonly entries?:
22
+ | ({
23
+ readonly data: ReadonlyArray<Stripetreasury_transaction_entry>;
24
+ readonly has_more: boolean;
25
+ readonly object: "list";
26
+ readonly url: string;
27
+ } & { readonly [x: string]: Schema.Json })
28
+ | null;
29
+ readonly financial_account: string;
30
+ readonly flow?: string | null;
31
+ readonly flow_details?: Stripetreasury_transactions_resource_flow_details | null;
32
+ readonly flow_type:
33
+ | "credit_reversal"
34
+ | "debit_reversal"
35
+ | "inbound_transfer"
36
+ | "issuing_authorization"
37
+ | "other"
38
+ | "outbound_payment"
39
+ | "outbound_transfer"
40
+ | "received_credit"
41
+ | "received_debit";
42
+ readonly id: string;
43
+ readonly livemode: boolean;
44
+ readonly object: "treasury.transaction";
45
+ readonly status: "open" | "posted" | "void";
46
+ readonly status_transitions: Stripetreasury_transactions_resource_abstract_transaction_resource_status_transitions;
47
+ } & { readonly [x: string]: Schema.Json };
48
+ export type Stripetreasury_transactions_resource_flow_details = {
49
+ readonly credit_reversal?: Stripetreasury_credit_reversal;
50
+ readonly debit_reversal?: Stripetreasury_debit_reversal;
51
+ readonly inbound_transfer?: Stripetreasury_inbound_transfer;
52
+ readonly issuing_authorization?: Stripeissuing_authorization;
53
+ readonly outbound_payment?: Stripetreasury_outbound_payment;
54
+ readonly outbound_transfer?: Stripetreasury_outbound_transfer;
55
+ readonly received_credit?: Stripetreasury_received_credit;
56
+ readonly received_debit?: Stripetreasury_received_debit;
57
+ readonly type:
58
+ | "credit_reversal"
59
+ | "debit_reversal"
60
+ | "inbound_transfer"
61
+ | "issuing_authorization"
62
+ | "other"
63
+ | "outbound_payment"
64
+ | "outbound_transfer"
65
+ | "received_credit"
66
+ | "received_debit";
67
+ } & { readonly [x: string]: Schema.Json };
68
+ export type Stripetreasury_received_debit = {
69
+ readonly amount: number;
70
+ readonly created: number;
71
+ readonly currency: string;
72
+ readonly description: string;
73
+ readonly failure_code?:
74
+ | "account_closed"
75
+ | "account_frozen"
76
+ | "insufficient_funds"
77
+ | "international_transaction"
78
+ | "other"
79
+ | null;
80
+ readonly financial_account?: string | null;
81
+ readonly hosted_regulatory_receipt_url?: string | null;
82
+ readonly id: string;
83
+ readonly initiating_payment_method_details?: Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details;
84
+ readonly linked_flows: Stripetreasury_received_debits_resource_linked_flows;
85
+ readonly livemode: boolean;
86
+ readonly network: "ach" | "card" | "stripe";
87
+ readonly object: "treasury.received_debit";
88
+ readonly reversal_details?: Stripetreasury_received_debits_resource_reversal_details | null;
89
+ readonly status: "failed" | "succeeded";
90
+ readonly transaction?: string | Stripetreasury_transaction | null;
91
+ } & { readonly [x: string]: Schema.Json };
92
+ export type Stripetreasury_received_credit = {
93
+ readonly amount: number;
94
+ readonly created: number;
95
+ readonly currency: string;
96
+ readonly description: string;
97
+ readonly failure_code?:
98
+ | "account_closed"
99
+ | "account_frozen"
100
+ | "international_transaction"
101
+ | "other"
102
+ | null;
103
+ readonly financial_account?: string | null;
104
+ readonly hosted_regulatory_receipt_url?: string | null;
105
+ readonly id: string;
106
+ readonly initiating_payment_method_details: Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details;
107
+ readonly linked_flows: Stripetreasury_received_credits_resource_linked_flows;
108
+ readonly livemode: boolean;
109
+ readonly network: "ach" | "card" | "rtp" | "stripe" | "us_domestic_wire";
110
+ readonly object: "treasury.received_credit";
111
+ readonly reversal_details?: Stripetreasury_received_credits_resource_reversal_details | null;
112
+ readonly status: "failed" | "succeeded";
113
+ readonly transaction?: string | Stripetreasury_transaction | null;
114
+ } & { readonly [x: string]: Schema.Json };
115
+ export type Stripetreasury_received_credits_resource_linked_flows = {
116
+ readonly credit_reversal?: string | null;
117
+ readonly issuing_authorization?: string | null;
118
+ readonly issuing_transaction?: string | null;
119
+ readonly source_flow?: string | null;
120
+ readonly source_flow_details?: Stripetreasury_received_credits_resource_source_flows_details | null;
121
+ readonly source_flow_type?: string | null;
122
+ } & { readonly [x: string]: Schema.Json };
123
+ export type Stripetreasury_received_credits_resource_source_flows_details = {
124
+ readonly credit_reversal?: Stripetreasury_credit_reversal;
125
+ readonly outbound_payment?: Stripetreasury_outbound_payment;
126
+ readonly outbound_transfer?: Stripetreasury_outbound_transfer;
127
+ readonly payout?: Stripepayout;
128
+ readonly type:
129
+ | "credit_reversal"
130
+ | "other"
131
+ | "outbound_payment"
132
+ | "outbound_transfer"
133
+ | "payout";
134
+ } & { readonly [x: string]: Schema.Json };
135
+ export type Stripetreasury_outbound_transfer = {
136
+ readonly amount: number;
137
+ readonly cancelable: boolean;
138
+ readonly created: number;
139
+ readonly currency: string;
140
+ readonly description?: string | null;
141
+ readonly destination_payment_method?: string | null;
142
+ readonly destination_payment_method_details: Stripeoutbound_transfers_payment_method_details;
143
+ readonly expected_arrival_date: number;
144
+ readonly financial_account: string;
145
+ readonly hosted_regulatory_receipt_url?: string | null;
146
+ readonly id: string;
147
+ readonly livemode: boolean;
148
+ readonly metadata: { readonly [x: string]: string };
149
+ readonly object: "treasury.outbound_transfer";
150
+ readonly returned_details?: Stripetreasury_outbound_transfers_resource_returned_details | null;
151
+ readonly statement_descriptor: string;
152
+ readonly status: "canceled" | "failed" | "posted" | "processing" | "returned";
153
+ readonly status_transitions: Stripetreasury_outbound_transfers_resource_status_transitions;
154
+ readonly tracking_details?: Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details | null;
155
+ readonly transaction: string | Stripetreasury_transaction;
156
+ } & { readonly [x: string]: Schema.Json };
157
+ export type Stripetreasury_outbound_transfers_resource_returned_details = {
158
+ readonly code:
159
+ | "account_closed"
160
+ | "account_frozen"
161
+ | "bank_account_restricted"
162
+ | "bank_ownership_changed"
163
+ | "declined"
164
+ | "incorrect_account_holder_name"
165
+ | "invalid_account_number"
166
+ | "invalid_currency"
167
+ | "no_account"
168
+ | "other";
169
+ readonly transaction: string | Stripetreasury_transaction;
170
+ } & { readonly [x: string]: Schema.Json };
171
+ export type Stripetreasury_outbound_payment = {
172
+ readonly amount: number;
173
+ readonly cancelable: boolean;
174
+ readonly created: number;
175
+ readonly currency: string;
176
+ readonly customer?: string | null;
177
+ readonly description?: string | null;
178
+ readonly destination_payment_method?: string | null;
179
+ readonly destination_payment_method_details?: Stripeoutbound_payments_payment_method_details | null;
180
+ readonly end_user_details?: Stripetreasury_outbound_payments_resource_outbound_payment_resource_end_user_details | null;
181
+ readonly expected_arrival_date: number;
182
+ readonly financial_account: string;
183
+ readonly hosted_regulatory_receipt_url?: string | null;
184
+ readonly id: string;
185
+ readonly livemode: boolean;
186
+ readonly metadata: { readonly [x: string]: string };
187
+ readonly object: "treasury.outbound_payment";
188
+ readonly returned_details?: Stripetreasury_outbound_payments_resource_returned_status | null;
189
+ readonly statement_descriptor: string;
190
+ readonly status: "canceled" | "failed" | "posted" | "processing" | "returned";
191
+ readonly status_transitions: Stripetreasury_outbound_payments_resource_outbound_payment_resource_status_transitions;
192
+ readonly tracking_details?: Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details | null;
193
+ readonly transaction: string | Stripetreasury_transaction;
194
+ } & { readonly [x: string]: Schema.Json };
195
+ export type Stripetreasury_outbound_payments_resource_returned_status = {
196
+ readonly code:
197
+ | "account_closed"
198
+ | "account_frozen"
199
+ | "bank_account_restricted"
200
+ | "bank_ownership_changed"
201
+ | "declined"
202
+ | "incorrect_account_holder_name"
203
+ | "invalid_account_number"
204
+ | "invalid_currency"
205
+ | "no_account"
206
+ | "other";
207
+ readonly transaction: string | Stripetreasury_transaction;
208
+ } & { readonly [x: string]: Schema.Json };
209
+ export type Stripetreasury_credit_reversal = {
210
+ readonly amount: number;
211
+ readonly created: number;
212
+ readonly currency: string;
213
+ readonly financial_account: string;
214
+ readonly hosted_regulatory_receipt_url?: string | null;
215
+ readonly id: string;
216
+ readonly livemode: boolean;
217
+ readonly metadata: { readonly [x: string]: string };
218
+ readonly network: "ach" | "stripe";
219
+ readonly object: "treasury.credit_reversal";
220
+ readonly received_credit: string;
221
+ readonly status: "canceled" | "posted" | "processing";
222
+ readonly status_transitions: Stripetreasury_received_credits_resource_status_transitions;
223
+ readonly transaction?: string | Stripetreasury_transaction | null;
224
+ } & { readonly [x: string]: Schema.Json };
225
+ export type Stripetreasury_inbound_transfer = {
226
+ readonly amount: number;
227
+ readonly cancelable: boolean;
228
+ readonly created: number;
229
+ readonly currency: string;
230
+ readonly description?: string | null;
231
+ readonly failure_details?: Stripetreasury_inbound_transfers_resource_failure_details | null;
232
+ readonly financial_account: string;
233
+ readonly hosted_regulatory_receipt_url?: string | null;
234
+ readonly id: string;
235
+ readonly linked_flows: Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows;
236
+ readonly livemode: boolean;
237
+ readonly metadata: { readonly [x: string]: string };
238
+ readonly object: "treasury.inbound_transfer";
239
+ readonly origin_payment_method?: string | null;
240
+ readonly origin_payment_method_details?: Stripeinbound_transfers | null;
241
+ readonly returned?: boolean | null;
242
+ readonly statement_descriptor: string;
243
+ readonly status: "canceled" | "failed" | "processing" | "succeeded";
244
+ readonly status_transitions: Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions;
245
+ readonly transaction?: string | Stripetreasury_transaction | null;
246
+ } & { readonly [x: string]: Schema.Json };
247
+ export type Stripetreasury_debit_reversal = {
248
+ readonly amount: number;
249
+ readonly created: number;
250
+ readonly currency: string;
251
+ readonly financial_account?: string | null;
252
+ readonly hosted_regulatory_receipt_url?: string | null;
253
+ readonly id: string;
254
+ readonly linked_flows?: Stripetreasury_received_debits_resource_debit_reversal_linked_flows | null;
255
+ readonly livemode: boolean;
256
+ readonly metadata: { readonly [x: string]: string };
257
+ readonly network: "ach" | "card";
258
+ readonly object: "treasury.debit_reversal";
259
+ readonly received_debit: string;
260
+ readonly status: "failed" | "processing" | "succeeded";
261
+ readonly status_transitions: Stripetreasury_received_debits_resource_status_transitions;
262
+ readonly transaction?: string | Stripetreasury_transaction | null;
263
+ } & { readonly [x: string]: Schema.Json };
264
+ export type Stripetreasury_transaction_entry = {
265
+ readonly balance_impact: Stripetreasury_transactions_resource_balance_impact;
266
+ readonly created: number;
267
+ readonly currency: string;
268
+ readonly effective_at: number;
269
+ readonly financial_account: string;
270
+ readonly flow?: string | null;
271
+ readonly flow_details?: Stripetreasury_transactions_resource_flow_details | null;
272
+ readonly flow_type:
273
+ | "credit_reversal"
274
+ | "debit_reversal"
275
+ | "inbound_transfer"
276
+ | "issuing_authorization"
277
+ | "other"
278
+ | "outbound_payment"
279
+ | "outbound_transfer"
280
+ | "received_credit"
281
+ | "received_debit";
282
+ readonly id: string;
283
+ readonly livemode: boolean;
284
+ readonly object: "treasury.transaction_entry";
285
+ readonly transaction: string | Stripetreasury_transaction;
286
+ readonly type:
287
+ | "credit_reversal"
288
+ | "credit_reversal_posting"
289
+ | "debit_reversal"
290
+ | "inbound_transfer"
291
+ | "inbound_transfer_return"
292
+ | "issuing_authorization_hold"
293
+ | "issuing_authorization_release"
294
+ | "other"
295
+ | "outbound_payment"
296
+ | "outbound_payment_cancellation"
297
+ | "outbound_payment_failure"
298
+ | "outbound_payment_posting"
299
+ | "outbound_payment_return"
300
+ | "outbound_transfer"
301
+ | "outbound_transfer_cancellation"
302
+ | "outbound_transfer_failure"
303
+ | "outbound_transfer_posting"
304
+ | "outbound_transfer_return"
305
+ | "received_credit"
306
+ | "received_debit";
307
+ } & { readonly [x: string]: Schema.Json };
308
+ export type Stripetreasury_received_credits_resource_status_transitions = {
309
+ readonly posted_at?: number | null;
310
+ } & { readonly [x: string]: Schema.Json };
311
+ export type Stripetreasury_transactions_resource_balance_impact = {
312
+ readonly cash: number;
313
+ readonly inbound_pending: number;
314
+ readonly outbound_pending: number;
315
+ } & { readonly [x: string]: Schema.Json };
316
+ export type Stripetreasury_received_debits_resource_debit_reversal_linked_flows =
317
+ { readonly issuing_dispute?: string | null } & {
318
+ readonly [x: string]: Schema.Json;
319
+ };
320
+ export type Stripetreasury_received_debits_resource_status_transitions = {
321
+ readonly completed_at?: number | null;
322
+ } & { readonly [x: string]: Schema.Json };
323
+ export type Stripetreasury_inbound_transfers_resource_failure_details = {
324
+ readonly code:
325
+ | "account_closed"
326
+ | "account_frozen"
327
+ | "bank_account_restricted"
328
+ | "bank_ownership_changed"
329
+ | "debit_not_authorized"
330
+ | "incorrect_account_holder_address"
331
+ | "incorrect_account_holder_name"
332
+ | "incorrect_account_holder_tax_id"
333
+ | "insufficient_funds"
334
+ | "invalid_account_number"
335
+ | "invalid_currency"
336
+ | "no_account"
337
+ | "other";
338
+ } & { readonly [x: string]: Schema.Json };
339
+ export type Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows =
340
+ { readonly received_debit?: string | null } & {
341
+ readonly [x: string]: Schema.Json;
342
+ };
343
+ export type Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions =
344
+ {
345
+ readonly canceled_at?: number | null;
346
+ readonly failed_at?: number | null;
347
+ readonly succeeded_at?: number | null;
348
+ } & { readonly [x: string]: Schema.Json };
349
+ export type Stripetreasury_outbound_payments_resource_outbound_payment_resource_end_user_details =
350
+ { readonly ip_address?: string | null; readonly present: boolean } & {
351
+ readonly [x: string]: Schema.Json;
352
+ };
353
+ export type Stripetreasury_outbound_payments_resource_outbound_payment_resource_status_transitions =
354
+ {
355
+ readonly canceled_at?: number | null;
356
+ readonly failed_at?: number | null;
357
+ readonly posted_at?: number | null;
358
+ readonly returned_at?: number | null;
359
+ } & { readonly [x: string]: Schema.Json };
360
+ export type Stripetreasury_outbound_payments_resource_ach_tracking_details = {
361
+ readonly trace_id: string;
362
+ } & { readonly [x: string]: Schema.Json };
363
+ export type Stripetreasury_outbound_payments_resource_us_domestic_wire_tracking_details =
364
+ {
365
+ readonly chips?: string | null;
366
+ readonly imad?: string | null;
367
+ readonly omad?: string | null;
368
+ } & { readonly [x: string]: Schema.Json };
369
+ export type Stripetreasury_outbound_transfers_resource_status_transitions = {
370
+ readonly canceled_at?: number | null;
371
+ readonly failed_at?: number | null;
372
+ readonly posted_at?: number | null;
373
+ readonly returned_at?: number | null;
374
+ } & { readonly [x: string]: Schema.Json };
375
+ export type Stripetreasury_outbound_transfers_resource_ach_tracking_details = {
376
+ readonly trace_id: string;
377
+ } & { readonly [x: string]: Schema.Json };
378
+ export type Stripetreasury_outbound_transfers_resource_us_domestic_wire_tracking_details =
379
+ {
380
+ readonly chips?: string | null;
381
+ readonly imad?: string | null;
382
+ readonly omad?: string | null;
383
+ } & { readonly [x: string]: Schema.Json };
384
+ export type Stripetreasury_shared_resource_initiating_payment_method_details_us_bank_account =
385
+ {
386
+ readonly bank_name?: string | null;
387
+ readonly last4?: string | null;
388
+ readonly routing_number?: string | null;
389
+ } & { readonly [x: string]: Schema.Json };
390
+ export type Stripetreasury_received_credits_resource_reversal_details = {
391
+ readonly deadline?: number | null;
392
+ readonly restricted_reason?:
393
+ | "already_reversed"
394
+ | "deadline_passed"
395
+ | "network_restricted"
396
+ | "other"
397
+ | "source_flow_restricted"
398
+ | null;
399
+ } & { readonly [x: string]: Schema.Json };
400
+ export type Stripetreasury_received_debits_resource_linked_flows = {
401
+ readonly debit_reversal?: string | null;
402
+ readonly inbound_transfer?: string | null;
403
+ readonly issuing_authorization?: string | null;
404
+ readonly issuing_transaction?: string | null;
405
+ readonly payout?: string | null;
406
+ readonly topup?: string | null;
407
+ } & { readonly [x: string]: Schema.Json };
408
+ export type Stripetreasury_received_debits_resource_reversal_details = {
409
+ readonly deadline?: number | null;
410
+ readonly restricted_reason?:
411
+ | "already_reversed"
412
+ | "deadline_passed"
413
+ | "network_restricted"
414
+ | "other"
415
+ | "source_flow_restricted"
416
+ | null;
417
+ } & { readonly [x: string]: Schema.Json };
418
+ export type Stripetreasury_transactions_resource_abstract_transaction_resource_status_transitions =
419
+ { readonly posted_at?: number | null; readonly void_at?: number | null } & {
420
+ readonly [x: string]: Schema.Json;
421
+ };
422
+ export type Stripetreasury_financial_accounts_resource_balance = {
423
+ readonly cash: { readonly [x: string]: number };
424
+ readonly inbound_pending: { readonly [x: string]: number };
425
+ readonly outbound_pending: { readonly [x: string]: number };
426
+ } & { readonly [x: string]: Schema.Json };
427
+ export type Stripetreasury_financial_accounts_resource_toggles_setting_status_details =
428
+ {
429
+ readonly code:
430
+ | "activating"
431
+ | "capability_not_requested"
432
+ | "financial_account_closed"
433
+ | "rejected_other"
434
+ | "rejected_unsupported_business"
435
+ | "requirements_past_due"
436
+ | "requirements_pending_verification"
437
+ | "restricted_by_platform"
438
+ | "restricted_other";
439
+ readonly resolution?:
440
+ | "contact_stripe"
441
+ | "provide_information"
442
+ | "remove_restriction"
443
+ | null;
444
+ readonly restriction?: "inbound_flows" | "outbound_flows";
445
+ } & { readonly [x: string]: Schema.Json };
446
+ export type Stripetreasury_financial_accounts_resource_aba_record = {
447
+ readonly account_holder_name: string;
448
+ readonly account_number?: string | null;
449
+ readonly account_number_last4: string;
450
+ readonly bank_name: string;
451
+ readonly routing_number: string;
452
+ } & { readonly [x: string]: Schema.Json };
453
+ export type Stripetreasury_financial_accounts_resource_platform_restrictions = {
454
+ readonly inbound_flows?: "restricted" | "unrestricted" | null;
455
+ readonly outbound_flows?: "restricted" | "unrestricted" | null;
456
+ } & { readonly [x: string]: Schema.Json };
457
+ export type Stripetreasury_financial_accounts_resource_closed_status_details = {
458
+ readonly reasons: ReadonlyArray<
459
+ "account_rejected" | "closed_by_platform" | "other"
460
+ >;
461
+ } & { readonly [x: string]: Schema.Json };
462
+ export type Stripetreasury_shared_resource_billing_details = {
463
+ readonly address: Stripeaddress;
464
+ readonly email?: string | null;
465
+ readonly name?: string | null;
466
+ } & { readonly [x: string]: Schema.Json };
467
+ export type Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details =
468
+ {
469
+ readonly ach?: Stripetreasury_outbound_payments_resource_ach_tracking_details;
470
+ readonly type: "ach" | "us_domestic_wire";
471
+ readonly us_domestic_wire?: Stripetreasury_outbound_payments_resource_us_domestic_wire_tracking_details;
472
+ } & { readonly [x: string]: Schema.Json };
473
+ export type Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details =
474
+ {
475
+ readonly ach?: Stripetreasury_outbound_transfers_resource_ach_tracking_details;
476
+ readonly type: "ach" | "us_domestic_wire";
477
+ readonly us_domestic_wire?: Stripetreasury_outbound_transfers_resource_us_domestic_wire_tracking_details;
478
+ } & { readonly [x: string]: Schema.Json };
479
+ export type Stripetreasury_financial_accounts_resource_toggle_settings = {
480
+ readonly requested: boolean;
481
+ readonly status: "active" | "pending" | "restricted";
482
+ readonly status_details: ReadonlyArray<Stripetreasury_financial_accounts_resource_toggles_setting_status_details>;
483
+ } & { readonly [x: string]: Schema.Json };
484
+ export type Stripetreasury_financial_accounts_resource_aba_toggle_settings = {
485
+ readonly requested: boolean;
486
+ readonly status: "active" | "pending" | "restricted";
487
+ readonly status_details: ReadonlyArray<Stripetreasury_financial_accounts_resource_toggles_setting_status_details>;
488
+ } & { readonly [x: string]: Schema.Json };
489
+ export type Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings =
490
+ {
491
+ readonly requested: boolean;
492
+ readonly status: "active" | "pending" | "restricted";
493
+ readonly status_details: ReadonlyArray<Stripetreasury_financial_accounts_resource_toggles_setting_status_details>;
494
+ } & { readonly [x: string]: Schema.Json };
495
+ export type Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings =
496
+ {
497
+ readonly requested: boolean;
498
+ readonly status: "active" | "pending" | "restricted";
499
+ readonly status_details: ReadonlyArray<Stripetreasury_financial_accounts_resource_toggles_setting_status_details>;
500
+ } & { readonly [x: string]: Schema.Json };
501
+ export type Stripetreasury_financial_accounts_resource_financial_address = {
502
+ readonly aba?: Stripetreasury_financial_accounts_resource_aba_record;
503
+ readonly supported_networks?: ReadonlyArray<
504
+ "ach" | "rtp" | "us_domestic_wire"
505
+ >;
506
+ readonly type: "aba";
507
+ } & { readonly [x: string]: Schema.Json };
508
+ export type Stripetreasury_financial_accounts_resource_status_details = {
509
+ readonly closed?: Stripetreasury_financial_accounts_resource_closed_status_details | null;
510
+ } & { readonly [x: string]: Schema.Json };
511
+ export type Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details =
512
+ {
513
+ readonly balance?: "payments";
514
+ readonly billing_details: Stripetreasury_shared_resource_billing_details;
515
+ readonly financial_account?: Stripereceived_payment_method_details_financial_account;
516
+ readonly issuing_card?: string;
517
+ readonly type:
518
+ | "balance"
519
+ | "financial_account"
520
+ | "issuing_card"
521
+ | "stripe"
522
+ | "us_bank_account";
523
+ readonly us_bank_account?: Stripetreasury_shared_resource_initiating_payment_method_details_us_bank_account;
524
+ } & { readonly [x: string]: Schema.Json };
525
+ export type Stripetreasury_financial_accounts_resource_financial_addresses_features =
526
+ {
527
+ readonly aba?: Stripetreasury_financial_accounts_resource_aba_toggle_settings;
528
+ } & { readonly [x: string]: Schema.Json };
529
+ export type Stripetreasury_financial_accounts_resource_inbound_transfers = {
530
+ readonly ach?: Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings;
531
+ } & { readonly [x: string]: Schema.Json };
532
+ export type Stripetreasury_financial_accounts_resource_outbound_payments = {
533
+ readonly ach?: Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings;
534
+ readonly us_domestic_wire?: Stripetreasury_financial_accounts_resource_toggle_settings;
535
+ } & { readonly [x: string]: Schema.Json };
536
+ export type Stripetreasury_financial_accounts_resource_outbound_transfers = {
537
+ readonly ach?: Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings;
538
+ readonly us_domestic_wire?: Stripetreasury_financial_accounts_resource_toggle_settings;
539
+ } & { readonly [x: string]: Schema.Json };
540
+ export type Stripetreasury_financial_account_features = {
541
+ readonly card_issuing?: Stripetreasury_financial_accounts_resource_toggle_settings;
542
+ readonly deposit_insurance?: Stripetreasury_financial_accounts_resource_toggle_settings;
543
+ readonly financial_addresses?: Stripetreasury_financial_accounts_resource_financial_addresses_features;
544
+ readonly inbound_transfers?: Stripetreasury_financial_accounts_resource_inbound_transfers;
545
+ readonly intra_stripe_flows?: Stripetreasury_financial_accounts_resource_toggle_settings;
546
+ readonly object: "treasury.financial_account_features";
547
+ readonly outbound_payments?: Stripetreasury_financial_accounts_resource_outbound_payments;
548
+ readonly outbound_transfers?: Stripetreasury_financial_accounts_resource_outbound_transfers;
549
+ } & { readonly [x: string]: Schema.Json };
550
+ export type Stripetreasury_financial_account = {
551
+ readonly active_features?: ReadonlyArray<
552
+ | "card_issuing"
553
+ | "deposit_insurance"
554
+ | "financial_addresses.aba"
555
+ | "financial_addresses.aba.forwarding"
556
+ | "inbound_transfers.ach"
557
+ | "intra_stripe_flows"
558
+ | "outbound_payments.ach"
559
+ | "outbound_payments.us_domestic_wire"
560
+ | "outbound_transfers.ach"
561
+ | "outbound_transfers.us_domestic_wire"
562
+ | "remote_deposit_capture"
563
+ >;
564
+ readonly balance: Stripetreasury_financial_accounts_resource_balance;
565
+ readonly country: string;
566
+ readonly created: number;
567
+ readonly features?: Stripetreasury_financial_account_features;
568
+ readonly financial_addresses: ReadonlyArray<Stripetreasury_financial_accounts_resource_financial_address>;
569
+ readonly id: string;
570
+ readonly is_default?: boolean;
571
+ readonly livemode: boolean;
572
+ readonly metadata?: { readonly [x: string]: string } | null;
573
+ readonly nickname?: string | null;
574
+ readonly object: "treasury.financial_account";
575
+ readonly pending_features?: ReadonlyArray<
576
+ | "card_issuing"
577
+ | "deposit_insurance"
578
+ | "financial_addresses.aba"
579
+ | "financial_addresses.aba.forwarding"
580
+ | "inbound_transfers.ach"
581
+ | "intra_stripe_flows"
582
+ | "outbound_payments.ach"
583
+ | "outbound_payments.us_domestic_wire"
584
+ | "outbound_transfers.ach"
585
+ | "outbound_transfers.us_domestic_wire"
586
+ | "remote_deposit_capture"
587
+ >;
588
+ readonly platform_restrictions?: Stripetreasury_financial_accounts_resource_platform_restrictions | null;
589
+ readonly restricted_features?: ReadonlyArray<
590
+ | "card_issuing"
591
+ | "deposit_insurance"
592
+ | "financial_addresses.aba"
593
+ | "financial_addresses.aba.forwarding"
594
+ | "inbound_transfers.ach"
595
+ | "intra_stripe_flows"
596
+ | "outbound_payments.ach"
597
+ | "outbound_payments.us_domestic_wire"
598
+ | "outbound_transfers.ach"
599
+ | "outbound_transfers.us_domestic_wire"
600
+ | "remote_deposit_capture"
601
+ >;
602
+ readonly status: "closed" | "open";
603
+ readonly status_details: Stripetreasury_financial_accounts_resource_status_details;
604
+ readonly supported_currencies: ReadonlyArray<string>;
605
+ } & { readonly [x: string]: Schema.Json };
606
+
607
+ export const Stripetreasury_transaction = Schema.suspend(
608
+ (): Schema.Codec<Stripetreasury_transaction> =>
609
+ Schema.StructWithRest(
610
+ Schema.Struct({
611
+ amount: Schema.Number.annotate({
612
+ description: "Amount (in cents) transferred.",
613
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
614
+ balance_impact: Stripetreasury_transactions_resource_balance_impact,
615
+ created: Schema.Number.annotate({
616
+ description:
617
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
618
+ format: "unix-time",
619
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
620
+ currency: Schema.String.annotate({
621
+ description:
622
+ "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).",
623
+ format: "currency",
624
+ }),
625
+ description: Schema.String.annotate({
626
+ description:
627
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
628
+ }).check(
629
+ Schema.isMaxCodePoints(5000).annotate({
630
+ expected: "a string with at most 5000 code points",
631
+ }),
632
+ ),
633
+ entries: Schema.optionalKey(
634
+ Schema.Union([
635
+ Schema.StructWithRest(
636
+ Schema.Struct({
637
+ data: Schema.Array(
638
+ Schema.suspend(
639
+ (): Schema.Codec<Stripetreasury_transaction_entry> =>
640
+ Stripetreasury_transaction_entry,
641
+ ),
642
+ ).annotate({ description: "Details about each object." }),
643
+ has_more: Schema.Boolean.annotate({
644
+ description:
645
+ "True if this list has another page of items after this one that can be fetched.",
646
+ }),
647
+ object: Schema.Literal("list").annotate({
648
+ description:
649
+ "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
650
+ }),
651
+ url: Schema.String.annotate({
652
+ description: "The URL where this list can be accessed.",
653
+ })
654
+ .check(
655
+ Schema.isMaxCodePoints(5000).annotate({
656
+ expected: "a string with at most 5000 code points",
657
+ }),
658
+ )
659
+ .check(
660
+ Schema.isPattern(
661
+ new globalThis.RegExp(
662
+ "^\\/v1\\/treasury\\/transaction_entries",
663
+ "u",
664
+ ),
665
+ ).annotate({
666
+ expected:
667
+ "a string matching the RegExp ^\\/v1\\/treasury\\/transaction_entries",
668
+ }),
669
+ ),
670
+ }),
671
+ [
672
+ Schema.Record(
673
+ Schema.String,
674
+ Schema.Json.annotate({ expected: "JSON value" }),
675
+ ),
676
+ ],
677
+ ).annotate({
678
+ title: "TreasuryTransactionsResourceTransactionEntryList",
679
+ description:
680
+ "A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.",
681
+ }),
682
+ Schema.Null,
683
+ ]),
684
+ ),
685
+ financial_account: Schema.String.annotate({
686
+ description: "The FinancialAccount associated with this object.",
687
+ }).check(
688
+ Schema.isMaxCodePoints(5000).annotate({
689
+ expected: "a string with at most 5000 code points",
690
+ }),
691
+ ),
692
+ flow: Schema.optionalKey(
693
+ Schema.Union([
694
+ Schema.String.annotate({
695
+ description: "ID of the flow that created the Transaction.",
696
+ }).check(
697
+ Schema.isMaxCodePoints(5000).annotate({
698
+ expected: "a string with at most 5000 code points",
699
+ }),
700
+ ),
701
+ Schema.Null,
702
+ ]),
703
+ ),
704
+ flow_details: Schema.optionalKey(
705
+ Schema.Union([
706
+ Schema.Union([
707
+ Schema.suspend(
708
+ (): Schema.Codec<Stripetreasury_transactions_resource_flow_details> =>
709
+ Stripetreasury_transactions_resource_flow_details,
710
+ ),
711
+ ]).annotate({
712
+ description: "Details of the flow that created the Transaction.",
713
+ }),
714
+ Schema.Null,
715
+ ]),
716
+ ),
717
+ flow_type: Schema.Literals([
718
+ "credit_reversal",
719
+ "debit_reversal",
720
+ "inbound_transfer",
721
+ "issuing_authorization",
722
+ "other",
723
+ "outbound_payment",
724
+ "outbound_transfer",
725
+ "received_credit",
726
+ "received_debit",
727
+ ]).annotate({
728
+ description: "Type of the flow that created the Transaction.",
729
+ }),
730
+ id: Schema.String.annotate({
731
+ description: "Unique identifier for the object.",
732
+ }).check(
733
+ Schema.isMaxCodePoints(5000).annotate({
734
+ expected: "a string with at most 5000 code points",
735
+ }),
736
+ ),
737
+ livemode: Schema.Boolean.annotate({
738
+ description:
739
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
740
+ }),
741
+ object: Schema.Literal("treasury.transaction").annotate({
742
+ description:
743
+ "String representing the object's type. Objects of the same type share the same value.",
744
+ }),
745
+ status: Schema.Literals(["open", "posted", "void"]).annotate({
746
+ description: "Status of the Transaction.",
747
+ }),
748
+ status_transitions:
749
+ Stripetreasury_transactions_resource_abstract_transaction_resource_status_transitions,
750
+ }),
751
+ [
752
+ Schema.Record(
753
+ Schema.String,
754
+ Schema.Json.annotate({ expected: "JSON value" }),
755
+ ),
756
+ ],
757
+ ).annotate({
758
+ title: "Transaction",
759
+ description:
760
+ "Legacy Transactions are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Transactions](https://docs.stripe.com/api/v2/money-management/transactions) instead of building a new v1 integration.\n\nTransactions represent changes to a [FinancialAccount's](https://docs.stripe.com/api#financial_accounts) balance.",
761
+ identifier: "Stripetreasury.transaction",
762
+ }),
763
+ );
764
+ export const Stripetreasury_transactions_resource_flow_details =
765
+ Schema.StructWithRest(
766
+ Schema.Struct({
767
+ credit_reversal: Schema.optionalKey(
768
+ Schema.suspend(
769
+ (): Schema.Codec<Stripetreasury_credit_reversal> =>
770
+ Stripetreasury_credit_reversal,
771
+ ),
772
+ ),
773
+ debit_reversal: Schema.optionalKey(
774
+ Schema.suspend(
775
+ (): Schema.Codec<Stripetreasury_debit_reversal> =>
776
+ Stripetreasury_debit_reversal,
777
+ ),
778
+ ),
779
+ inbound_transfer: Schema.optionalKey(
780
+ Schema.suspend(
781
+ (): Schema.Codec<Stripetreasury_inbound_transfer> =>
782
+ Stripetreasury_inbound_transfer,
783
+ ),
784
+ ),
785
+ issuing_authorization: Schema.optionalKey(
786
+ Schema.suspend(
787
+ (): Schema.Codec<Stripeissuing_authorization> =>
788
+ Stripeissuing_authorization,
789
+ ),
790
+ ),
791
+ outbound_payment: Schema.optionalKey(
792
+ Schema.suspend(
793
+ (): Schema.Codec<Stripetreasury_outbound_payment> =>
794
+ Stripetreasury_outbound_payment,
795
+ ),
796
+ ),
797
+ outbound_transfer: Schema.optionalKey(
798
+ Schema.suspend(
799
+ (): Schema.Codec<Stripetreasury_outbound_transfer> =>
800
+ Stripetreasury_outbound_transfer,
801
+ ),
802
+ ),
803
+ received_credit: Schema.optionalKey(
804
+ Schema.suspend(
805
+ (): Schema.Codec<Stripetreasury_received_credit> =>
806
+ Stripetreasury_received_credit,
807
+ ),
808
+ ),
809
+ received_debit: Schema.optionalKey(
810
+ Schema.suspend(
811
+ (): Schema.Codec<Stripetreasury_received_debit> =>
812
+ Stripetreasury_received_debit,
813
+ ),
814
+ ),
815
+ type: Schema.Literals([
816
+ "credit_reversal",
817
+ "debit_reversal",
818
+ "inbound_transfer",
819
+ "issuing_authorization",
820
+ "other",
821
+ "outbound_payment",
822
+ "outbound_transfer",
823
+ "received_credit",
824
+ "received_debit",
825
+ ]).annotate({
826
+ description:
827
+ "Type of the flow that created the Transaction. Set to the same value as `flow_type`.",
828
+ }),
829
+ }),
830
+ [
831
+ Schema.Record(
832
+ Schema.String,
833
+ Schema.Json.annotate({ expected: "JSON value" }),
834
+ ),
835
+ ],
836
+ ).annotate({
837
+ title: "TreasuryTransactionsResourceFlowDetails",
838
+ description: "",
839
+ identifier: "Stripetreasury_transactions_resource_flow_details",
840
+ });
841
+ export const Stripetreasury_received_debit = Schema.suspend(
842
+ (): Schema.Codec<Stripetreasury_received_debit> =>
843
+ Schema.StructWithRest(
844
+ Schema.Struct({
845
+ amount: Schema.Number.annotate({
846
+ description: "Amount (in cents) transferred.",
847
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
848
+ created: Schema.Number.annotate({
849
+ description:
850
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
851
+ format: "unix-time",
852
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
853
+ currency: Schema.String.annotate({
854
+ description:
855
+ "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).",
856
+ format: "currency",
857
+ }),
858
+ description: Schema.String.annotate({
859
+ description:
860
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
861
+ }).check(
862
+ Schema.isMaxCodePoints(5000).annotate({
863
+ expected: "a string with at most 5000 code points",
864
+ }),
865
+ ),
866
+ failure_code: Schema.optionalKey(
867
+ Schema.Union([
868
+ Schema.Literals([
869
+ "account_closed",
870
+ "account_frozen",
871
+ "insufficient_funds",
872
+ "international_transaction",
873
+ "other",
874
+ ]).annotate({
875
+ description:
876
+ "Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.",
877
+ }),
878
+ Schema.Null,
879
+ ]),
880
+ ),
881
+ financial_account: Schema.optionalKey(
882
+ Schema.Union([
883
+ Schema.String.annotate({
884
+ description: "The FinancialAccount that funds were pulled from.",
885
+ }).check(
886
+ Schema.isMaxCodePoints(5000).annotate({
887
+ expected: "a string with at most 5000 code points",
888
+ }),
889
+ ),
890
+ Schema.Null,
891
+ ]),
892
+ ),
893
+ hosted_regulatory_receipt_url: Schema.optionalKey(
894
+ Schema.Union([
895
+ Schema.String.annotate({
896
+ description:
897
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
898
+ }).check(
899
+ Schema.isMaxCodePoints(5000).annotate({
900
+ expected: "a string with at most 5000 code points",
901
+ }),
902
+ ),
903
+ Schema.Null,
904
+ ]),
905
+ ),
906
+ id: Schema.String.annotate({
907
+ description: "Unique identifier for the object.",
908
+ }).check(
909
+ Schema.isMaxCodePoints(5000).annotate({
910
+ expected: "a string with at most 5000 code points",
911
+ }),
912
+ ),
913
+ initiating_payment_method_details: Schema.optionalKey(
914
+ Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details,
915
+ ),
916
+ linked_flows: Stripetreasury_received_debits_resource_linked_flows,
917
+ livemode: Schema.Boolean.annotate({
918
+ description:
919
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
920
+ }),
921
+ network: Schema.Literals(["ach", "card", "stripe"]).annotate({
922
+ description: "The network used for the ReceivedDebit.",
923
+ }),
924
+ object: Schema.Literal("treasury.received_debit").annotate({
925
+ description:
926
+ "String representing the object's type. Objects of the same type share the same value.",
927
+ }),
928
+ reversal_details: Schema.optionalKey(
929
+ Schema.Union([
930
+ Schema.Union([
931
+ Stripetreasury_received_debits_resource_reversal_details,
932
+ ]).annotate({
933
+ description:
934
+ "Details describing when a ReceivedDebit might be reversed.",
935
+ }),
936
+ Schema.Null,
937
+ ]),
938
+ ),
939
+ status: Schema.Literals(["failed", "succeeded"]).annotate({
940
+ description:
941
+ "Status of the ReceivedDebit. ReceivedDebits are created with a status of either `succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`.",
942
+ }),
943
+ transaction: Schema.optionalKey(
944
+ Schema.Union([
945
+ Schema.Union([
946
+ Schema.String.check(
947
+ Schema.isMaxCodePoints(5000).annotate({
948
+ expected: "a string with at most 5000 code points",
949
+ }),
950
+ ),
951
+ Schema.suspend(
952
+ (): Schema.Codec<Stripetreasury_transaction> =>
953
+ Stripetreasury_transaction,
954
+ ),
955
+ ]).annotate({
956
+ description: "The Transaction associated with this object.",
957
+ }),
958
+ Schema.Null,
959
+ ]),
960
+ ),
961
+ }),
962
+ [
963
+ Schema.Record(
964
+ Schema.String,
965
+ Schema.Json.annotate({ expected: "JSON value" }),
966
+ ),
967
+ ],
968
+ ).annotate({
969
+ title: "ReceivedDebit",
970
+ description:
971
+ "Legacy ReceivedDebits are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Received Debits](https://docs.stripe.com/api/v2/money-management/received-debits?api-version=preview) instead of building a new v1 integration.\n\nReceivedDebits represent funds pulled from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts). These are not initiated from the FinancialAccount.",
972
+ identifier: "Stripetreasury.received_debit",
973
+ }),
974
+ );
975
+ export const Stripetreasury_received_credit = Schema.suspend(
976
+ (): Schema.Codec<Stripetreasury_received_credit> =>
977
+ Schema.StructWithRest(
978
+ Schema.Struct({
979
+ amount: Schema.Number.annotate({
980
+ description: "Amount (in cents) transferred.",
981
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
982
+ created: Schema.Number.annotate({
983
+ description:
984
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
985
+ format: "unix-time",
986
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
987
+ currency: Schema.String.annotate({
988
+ description:
989
+ "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).",
990
+ format: "currency",
991
+ }),
992
+ description: Schema.String.annotate({
993
+ description:
994
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
995
+ }).check(
996
+ Schema.isMaxCodePoints(5000).annotate({
997
+ expected: "a string with at most 5000 code points",
998
+ }),
999
+ ),
1000
+ failure_code: Schema.optionalKey(
1001
+ Schema.Union([
1002
+ Schema.Literals([
1003
+ "account_closed",
1004
+ "account_frozen",
1005
+ "international_transaction",
1006
+ "other",
1007
+ ]).annotate({
1008
+ description:
1009
+ "Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.",
1010
+ }),
1011
+ Schema.Null,
1012
+ ]),
1013
+ ),
1014
+ financial_account: Schema.optionalKey(
1015
+ Schema.Union([
1016
+ Schema.String.annotate({
1017
+ description: "The FinancialAccount that received the funds.",
1018
+ }).check(
1019
+ Schema.isMaxCodePoints(5000).annotate({
1020
+ expected: "a string with at most 5000 code points",
1021
+ }),
1022
+ ),
1023
+ Schema.Null,
1024
+ ]),
1025
+ ),
1026
+ hosted_regulatory_receipt_url: Schema.optionalKey(
1027
+ Schema.Union([
1028
+ Schema.String.annotate({
1029
+ description:
1030
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
1031
+ }).check(
1032
+ Schema.isMaxCodePoints(5000).annotate({
1033
+ expected: "a string with at most 5000 code points",
1034
+ }),
1035
+ ),
1036
+ Schema.Null,
1037
+ ]),
1038
+ ),
1039
+ id: Schema.String.annotate({
1040
+ description: "Unique identifier for the object.",
1041
+ }).check(
1042
+ Schema.isMaxCodePoints(5000).annotate({
1043
+ expected: "a string with at most 5000 code points",
1044
+ }),
1045
+ ),
1046
+ initiating_payment_method_details:
1047
+ Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details,
1048
+ linked_flows: Schema.suspend(
1049
+ (): Schema.Codec<Stripetreasury_received_credits_resource_linked_flows> =>
1050
+ Stripetreasury_received_credits_resource_linked_flows,
1051
+ ),
1052
+ livemode: Schema.Boolean.annotate({
1053
+ description:
1054
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1055
+ }),
1056
+ network: Schema.Literals([
1057
+ "ach",
1058
+ "card",
1059
+ "rtp",
1060
+ "stripe",
1061
+ "us_domestic_wire",
1062
+ ]).annotate({ description: "The rails used to send the funds." }),
1063
+ object: Schema.Literal("treasury.received_credit").annotate({
1064
+ description:
1065
+ "String representing the object's type. Objects of the same type share the same value.",
1066
+ }),
1067
+ reversal_details: Schema.optionalKey(
1068
+ Schema.Union([
1069
+ Schema.Union([
1070
+ Stripetreasury_received_credits_resource_reversal_details,
1071
+ ]).annotate({
1072
+ description:
1073
+ "Details describing when a ReceivedCredit may be reversed.",
1074
+ }),
1075
+ Schema.Null,
1076
+ ]),
1077
+ ),
1078
+ status: Schema.Literals(["failed", "succeeded"]).annotate({
1079
+ description:
1080
+ "Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field.",
1081
+ }),
1082
+ transaction: Schema.optionalKey(
1083
+ Schema.Union([
1084
+ Schema.Union([
1085
+ Schema.String.check(
1086
+ Schema.isMaxCodePoints(5000).annotate({
1087
+ expected: "a string with at most 5000 code points",
1088
+ }),
1089
+ ),
1090
+ Schema.suspend(
1091
+ (): Schema.Codec<Stripetreasury_transaction> =>
1092
+ Stripetreasury_transaction,
1093
+ ),
1094
+ ]).annotate({
1095
+ description: "The Transaction associated with this object.",
1096
+ }),
1097
+ Schema.Null,
1098
+ ]),
1099
+ ),
1100
+ }),
1101
+ [
1102
+ Schema.Record(
1103
+ Schema.String,
1104
+ Schema.Json.annotate({ expected: "JSON value" }),
1105
+ ),
1106
+ ],
1107
+ ).annotate({
1108
+ title: "ReceivedCredit",
1109
+ description:
1110
+ "Legacy ReceivedCredits are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Received Credits](https://docs.stripe.com/api/v2/money-management/received-credits?api-version=preview) instead of building a new v1 integration.\n\nReceivedCredits represent funds sent to a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.",
1111
+ identifier: "Stripetreasury.received_credit",
1112
+ }),
1113
+ );
1114
+ export const Stripetreasury_received_credits_resource_linked_flows =
1115
+ Schema.StructWithRest(
1116
+ Schema.Struct({
1117
+ credit_reversal: Schema.optionalKey(
1118
+ Schema.Union([
1119
+ Schema.String.annotate({
1120
+ description:
1121
+ "The CreditReversal created as a result of this ReceivedCredit being reversed.",
1122
+ }).check(
1123
+ Schema.isMaxCodePoints(5000).annotate({
1124
+ expected: "a string with at most 5000 code points",
1125
+ }),
1126
+ ),
1127
+ Schema.Null,
1128
+ ]),
1129
+ ),
1130
+ issuing_authorization: Schema.optionalKey(
1131
+ Schema.Union([
1132
+ Schema.String.annotate({
1133
+ description:
1134
+ "Set if the ReceivedCredit was created due to an [Issuing Authorization](https://docs.stripe.com/api#issuing_authorizations) object.",
1135
+ }).check(
1136
+ Schema.isMaxCodePoints(5000).annotate({
1137
+ expected: "a string with at most 5000 code points",
1138
+ }),
1139
+ ),
1140
+ Schema.Null,
1141
+ ]),
1142
+ ),
1143
+ issuing_transaction: Schema.optionalKey(
1144
+ Schema.Union([
1145
+ Schema.String.annotate({
1146
+ description:
1147
+ "Set if the ReceivedCredit is also viewable as an [Issuing transaction](https://docs.stripe.com/api#issuing_transactions) object.",
1148
+ }).check(
1149
+ Schema.isMaxCodePoints(5000).annotate({
1150
+ expected: "a string with at most 5000 code points",
1151
+ }),
1152
+ ),
1153
+ Schema.Null,
1154
+ ]),
1155
+ ),
1156
+ source_flow: Schema.optionalKey(
1157
+ Schema.Union([
1158
+ Schema.String.annotate({
1159
+ description:
1160
+ "ID of the source flow. Set if `network` is `stripe` and the source flow is visible to the user. Examples of source flows include OutboundPayments, payouts, or CreditReversals.",
1161
+ }).check(
1162
+ Schema.isMaxCodePoints(5000).annotate({
1163
+ expected: "a string with at most 5000 code points",
1164
+ }),
1165
+ ),
1166
+ Schema.Null,
1167
+ ]),
1168
+ ),
1169
+ source_flow_details: Schema.optionalKey(
1170
+ Schema.Union([
1171
+ Schema.Union([
1172
+ Schema.suspend(
1173
+ (): Schema.Codec<Stripetreasury_received_credits_resource_source_flows_details> =>
1174
+ Stripetreasury_received_credits_resource_source_flows_details,
1175
+ ),
1176
+ ]).annotate({
1177
+ description: "The expandable object of the source flow.",
1178
+ }),
1179
+ Schema.Null,
1180
+ ]),
1181
+ ),
1182
+ source_flow_type: Schema.optionalKey(
1183
+ Schema.Union([
1184
+ Schema.String.annotate({
1185
+ description:
1186
+ "The type of flow that originated the ReceivedCredit (for example, `outbound_payment`).",
1187
+ }).check(
1188
+ Schema.isMaxCodePoints(5000).annotate({
1189
+ expected: "a string with at most 5000 code points",
1190
+ }),
1191
+ ),
1192
+ Schema.Null,
1193
+ ]),
1194
+ ),
1195
+ }),
1196
+ [
1197
+ Schema.Record(
1198
+ Schema.String,
1199
+ Schema.Json.annotate({ expected: "JSON value" }),
1200
+ ),
1201
+ ],
1202
+ ).annotate({
1203
+ title: "TreasuryReceivedCreditsResourceLinkedFlows",
1204
+ description: "",
1205
+ identifier: "Stripetreasury_received_credits_resource_linked_flows",
1206
+ });
1207
+ export const Stripetreasury_received_credits_resource_source_flows_details =
1208
+ Schema.StructWithRest(
1209
+ Schema.Struct({
1210
+ credit_reversal: Schema.optionalKey(
1211
+ Schema.suspend(
1212
+ (): Schema.Codec<Stripetreasury_credit_reversal> =>
1213
+ Stripetreasury_credit_reversal,
1214
+ ),
1215
+ ),
1216
+ outbound_payment: Schema.optionalKey(
1217
+ Schema.suspend(
1218
+ (): Schema.Codec<Stripetreasury_outbound_payment> =>
1219
+ Stripetreasury_outbound_payment,
1220
+ ),
1221
+ ),
1222
+ outbound_transfer: Schema.optionalKey(
1223
+ Schema.suspend(
1224
+ (): Schema.Codec<Stripetreasury_outbound_transfer> =>
1225
+ Stripetreasury_outbound_transfer,
1226
+ ),
1227
+ ),
1228
+ payout: Schema.optionalKey(
1229
+ Schema.suspend((): Schema.Codec<Stripepayout> => Stripepayout),
1230
+ ),
1231
+ type: Schema.Literals([
1232
+ "credit_reversal",
1233
+ "other",
1234
+ "outbound_payment",
1235
+ "outbound_transfer",
1236
+ "payout",
1237
+ ]).annotate({
1238
+ description:
1239
+ "The type of the source flow that originated the ReceivedCredit.",
1240
+ }),
1241
+ }),
1242
+ [
1243
+ Schema.Record(
1244
+ Schema.String,
1245
+ Schema.Json.annotate({ expected: "JSON value" }),
1246
+ ),
1247
+ ],
1248
+ ).annotate({
1249
+ title: "TreasuryReceivedCreditsResourceSourceFlowsDetails",
1250
+ description: "",
1251
+ identifier: "Stripetreasury_received_credits_resource_source_flows_details",
1252
+ });
1253
+ export const Stripetreasury_outbound_transfer = Schema.suspend(
1254
+ (): Schema.Codec<Stripetreasury_outbound_transfer> =>
1255
+ Schema.StructWithRest(
1256
+ Schema.Struct({
1257
+ amount: Schema.Number.annotate({
1258
+ description: "Amount (in cents) transferred.",
1259
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1260
+ cancelable: Schema.Boolean.annotate({
1261
+ description:
1262
+ "Returns `true` if the object can be canceled, and `false` otherwise.",
1263
+ }),
1264
+ created: Schema.Number.annotate({
1265
+ description:
1266
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1267
+ format: "unix-time",
1268
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1269
+ currency: Schema.String.annotate({
1270
+ description:
1271
+ "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).",
1272
+ format: "currency",
1273
+ }),
1274
+ description: Schema.optionalKey(
1275
+ Schema.Union([
1276
+ Schema.String.annotate({
1277
+ description:
1278
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
1279
+ }).check(
1280
+ Schema.isMaxCodePoints(5000).annotate({
1281
+ expected: "a string with at most 5000 code points",
1282
+ }),
1283
+ ),
1284
+ Schema.Null,
1285
+ ]),
1286
+ ),
1287
+ destination_payment_method: Schema.optionalKey(
1288
+ Schema.Union([
1289
+ Schema.String.annotate({
1290
+ description:
1291
+ "The PaymentMethod used as the payment instrument for an OutboundTransfer.",
1292
+ }).check(
1293
+ Schema.isMaxCodePoints(5000).annotate({
1294
+ expected: "a string with at most 5000 code points",
1295
+ }),
1296
+ ),
1297
+ Schema.Null,
1298
+ ]),
1299
+ ),
1300
+ destination_payment_method_details:
1301
+ Stripeoutbound_transfers_payment_method_details,
1302
+ expected_arrival_date: Schema.Number.annotate({
1303
+ description:
1304
+ "The date when funds are expected to arrive in the destination account.",
1305
+ format: "unix-time",
1306
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1307
+ financial_account: Schema.String.annotate({
1308
+ description: "The FinancialAccount that funds were pulled from.",
1309
+ }).check(
1310
+ Schema.isMaxCodePoints(5000).annotate({
1311
+ expected: "a string with at most 5000 code points",
1312
+ }),
1313
+ ),
1314
+ hosted_regulatory_receipt_url: Schema.optionalKey(
1315
+ Schema.Union([
1316
+ Schema.String.annotate({
1317
+ description:
1318
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
1319
+ }).check(
1320
+ Schema.isMaxCodePoints(5000).annotate({
1321
+ expected: "a string with at most 5000 code points",
1322
+ }),
1323
+ ),
1324
+ Schema.Null,
1325
+ ]),
1326
+ ),
1327
+ id: Schema.String.annotate({
1328
+ description: "Unique identifier for the object.",
1329
+ }).check(
1330
+ Schema.isMaxCodePoints(5000).annotate({
1331
+ expected: "a string with at most 5000 code points",
1332
+ }),
1333
+ ),
1334
+ livemode: Schema.Boolean.annotate({
1335
+ description:
1336
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1337
+ }),
1338
+ metadata: Schema.Record(
1339
+ Schema.String,
1340
+ Schema.String.check(
1341
+ Schema.isMaxCodePoints(500).annotate({
1342
+ expected: "a string with at most 500 code points",
1343
+ }),
1344
+ ),
1345
+ ).annotate({
1346
+ description:
1347
+ "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.",
1348
+ }),
1349
+ object: Schema.Literal("treasury.outbound_transfer").annotate({
1350
+ description:
1351
+ "String representing the object's type. Objects of the same type share the same value.",
1352
+ }),
1353
+ returned_details: Schema.optionalKey(
1354
+ Schema.Union([
1355
+ Schema.Union([
1356
+ Schema.suspend(
1357
+ (): Schema.Codec<Stripetreasury_outbound_transfers_resource_returned_details> =>
1358
+ Stripetreasury_outbound_transfers_resource_returned_details,
1359
+ ),
1360
+ ]).annotate({
1361
+ description:
1362
+ "Details about a returned OutboundTransfer. Only set when the status is `returned`.",
1363
+ }),
1364
+ Schema.Null,
1365
+ ]),
1366
+ ),
1367
+ statement_descriptor: Schema.String.annotate({
1368
+ description:
1369
+ "Information about the OutboundTransfer to be sent to the recipient account.",
1370
+ }).check(
1371
+ Schema.isMaxCodePoints(5000).annotate({
1372
+ expected: "a string with at most 5000 code points",
1373
+ }),
1374
+ ),
1375
+ status: Schema.Literals([
1376
+ "canceled",
1377
+ "failed",
1378
+ "posted",
1379
+ "processing",
1380
+ "returned",
1381
+ ]).annotate({
1382
+ description:
1383
+ 'Current status of the OutboundTransfer: `processing`, `failed`, `canceled`, `posted`, `returned`. An OutboundTransfer is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundTransfer has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundTransfer fails to arrive at its destination, its status will change to `returned`.',
1384
+ }),
1385
+ status_transitions:
1386
+ Stripetreasury_outbound_transfers_resource_status_transitions,
1387
+ tracking_details: Schema.optionalKey(
1388
+ Schema.Union([
1389
+ Schema.Union([
1390
+ Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details,
1391
+ ]).annotate({
1392
+ description:
1393
+ "Details about network-specific tracking information if available.",
1394
+ }),
1395
+ Schema.Null,
1396
+ ]),
1397
+ ),
1398
+ transaction: Schema.Union([
1399
+ Schema.String.check(
1400
+ Schema.isMaxCodePoints(5000).annotate({
1401
+ expected: "a string with at most 5000 code points",
1402
+ }),
1403
+ ),
1404
+ Schema.suspend(
1405
+ (): Schema.Codec<Stripetreasury_transaction> =>
1406
+ Stripetreasury_transaction,
1407
+ ),
1408
+ ]).annotate({
1409
+ description: "The Transaction associated with this object.",
1410
+ }),
1411
+ }),
1412
+ [
1413
+ Schema.Record(
1414
+ Schema.String,
1415
+ Schema.Json.annotate({ expected: "JSON value" }),
1416
+ ),
1417
+ ],
1418
+ ).annotate({
1419
+ title: "OutboundTransfer",
1420
+ description:
1421
+ "Legacy OutboundTransfers are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Outbound Transfers](https://docs.stripe.com/api/v2/money-management/outbound-transfers?api-version=preview) instead of building a new v1 integration.\n\nUse [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://docs.stripe.com/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://docs.stripe.com/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.\n\nSimulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.\n\nRelated guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)",
1422
+ identifier: "Stripetreasury.outbound_transfer",
1423
+ }),
1424
+ );
1425
+ export const Stripetreasury_outbound_transfers_resource_returned_details =
1426
+ Schema.StructWithRest(
1427
+ Schema.Struct({
1428
+ code: Schema.Literals([
1429
+ "account_closed",
1430
+ "account_frozen",
1431
+ "bank_account_restricted",
1432
+ "bank_ownership_changed",
1433
+ "declined",
1434
+ "incorrect_account_holder_name",
1435
+ "invalid_account_number",
1436
+ "invalid_currency",
1437
+ "no_account",
1438
+ "other",
1439
+ ]).annotate({ description: "Reason for the return." }),
1440
+ transaction: Schema.Union([
1441
+ Schema.String.check(
1442
+ Schema.isMaxCodePoints(5000).annotate({
1443
+ expected: "a string with at most 5000 code points",
1444
+ }),
1445
+ ),
1446
+ Schema.suspend(
1447
+ (): Schema.Codec<Stripetreasury_transaction> =>
1448
+ Stripetreasury_transaction,
1449
+ ),
1450
+ ]).annotate({
1451
+ description: "The Transaction associated with this object.",
1452
+ }),
1453
+ }),
1454
+ [
1455
+ Schema.Record(
1456
+ Schema.String,
1457
+ Schema.Json.annotate({ expected: "JSON value" }),
1458
+ ),
1459
+ ],
1460
+ ).annotate({
1461
+ title: "TreasuryOutboundTransfersResourceReturnedDetails",
1462
+ description: "",
1463
+ identifier: "Stripetreasury_outbound_transfers_resource_returned_details",
1464
+ });
1465
+ export const Stripetreasury_outbound_payment = Schema.suspend(
1466
+ (): Schema.Codec<Stripetreasury_outbound_payment> =>
1467
+ Schema.StructWithRest(
1468
+ Schema.Struct({
1469
+ amount: Schema.Number.annotate({
1470
+ description: "Amount (in cents) transferred.",
1471
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1472
+ cancelable: Schema.Boolean.annotate({
1473
+ description:
1474
+ "Returns `true` if the object can be canceled, and `false` otherwise.",
1475
+ }),
1476
+ created: Schema.Number.annotate({
1477
+ description:
1478
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1479
+ format: "unix-time",
1480
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1481
+ currency: Schema.String.annotate({
1482
+ description:
1483
+ "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).",
1484
+ format: "currency",
1485
+ }),
1486
+ customer: Schema.optionalKey(
1487
+ Schema.Union([
1488
+ Schema.String.annotate({
1489
+ description:
1490
+ "ID of the [customer](https://docs.stripe.com/api/customers) to whom an OutboundPayment is sent.",
1491
+ }).check(
1492
+ Schema.isMaxCodePoints(5000).annotate({
1493
+ expected: "a string with at most 5000 code points",
1494
+ }),
1495
+ ),
1496
+ Schema.Null,
1497
+ ]),
1498
+ ),
1499
+ description: Schema.optionalKey(
1500
+ Schema.Union([
1501
+ Schema.String.annotate({
1502
+ description:
1503
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
1504
+ }).check(
1505
+ Schema.isMaxCodePoints(5000).annotate({
1506
+ expected: "a string with at most 5000 code points",
1507
+ }),
1508
+ ),
1509
+ Schema.Null,
1510
+ ]),
1511
+ ),
1512
+ destination_payment_method: Schema.optionalKey(
1513
+ Schema.Union([
1514
+ Schema.String.annotate({
1515
+ description:
1516
+ "The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created using `destination_payment_method_data`.",
1517
+ }).check(
1518
+ Schema.isMaxCodePoints(5000).annotate({
1519
+ expected: "a string with at most 5000 code points",
1520
+ }),
1521
+ ),
1522
+ Schema.Null,
1523
+ ]),
1524
+ ),
1525
+ destination_payment_method_details: Schema.optionalKey(
1526
+ Schema.Union([
1527
+ Schema.Union([
1528
+ Stripeoutbound_payments_payment_method_details,
1529
+ ]).annotate({
1530
+ description:
1531
+ "Details about the PaymentMethod for an OutboundPayment.",
1532
+ }),
1533
+ Schema.Null,
1534
+ ]),
1535
+ ),
1536
+ end_user_details: Schema.optionalKey(
1537
+ Schema.Union([
1538
+ Schema.Union([
1539
+ Stripetreasury_outbound_payments_resource_outbound_payment_resource_end_user_details,
1540
+ ]).annotate({ description: "Details about the end user." }),
1541
+ Schema.Null,
1542
+ ]),
1543
+ ),
1544
+ expected_arrival_date: Schema.Number.annotate({
1545
+ description:
1546
+ "The date when funds are expected to arrive in the destination account.",
1547
+ format: "unix-time",
1548
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1549
+ financial_account: Schema.String.annotate({
1550
+ description: "The FinancialAccount that funds were pulled from.",
1551
+ }).check(
1552
+ Schema.isMaxCodePoints(5000).annotate({
1553
+ expected: "a string with at most 5000 code points",
1554
+ }),
1555
+ ),
1556
+ hosted_regulatory_receipt_url: Schema.optionalKey(
1557
+ Schema.Union([
1558
+ Schema.String.annotate({
1559
+ description:
1560
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
1561
+ }).check(
1562
+ Schema.isMaxCodePoints(5000).annotate({
1563
+ expected: "a string with at most 5000 code points",
1564
+ }),
1565
+ ),
1566
+ Schema.Null,
1567
+ ]),
1568
+ ),
1569
+ id: Schema.String.annotate({
1570
+ description: "Unique identifier for the object.",
1571
+ }).check(
1572
+ Schema.isMaxCodePoints(5000).annotate({
1573
+ expected: "a string with at most 5000 code points",
1574
+ }),
1575
+ ),
1576
+ livemode: Schema.Boolean.annotate({
1577
+ description:
1578
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1579
+ }),
1580
+ metadata: Schema.Record(
1581
+ Schema.String,
1582
+ Schema.String.check(
1583
+ Schema.isMaxCodePoints(500).annotate({
1584
+ expected: "a string with at most 500 code points",
1585
+ }),
1586
+ ),
1587
+ ).annotate({
1588
+ description:
1589
+ "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.",
1590
+ }),
1591
+ object: Schema.Literal("treasury.outbound_payment").annotate({
1592
+ description:
1593
+ "String representing the object's type. Objects of the same type share the same value.",
1594
+ }),
1595
+ returned_details: Schema.optionalKey(
1596
+ Schema.Union([
1597
+ Schema.Union([
1598
+ Schema.suspend(
1599
+ (): Schema.Codec<Stripetreasury_outbound_payments_resource_returned_status> =>
1600
+ Stripetreasury_outbound_payments_resource_returned_status,
1601
+ ),
1602
+ ]).annotate({
1603
+ description:
1604
+ "Details about a returned OutboundPayment. Only set when the status is `returned`.",
1605
+ }),
1606
+ Schema.Null,
1607
+ ]),
1608
+ ),
1609
+ statement_descriptor: Schema.String.annotate({
1610
+ description:
1611
+ "The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).",
1612
+ }).check(
1613
+ Schema.isMaxCodePoints(5000).annotate({
1614
+ expected: "a string with at most 5000 code points",
1615
+ }),
1616
+ ),
1617
+ status: Schema.Literals([
1618
+ "canceled",
1619
+ "failed",
1620
+ "posted",
1621
+ "processing",
1622
+ "returned",
1623
+ ]).annotate({
1624
+ description:
1625
+ 'Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`. An OutboundPayment is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundPayment fails to arrive at its destination, its status will change to `returned`.',
1626
+ }),
1627
+ status_transitions:
1628
+ Stripetreasury_outbound_payments_resource_outbound_payment_resource_status_transitions,
1629
+ tracking_details: Schema.optionalKey(
1630
+ Schema.Union([
1631
+ Schema.Union([
1632
+ Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details,
1633
+ ]).annotate({
1634
+ description:
1635
+ "Details about network-specific tracking information if available.",
1636
+ }),
1637
+ Schema.Null,
1638
+ ]),
1639
+ ),
1640
+ transaction: Schema.Union([
1641
+ Schema.String.check(
1642
+ Schema.isMaxCodePoints(5000).annotate({
1643
+ expected: "a string with at most 5000 code points",
1644
+ }),
1645
+ ),
1646
+ Schema.suspend(
1647
+ (): Schema.Codec<Stripetreasury_transaction> =>
1648
+ Stripetreasury_transaction,
1649
+ ),
1650
+ ]).annotate({
1651
+ description: "The Transaction associated with this object.",
1652
+ }),
1653
+ }),
1654
+ [
1655
+ Schema.Record(
1656
+ Schema.String,
1657
+ Schema.Json.annotate({ expected: "JSON value" }),
1658
+ ),
1659
+ ],
1660
+ ).annotate({
1661
+ title: "Outbound Payment",
1662
+ description:
1663
+ "Legacy OutboundPayments are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Outbound Payments](https://docs.stripe.com/api/v2/money-management/outbound-payments) instead of building a new v1 integration.\n\nUse [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://docs.stripe.com/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://docs.stripe.com/api#outbound_transfers).\n\nSimulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.\n\nRelated guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)",
1664
+ identifier: "Stripetreasury.outbound_payment",
1665
+ }),
1666
+ );
1667
+ export const Stripetreasury_outbound_payments_resource_returned_status =
1668
+ Schema.StructWithRest(
1669
+ Schema.Struct({
1670
+ code: Schema.Literals([
1671
+ "account_closed",
1672
+ "account_frozen",
1673
+ "bank_account_restricted",
1674
+ "bank_ownership_changed",
1675
+ "declined",
1676
+ "incorrect_account_holder_name",
1677
+ "invalid_account_number",
1678
+ "invalid_currency",
1679
+ "no_account",
1680
+ "other",
1681
+ ]).annotate({ description: "Reason for the return." }),
1682
+ transaction: Schema.Union([
1683
+ Schema.String.check(
1684
+ Schema.isMaxCodePoints(5000).annotate({
1685
+ expected: "a string with at most 5000 code points",
1686
+ }),
1687
+ ),
1688
+ Schema.suspend(
1689
+ (): Schema.Codec<Stripetreasury_transaction> =>
1690
+ Stripetreasury_transaction,
1691
+ ),
1692
+ ]).annotate({
1693
+ description: "The Transaction associated with this object.",
1694
+ }),
1695
+ }),
1696
+ [
1697
+ Schema.Record(
1698
+ Schema.String,
1699
+ Schema.Json.annotate({ expected: "JSON value" }),
1700
+ ),
1701
+ ],
1702
+ ).annotate({
1703
+ title: "TreasuryOutboundPaymentsResourceReturnedStatus",
1704
+ description: "",
1705
+ identifier: "Stripetreasury_outbound_payments_resource_returned_status",
1706
+ });
1707
+ export const Stripetreasury_credit_reversal = Schema.suspend(
1708
+ (): Schema.Codec<Stripetreasury_credit_reversal> =>
1709
+ Schema.StructWithRest(
1710
+ Schema.Struct({
1711
+ amount: Schema.Number.annotate({
1712
+ description: "Amount (in cents) transferred.",
1713
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1714
+ created: Schema.Number.annotate({
1715
+ description:
1716
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1717
+ format: "unix-time",
1718
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1719
+ currency: Schema.String.annotate({
1720
+ description:
1721
+ "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).",
1722
+ format: "currency",
1723
+ }),
1724
+ financial_account: Schema.String.annotate({
1725
+ description: "The FinancialAccount to reverse funds from.",
1726
+ }).check(
1727
+ Schema.isMaxCodePoints(5000).annotate({
1728
+ expected: "a string with at most 5000 code points",
1729
+ }),
1730
+ ),
1731
+ hosted_regulatory_receipt_url: Schema.optionalKey(
1732
+ Schema.Union([
1733
+ Schema.String.annotate({
1734
+ description:
1735
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
1736
+ }).check(
1737
+ Schema.isMaxCodePoints(5000).annotate({
1738
+ expected: "a string with at most 5000 code points",
1739
+ }),
1740
+ ),
1741
+ Schema.Null,
1742
+ ]),
1743
+ ),
1744
+ id: Schema.String.annotate({
1745
+ description: "Unique identifier for the object.",
1746
+ }).check(
1747
+ Schema.isMaxCodePoints(5000).annotate({
1748
+ expected: "a string with at most 5000 code points",
1749
+ }),
1750
+ ),
1751
+ livemode: Schema.Boolean.annotate({
1752
+ description:
1753
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1754
+ }),
1755
+ metadata: Schema.Record(
1756
+ Schema.String,
1757
+ Schema.String.check(
1758
+ Schema.isMaxCodePoints(500).annotate({
1759
+ expected: "a string with at most 500 code points",
1760
+ }),
1761
+ ),
1762
+ ).annotate({
1763
+ description:
1764
+ "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.",
1765
+ }),
1766
+ network: Schema.Literals(["ach", "stripe"]).annotate({
1767
+ description: "The rails used to reverse the funds.",
1768
+ }),
1769
+ object: Schema.Literal("treasury.credit_reversal").annotate({
1770
+ description:
1771
+ "String representing the object's type. Objects of the same type share the same value.",
1772
+ }),
1773
+ received_credit: Schema.String.annotate({
1774
+ description: "The ReceivedCredit being reversed.",
1775
+ }).check(
1776
+ Schema.isMaxCodePoints(5000).annotate({
1777
+ expected: "a string with at most 5000 code points",
1778
+ }),
1779
+ ),
1780
+ status: Schema.Literals(["canceled", "posted", "processing"]).annotate({
1781
+ description: "Status of the CreditReversal",
1782
+ }),
1783
+ status_transitions:
1784
+ Stripetreasury_received_credits_resource_status_transitions,
1785
+ transaction: Schema.optionalKey(
1786
+ Schema.Union([
1787
+ Schema.Union([
1788
+ Schema.String.check(
1789
+ Schema.isMaxCodePoints(5000).annotate({
1790
+ expected: "a string with at most 5000 code points",
1791
+ }),
1792
+ ),
1793
+ Schema.suspend(
1794
+ (): Schema.Codec<Stripetreasury_transaction> =>
1795
+ Stripetreasury_transaction,
1796
+ ),
1797
+ ]).annotate({
1798
+ description: "The Transaction associated with this object.",
1799
+ }),
1800
+ Schema.Null,
1801
+ ]),
1802
+ ),
1803
+ }),
1804
+ [
1805
+ Schema.Record(
1806
+ Schema.String,
1807
+ Schema.Json.annotate({ expected: "JSON value" }),
1808
+ ),
1809
+ ],
1810
+ ).annotate({
1811
+ title: "CreditReversal",
1812
+ description:
1813
+ "Legacy CreditReversals are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Received Credits](https://docs.stripe.com/api/v2/money-management/received-credits?api-version=preview) instead of building a new v1 integration.\n\nYou can reverse some [ReceivedCredits](https://docs.stripe.com/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal.",
1814
+ identifier: "Stripetreasury.credit_reversal",
1815
+ }),
1816
+ );
1817
+ export const Stripetreasury_inbound_transfer = Schema.suspend(
1818
+ (): Schema.Codec<Stripetreasury_inbound_transfer> =>
1819
+ Schema.StructWithRest(
1820
+ Schema.Struct({
1821
+ amount: Schema.Number.annotate({
1822
+ description: "Amount (in cents) transferred.",
1823
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1824
+ cancelable: Schema.Boolean.annotate({
1825
+ description:
1826
+ "Returns `true` if the InboundTransfer is able to be canceled.",
1827
+ }),
1828
+ created: Schema.Number.annotate({
1829
+ description:
1830
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1831
+ format: "unix-time",
1832
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1833
+ currency: Schema.String.annotate({
1834
+ description:
1835
+ "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).",
1836
+ format: "currency",
1837
+ }),
1838
+ description: Schema.optionalKey(
1839
+ Schema.Union([
1840
+ Schema.String.annotate({
1841
+ description:
1842
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
1843
+ }).check(
1844
+ Schema.isMaxCodePoints(5000).annotate({
1845
+ expected: "a string with at most 5000 code points",
1846
+ }),
1847
+ ),
1848
+ Schema.Null,
1849
+ ]),
1850
+ ),
1851
+ failure_details: Schema.optionalKey(
1852
+ Schema.Union([
1853
+ Schema.Union([
1854
+ Stripetreasury_inbound_transfers_resource_failure_details,
1855
+ ]).annotate({
1856
+ description:
1857
+ "Details about this InboundTransfer's failure. Will be set when `status=failed` or `returned=true`.",
1858
+ }),
1859
+ Schema.Null,
1860
+ ]),
1861
+ ),
1862
+ financial_account: Schema.String.annotate({
1863
+ description: "The FinancialAccount that received the funds.",
1864
+ }).check(
1865
+ Schema.isMaxCodePoints(5000).annotate({
1866
+ expected: "a string with at most 5000 code points",
1867
+ }),
1868
+ ),
1869
+ hosted_regulatory_receipt_url: Schema.optionalKey(
1870
+ Schema.Union([
1871
+ Schema.String.annotate({
1872
+ description:
1873
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
1874
+ }).check(
1875
+ Schema.isMaxCodePoints(5000).annotate({
1876
+ expected: "a string with at most 5000 code points",
1877
+ }),
1878
+ ),
1879
+ Schema.Null,
1880
+ ]),
1881
+ ),
1882
+ id: Schema.String.annotate({
1883
+ description: "Unique identifier for the object.",
1884
+ }).check(
1885
+ Schema.isMaxCodePoints(5000).annotate({
1886
+ expected: "a string with at most 5000 code points",
1887
+ }),
1888
+ ),
1889
+ linked_flows:
1890
+ Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows,
1891
+ livemode: Schema.Boolean.annotate({
1892
+ description:
1893
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1894
+ }),
1895
+ metadata: Schema.Record(
1896
+ Schema.String,
1897
+ Schema.String.check(
1898
+ Schema.isMaxCodePoints(500).annotate({
1899
+ expected: "a string with at most 500 code points",
1900
+ }),
1901
+ ),
1902
+ ).annotate({
1903
+ description:
1904
+ "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.",
1905
+ }),
1906
+ object: Schema.Literal("treasury.inbound_transfer").annotate({
1907
+ description:
1908
+ "String representing the object's type. Objects of the same type share the same value.",
1909
+ }),
1910
+ origin_payment_method: Schema.optionalKey(
1911
+ Schema.Union([
1912
+ Schema.String.annotate({
1913
+ description:
1914
+ "The origin payment method to be debited for an InboundTransfer.",
1915
+ }).check(
1916
+ Schema.isMaxCodePoints(5000).annotate({
1917
+ expected: "a string with at most 5000 code points",
1918
+ }),
1919
+ ),
1920
+ Schema.Null,
1921
+ ]),
1922
+ ),
1923
+ origin_payment_method_details: Schema.optionalKey(
1924
+ Schema.Union([
1925
+ Schema.Union([Stripeinbound_transfers]).annotate({
1926
+ description:
1927
+ "Details about the PaymentMethod for an InboundTransfer.",
1928
+ }),
1929
+ Schema.Null,
1930
+ ]),
1931
+ ),
1932
+ returned: Schema.optionalKey(
1933
+ Schema.Union([
1934
+ Schema.Boolean.annotate({
1935
+ description:
1936
+ "Returns `true` if the funds for an InboundTransfer were returned after the InboundTransfer went to the `succeeded` state.",
1937
+ }),
1938
+ Schema.Null,
1939
+ ]),
1940
+ ),
1941
+ statement_descriptor: Schema.String.annotate({
1942
+ description:
1943
+ "Statement descriptor shown when funds are debited from the source. Not all payment networks support `statement_descriptor`.",
1944
+ }).check(
1945
+ Schema.isMaxCodePoints(5000).annotate({
1946
+ expected: "a string with at most 5000 code points",
1947
+ }),
1948
+ ),
1949
+ status: Schema.Literals([
1950
+ "canceled",
1951
+ "failed",
1952
+ "processing",
1953
+ "succeeded",
1954
+ ]).annotate({
1955
+ description:
1956
+ 'Status of the InboundTransfer: `processing`, `succeeded`, `failed`, and `canceled`. An InboundTransfer is `processing` if it is created and pending. The status changes to `succeeded` once the funds have been "confirmed" and a `transaction` is created and posted. The status changes to `failed` if the transfer fails.',
1957
+ }),
1958
+ status_transitions:
1959
+ Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions,
1960
+ transaction: Schema.optionalKey(
1961
+ Schema.Union([
1962
+ Schema.Union([
1963
+ Schema.String.check(
1964
+ Schema.isMaxCodePoints(5000).annotate({
1965
+ expected: "a string with at most 5000 code points",
1966
+ }),
1967
+ ),
1968
+ Schema.suspend(
1969
+ (): Schema.Codec<Stripetreasury_transaction> =>
1970
+ Stripetreasury_transaction,
1971
+ ),
1972
+ ]).annotate({
1973
+ description: "The Transaction associated with this object.",
1974
+ }),
1975
+ Schema.Null,
1976
+ ]),
1977
+ ),
1978
+ }),
1979
+ [
1980
+ Schema.Record(
1981
+ Schema.String,
1982
+ Schema.Json.annotate({ expected: "JSON value" }),
1983
+ ),
1984
+ ],
1985
+ ).annotate({
1986
+ title: "InboundTransfer",
1987
+ description:
1988
+ "Legacy InboundTransfers are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Inbound Transfers](https://docs.stripe.com/api/v2/money-management/inbound-transfers) instead of building a new v1 integration.\n\nUse [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://docs.stripe.com/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.\n\nRelated guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)",
1989
+ identifier: "Stripetreasury.inbound_transfer",
1990
+ }),
1991
+ );
1992
+ export const Stripetreasury_debit_reversal = Schema.suspend(
1993
+ (): Schema.Codec<Stripetreasury_debit_reversal> =>
1994
+ Schema.StructWithRest(
1995
+ Schema.Struct({
1996
+ amount: Schema.Number.annotate({
1997
+ description: "Amount (in cents) transferred.",
1998
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1999
+ created: Schema.Number.annotate({
2000
+ description:
2001
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
2002
+ format: "unix-time",
2003
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2004
+ currency: Schema.String.annotate({
2005
+ description:
2006
+ "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).",
2007
+ format: "currency",
2008
+ }),
2009
+ financial_account: Schema.optionalKey(
2010
+ Schema.Union([
2011
+ Schema.String.annotate({
2012
+ description: "The FinancialAccount to reverse funds from.",
2013
+ }).check(
2014
+ Schema.isMaxCodePoints(5000).annotate({
2015
+ expected: "a string with at most 5000 code points",
2016
+ }),
2017
+ ),
2018
+ Schema.Null,
2019
+ ]),
2020
+ ),
2021
+ hosted_regulatory_receipt_url: Schema.optionalKey(
2022
+ Schema.Union([
2023
+ Schema.String.annotate({
2024
+ description:
2025
+ "A [hosted transaction receipt](https://docs.stripe.com/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.",
2026
+ }).check(
2027
+ Schema.isMaxCodePoints(5000).annotate({
2028
+ expected: "a string with at most 5000 code points",
2029
+ }),
2030
+ ),
2031
+ Schema.Null,
2032
+ ]),
2033
+ ),
2034
+ id: Schema.String.annotate({
2035
+ description: "Unique identifier for the object.",
2036
+ }).check(
2037
+ Schema.isMaxCodePoints(5000).annotate({
2038
+ expected: "a string with at most 5000 code points",
2039
+ }),
2040
+ ),
2041
+ linked_flows: Schema.optionalKey(
2042
+ Schema.Union([
2043
+ Schema.Union([
2044
+ Stripetreasury_received_debits_resource_debit_reversal_linked_flows,
2045
+ ]).annotate({
2046
+ description: "Other flows linked to a DebitReversal.",
2047
+ }),
2048
+ Schema.Null,
2049
+ ]),
2050
+ ),
2051
+ livemode: Schema.Boolean.annotate({
2052
+ description:
2053
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2054
+ }),
2055
+ metadata: Schema.Record(
2056
+ Schema.String,
2057
+ Schema.String.check(
2058
+ Schema.isMaxCodePoints(500).annotate({
2059
+ expected: "a string with at most 500 code points",
2060
+ }),
2061
+ ),
2062
+ ).annotate({
2063
+ description:
2064
+ "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.",
2065
+ }),
2066
+ network: Schema.Literals(["ach", "card"]).annotate({
2067
+ description: "The rails used to reverse the funds.",
2068
+ }),
2069
+ object: Schema.Literal("treasury.debit_reversal").annotate({
2070
+ description:
2071
+ "String representing the object's type. Objects of the same type share the same value.",
2072
+ }),
2073
+ received_debit: Schema.String.annotate({
2074
+ description: "The ReceivedDebit being reversed.",
2075
+ }).check(
2076
+ Schema.isMaxCodePoints(5000).annotate({
2077
+ expected: "a string with at most 5000 code points",
2078
+ }),
2079
+ ),
2080
+ status: Schema.Literals(["failed", "processing", "succeeded"]).annotate(
2081
+ { description: "Status of the DebitReversal" },
2082
+ ),
2083
+ status_transitions:
2084
+ Stripetreasury_received_debits_resource_status_transitions,
2085
+ transaction: Schema.optionalKey(
2086
+ Schema.Union([
2087
+ Schema.Union([
2088
+ Schema.String.check(
2089
+ Schema.isMaxCodePoints(5000).annotate({
2090
+ expected: "a string with at most 5000 code points",
2091
+ }),
2092
+ ),
2093
+ Schema.suspend(
2094
+ (): Schema.Codec<Stripetreasury_transaction> =>
2095
+ Stripetreasury_transaction,
2096
+ ),
2097
+ ]).annotate({
2098
+ description: "The Transaction associated with this object.",
2099
+ }),
2100
+ Schema.Null,
2101
+ ]),
2102
+ ),
2103
+ }),
2104
+ [
2105
+ Schema.Record(
2106
+ Schema.String,
2107
+ Schema.Json.annotate({ expected: "JSON value" }),
2108
+ ),
2109
+ ],
2110
+ ).annotate({
2111
+ title: "DebitReversal",
2112
+ description:
2113
+ "Legacy DebitReversals are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect).\n\nYou can reverse some [ReceivedDebits](https://docs.stripe.com/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.",
2114
+ identifier: "Stripetreasury.debit_reversal",
2115
+ }),
2116
+ );
2117
+ export const Stripetreasury_transaction_entry = Schema.suspend(
2118
+ (): Schema.Codec<Stripetreasury_transaction_entry> =>
2119
+ Schema.StructWithRest(
2120
+ Schema.Struct({
2121
+ balance_impact: Stripetreasury_transactions_resource_balance_impact,
2122
+ created: Schema.Number.annotate({
2123
+ description:
2124
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
2125
+ format: "unix-time",
2126
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2127
+ currency: Schema.String.annotate({
2128
+ description:
2129
+ "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).",
2130
+ format: "currency",
2131
+ }),
2132
+ effective_at: Schema.Number.annotate({
2133
+ description:
2134
+ "When the TransactionEntry will impact the FinancialAccount's balance.",
2135
+ format: "unix-time",
2136
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2137
+ financial_account: Schema.String.annotate({
2138
+ description: "The FinancialAccount associated with this object.",
2139
+ }).check(
2140
+ Schema.isMaxCodePoints(5000).annotate({
2141
+ expected: "a string with at most 5000 code points",
2142
+ }),
2143
+ ),
2144
+ flow: Schema.optionalKey(
2145
+ Schema.Union([
2146
+ Schema.String.annotate({
2147
+ description:
2148
+ "Token of the flow associated with the TransactionEntry.",
2149
+ }).check(
2150
+ Schema.isMaxCodePoints(5000).annotate({
2151
+ expected: "a string with at most 5000 code points",
2152
+ }),
2153
+ ),
2154
+ Schema.Null,
2155
+ ]),
2156
+ ),
2157
+ flow_details: Schema.optionalKey(
2158
+ Schema.Union([
2159
+ Schema.Union([
2160
+ Schema.suspend(
2161
+ (): Schema.Codec<Stripetreasury_transactions_resource_flow_details> =>
2162
+ Stripetreasury_transactions_resource_flow_details,
2163
+ ),
2164
+ ]).annotate({
2165
+ description:
2166
+ "Details of the flow associated with the TransactionEntry.",
2167
+ }),
2168
+ Schema.Null,
2169
+ ]),
2170
+ ),
2171
+ flow_type: Schema.Literals([
2172
+ "credit_reversal",
2173
+ "debit_reversal",
2174
+ "inbound_transfer",
2175
+ "issuing_authorization",
2176
+ "other",
2177
+ "outbound_payment",
2178
+ "outbound_transfer",
2179
+ "received_credit",
2180
+ "received_debit",
2181
+ ]).annotate({
2182
+ description: "Type of the flow associated with the TransactionEntry.",
2183
+ }),
2184
+ id: Schema.String.annotate({
2185
+ description: "Unique identifier for the object.",
2186
+ }).check(
2187
+ Schema.isMaxCodePoints(5000).annotate({
2188
+ expected: "a string with at most 5000 code points",
2189
+ }),
2190
+ ),
2191
+ livemode: Schema.Boolean.annotate({
2192
+ description:
2193
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2194
+ }),
2195
+ object: Schema.Literal("treasury.transaction_entry").annotate({
2196
+ description:
2197
+ "String representing the object's type. Objects of the same type share the same value.",
2198
+ }),
2199
+ transaction: Schema.Union([
2200
+ Schema.String.check(
2201
+ Schema.isMaxCodePoints(5000).annotate({
2202
+ expected: "a string with at most 5000 code points",
2203
+ }),
2204
+ ),
2205
+ Schema.suspend(
2206
+ (): Schema.Codec<Stripetreasury_transaction> =>
2207
+ Stripetreasury_transaction,
2208
+ ),
2209
+ ]).annotate({
2210
+ description: "The Transaction associated with this object.",
2211
+ }),
2212
+ type: Schema.Literals([
2213
+ "credit_reversal",
2214
+ "credit_reversal_posting",
2215
+ "debit_reversal",
2216
+ "inbound_transfer",
2217
+ "inbound_transfer_return",
2218
+ "issuing_authorization_hold",
2219
+ "issuing_authorization_release",
2220
+ "other",
2221
+ "outbound_payment",
2222
+ "outbound_payment_cancellation",
2223
+ "outbound_payment_failure",
2224
+ "outbound_payment_posting",
2225
+ "outbound_payment_return",
2226
+ "outbound_transfer",
2227
+ "outbound_transfer_cancellation",
2228
+ "outbound_transfer_failure",
2229
+ "outbound_transfer_posting",
2230
+ "outbound_transfer_return",
2231
+ "received_credit",
2232
+ "received_debit",
2233
+ ]).annotate({
2234
+ description:
2235
+ "The specific money movement that generated the TransactionEntry.",
2236
+ }),
2237
+ }),
2238
+ [
2239
+ Schema.Record(
2240
+ Schema.String,
2241
+ Schema.Json.annotate({ expected: "JSON value" }),
2242
+ ),
2243
+ ],
2244
+ ).annotate({
2245
+ title: "TransactionEntry",
2246
+ description:
2247
+ "Legacy TransactionEntries are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Transaction Entries](https://docs.stripe.com/api/v2/money-management/transaction-entries) instead of building a new v1 integration.\n\nTransactionEntries represent individual units of money movements within a single [Transaction](https://docs.stripe.com/api#transactions).",
2248
+ identifier: "Stripetreasury.transaction_entry",
2249
+ }),
2250
+ );
2251
+ export const Stripetreasury_received_credits_resource_status_transitions =
2252
+ Schema.StructWithRest(
2253
+ Schema.Struct({
2254
+ posted_at: Schema.optionalKey(
2255
+ Schema.Union([
2256
+ Schema.Number.annotate({
2257
+ description:
2258
+ "Timestamp describing when the CreditReversal changed status to `posted`",
2259
+ format: "unix-time",
2260
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2261
+ Schema.Null,
2262
+ ]),
2263
+ ),
2264
+ }),
2265
+ [
2266
+ Schema.Record(
2267
+ Schema.String,
2268
+ Schema.Json.annotate({ expected: "JSON value" }),
2269
+ ),
2270
+ ],
2271
+ ).annotate({
2272
+ title: "TreasuryReceivedCreditsResourceStatusTransitions",
2273
+ description: "",
2274
+ identifier: "Stripetreasury_received_credits_resource_status_transitions",
2275
+ });
2276
+ export const Stripetreasury_transactions_resource_balance_impact =
2277
+ Schema.StructWithRest(
2278
+ Schema.Struct({
2279
+ cash: Schema.Number.annotate({
2280
+ description: "The change made to funds the user can spend right now.",
2281
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2282
+ inbound_pending: Schema.Number.annotate({
2283
+ description:
2284
+ "The change made to funds that are not spendable yet, but will become available at a later time.",
2285
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2286
+ outbound_pending: Schema.Number.annotate({
2287
+ description:
2288
+ "The change made to funds in the account, but not spendable because they are being held for pending outbound flows.",
2289
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2290
+ }),
2291
+ [
2292
+ Schema.Record(
2293
+ Schema.String,
2294
+ Schema.Json.annotate({ expected: "JSON value" }),
2295
+ ),
2296
+ ],
2297
+ ).annotate({
2298
+ title: "BalanceImpactResource",
2299
+ description: "Change to a FinancialAccount's balance",
2300
+ identifier: "Stripetreasury_transactions_resource_balance_impact",
2301
+ });
2302
+ export const Stripetreasury_received_debits_resource_debit_reversal_linked_flows =
2303
+ Schema.StructWithRest(
2304
+ Schema.Struct({
2305
+ issuing_dispute: Schema.optionalKey(
2306
+ Schema.Union([
2307
+ Schema.String.annotate({
2308
+ description:
2309
+ "Set if there is an Issuing dispute associated with the DebitReversal.",
2310
+ }).check(
2311
+ Schema.isMaxCodePoints(5000).annotate({
2312
+ expected: "a string with at most 5000 code points",
2313
+ }),
2314
+ ),
2315
+ Schema.Null,
2316
+ ]),
2317
+ ),
2318
+ }),
2319
+ [
2320
+ Schema.Record(
2321
+ Schema.String,
2322
+ Schema.Json.annotate({ expected: "JSON value" }),
2323
+ ),
2324
+ ],
2325
+ ).annotate({
2326
+ title: "TreasuryReceivedDebitsResourceDebitReversalLinkedFlows",
2327
+ description: "",
2328
+ identifier:
2329
+ "Stripetreasury_received_debits_resource_debit_reversal_linked_flows",
2330
+ });
2331
+ export const Stripetreasury_received_debits_resource_status_transitions =
2332
+ Schema.StructWithRest(
2333
+ Schema.Struct({
2334
+ completed_at: Schema.optionalKey(
2335
+ Schema.Union([
2336
+ Schema.Number.annotate({
2337
+ description:
2338
+ "Timestamp describing when the DebitReversal changed status to `completed`.",
2339
+ format: "unix-time",
2340
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2341
+ Schema.Null,
2342
+ ]),
2343
+ ),
2344
+ }),
2345
+ [
2346
+ Schema.Record(
2347
+ Schema.String,
2348
+ Schema.Json.annotate({ expected: "JSON value" }),
2349
+ ),
2350
+ ],
2351
+ ).annotate({
2352
+ title: "TreasuryReceivedDebitsResourceStatusTransitions",
2353
+ description: "",
2354
+ identifier: "Stripetreasury_received_debits_resource_status_transitions",
2355
+ });
2356
+ export const Stripetreasury_inbound_transfers_resource_failure_details =
2357
+ Schema.StructWithRest(
2358
+ Schema.Struct({
2359
+ code: Schema.Literals([
2360
+ "account_closed",
2361
+ "account_frozen",
2362
+ "bank_account_restricted",
2363
+ "bank_ownership_changed",
2364
+ "debit_not_authorized",
2365
+ "incorrect_account_holder_address",
2366
+ "incorrect_account_holder_name",
2367
+ "incorrect_account_holder_tax_id",
2368
+ "insufficient_funds",
2369
+ "invalid_account_number",
2370
+ "invalid_currency",
2371
+ "no_account",
2372
+ "other",
2373
+ ]).annotate({ description: "Reason for the failure." }),
2374
+ }),
2375
+ [
2376
+ Schema.Record(
2377
+ Schema.String,
2378
+ Schema.Json.annotate({ expected: "JSON value" }),
2379
+ ),
2380
+ ],
2381
+ ).annotate({
2382
+ title: "TreasuryInboundTransfersResourceFailureDetails",
2383
+ description: "",
2384
+ identifier: "Stripetreasury_inbound_transfers_resource_failure_details",
2385
+ });
2386
+ export const Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows =
2387
+ Schema.StructWithRest(
2388
+ Schema.Struct({
2389
+ received_debit: Schema.optionalKey(
2390
+ Schema.Union([
2391
+ Schema.String.annotate({
2392
+ description:
2393
+ "If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return.",
2394
+ }).check(
2395
+ Schema.isMaxCodePoints(5000).annotate({
2396
+ expected: "a string with at most 5000 code points",
2397
+ }),
2398
+ ),
2399
+ Schema.Null,
2400
+ ]),
2401
+ ),
2402
+ }),
2403
+ [
2404
+ Schema.Record(
2405
+ Schema.String,
2406
+ Schema.Json.annotate({ expected: "JSON value" }),
2407
+ ),
2408
+ ],
2409
+ ).annotate({
2410
+ title: "TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows",
2411
+ description: "",
2412
+ identifier:
2413
+ "Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows",
2414
+ });
2415
+ export const Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions =
2416
+ Schema.StructWithRest(
2417
+ Schema.Struct({
2418
+ canceled_at: Schema.optionalKey(
2419
+ Schema.Union([
2420
+ Schema.Number.annotate({
2421
+ description:
2422
+ "Timestamp describing when an InboundTransfer changed status to `canceled`.",
2423
+ format: "unix-time",
2424
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2425
+ Schema.Null,
2426
+ ]),
2427
+ ),
2428
+ failed_at: Schema.optionalKey(
2429
+ Schema.Union([
2430
+ Schema.Number.annotate({
2431
+ description:
2432
+ "Timestamp describing when an InboundTransfer changed status to `failed`.",
2433
+ format: "unix-time",
2434
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2435
+ Schema.Null,
2436
+ ]),
2437
+ ),
2438
+ succeeded_at: Schema.optionalKey(
2439
+ Schema.Union([
2440
+ Schema.Number.annotate({
2441
+ description:
2442
+ "Timestamp describing when an InboundTransfer changed status to `succeeded`.",
2443
+ format: "unix-time",
2444
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2445
+ Schema.Null,
2446
+ ]),
2447
+ ),
2448
+ }),
2449
+ [
2450
+ Schema.Record(
2451
+ Schema.String,
2452
+ Schema.Json.annotate({ expected: "JSON value" }),
2453
+ ),
2454
+ ],
2455
+ ).annotate({
2456
+ title:
2457
+ "TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions",
2458
+ description: "",
2459
+ identifier:
2460
+ "Stripetreasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions",
2461
+ });
2462
+ export const Stripetreasury_outbound_payments_resource_outbound_payment_resource_end_user_details =
2463
+ Schema.StructWithRest(
2464
+ Schema.Struct({
2465
+ ip_address: Schema.optionalKey(
2466
+ Schema.Union([
2467
+ Schema.String.annotate({
2468
+ description:
2469
+ "IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked.",
2470
+ }).check(
2471
+ Schema.isMaxCodePoints(5000).annotate({
2472
+ expected: "a string with at most 5000 code points",
2473
+ }),
2474
+ ),
2475
+ Schema.Null,
2476
+ ]),
2477
+ ),
2478
+ present: Schema.Boolean.annotate({
2479
+ description:
2480
+ "`true` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`.",
2481
+ }),
2482
+ }),
2483
+ [
2484
+ Schema.Record(
2485
+ Schema.String,
2486
+ Schema.Json.annotate({ expected: "JSON value" }),
2487
+ ),
2488
+ ],
2489
+ ).annotate({
2490
+ title:
2491
+ "TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails",
2492
+ description: "",
2493
+ identifier:
2494
+ "Stripetreasury_outbound_payments_resource_outbound_payment_resource_end_user_details",
2495
+ });
2496
+ export const Stripetreasury_outbound_payments_resource_outbound_payment_resource_status_transitions =
2497
+ Schema.StructWithRest(
2498
+ Schema.Struct({
2499
+ canceled_at: Schema.optionalKey(
2500
+ Schema.Union([
2501
+ Schema.Number.annotate({
2502
+ description:
2503
+ "Timestamp describing when an OutboundPayment changed status to `canceled`.",
2504
+ format: "unix-time",
2505
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2506
+ Schema.Null,
2507
+ ]),
2508
+ ),
2509
+ failed_at: Schema.optionalKey(
2510
+ Schema.Union([
2511
+ Schema.Number.annotate({
2512
+ description:
2513
+ "Timestamp describing when an OutboundPayment changed status to `failed`.",
2514
+ format: "unix-time",
2515
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2516
+ Schema.Null,
2517
+ ]),
2518
+ ),
2519
+ posted_at: Schema.optionalKey(
2520
+ Schema.Union([
2521
+ Schema.Number.annotate({
2522
+ description:
2523
+ "Timestamp describing when an OutboundPayment changed status to `posted`.",
2524
+ format: "unix-time",
2525
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2526
+ Schema.Null,
2527
+ ]),
2528
+ ),
2529
+ returned_at: Schema.optionalKey(
2530
+ Schema.Union([
2531
+ Schema.Number.annotate({
2532
+ description:
2533
+ "Timestamp describing when an OutboundPayment changed status to `returned`.",
2534
+ format: "unix-time",
2535
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2536
+ Schema.Null,
2537
+ ]),
2538
+ ),
2539
+ }),
2540
+ [
2541
+ Schema.Record(
2542
+ Schema.String,
2543
+ Schema.Json.annotate({ expected: "JSON value" }),
2544
+ ),
2545
+ ],
2546
+ ).annotate({
2547
+ title:
2548
+ "TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions",
2549
+ description: "",
2550
+ identifier:
2551
+ "Stripetreasury_outbound_payments_resource_outbound_payment_resource_status_transitions",
2552
+ });
2553
+ export const Stripetreasury_outbound_payments_resource_ach_tracking_details =
2554
+ Schema.StructWithRest(
2555
+ Schema.Struct({
2556
+ trace_id: Schema.String.annotate({
2557
+ description:
2558
+ "ACH trace ID of the OutboundPayment for payments sent over the `ach` network.",
2559
+ }).check(
2560
+ Schema.isMaxCodePoints(5000).annotate({
2561
+ expected: "a string with at most 5000 code points",
2562
+ }),
2563
+ ),
2564
+ }),
2565
+ [
2566
+ Schema.Record(
2567
+ Schema.String,
2568
+ Schema.Json.annotate({ expected: "JSON value" }),
2569
+ ),
2570
+ ],
2571
+ ).annotate({
2572
+ title: "TreasuryOutboundPaymentsResourceACHTrackingDetails",
2573
+ description: "",
2574
+ identifier:
2575
+ "Stripetreasury_outbound_payments_resource_ach_tracking_details",
2576
+ });
2577
+ export const Stripetreasury_outbound_payments_resource_us_domestic_wire_tracking_details =
2578
+ Schema.StructWithRest(
2579
+ Schema.Struct({
2580
+ chips: Schema.optionalKey(
2581
+ Schema.Union([
2582
+ Schema.String.annotate({
2583
+ description:
2584
+ "CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network.",
2585
+ }).check(
2586
+ Schema.isMaxCodePoints(5000).annotate({
2587
+ expected: "a string with at most 5000 code points",
2588
+ }),
2589
+ ),
2590
+ Schema.Null,
2591
+ ]),
2592
+ ),
2593
+ imad: Schema.optionalKey(
2594
+ Schema.Union([
2595
+ Schema.String.annotate({
2596
+ description:
2597
+ "IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network.",
2598
+ }).check(
2599
+ Schema.isMaxCodePoints(5000).annotate({
2600
+ expected: "a string with at most 5000 code points",
2601
+ }),
2602
+ ),
2603
+ Schema.Null,
2604
+ ]),
2605
+ ),
2606
+ omad: Schema.optionalKey(
2607
+ Schema.Union([
2608
+ Schema.String.annotate({
2609
+ description:
2610
+ "OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network.",
2611
+ }).check(
2612
+ Schema.isMaxCodePoints(5000).annotate({
2613
+ expected: "a string with at most 5000 code points",
2614
+ }),
2615
+ ),
2616
+ Schema.Null,
2617
+ ]),
2618
+ ),
2619
+ }),
2620
+ [
2621
+ Schema.Record(
2622
+ Schema.String,
2623
+ Schema.Json.annotate({ expected: "JSON value" }),
2624
+ ),
2625
+ ],
2626
+ ).annotate({
2627
+ title: "TreasuryOutboundPaymentsResourceUSDomesticWireTrackingDetails",
2628
+ description: "",
2629
+ identifier:
2630
+ "Stripetreasury_outbound_payments_resource_us_domestic_wire_tracking_details",
2631
+ });
2632
+ export const Stripetreasury_outbound_transfers_resource_status_transitions =
2633
+ Schema.StructWithRest(
2634
+ Schema.Struct({
2635
+ canceled_at: Schema.optionalKey(
2636
+ Schema.Union([
2637
+ Schema.Number.annotate({
2638
+ description:
2639
+ "Timestamp describing when an OutboundTransfer changed status to `canceled`",
2640
+ format: "unix-time",
2641
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2642
+ Schema.Null,
2643
+ ]),
2644
+ ),
2645
+ failed_at: Schema.optionalKey(
2646
+ Schema.Union([
2647
+ Schema.Number.annotate({
2648
+ description:
2649
+ "Timestamp describing when an OutboundTransfer changed status to `failed`",
2650
+ format: "unix-time",
2651
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2652
+ Schema.Null,
2653
+ ]),
2654
+ ),
2655
+ posted_at: Schema.optionalKey(
2656
+ Schema.Union([
2657
+ Schema.Number.annotate({
2658
+ description:
2659
+ "Timestamp describing when an OutboundTransfer changed status to `posted`",
2660
+ format: "unix-time",
2661
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2662
+ Schema.Null,
2663
+ ]),
2664
+ ),
2665
+ returned_at: Schema.optionalKey(
2666
+ Schema.Union([
2667
+ Schema.Number.annotate({
2668
+ description:
2669
+ "Timestamp describing when an OutboundTransfer changed status to `returned`",
2670
+ format: "unix-time",
2671
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2672
+ Schema.Null,
2673
+ ]),
2674
+ ),
2675
+ }),
2676
+ [
2677
+ Schema.Record(
2678
+ Schema.String,
2679
+ Schema.Json.annotate({ expected: "JSON value" }),
2680
+ ),
2681
+ ],
2682
+ ).annotate({
2683
+ title: "TreasuryOutboundTransfersResourceStatusTransitions",
2684
+ description: "",
2685
+ identifier: "Stripetreasury_outbound_transfers_resource_status_transitions",
2686
+ });
2687
+ export const Stripetreasury_outbound_transfers_resource_ach_tracking_details =
2688
+ Schema.StructWithRest(
2689
+ Schema.Struct({
2690
+ trace_id: Schema.String.annotate({
2691
+ description:
2692
+ "ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network.",
2693
+ }).check(
2694
+ Schema.isMaxCodePoints(5000).annotate({
2695
+ expected: "a string with at most 5000 code points",
2696
+ }),
2697
+ ),
2698
+ }),
2699
+ [
2700
+ Schema.Record(
2701
+ Schema.String,
2702
+ Schema.Json.annotate({ expected: "JSON value" }),
2703
+ ),
2704
+ ],
2705
+ ).annotate({
2706
+ title: "TreasuryOutboundTransfersResourceACHTrackingDetails",
2707
+ description: "",
2708
+ identifier:
2709
+ "Stripetreasury_outbound_transfers_resource_ach_tracking_details",
2710
+ });
2711
+ export const Stripetreasury_outbound_transfers_resource_us_domestic_wire_tracking_details =
2712
+ Schema.StructWithRest(
2713
+ Schema.Struct({
2714
+ chips: Schema.optionalKey(
2715
+ Schema.Union([
2716
+ Schema.String.annotate({
2717
+ description:
2718
+ "CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.",
2719
+ }).check(
2720
+ Schema.isMaxCodePoints(5000).annotate({
2721
+ expected: "a string with at most 5000 code points",
2722
+ }),
2723
+ ),
2724
+ Schema.Null,
2725
+ ]),
2726
+ ),
2727
+ imad: Schema.optionalKey(
2728
+ Schema.Union([
2729
+ Schema.String.annotate({
2730
+ description:
2731
+ "IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.",
2732
+ }).check(
2733
+ Schema.isMaxCodePoints(5000).annotate({
2734
+ expected: "a string with at most 5000 code points",
2735
+ }),
2736
+ ),
2737
+ Schema.Null,
2738
+ ]),
2739
+ ),
2740
+ omad: Schema.optionalKey(
2741
+ Schema.Union([
2742
+ Schema.String.annotate({
2743
+ description:
2744
+ "OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.",
2745
+ }).check(
2746
+ Schema.isMaxCodePoints(5000).annotate({
2747
+ expected: "a string with at most 5000 code points",
2748
+ }),
2749
+ ),
2750
+ Schema.Null,
2751
+ ]),
2752
+ ),
2753
+ }),
2754
+ [
2755
+ Schema.Record(
2756
+ Schema.String,
2757
+ Schema.Json.annotate({ expected: "JSON value" }),
2758
+ ),
2759
+ ],
2760
+ ).annotate({
2761
+ title: "TreasuryOutboundTransfersResourceUSDomesticWireTrackingDetails",
2762
+ description: "",
2763
+ identifier:
2764
+ "Stripetreasury_outbound_transfers_resource_us_domestic_wire_tracking_details",
2765
+ });
2766
+ export const Stripetreasury_shared_resource_initiating_payment_method_details_us_bank_account =
2767
+ Schema.StructWithRest(
2768
+ Schema.Struct({
2769
+ bank_name: Schema.optionalKey(
2770
+ Schema.Union([
2771
+ Schema.String.annotate({ description: "Bank name." }).check(
2772
+ Schema.isMaxCodePoints(5000).annotate({
2773
+ expected: "a string with at most 5000 code points",
2774
+ }),
2775
+ ),
2776
+ Schema.Null,
2777
+ ]),
2778
+ ),
2779
+ last4: Schema.optionalKey(
2780
+ Schema.Union([
2781
+ Schema.String.annotate({
2782
+ description: "The last four digits of the bank account number.",
2783
+ }).check(
2784
+ Schema.isMaxCodePoints(5000).annotate({
2785
+ expected: "a string with at most 5000 code points",
2786
+ }),
2787
+ ),
2788
+ Schema.Null,
2789
+ ]),
2790
+ ),
2791
+ routing_number: Schema.optionalKey(
2792
+ Schema.Union([
2793
+ Schema.String.annotate({
2794
+ description: "The routing number for the bank account.",
2795
+ }).check(
2796
+ Schema.isMaxCodePoints(5000).annotate({
2797
+ expected: "a string with at most 5000 code points",
2798
+ }),
2799
+ ),
2800
+ Schema.Null,
2801
+ ]),
2802
+ ),
2803
+ }),
2804
+ [
2805
+ Schema.Record(
2806
+ Schema.String,
2807
+ Schema.Json.annotate({ expected: "JSON value" }),
2808
+ ),
2809
+ ],
2810
+ ).annotate({
2811
+ title: "TreasurySharedResourceInitiatingPaymentMethodDetailsUSBankAccount",
2812
+ description: "",
2813
+ identifier:
2814
+ "Stripetreasury_shared_resource_initiating_payment_method_details_us_bank_account",
2815
+ });
2816
+ export const Stripetreasury_received_credits_resource_reversal_details =
2817
+ Schema.StructWithRest(
2818
+ Schema.Struct({
2819
+ deadline: Schema.optionalKey(
2820
+ Schema.Union([
2821
+ Schema.Number.annotate({
2822
+ description: "Time before which a ReceivedCredit can be reversed.",
2823
+ format: "unix-time",
2824
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2825
+ Schema.Null,
2826
+ ]),
2827
+ ),
2828
+ restricted_reason: Schema.optionalKey(
2829
+ Schema.Union([
2830
+ Schema.Literals([
2831
+ "already_reversed",
2832
+ "deadline_passed",
2833
+ "network_restricted",
2834
+ "other",
2835
+ "source_flow_restricted",
2836
+ ]).annotate({
2837
+ description: "Set if a ReceivedCredit cannot be reversed.",
2838
+ }),
2839
+ Schema.Null,
2840
+ ]),
2841
+ ),
2842
+ }),
2843
+ [
2844
+ Schema.Record(
2845
+ Schema.String,
2846
+ Schema.Json.annotate({ expected: "JSON value" }),
2847
+ ),
2848
+ ],
2849
+ ).annotate({
2850
+ title: "TreasuryReceivedCreditsResourceReversalDetails",
2851
+ description: "",
2852
+ identifier: "Stripetreasury_received_credits_resource_reversal_details",
2853
+ });
2854
+ export const Stripetreasury_received_debits_resource_linked_flows =
2855
+ Schema.StructWithRest(
2856
+ Schema.Struct({
2857
+ debit_reversal: Schema.optionalKey(
2858
+ Schema.Union([
2859
+ Schema.String.annotate({
2860
+ description:
2861
+ "The DebitReversal created as a result of this ReceivedDebit being reversed.",
2862
+ }).check(
2863
+ Schema.isMaxCodePoints(5000).annotate({
2864
+ expected: "a string with at most 5000 code points",
2865
+ }),
2866
+ ),
2867
+ Schema.Null,
2868
+ ]),
2869
+ ),
2870
+ inbound_transfer: Schema.optionalKey(
2871
+ Schema.Union([
2872
+ Schema.String.annotate({
2873
+ description:
2874
+ "Set if the ReceivedDebit is associated with an InboundTransfer's return of funds.",
2875
+ }).check(
2876
+ Schema.isMaxCodePoints(5000).annotate({
2877
+ expected: "a string with at most 5000 code points",
2878
+ }),
2879
+ ),
2880
+ Schema.Null,
2881
+ ]),
2882
+ ),
2883
+ issuing_authorization: Schema.optionalKey(
2884
+ Schema.Union([
2885
+ Schema.String.annotate({
2886
+ description:
2887
+ "Set if the ReceivedDebit was created due to an [Issuing Authorization](https://docs.stripe.com/api#issuing_authorizations) object.",
2888
+ }).check(
2889
+ Schema.isMaxCodePoints(5000).annotate({
2890
+ expected: "a string with at most 5000 code points",
2891
+ }),
2892
+ ),
2893
+ Schema.Null,
2894
+ ]),
2895
+ ),
2896
+ issuing_transaction: Schema.optionalKey(
2897
+ Schema.Union([
2898
+ Schema.String.annotate({
2899
+ description:
2900
+ "Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://docs.stripe.com/api#issuing_disputes) object.",
2901
+ }).check(
2902
+ Schema.isMaxCodePoints(5000).annotate({
2903
+ expected: "a string with at most 5000 code points",
2904
+ }),
2905
+ ),
2906
+ Schema.Null,
2907
+ ]),
2908
+ ),
2909
+ payout: Schema.optionalKey(
2910
+ Schema.Union([
2911
+ Schema.String.annotate({
2912
+ description:
2913
+ "Set if the ReceivedDebit was created due to a [Payout](https://docs.stripe.com/api#payouts) object.",
2914
+ }).check(
2915
+ Schema.isMaxCodePoints(5000).annotate({
2916
+ expected: "a string with at most 5000 code points",
2917
+ }),
2918
+ ),
2919
+ Schema.Null,
2920
+ ]),
2921
+ ),
2922
+ topup: Schema.optionalKey(
2923
+ Schema.Union([
2924
+ Schema.String.annotate({
2925
+ description:
2926
+ "Set if the ReceivedDebit was created due to a [Topup](https://docs.stripe.com/api#topups) object.",
2927
+ }).check(
2928
+ Schema.isMaxCodePoints(5000).annotate({
2929
+ expected: "a string with at most 5000 code points",
2930
+ }),
2931
+ ),
2932
+ Schema.Null,
2933
+ ]),
2934
+ ),
2935
+ }),
2936
+ [
2937
+ Schema.Record(
2938
+ Schema.String,
2939
+ Schema.Json.annotate({ expected: "JSON value" }),
2940
+ ),
2941
+ ],
2942
+ ).annotate({
2943
+ title: "TreasuryReceivedDebitsResourceLinkedFlows",
2944
+ description: "",
2945
+ identifier: "Stripetreasury_received_debits_resource_linked_flows",
2946
+ });
2947
+ export const Stripetreasury_received_debits_resource_reversal_details =
2948
+ Schema.StructWithRest(
2949
+ Schema.Struct({
2950
+ deadline: Schema.optionalKey(
2951
+ Schema.Union([
2952
+ Schema.Number.annotate({
2953
+ description: "Time before which a ReceivedDebit can be reversed.",
2954
+ format: "unix-time",
2955
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2956
+ Schema.Null,
2957
+ ]),
2958
+ ),
2959
+ restricted_reason: Schema.optionalKey(
2960
+ Schema.Union([
2961
+ Schema.Literals([
2962
+ "already_reversed",
2963
+ "deadline_passed",
2964
+ "network_restricted",
2965
+ "other",
2966
+ "source_flow_restricted",
2967
+ ]).annotate({
2968
+ description: "Set if a ReceivedDebit can't be reversed.",
2969
+ }),
2970
+ Schema.Null,
2971
+ ]),
2972
+ ),
2973
+ }),
2974
+ [
2975
+ Schema.Record(
2976
+ Schema.String,
2977
+ Schema.Json.annotate({ expected: "JSON value" }),
2978
+ ),
2979
+ ],
2980
+ ).annotate({
2981
+ title: "TreasuryReceivedDebitsResourceReversalDetails",
2982
+ description: "",
2983
+ identifier: "Stripetreasury_received_debits_resource_reversal_details",
2984
+ });
2985
+ export const Stripetreasury_transactions_resource_abstract_transaction_resource_status_transitions =
2986
+ Schema.StructWithRest(
2987
+ Schema.Struct({
2988
+ posted_at: Schema.optionalKey(
2989
+ Schema.Union([
2990
+ Schema.Number.annotate({
2991
+ description:
2992
+ "Timestamp describing when the Transaction changed status to `posted`.",
2993
+ format: "unix-time",
2994
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2995
+ Schema.Null,
2996
+ ]),
2997
+ ),
2998
+ void_at: Schema.optionalKey(
2999
+ Schema.Union([
3000
+ Schema.Number.annotate({
3001
+ description:
3002
+ "Timestamp describing when the Transaction changed status to `void`.",
3003
+ format: "unix-time",
3004
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3005
+ Schema.Null,
3006
+ ]),
3007
+ ),
3008
+ }),
3009
+ [
3010
+ Schema.Record(
3011
+ Schema.String,
3012
+ Schema.Json.annotate({ expected: "JSON value" }),
3013
+ ),
3014
+ ],
3015
+ ).annotate({
3016
+ title:
3017
+ "TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions",
3018
+ description: "",
3019
+ identifier:
3020
+ "Stripetreasury_transactions_resource_abstract_transaction_resource_status_transitions",
3021
+ });
3022
+ export const Stripetreasury_financial_accounts_resource_balance =
3023
+ Schema.StructWithRest(
3024
+ Schema.Struct({
3025
+ cash: Schema.Record(Schema.String, Schema.Int).annotate({
3026
+ description: "Funds the user can spend right now.",
3027
+ }),
3028
+ inbound_pending: Schema.Record(Schema.String, Schema.Int).annotate({
3029
+ description:
3030
+ "Funds not spendable yet, but will become available at a later time.",
3031
+ }),
3032
+ outbound_pending: Schema.Record(Schema.String, Schema.Int).annotate({
3033
+ description:
3034
+ "Funds in the account, but not spendable because they are being held for pending outbound flows.",
3035
+ }),
3036
+ }),
3037
+ [
3038
+ Schema.Record(
3039
+ Schema.String,
3040
+ Schema.Json.annotate({ expected: "JSON value" }),
3041
+ ),
3042
+ ],
3043
+ ).annotate({
3044
+ title: "BalanceResource",
3045
+ description: "Balance information for the FinancialAccount",
3046
+ identifier: "Stripetreasury_financial_accounts_resource_balance",
3047
+ });
3048
+ export const Stripetreasury_financial_accounts_resource_toggles_setting_status_details =
3049
+ Schema.StructWithRest(
3050
+ Schema.Struct({
3051
+ code: Schema.Literals([
3052
+ "activating",
3053
+ "capability_not_requested",
3054
+ "financial_account_closed",
3055
+ "rejected_other",
3056
+ "rejected_unsupported_business",
3057
+ "requirements_past_due",
3058
+ "requirements_pending_verification",
3059
+ "restricted_by_platform",
3060
+ "restricted_other",
3061
+ ]).annotate({
3062
+ description:
3063
+ "Represents the reason why the status is `pending` or `restricted`.",
3064
+ }),
3065
+ resolution: Schema.optionalKey(
3066
+ Schema.Union([
3067
+ Schema.Literals([
3068
+ "contact_stripe",
3069
+ "provide_information",
3070
+ "remove_restriction",
3071
+ ]).annotate({
3072
+ description:
3073
+ "Represents what the user should do, if anything, to activate the Feature.",
3074
+ }),
3075
+ Schema.Null,
3076
+ ]),
3077
+ ),
3078
+ restriction: Schema.optionalKey(
3079
+ Schema.Literals(["inbound_flows", "outbound_flows"]).annotate({
3080
+ description:
3081
+ "The `platform_restrictions` that are restricting this Feature.",
3082
+ }),
3083
+ ),
3084
+ }),
3085
+ [
3086
+ Schema.Record(
3087
+ Schema.String,
3088
+ Schema.Json.annotate({ expected: "JSON value" }),
3089
+ ),
3090
+ ],
3091
+ ).annotate({
3092
+ title: "StatusDetailsResource",
3093
+ description:
3094
+ "Additional details on the FinancialAccount Features information.",
3095
+ identifier:
3096
+ "Stripetreasury_financial_accounts_resource_toggles_setting_status_details",
3097
+ });
3098
+ export const Stripetreasury_financial_accounts_resource_aba_record =
3099
+ Schema.StructWithRest(
3100
+ Schema.Struct({
3101
+ account_holder_name: Schema.String.annotate({
3102
+ description:
3103
+ "The name of the person or business that owns the bank account.",
3104
+ }).check(
3105
+ Schema.isMaxCodePoints(5000).annotate({
3106
+ expected: "a string with at most 5000 code points",
3107
+ }),
3108
+ ),
3109
+ account_number: Schema.optionalKey(
3110
+ Schema.Union([
3111
+ Schema.String.annotate({ description: "The account number." }).check(
3112
+ Schema.isMaxCodePoints(5000).annotate({
3113
+ expected: "a string with at most 5000 code points",
3114
+ }),
3115
+ ),
3116
+ Schema.Null,
3117
+ ]),
3118
+ ),
3119
+ account_number_last4: Schema.String.annotate({
3120
+ description: "The last four characters of the account number.",
3121
+ }).check(
3122
+ Schema.isMaxCodePoints(5000).annotate({
3123
+ expected: "a string with at most 5000 code points",
3124
+ }),
3125
+ ),
3126
+ bank_name: Schema.String.annotate({
3127
+ description: "Name of the bank.",
3128
+ }).check(
3129
+ Schema.isMaxCodePoints(5000).annotate({
3130
+ expected: "a string with at most 5000 code points",
3131
+ }),
3132
+ ),
3133
+ routing_number: Schema.String.annotate({
3134
+ description: "Routing number for the account.",
3135
+ }).check(
3136
+ Schema.isMaxCodePoints(5000).annotate({
3137
+ expected: "a string with at most 5000 code points",
3138
+ }),
3139
+ ),
3140
+ }),
3141
+ [
3142
+ Schema.Record(
3143
+ Schema.String,
3144
+ Schema.Json.annotate({ expected: "JSON value" }),
3145
+ ),
3146
+ ],
3147
+ ).annotate({
3148
+ title: "ABARecord",
3149
+ description:
3150
+ "ABA Records contain U.S. bank account details per the ABA format.",
3151
+ identifier: "Stripetreasury_financial_accounts_resource_aba_record",
3152
+ });
3153
+ export const Stripetreasury_financial_accounts_resource_platform_restrictions =
3154
+ Schema.StructWithRest(
3155
+ Schema.Struct({
3156
+ inbound_flows: Schema.optionalKey(
3157
+ Schema.Union([
3158
+ Schema.Literals(["restricted", "unrestricted"]).annotate({
3159
+ description: "Restricts all inbound money movement.",
3160
+ }),
3161
+ Schema.Null,
3162
+ ]),
3163
+ ),
3164
+ outbound_flows: Schema.optionalKey(
3165
+ Schema.Union([
3166
+ Schema.Literals(["restricted", "unrestricted"]).annotate({
3167
+ description: "Restricts all outbound money movement.",
3168
+ }),
3169
+ Schema.Null,
3170
+ ]),
3171
+ ),
3172
+ }),
3173
+ [
3174
+ Schema.Record(
3175
+ Schema.String,
3176
+ Schema.Json.annotate({ expected: "JSON value" }),
3177
+ ),
3178
+ ],
3179
+ ).annotate({
3180
+ title: "FinancialAccountPlatformRestriction",
3181
+ description:
3182
+ "Restrictions that a Connect Platform has placed on this FinancialAccount.",
3183
+ identifier:
3184
+ "Stripetreasury_financial_accounts_resource_platform_restrictions",
3185
+ });
3186
+ export const Stripetreasury_financial_accounts_resource_closed_status_details =
3187
+ Schema.StructWithRest(
3188
+ Schema.Struct({
3189
+ reasons: Schema.Array(
3190
+ Schema.Literals(["account_rejected", "closed_by_platform", "other"]),
3191
+ ).annotate({
3192
+ description:
3193
+ "The array that contains reasons for a FinancialAccount closure.",
3194
+ }),
3195
+ }),
3196
+ [
3197
+ Schema.Record(
3198
+ Schema.String,
3199
+ Schema.Json.annotate({ expected: "JSON value" }),
3200
+ ),
3201
+ ],
3202
+ ).annotate({
3203
+ title: "TreasuryFinancialAccountsResourceClosedStatusDetails",
3204
+ description: "",
3205
+ identifier:
3206
+ "Stripetreasury_financial_accounts_resource_closed_status_details",
3207
+ });
3208
+ export const Stripetreasury_shared_resource_billing_details = Schema.suspend(
3209
+ (): Schema.Codec<Stripetreasury_shared_resource_billing_details> =>
3210
+ Schema.StructWithRest(
3211
+ Schema.Struct({
3212
+ address: Stripeaddress,
3213
+ email: Schema.optionalKey(
3214
+ Schema.Union([
3215
+ Schema.String.annotate({ description: "Email address." }).check(
3216
+ Schema.isMaxCodePoints(5000).annotate({
3217
+ expected: "a string with at most 5000 code points",
3218
+ }),
3219
+ ),
3220
+ Schema.Null,
3221
+ ]),
3222
+ ),
3223
+ name: Schema.optionalKey(
3224
+ Schema.Union([
3225
+ Schema.String.annotate({ description: "Full name." }).check(
3226
+ Schema.isMaxCodePoints(5000).annotate({
3227
+ expected: "a string with at most 5000 code points",
3228
+ }),
3229
+ ),
3230
+ Schema.Null,
3231
+ ]),
3232
+ ),
3233
+ }),
3234
+ [
3235
+ Schema.Record(
3236
+ Schema.String,
3237
+ Schema.Json.annotate({ expected: "JSON value" }),
3238
+ ),
3239
+ ],
3240
+ ).annotate({
3241
+ title: "TreasurySharedResourceBillingDetails",
3242
+ description: "",
3243
+ identifier: "Stripetreasury_shared_resource_billing_details",
3244
+ }),
3245
+ );
3246
+ export const Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details =
3247
+ Schema.suspend(
3248
+ (): Schema.Codec<Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details> =>
3249
+ Schema.StructWithRest(
3250
+ Schema.Struct({
3251
+ ach: Schema.optionalKey(
3252
+ Stripetreasury_outbound_payments_resource_ach_tracking_details,
3253
+ ),
3254
+ type: Schema.Literals(["ach", "us_domestic_wire"]).annotate({
3255
+ description: "The US bank account network used to send funds.",
3256
+ }),
3257
+ us_domestic_wire: Schema.optionalKey(
3258
+ Stripetreasury_outbound_payments_resource_us_domestic_wire_tracking_details,
3259
+ ),
3260
+ }),
3261
+ [
3262
+ Schema.Record(
3263
+ Schema.String,
3264
+ Schema.Json.annotate({ expected: "JSON value" }),
3265
+ ),
3266
+ ],
3267
+ ).annotate({
3268
+ title:
3269
+ "TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails",
3270
+ description: "",
3271
+ identifier:
3272
+ "Stripetreasury_outbound_payments_resource_outbound_payment_resource_tracking_details",
3273
+ }),
3274
+ );
3275
+ export const Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details =
3276
+ Schema.suspend(
3277
+ (): Schema.Codec<Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details> =>
3278
+ Schema.StructWithRest(
3279
+ Schema.Struct({
3280
+ ach: Schema.optionalKey(
3281
+ Stripetreasury_outbound_transfers_resource_ach_tracking_details,
3282
+ ),
3283
+ type: Schema.Literals(["ach", "us_domestic_wire"]).annotate({
3284
+ description: "The US bank account network used to send funds.",
3285
+ }),
3286
+ us_domestic_wire: Schema.optionalKey(
3287
+ Stripetreasury_outbound_transfers_resource_us_domestic_wire_tracking_details,
3288
+ ),
3289
+ }),
3290
+ [
3291
+ Schema.Record(
3292
+ Schema.String,
3293
+ Schema.Json.annotate({ expected: "JSON value" }),
3294
+ ),
3295
+ ],
3296
+ ).annotate({
3297
+ title:
3298
+ "TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails",
3299
+ description: "",
3300
+ identifier:
3301
+ "Stripetreasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details",
3302
+ }),
3303
+ );
3304
+ export const Stripetreasury_financial_accounts_resource_toggle_settings =
3305
+ Schema.suspend(
3306
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_toggle_settings> =>
3307
+ Schema.StructWithRest(
3308
+ Schema.Struct({
3309
+ requested: Schema.Boolean.annotate({
3310
+ description:
3311
+ "Whether the FinancialAccount should have the Feature.",
3312
+ }),
3313
+ status: Schema.Literals(["active", "pending", "restricted"]).annotate(
3314
+ { description: "Whether the Feature is operational." },
3315
+ ),
3316
+ status_details: Schema.Array(
3317
+ Stripetreasury_financial_accounts_resource_toggles_setting_status_details,
3318
+ ).annotate({
3319
+ description:
3320
+ "Additional details; includes at least one entry when the status is not `active`.",
3321
+ }),
3322
+ }),
3323
+ [
3324
+ Schema.Record(
3325
+ Schema.String,
3326
+ Schema.Json.annotate({ expected: "JSON value" }),
3327
+ ),
3328
+ ],
3329
+ ).annotate({
3330
+ title: "TreasuryFinancialAccountsResourceToggleSettings",
3331
+ description: "Toggle settings for enabling/disabling a feature",
3332
+ identifier:
3333
+ "Stripetreasury_financial_accounts_resource_toggle_settings",
3334
+ }),
3335
+ );
3336
+ export const Stripetreasury_financial_accounts_resource_aba_toggle_settings =
3337
+ Schema.suspend(
3338
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_aba_toggle_settings> =>
3339
+ Schema.StructWithRest(
3340
+ Schema.Struct({
3341
+ requested: Schema.Boolean.annotate({
3342
+ description:
3343
+ "Whether the FinancialAccount should have the Feature.",
3344
+ }),
3345
+ status: Schema.Literals(["active", "pending", "restricted"]).annotate(
3346
+ { description: "Whether the Feature is operational." },
3347
+ ),
3348
+ status_details: Schema.Array(
3349
+ Stripetreasury_financial_accounts_resource_toggles_setting_status_details,
3350
+ ).annotate({
3351
+ description:
3352
+ "Additional details; includes at least one entry when the status is not `active`.",
3353
+ }),
3354
+ }),
3355
+ [
3356
+ Schema.Record(
3357
+ Schema.String,
3358
+ Schema.Json.annotate({ expected: "JSON value" }),
3359
+ ),
3360
+ ],
3361
+ ).annotate({
3362
+ title: "TreasuryFinancialAccountsResourceAbaToggleSettings",
3363
+ description:
3364
+ "Toggle settings for enabling/disabling the ABA address feature",
3365
+ identifier:
3366
+ "Stripetreasury_financial_accounts_resource_aba_toggle_settings",
3367
+ }),
3368
+ );
3369
+ export const Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings =
3370
+ Schema.suspend(
3371
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings> =>
3372
+ Schema.StructWithRest(
3373
+ Schema.Struct({
3374
+ requested: Schema.Boolean.annotate({
3375
+ description:
3376
+ "Whether the FinancialAccount should have the Feature.",
3377
+ }),
3378
+ status: Schema.Literals(["active", "pending", "restricted"]).annotate(
3379
+ { description: "Whether the Feature is operational." },
3380
+ ),
3381
+ status_details: Schema.Array(
3382
+ Stripetreasury_financial_accounts_resource_toggles_setting_status_details,
3383
+ ).annotate({
3384
+ description:
3385
+ "Additional details; includes at least one entry when the status is not `active`.",
3386
+ }),
3387
+ }),
3388
+ [
3389
+ Schema.Record(
3390
+ Schema.String,
3391
+ Schema.Json.annotate({ expected: "JSON value" }),
3392
+ ),
3393
+ ],
3394
+ ).annotate({
3395
+ title: "TreasuryFinancialAccountsResourceInboundAchToggleSettings",
3396
+ description:
3397
+ "Toggle settings for enabling/disabling an inbound ACH specific feature",
3398
+ identifier:
3399
+ "Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings",
3400
+ }),
3401
+ );
3402
+ export const Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings =
3403
+ Schema.suspend(
3404
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings> =>
3405
+ Schema.StructWithRest(
3406
+ Schema.Struct({
3407
+ requested: Schema.Boolean.annotate({
3408
+ description:
3409
+ "Whether the FinancialAccount should have the Feature.",
3410
+ }),
3411
+ status: Schema.Literals(["active", "pending", "restricted"]).annotate(
3412
+ { description: "Whether the Feature is operational." },
3413
+ ),
3414
+ status_details: Schema.Array(
3415
+ Stripetreasury_financial_accounts_resource_toggles_setting_status_details,
3416
+ ).annotate({
3417
+ description:
3418
+ "Additional details; includes at least one entry when the status is not `active`.",
3419
+ }),
3420
+ }),
3421
+ [
3422
+ Schema.Record(
3423
+ Schema.String,
3424
+ Schema.Json.annotate({ expected: "JSON value" }),
3425
+ ),
3426
+ ],
3427
+ ).annotate({
3428
+ title: "TreasuryFinancialAccountsResourceOutboundAchToggleSettings",
3429
+ description:
3430
+ "Toggle settings for enabling/disabling an outbound ACH specific feature",
3431
+ identifier:
3432
+ "Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings",
3433
+ }),
3434
+ );
3435
+ export const Stripetreasury_financial_accounts_resource_financial_address =
3436
+ Schema.suspend(
3437
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_financial_address> =>
3438
+ Schema.StructWithRest(
3439
+ Schema.Struct({
3440
+ aba: Schema.optionalKey(
3441
+ Stripetreasury_financial_accounts_resource_aba_record,
3442
+ ),
3443
+ supported_networks: Schema.optionalKey(
3444
+ Schema.Array(
3445
+ Schema.Literals(["ach", "rtp", "us_domestic_wire"]),
3446
+ ).annotate({
3447
+ description: "The list of networks that the address supports",
3448
+ }),
3449
+ ),
3450
+ type: Schema.Literal("aba").annotate({
3451
+ description: "The type of financial address",
3452
+ }),
3453
+ }),
3454
+ [
3455
+ Schema.Record(
3456
+ Schema.String,
3457
+ Schema.Json.annotate({ expected: "JSON value" }),
3458
+ ),
3459
+ ],
3460
+ ).annotate({
3461
+ title: "FinancialAddress",
3462
+ description:
3463
+ "FinancialAddresses contain identifying information that resolves to a FinancialAccount.",
3464
+ identifier:
3465
+ "Stripetreasury_financial_accounts_resource_financial_address",
3466
+ }),
3467
+ );
3468
+ export const Stripetreasury_financial_accounts_resource_status_details =
3469
+ Schema.suspend(
3470
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_status_details> =>
3471
+ Schema.StructWithRest(
3472
+ Schema.Struct({
3473
+ closed: Schema.optionalKey(
3474
+ Schema.Union([
3475
+ Schema.Union([
3476
+ Stripetreasury_financial_accounts_resource_closed_status_details,
3477
+ ]).annotate({
3478
+ description:
3479
+ "Details related to the closure of this FinancialAccount",
3480
+ }),
3481
+ Schema.Null,
3482
+ ]),
3483
+ ),
3484
+ }),
3485
+ [
3486
+ Schema.Record(
3487
+ Schema.String,
3488
+ Schema.Json.annotate({ expected: "JSON value" }),
3489
+ ),
3490
+ ],
3491
+ ).annotate({
3492
+ title: "TreasuryFinancialAccountsResourceStatusDetails",
3493
+ description: "",
3494
+ identifier: "Stripetreasury_financial_accounts_resource_status_details",
3495
+ }),
3496
+ );
3497
+ export const Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details =
3498
+ Schema.suspend(
3499
+ (): Schema.Codec<Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details> =>
3500
+ Schema.StructWithRest(
3501
+ Schema.Struct({
3502
+ balance: Schema.optionalKey(
3503
+ Schema.Literal("payments").annotate({
3504
+ description: "Set when `type` is `balance`.",
3505
+ }),
3506
+ ),
3507
+ billing_details: Stripetreasury_shared_resource_billing_details,
3508
+ financial_account: Schema.optionalKey(
3509
+ Stripereceived_payment_method_details_financial_account,
3510
+ ),
3511
+ issuing_card: Schema.optionalKey(
3512
+ Schema.String.annotate({
3513
+ description:
3514
+ "Set when `type` is `issuing_card`. This is an [Issuing Card](https://docs.stripe.com/api#issuing_cards) ID.",
3515
+ }).check(
3516
+ Schema.isMaxCodePoints(5000).annotate({
3517
+ expected: "a string with at most 5000 code points",
3518
+ }),
3519
+ ),
3520
+ ),
3521
+ type: Schema.Literals([
3522
+ "balance",
3523
+ "financial_account",
3524
+ "issuing_card",
3525
+ "stripe",
3526
+ "us_bank_account",
3527
+ ]).annotate({
3528
+ description:
3529
+ "Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount.",
3530
+ }),
3531
+ us_bank_account: Schema.optionalKey(
3532
+ Stripetreasury_shared_resource_initiating_payment_method_details_us_bank_account,
3533
+ ),
3534
+ }),
3535
+ [
3536
+ Schema.Record(
3537
+ Schema.String,
3538
+ Schema.Json.annotate({ expected: "JSON value" }),
3539
+ ),
3540
+ ],
3541
+ ).annotate({
3542
+ title:
3543
+ "TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails",
3544
+ description: "",
3545
+ identifier:
3546
+ "Stripetreasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details",
3547
+ }),
3548
+ );
3549
+ export const Stripetreasury_financial_accounts_resource_financial_addresses_features =
3550
+ Schema.suspend(
3551
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_financial_addresses_features> =>
3552
+ Schema.StructWithRest(
3553
+ Schema.Struct({
3554
+ aba: Schema.optionalKey(
3555
+ Stripetreasury_financial_accounts_resource_aba_toggle_settings,
3556
+ ),
3557
+ }),
3558
+ [
3559
+ Schema.Record(
3560
+ Schema.String,
3561
+ Schema.Json.annotate({ expected: "JSON value" }),
3562
+ ),
3563
+ ],
3564
+ ).annotate({
3565
+ title: "FinancialAddressesFeaturesResource",
3566
+ description:
3567
+ "Settings related to Financial Addresses features on a Financial Account",
3568
+ identifier:
3569
+ "Stripetreasury_financial_accounts_resource_financial_addresses_features",
3570
+ }),
3571
+ );
3572
+ export const Stripetreasury_financial_accounts_resource_inbound_transfers =
3573
+ Schema.suspend(
3574
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_inbound_transfers> =>
3575
+ Schema.StructWithRest(
3576
+ Schema.Struct({
3577
+ ach: Schema.optionalKey(
3578
+ Stripetreasury_financial_accounts_resource_inbound_ach_toggle_settings,
3579
+ ),
3580
+ }),
3581
+ [
3582
+ Schema.Record(
3583
+ Schema.String,
3584
+ Schema.Json.annotate({ expected: "JSON value" }),
3585
+ ),
3586
+ ],
3587
+ ).annotate({
3588
+ title: "InboundTransfer",
3589
+ description:
3590
+ "InboundTransfers contains inbound transfers features for a FinancialAccount.",
3591
+ identifier:
3592
+ "Stripetreasury_financial_accounts_resource_inbound_transfers",
3593
+ }),
3594
+ );
3595
+ export const Stripetreasury_financial_accounts_resource_outbound_payments =
3596
+ Schema.suspend(
3597
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_outbound_payments> =>
3598
+ Schema.StructWithRest(
3599
+ Schema.Struct({
3600
+ ach: Schema.optionalKey(
3601
+ Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings,
3602
+ ),
3603
+ us_domestic_wire: Schema.optionalKey(
3604
+ Stripetreasury_financial_accounts_resource_toggle_settings,
3605
+ ),
3606
+ }),
3607
+ [
3608
+ Schema.Record(
3609
+ Schema.String,
3610
+ Schema.Json.annotate({ expected: "JSON value" }),
3611
+ ),
3612
+ ],
3613
+ ).annotate({
3614
+ title: "OutboundPaymentsResource",
3615
+ description:
3616
+ "Settings related to Outbound Payments features on a Financial Account",
3617
+ identifier:
3618
+ "Stripetreasury_financial_accounts_resource_outbound_payments",
3619
+ }),
3620
+ );
3621
+ export const Stripetreasury_financial_accounts_resource_outbound_transfers =
3622
+ Schema.suspend(
3623
+ (): Schema.Codec<Stripetreasury_financial_accounts_resource_outbound_transfers> =>
3624
+ Schema.StructWithRest(
3625
+ Schema.Struct({
3626
+ ach: Schema.optionalKey(
3627
+ Stripetreasury_financial_accounts_resource_outbound_ach_toggle_settings,
3628
+ ),
3629
+ us_domestic_wire: Schema.optionalKey(
3630
+ Stripetreasury_financial_accounts_resource_toggle_settings,
3631
+ ),
3632
+ }),
3633
+ [
3634
+ Schema.Record(
3635
+ Schema.String,
3636
+ Schema.Json.annotate({ expected: "JSON value" }),
3637
+ ),
3638
+ ],
3639
+ ).annotate({
3640
+ title: "OutboundTransfer",
3641
+ description:
3642
+ "OutboundTransfers contains outbound transfers features for a FinancialAccount.",
3643
+ identifier:
3644
+ "Stripetreasury_financial_accounts_resource_outbound_transfers",
3645
+ }),
3646
+ );
3647
+ export const Stripetreasury_financial_account_features = Schema.suspend(
3648
+ (): Schema.Codec<Stripetreasury_financial_account_features> =>
3649
+ Schema.StructWithRest(
3650
+ Schema.Struct({
3651
+ card_issuing: Schema.optionalKey(
3652
+ Stripetreasury_financial_accounts_resource_toggle_settings,
3653
+ ),
3654
+ deposit_insurance: Schema.optionalKey(
3655
+ Stripetreasury_financial_accounts_resource_toggle_settings,
3656
+ ),
3657
+ financial_addresses: Schema.optionalKey(
3658
+ Stripetreasury_financial_accounts_resource_financial_addresses_features,
3659
+ ),
3660
+ inbound_transfers: Schema.optionalKey(
3661
+ Stripetreasury_financial_accounts_resource_inbound_transfers,
3662
+ ),
3663
+ intra_stripe_flows: Schema.optionalKey(
3664
+ Stripetreasury_financial_accounts_resource_toggle_settings,
3665
+ ),
3666
+ object: Schema.Literal("treasury.financial_account_features").annotate({
3667
+ description:
3668
+ "String representing the object's type. Objects of the same type share the same value.",
3669
+ }),
3670
+ outbound_payments: Schema.optionalKey(
3671
+ Stripetreasury_financial_accounts_resource_outbound_payments,
3672
+ ),
3673
+ outbound_transfers: Schema.optionalKey(
3674
+ Stripetreasury_financial_accounts_resource_outbound_transfers,
3675
+ ),
3676
+ }),
3677
+ [
3678
+ Schema.Record(
3679
+ Schema.String,
3680
+ Schema.Json.annotate({ expected: "JSON value" }),
3681
+ ),
3682
+ ],
3683
+ ).annotate({
3684
+ title: "FinancialAccount Feature",
3685
+ description:
3686
+ "Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.\nStripe or the platform can control Features via the requested field.",
3687
+ identifier: "Stripetreasury.financial_account_features",
3688
+ }),
3689
+ );
3690
+ export const Stripetreasury_financial_account = Schema.suspend(
3691
+ (): Schema.Codec<Stripetreasury_financial_account> =>
3692
+ Schema.StructWithRest(
3693
+ Schema.Struct({
3694
+ active_features: Schema.optionalKey(
3695
+ Schema.Array(
3696
+ Schema.Literals([
3697
+ "card_issuing",
3698
+ "deposit_insurance",
3699
+ "financial_addresses.aba",
3700
+ "financial_addresses.aba.forwarding",
3701
+ "inbound_transfers.ach",
3702
+ "intra_stripe_flows",
3703
+ "outbound_payments.ach",
3704
+ "outbound_payments.us_domestic_wire",
3705
+ "outbound_transfers.ach",
3706
+ "outbound_transfers.us_domestic_wire",
3707
+ "remote_deposit_capture",
3708
+ ]),
3709
+ ).annotate({
3710
+ description:
3711
+ "The array of paths to active Features in the Features hash.",
3712
+ }),
3713
+ ),
3714
+ balance: Stripetreasury_financial_accounts_resource_balance,
3715
+ country: Schema.String.annotate({
3716
+ description:
3717
+ "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).",
3718
+ }).check(
3719
+ Schema.isMaxCodePoints(5000).annotate({
3720
+ expected: "a string with at most 5000 code points",
3721
+ }),
3722
+ ),
3723
+ created: Schema.Number.annotate({
3724
+ description:
3725
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
3726
+ format: "unix-time",
3727
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3728
+ features: Schema.optionalKey(Stripetreasury_financial_account_features),
3729
+ financial_addresses: Schema.Array(
3730
+ Stripetreasury_financial_accounts_resource_financial_address,
3731
+ ).annotate({
3732
+ description:
3733
+ "The set of credentials that resolve to a FinancialAccount.",
3734
+ }),
3735
+ id: Schema.String.annotate({
3736
+ description: "Unique identifier for the object.",
3737
+ }).check(
3738
+ Schema.isMaxCodePoints(5000).annotate({
3739
+ expected: "a string with at most 5000 code points",
3740
+ }),
3741
+ ),
3742
+ is_default: Schema.optionalKey(Schema.Boolean),
3743
+ livemode: Schema.Boolean.annotate({
3744
+ description:
3745
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
3746
+ }),
3747
+ metadata: Schema.optionalKey(
3748
+ Schema.Union([
3749
+ Schema.Record(
3750
+ Schema.String,
3751
+ Schema.String.check(
3752
+ Schema.isMaxCodePoints(500).annotate({
3753
+ expected: "a string with at most 500 code points",
3754
+ }),
3755
+ ),
3756
+ ).annotate({
3757
+ description:
3758
+ "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.",
3759
+ }),
3760
+ Schema.Null,
3761
+ ]),
3762
+ ),
3763
+ nickname: Schema.optionalKey(
3764
+ Schema.Union([
3765
+ Schema.String.annotate({
3766
+ description: "The nickname for the FinancialAccount.",
3767
+ }).check(
3768
+ Schema.isMaxCodePoints(5000).annotate({
3769
+ expected: "a string with at most 5000 code points",
3770
+ }),
3771
+ ),
3772
+ Schema.Null,
3773
+ ]),
3774
+ ),
3775
+ object: Schema.Literal("treasury.financial_account").annotate({
3776
+ description:
3777
+ "String representing the object's type. Objects of the same type share the same value.",
3778
+ }),
3779
+ pending_features: Schema.optionalKey(
3780
+ Schema.Array(
3781
+ Schema.Literals([
3782
+ "card_issuing",
3783
+ "deposit_insurance",
3784
+ "financial_addresses.aba",
3785
+ "financial_addresses.aba.forwarding",
3786
+ "inbound_transfers.ach",
3787
+ "intra_stripe_flows",
3788
+ "outbound_payments.ach",
3789
+ "outbound_payments.us_domestic_wire",
3790
+ "outbound_transfers.ach",
3791
+ "outbound_transfers.us_domestic_wire",
3792
+ "remote_deposit_capture",
3793
+ ]),
3794
+ ).annotate({
3795
+ description:
3796
+ "The array of paths to pending Features in the Features hash.",
3797
+ }),
3798
+ ),
3799
+ platform_restrictions: Schema.optionalKey(
3800
+ Schema.Union([
3801
+ Schema.Union([
3802
+ Stripetreasury_financial_accounts_resource_platform_restrictions,
3803
+ ]).annotate({
3804
+ description:
3805
+ "The set of functionalities that the platform can restrict on the FinancialAccount.",
3806
+ }),
3807
+ Schema.Null,
3808
+ ]),
3809
+ ),
3810
+ restricted_features: Schema.optionalKey(
3811
+ Schema.Array(
3812
+ Schema.Literals([
3813
+ "card_issuing",
3814
+ "deposit_insurance",
3815
+ "financial_addresses.aba",
3816
+ "financial_addresses.aba.forwarding",
3817
+ "inbound_transfers.ach",
3818
+ "intra_stripe_flows",
3819
+ "outbound_payments.ach",
3820
+ "outbound_payments.us_domestic_wire",
3821
+ "outbound_transfers.ach",
3822
+ "outbound_transfers.us_domestic_wire",
3823
+ "remote_deposit_capture",
3824
+ ]),
3825
+ ).annotate({
3826
+ description:
3827
+ "The array of paths to restricted Features in the Features hash.",
3828
+ }),
3829
+ ),
3830
+ status: Schema.Literals(["closed", "open"]).annotate({
3831
+ description: "Status of this FinancialAccount.",
3832
+ }),
3833
+ status_details:
3834
+ Stripetreasury_financial_accounts_resource_status_details,
3835
+ supported_currencies: Schema.Array(Schema.String).annotate({
3836
+ description:
3837
+ "The currencies the FinancialAccount can hold a balance in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.",
3838
+ }),
3839
+ }),
3840
+ [
3841
+ Schema.Record(
3842
+ Schema.String,
3843
+ Schema.Json.annotate({ expected: "JSON value" }),
3844
+ ),
3845
+ ],
3846
+ ).annotate({
3847
+ title: "FinancialAccount",
3848
+ description:
3849
+ "Legacy FinancialAccounts are part of the v1 version of Treasury for platforms and do not support many of the features introduced in [Treasury for platforms v2](https://docs.stripe.com/treasury/connect). Use [Financial Accounts](https://docs.stripe.com/api/v2/money-management/financial-accounts) instead of building a new v1 integration.\n\nStripe Treasury for Platforms provides users with a container for money called a FinancialAccount that is separate from their Payments balance.\nFinancialAccounts serve as the source and destination of Treasury for Platform’s money movement APIs.",
3850
+ identifier: "Stripetreasury.financial_account",
3851
+ }),
3852
+ );