nomoss 0.0.1 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (710) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +1 -1
  3. package/README.md +52 -26
  4. package/ROADMAP.md +19 -0
  5. package/docs/README.md +19 -0
  6. package/docs/application/aws-resource-coverage.md +26 -0
  7. package/docs/application/aws-resource-lifecycle-management.md +47 -0
  8. package/docs/application/cli-workflow.md +111 -0
  9. package/docs/application/engine-design.md +43 -0
  10. package/docs/application/generation-architecture.md +285 -0
  11. package/docs/application/resource-command-policy-stage.md +37 -0
  12. package/docs/application/resource-graph.md +45 -0
  13. package/docs/application/resource-lifecycle-tracker.md +43 -0
  14. package/docs/application/resource-mapping.md +112 -0
  15. package/docs/application/resource-operations.md +41 -0
  16. package/docs/application/resource-outputs.md +66 -0
  17. package/docs/application/tracing.md +27 -0
  18. package/docs/development/code-documentation.md +54 -0
  19. package/docs/development/commit-message-spec.md +9 -0
  20. package/docs/development/effect-native-development.md +89 -0
  21. package/docs/development/linting.md +39 -0
  22. package/docs/development/resource-graph-testing-approach.md +9 -0
  23. package/docs/development/review-code.md +73 -0
  24. package/docs/development/review-docs.md +27 -0
  25. package/docs/development/review-remediation-spec.md +40 -0
  26. package/docs/development/spec-writing.md +35 -0
  27. package/docs/development/testing.md +125 -0
  28. package/docs/development/unslop.md +55 -0
  29. package/docs/operations/observability-sop.md +32 -0
  30. package/docs/operations/releasing.md +7 -0
  31. package/examples/README.md +11 -0
  32. package/examples/cli.ts +15 -0
  33. package/examples/commands.ts +32 -0
  34. package/examples/http-echo/index.ts +54 -0
  35. package/examples/queue/application.ts +37 -0
  36. package/examples/state-machine/application.ts +57 -0
  37. package/examples/stripe-billing/application.ts +56 -0
  38. package/media/nomoss-http-demo.gif +0 -0
  39. package/package.json +63 -24
  40. package/providers/aws/README.md +21 -0
  41. package/providers/aws/awsEnvironment.ts +114 -0
  42. package/providers/aws/generated/managementRegistry.ts +136 -0
  43. package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
  44. package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
  45. package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
  46. package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
  47. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  48. package/providers/aws/generated/resources/iam/group.ts +294 -0
  49. package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
  50. package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
  51. package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
  52. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  53. package/providers/aws/generated/resources/iam/policy.ts +264 -0
  54. package/providers/aws/generated/resources/iam/role.ts +444 -0
  55. package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
  56. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  57. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  58. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  59. package/providers/aws/generated/resources/iam/user.ts +435 -0
  60. package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
  61. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
  62. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  63. package/providers/aws/generated/resources/kms/key.ts +552 -0
  64. package/providers/aws/generated/resources/lambda/function.ts +1924 -0
  65. package/providers/aws/generated/resources/lambda/permission.ts +913 -0
  66. package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
  67. package/providers/aws/generated/resources/sns/topic.ts +536 -0
  68. package/providers/aws/generated/resources/sqs/queue.ts +476 -0
  69. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
  70. package/providers/aws/management/mappings/iam/group.ts +63 -0
  71. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  72. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  73. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  74. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  75. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  76. package/providers/aws/management/mappings/iam/role.ts +74 -0
  77. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  78. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  79. package/providers/aws/management/mappings/iam/user.ts +61 -0
  80. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  81. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  82. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  83. package/providers/aws/management/operations/iam/policy.ts +476 -0
  84. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  85. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  86. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  87. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  88. package/providers/aws/management/resourceAssociations.ts +168 -0
  89. package/providers/aws/management/resourceConfiguration.ts +119 -0
  90. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  91. package/providers/aws/management/resourceManagementModule.ts +31 -0
  92. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  93. package/providers/aws/management/resourceMapping.ts +84 -0
  94. package/providers/aws/management/resourceOperation.ts +134 -0
  95. package/providers/aws/management/resourceTagOperations.ts +108 -0
  96. package/providers/aws/management/resourceTiming.ts +4 -0
  97. package/providers/aws/runtime.ts +52 -0
  98. package/src/cli.ts +31 -13
  99. package/src/cliCommand.ts +207 -170
  100. package/src/cliDiagnostics.ts +104 -0
  101. package/src/core/asset.ts +350 -0
  102. package/src/core/index.ts +61 -17
  103. package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
  104. package/src/core/resource/model.ts +1168 -0
  105. package/src/core/resource/resourceCommandPolicy.ts +88 -0
  106. package/src/core/resource/resourceGraphBuilder.ts +319 -0
  107. package/src/core/resource/resourceGraphStore.ts +373 -0
  108. package/src/core/resource/resourceLifecycle.ts +644 -0
  109. package/src/core/resource/resourceOutputBinding.ts +113 -0
  110. package/src/core/resource/resourceOutputResolver.ts +365 -0
  111. package/src/core/resource/resourceRequest.ts +186 -0
  112. package/src/core/resource/resourceStabilization.ts +120 -0
  113. package/src/core/resource/resourceVersions.ts +102 -0
  114. package/src/core/runtime/stackRuntimeLayer.ts +16 -0
  115. package/src/core/runtime/tracing.ts +43 -0
  116. package/src/core/stack/planner.ts +663 -0
  117. package/src/core/stack/resourceDisplay.ts +213 -0
  118. package/src/core/stack/resourceStackDefinition.ts +32 -0
  119. package/src/core/stack/resourceStackLifecycle.ts +1229 -0
  120. package/src/core/stack/resourceStackOperations.ts +642 -0
  121. package/src/core/stack/resourceStackProgress.ts +169 -0
  122. package/src/core/stack/stackWorkflowRenderer.ts +756 -0
  123. package/src/core/state/localState.ts +18 -0
  124. package/src/core/state/resourceState.ts +77 -0
  125. package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
  126. package/src/core/state/stateStore.ts +600 -0
  127. package/src/providers/file/jsonFile.ts +94 -0
  128. package/src/providers/file/model.ts +29 -0
  129. package/src/providers/file/resourcePolicy.ts +271 -0
  130. package/src/providers/index.ts +0 -2
  131. package/src/providers/providerRuntimeLayer.ts +27 -113
  132. package/src/providers/resourceCommandPolicyLayer.ts +151 -200
  133. package/src/providers/stripe/client/generated/LICENSE +21 -0
  134. package/src/providers/stripe/client/generated/accounts.ts +14360 -0
  135. package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
  136. package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
  137. package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
  138. package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
  139. package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
  140. package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
  141. package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
  142. package/src/providers/stripe/client/generated/catalog.ts +18881 -0
  143. package/src/providers/stripe/client/generated/charges.ts +2637 -0
  144. package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
  145. package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
  146. package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
  147. package/src/providers/stripe/client/generated/configuration.ts +3 -0
  148. package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
  149. package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
  150. package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
  151. package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
  152. package/src/providers/stripe/client/generated/coupons.ts +562 -0
  153. package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
  154. package/src/providers/stripe/client/generated/customers.ts +10712 -0
  155. package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
  156. package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
  157. package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
  158. package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
  159. package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
  160. package/src/providers/stripe/client/generated/index.ts +330 -0
  161. package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
  162. package/src/providers/stripe/client/generated/invoices.ts +8412 -0
  163. package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
  164. package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
  165. package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
  166. package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
  167. package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
  168. package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
  169. package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
  170. package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
  171. package/src/providers/stripe/client/generated/models/common.ts +25024 -0
  172. package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
  173. package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
  174. package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
  175. package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
  176. package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
  177. package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
  178. package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
  179. package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
  180. package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
  181. package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
  182. package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
  183. package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
  184. package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
  185. package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
  186. package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
  187. package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
  188. package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
  189. package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
  190. package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
  191. package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
  192. package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
  193. package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
  194. package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
  195. package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
  196. package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
  197. package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
  198. package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
  199. package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
  200. package/src/providers/stripe/client/generated/payouts.ts +589 -0
  201. package/src/providers/stripe/client/generated/plans.ts +712 -0
  202. package/src/providers/stripe/client/generated/prices.ts +1045 -0
  203. package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
  204. package/src/providers/stripe/client/generated/products.ts +1370 -0
  205. package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
  206. package/src/providers/stripe/client/generated/quotes.ts +1874 -0
  207. package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
  208. package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
  209. package/src/providers/stripe/client/generated/refunds.ts +493 -0
  210. package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
  211. package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
  212. package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
  213. package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
  214. package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
  215. package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
  216. package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
  217. package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
  218. package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
  219. package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
  220. package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
  221. package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
  222. package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
  223. package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
  224. package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
  225. package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
  226. package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
  227. package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
  228. package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
  229. package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
  230. package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
  231. package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
  232. package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
  233. package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
  234. package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
  235. package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
  236. package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
  237. package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
  238. package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
  239. package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
  240. package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
  241. package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
  242. package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
  243. package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
  244. package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
  245. package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
  246. package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
  247. package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
  248. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
  249. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
  250. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
  251. package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
  252. package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
  253. package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
  254. package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
  255. package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
  256. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
  257. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
  258. package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
  259. package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
  260. package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
  261. package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
  262. package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
  263. package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
  264. package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
  265. package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
  266. package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
  267. package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
  268. package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
  269. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
  270. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
  271. package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
  272. package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
  273. package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
  274. package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
  275. package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
  276. package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
  277. package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
  278. package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
  279. package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
  280. package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
  281. package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
  282. package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
  283. package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
  284. package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
  285. package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
  286. package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
  287. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
  288. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
  289. package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
  290. package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
  291. package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
  292. package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
  293. package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
  294. package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
  321. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
  322. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
  324. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
  325. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
  327. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
  328. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
  330. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
  331. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
  333. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
  334. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
  336. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
  337. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
  339. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
  340. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
  342. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
  343. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
  345. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
  346. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
  357. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
  358. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
  366. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
  367. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
  369. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
  370. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
  372. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
  373. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
  375. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
  376. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
  378. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
  379. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
  381. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
  382. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
  390. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
  391. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
  458. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
  459. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
  460. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
  461. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
  462. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
  463. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
  464. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
  465. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
  466. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
  467. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
  468. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
  469. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
  470. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
  471. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
  472. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
  473. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
  474. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
  475. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
  476. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
  477. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
  478. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
  479. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
  480. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
  481. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
  482. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
  483. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
  484. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
  485. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
  486. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
  610. package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
  611. package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
  612. package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
  613. package/src/providers/stripe/client/generated/sources.ts +1482 -0
  614. package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
  615. package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
  616. package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
  617. package/src/providers/stripe/client/generated/taxIds.ts +644 -0
  618. package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
  619. package/src/providers/stripe/client/generated/taxRates.ts +620 -0
  620. package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
  621. package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
  622. package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
  623. package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
  624. package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
  625. package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
  626. package/src/providers/stripe/client/generated/tokens.ts +2498 -0
  627. package/src/providers/stripe/client/generated/topups.ts +556 -0
  628. package/src/providers/stripe/client/generated/transfers.ts +786 -0
  629. package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
  630. package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
  631. package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
  632. package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
  633. package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
  634. package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
  635. package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
  636. package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
  637. package/src/providers/stripe/client/stripeClient.ts +212 -0
  638. package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
  639. package/src/providers/stripe/client/stripeClientModel.ts +40 -0
  640. package/src/providers/stripe/index.ts +8 -15
  641. package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
  642. package/src/providers/stripe/management/resourcePolicy.ts +500 -0
  643. package/src/providers/stripe/management/resources.ts +36 -0
  644. package/src/providers/stripe/runtime.ts +74 -0
  645. package/bin/nomoss +0 -13
  646. package/docs/code-documentation.md +0 -36
  647. package/docs/effect-native-development.md +0 -55
  648. package/docs/engine-design.md +0 -93
  649. package/docs/linting.md +0 -88
  650. package/docs/releasing.md +0 -13
  651. package/docs/resource-command-policy-stage.md +0 -71
  652. package/docs/resource-graph-mvp.md +0 -31
  653. package/docs/resource-graph-testing-approach.md +0 -11
  654. package/docs/resource-lifecycle-tracker.md +0 -93
  655. package/docs/testing.md +0 -86
  656. package/examples/upload-events/README.md +0 -41
  657. package/src/cliRuntimeLayer.ts +0 -49
  658. package/src/core/model.ts +0 -229
  659. package/src/core/physicalNameStore.ts +0 -226
  660. package/src/core/planner.ts +0 -645
  661. package/src/core/resourceCommandPolicy.ts +0 -79
  662. package/src/core/resourceGraphBuilder.ts +0 -167
  663. package/src/core/resourceGraphStore.ts +0 -288
  664. package/src/core/resourceOutputResolver.ts +0 -185
  665. package/src/core/resourcePolicy.ts +0 -77
  666. package/src/core/resourceStackDefinition.ts +0 -17
  667. package/src/core/resourceStackLifecycle.ts +0 -456
  668. package/src/core/resourceStackOperations.ts +0 -129
  669. package/src/core/runtimeLayer.ts +0 -73
  670. package/src/core/stackWorkflowRenderer.ts +0 -239
  671. package/src/core/stateStore.ts +0 -652
  672. package/src/core/tracing.ts +0 -26
  673. package/src/providers/aws/awsApply.ts +0 -132
  674. package/src/providers/aws/awsBucket.ts +0 -329
  675. package/src/providers/aws/awsBucketNotification.ts +0 -351
  676. package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
  677. package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
  678. package/src/providers/aws/awsProviderLayer.ts +0 -274
  679. package/src/providers/aws/awsQueue.ts +0 -346
  680. package/src/providers/aws/awsQueuePolicy.ts +0 -419
  681. package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
  682. package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
  683. package/src/providers/aws/awsReconciliation.ts +0 -92
  684. package/src/providers/aws/awsRefresh.ts +0 -50
  685. package/src/providers/aws/awsResourceLifecycle.ts +0 -118
  686. package/src/providers/aws/awsResourcePolicy.ts +0 -83
  687. package/src/providers/aws/awsResources.ts +0 -274
  688. package/src/providers/aws/awsRuntimeLayer.ts +0 -21
  689. package/src/providers/aws/awsSqsTransport.ts +0 -33
  690. package/src/providers/aws/awsStackLifecycle.ts +0 -272
  691. package/src/providers/aws/awsTagging.ts +0 -186
  692. package/src/providers/aws/constants.ts +0 -3
  693. package/src/providers/aws/index.ts +0 -22
  694. package/src/providers/aws/sampleStack.ts +0 -65
  695. package/src/providers/aws/stackWorkflow.ts +0 -443
  696. package/src/providers/stripe/stripeAccount.ts +0 -139
  697. package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
  698. package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
  699. package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
  700. package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
  701. package/src/providers/stripe/stripeCustomer.ts +0 -148
  702. package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
  703. package/src/providers/stripe/stripePrice.ts +0 -218
  704. package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
  705. package/src/providers/stripe/stripeProduct.ts +0 -171
  706. package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
  707. package/src/providers/stripe/stripeResources.ts +0 -454
  708. package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
  709. package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
  710. package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
@@ -0,0 +1,3616 @@
1
+ // This schema module comes from the selected resource contracts. Do not edit.
2
+
3
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
4
+ import { Schema } from "effect";
5
+ import { Stripeaccount } from "./accounts.js";
6
+ import { Stripebilling_details } from "./billing.js";
7
+ import {
8
+ Stripeapplication,
9
+ Stripeapplication_fee,
10
+ Stripedestination_details_unimplemented,
11
+ Stripeemail_sent,
12
+ Stripefile,
13
+ Striperadar_radar_options,
14
+ Striperadar_rule,
15
+ Stripereview,
16
+ Stripeshipping,
17
+ } from "./common.js";
18
+ import { Stripecustomer, Stripedeleted_customer } from "./customers.js";
19
+ import { Stripepayment_intent } from "./paymentIntents.js";
20
+ import { Stripepayment_method_details } from "./paymentMethodDetails.js";
21
+ import { Stripepayment_method } from "./paymentMethods.js";
22
+ import { Stripepayment_flows_payment_intent_presentment_details } from "./payments.js";
23
+ import {
24
+ Stripebalance_transaction,
25
+ Stripetransfer,
26
+ Stripetransfer_reversal,
27
+ } from "./transfers.js";
28
+
29
+ export type Stripecharge = {
30
+ readonly amount: number;
31
+ readonly amount_captured: number;
32
+ readonly amount_refunded: number;
33
+ readonly application?: string | Stripeapplication | null;
34
+ readonly application_fee?: string | Stripeapplication_fee | null;
35
+ readonly application_fee_amount?: number | null;
36
+ readonly balance_transaction?: string | Stripebalance_transaction | null;
37
+ readonly billing_details: Stripebilling_details;
38
+ readonly calculated_statement_descriptor?: string | null;
39
+ readonly captured: boolean;
40
+ readonly created: number;
41
+ readonly currency: string;
42
+ readonly customer?: string | Stripecustomer | Stripedeleted_customer | null;
43
+ readonly description?: string | null;
44
+ readonly disputed: boolean;
45
+ readonly failure_balance_transaction?:
46
+ | string
47
+ | Stripebalance_transaction
48
+ | null;
49
+ readonly failure_code?: string | null;
50
+ readonly failure_message?: string | null;
51
+ readonly fraud_details?: Stripecharge_fraud_details | null;
52
+ readonly id: string;
53
+ readonly livemode: boolean;
54
+ readonly metadata: { readonly [x: string]: string };
55
+ readonly object: "charge";
56
+ readonly on_behalf_of?: string | Stripeaccount | null;
57
+ readonly outcome?: Stripecharge_outcome | null;
58
+ readonly paid: boolean;
59
+ readonly payment_intent?: string | Stripepayment_intent | null;
60
+ readonly payment_method?: string | null;
61
+ readonly payment_method_details?: Stripepayment_method_details | null;
62
+ readonly presentment_details?: Stripepayment_flows_payment_intent_presentment_details;
63
+ readonly radar_options?: Striperadar_radar_options;
64
+ readonly receipt_email?: string | null;
65
+ readonly receipt_number?: string | null;
66
+ readonly receipt_url?: string | null;
67
+ readonly refunded: boolean;
68
+ readonly refunds?:
69
+ | ({
70
+ readonly data: ReadonlyArray<Striperefund>;
71
+ readonly has_more: boolean;
72
+ readonly object: "list";
73
+ readonly url: string;
74
+ } & { readonly [x: string]: Schema.Json })
75
+ | null;
76
+ readonly review?: string | Stripereview | null;
77
+ readonly shipping?: Stripeshipping | null;
78
+ readonly source_transfer?: string | Stripetransfer | null;
79
+ readonly statement_descriptor?: string | null;
80
+ readonly statement_descriptor_suffix?: string | null;
81
+ readonly status: "failed" | "pending" | "succeeded";
82
+ readonly transfer?: string | Stripetransfer;
83
+ readonly transfer_data?: Stripecharge_transfer_data | null;
84
+ readonly transfer_group?: string | null;
85
+ } & { readonly [x: string]: Schema.Json };
86
+ export type Striperefund = {
87
+ readonly amount: number;
88
+ readonly balance_transaction?: string | Stripebalance_transaction | null;
89
+ readonly charge?: string | Stripecharge | null;
90
+ readonly created: number;
91
+ readonly currency: string;
92
+ readonly customer?: string | Stripecustomer | Stripedeleted_customer | null;
93
+ readonly customer_account?: string | null;
94
+ readonly description?: string;
95
+ readonly destination_details?: Striperefund_destination_details;
96
+ readonly failure_balance_transaction?: string | Stripebalance_transaction;
97
+ readonly failure_reason?: string;
98
+ readonly id: string;
99
+ readonly instructions_email?: string;
100
+ readonly metadata?: { readonly [x: string]: string } | null;
101
+ readonly next_action?: Striperefund_next_action;
102
+ readonly object: "refund";
103
+ readonly payment_intent?: string | Stripepayment_intent | null;
104
+ readonly payment_method?: string | Stripepayment_method | null;
105
+ readonly pending_reason?:
106
+ | "charge_pending"
107
+ | "insufficient_funds"
108
+ | "processing";
109
+ readonly presentment_details?: Stripepayment_flows_payment_intent_presentment_details;
110
+ readonly reason?:
111
+ | "duplicate"
112
+ | "expired_uncaptured_charge"
113
+ | "fraudulent"
114
+ | "requested_by_customer"
115
+ | null;
116
+ readonly receipt_number?: string | null;
117
+ readonly source_transfer_reversal?: string | Stripetransfer_reversal | null;
118
+ readonly status?: string | null;
119
+ readonly transfer_reversal?: string | Stripetransfer_reversal | null;
120
+ } & { readonly [x: string]: Schema.Json };
121
+ export type Stripedispute = {
122
+ readonly amount: number;
123
+ readonly balance_transactions: ReadonlyArray<Stripebalance_transaction>;
124
+ readonly charge: string | Stripecharge;
125
+ readonly created: number;
126
+ readonly currency: string;
127
+ readonly enhanced_eligibility_types: ReadonlyArray<
128
+ "mastercard_compliance" | "visa_compelling_evidence_3" | "visa_compliance"
129
+ >;
130
+ readonly evidence: Stripedispute_evidence;
131
+ readonly evidence_details: Stripedispute_evidence_details;
132
+ readonly id: string;
133
+ readonly intended_submission_method?:
134
+ | "manual"
135
+ | "prefer_manual"
136
+ | "prefer_smart_disputes"
137
+ | "smart_disputes"
138
+ | null;
139
+ readonly is_charge_refundable: boolean;
140
+ readonly livemode: boolean;
141
+ readonly metadata: { readonly [x: string]: string };
142
+ readonly object: "dispute";
143
+ readonly payment_intent?: string | Stripepayment_intent | null;
144
+ readonly payment_method_details?: Stripedispute_payment_method_details;
145
+ readonly reason: string;
146
+ readonly status:
147
+ | "appeal_needs_response"
148
+ | "appeal_under_review"
149
+ | "lost"
150
+ | "needs_response"
151
+ | "prevented"
152
+ | "under_review"
153
+ | "warning_closed"
154
+ | "warning_needs_response"
155
+ | "warning_under_review"
156
+ | "won";
157
+ } & { readonly [x: string]: Schema.Json };
158
+ export type Striperefund_destination_details_afterpay_clearpay = {
159
+ readonly reference?: string | null;
160
+ readonly reference_status?: string | null;
161
+ } & { readonly [x: string]: Schema.Json };
162
+ export type Striperefund_destination_details_blik = {
163
+ readonly network_decline_code?: string | null;
164
+ readonly reference?: string | null;
165
+ readonly reference_status?: string | null;
166
+ } & { readonly [x: string]: Schema.Json };
167
+ export type Striperefund_destination_details_br_bank_transfer = {
168
+ readonly reference?: string | null;
169
+ readonly reference_status?: string | null;
170
+ } & { readonly [x: string]: Schema.Json };
171
+ export type Striperefund_destination_details_card = {
172
+ readonly reference?: string;
173
+ readonly reference_status?: string;
174
+ readonly reference_type?: string;
175
+ readonly type: "pending" | "refund" | "reversal";
176
+ } & { readonly [x: string]: Schema.Json };
177
+ export type Striperefund_destination_details_crypto = {
178
+ readonly reference?: string | null;
179
+ } & { readonly [x: string]: Schema.Json };
180
+ export type Striperefund_destination_details_eu_bank_transfer = {
181
+ readonly reference?: string | null;
182
+ readonly reference_status?: string | null;
183
+ } & { readonly [x: string]: Schema.Json };
184
+ export type Striperefund_destination_details_gb_bank_transfer = {
185
+ readonly reference?: string | null;
186
+ readonly reference_status?: string | null;
187
+ } & { readonly [x: string]: Schema.Json };
188
+ export type Striperefund_destination_details_jp_bank_transfer = {
189
+ readonly reference?: string | null;
190
+ readonly reference_status?: string | null;
191
+ } & { readonly [x: string]: Schema.Json };
192
+ export type Striperefund_destination_details_klarna = {
193
+ readonly reference?: string | null;
194
+ readonly reference_status?: string | null;
195
+ } & { readonly [x: string]: Schema.Json };
196
+ export type Striperefund_destination_details_mb_way = {
197
+ readonly reference?: string | null;
198
+ readonly reference_status?: string | null;
199
+ } & { readonly [x: string]: Schema.Json };
200
+ export type Striperefund_destination_details_multibanco = {
201
+ readonly reference?: string | null;
202
+ readonly reference_status?: string | null;
203
+ } & { readonly [x: string]: Schema.Json };
204
+ export type Striperefund_destination_details_mx_bank_transfer = {
205
+ readonly reference?: string | null;
206
+ readonly reference_status?: string | null;
207
+ } & { readonly [x: string]: Schema.Json };
208
+ export type Striperefund_destination_details_p24 = {
209
+ readonly reference?: string | null;
210
+ readonly reference_status?: string | null;
211
+ } & { readonly [x: string]: Schema.Json };
212
+ export type Striperefund_destination_details_paypal = {
213
+ readonly network_decline_code?: string | null;
214
+ readonly reference?: string | null;
215
+ readonly reference_status?: string | null;
216
+ } & { readonly [x: string]: Schema.Json };
217
+ export type Striperefund_destination_details_swish = {
218
+ readonly network_decline_code?: string | null;
219
+ readonly reference?: string | null;
220
+ readonly reference_status?: string | null;
221
+ } & { readonly [x: string]: Schema.Json };
222
+ export type Striperefund_destination_details_th_bank_transfer = {
223
+ readonly reference?: string | null;
224
+ readonly reference_status?: string | null;
225
+ } & { readonly [x: string]: Schema.Json };
226
+ export type Striperefund_destination_details_us_bank_transfer = {
227
+ readonly reference?: string | null;
228
+ readonly reference_status?: string | null;
229
+ } & { readonly [x: string]: Schema.Json };
230
+ export type Stripedispute_appeal_card = {
231
+ readonly reason_for_filing?: string;
232
+ readonly supporting_files?: ReadonlyArray<string>;
233
+ } & { readonly [x: string]: Schema.Json };
234
+ export type Stripedispute_enhanced_evidence_mastercard_compliance = {
235
+ readonly fee_acknowledged: boolean;
236
+ } & { readonly [x: string]: Schema.Json };
237
+ export type Stripedispute_transaction_shipping_address = {
238
+ readonly city?: string | null;
239
+ readonly country?: string | null;
240
+ readonly line1?: string | null;
241
+ readonly line2?: string | null;
242
+ readonly postal_code?: string | null;
243
+ readonly state?: string | null;
244
+ } & { readonly [x: string]: Schema.Json };
245
+ export type Stripedispute_enhanced_evidence_visa_compliance = {
246
+ readonly fee_acknowledged: boolean;
247
+ } & { readonly [x: string]: Schema.Json };
248
+ export type Stripedispute_enhanced_eligibility_mastercard_compliance = {
249
+ readonly status: "fee_acknowledged" | "requires_fee_acknowledgement";
250
+ } & { readonly [x: string]: Schema.Json };
251
+ export type Stripedispute_enhanced_eligibility_visa_compelling_evidence3 = {
252
+ readonly required_actions: ReadonlyArray<
253
+ | "missing_customer_identifiers"
254
+ | "missing_disputed_transaction_description"
255
+ | "missing_merchandise_or_services"
256
+ | "missing_prior_undisputed_transaction_description"
257
+ | "missing_prior_undisputed_transactions"
258
+ >;
259
+ readonly status: "not_qualified" | "qualified" | "requires_action";
260
+ } & { readonly [x: string]: Schema.Json };
261
+ export type Stripedispute_enhanced_eligibility_visa_compliance = {
262
+ readonly status: "fee_acknowledged" | "requires_fee_acknowledgement";
263
+ } & { readonly [x: string]: Schema.Json };
264
+ export type Stripedispute_payment_method_details_amazon_pay = {
265
+ readonly dispute_type?: "chargeback" | "claim" | null;
266
+ } & { readonly [x: string]: Schema.Json };
267
+ export type Stripedispute_payment_method_details_card = {
268
+ readonly brand: string;
269
+ readonly case_type:
270
+ | "block"
271
+ | "chargeback"
272
+ | "compliance"
273
+ | "inquiry"
274
+ | "resolution";
275
+ readonly network: string;
276
+ readonly network_reason_code?: string | null;
277
+ } & { readonly [x: string]: Schema.Json };
278
+ export type Stripedispute_payment_method_details_klarna = {
279
+ readonly chargeback_loss_reason_code?: string;
280
+ readonly reason_code?: string | null;
281
+ } & { readonly [x: string]: Schema.Json };
282
+ export type Stripedispute_payment_method_details_paypal = {
283
+ readonly case_id?: string | null;
284
+ readonly reason_code?: string | null;
285
+ } & { readonly [x: string]: Schema.Json };
286
+ export type Stripecharge_fraud_details = {
287
+ readonly stripe_report?: string;
288
+ readonly user_report?: string;
289
+ } & { readonly [x: string]: Schema.Json };
290
+ export type Stripecharge_transfer_data = {
291
+ readonly amount?: number | null;
292
+ readonly destination: string | Stripeaccount;
293
+ } & { readonly [x: string]: Schema.Json };
294
+ export type Striperefund_destination_details = {
295
+ readonly affirm?: Stripedestination_details_unimplemented;
296
+ readonly afterpay_clearpay?: Striperefund_destination_details_afterpay_clearpay;
297
+ readonly alipay?: Stripedestination_details_unimplemented;
298
+ readonly alma?: Stripedestination_details_unimplemented;
299
+ readonly amazon_pay?: Stripedestination_details_unimplemented;
300
+ readonly au_bank_transfer?: Stripedestination_details_unimplemented;
301
+ readonly blik?: Striperefund_destination_details_blik;
302
+ readonly br_bank_transfer?: Striperefund_destination_details_br_bank_transfer;
303
+ readonly card?: Striperefund_destination_details_card;
304
+ readonly cashapp?: Stripedestination_details_unimplemented;
305
+ readonly crypto?: Striperefund_destination_details_crypto;
306
+ readonly customer_cash_balance?: Stripedestination_details_unimplemented;
307
+ readonly eps?: Stripedestination_details_unimplemented;
308
+ readonly eu_bank_transfer?: Striperefund_destination_details_eu_bank_transfer;
309
+ readonly gb_bank_transfer?: Striperefund_destination_details_gb_bank_transfer;
310
+ readonly giropay?: Stripedestination_details_unimplemented;
311
+ readonly grabpay?: Stripedestination_details_unimplemented;
312
+ readonly jp_bank_transfer?: Striperefund_destination_details_jp_bank_transfer;
313
+ readonly klarna?: Striperefund_destination_details_klarna;
314
+ readonly mb_way?: Striperefund_destination_details_mb_way;
315
+ readonly multibanco?: Striperefund_destination_details_multibanco;
316
+ readonly mx_bank_transfer?: Striperefund_destination_details_mx_bank_transfer;
317
+ readonly nz_bank_transfer?: Stripedestination_details_unimplemented;
318
+ readonly p24?: Striperefund_destination_details_p24;
319
+ readonly paynow?: Stripedestination_details_unimplemented;
320
+ readonly paypal?: Striperefund_destination_details_paypal;
321
+ readonly pix?: Stripedestination_details_unimplemented;
322
+ readonly revolut?: Stripedestination_details_unimplemented;
323
+ readonly scalapay?: Stripedestination_details_unimplemented;
324
+ readonly sofort?: Stripedestination_details_unimplemented;
325
+ readonly swish?: Striperefund_destination_details_swish;
326
+ readonly th_bank_transfer?: Striperefund_destination_details_th_bank_transfer;
327
+ readonly twint?: Stripedestination_details_unimplemented;
328
+ readonly type: string;
329
+ readonly us_bank_transfer?: Striperefund_destination_details_us_bank_transfer;
330
+ readonly wechat_pay?: Stripedestination_details_unimplemented;
331
+ readonly zip?: Stripedestination_details_unimplemented;
332
+ } & { readonly [x: string]: Schema.Json };
333
+ export type Striperefund_next_action_display_details = {
334
+ readonly email_sent: Stripeemail_sent;
335
+ readonly expires_at: number;
336
+ } & { readonly [x: string]: Schema.Json };
337
+ export type Stripedispute_appeal = {
338
+ readonly card?: Stripedispute_appeal_card;
339
+ } & { readonly [x: string]: Schema.Json };
340
+ export type Stripedispute_visa_compelling_evidence3_disputed_transaction = {
341
+ readonly customer_account_id?: string | null;
342
+ readonly customer_device_fingerprint?: string | null;
343
+ readonly customer_device_id?: string | null;
344
+ readonly customer_email_address?: string | null;
345
+ readonly customer_purchase_ip?: string | null;
346
+ readonly merchandise_or_services?: "merchandise" | "services" | null;
347
+ readonly product_description?: string | null;
348
+ readonly shipping_address?: Stripedispute_transaction_shipping_address | null;
349
+ } & { readonly [x: string]: Schema.Json };
350
+ export type Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction =
351
+ {
352
+ readonly charge: string;
353
+ readonly customer_account_id?: string | null;
354
+ readonly customer_device_fingerprint?: string | null;
355
+ readonly customer_device_id?: string | null;
356
+ readonly customer_email_address?: string | null;
357
+ readonly customer_purchase_ip?: string | null;
358
+ readonly product_description?: string | null;
359
+ readonly shipping_address?: Stripedispute_transaction_shipping_address | null;
360
+ } & { readonly [x: string]: Schema.Json };
361
+ export type Stripedispute_enhanced_eligibility = {
362
+ readonly mastercard_compliance?: Stripedispute_enhanced_eligibility_mastercard_compliance;
363
+ readonly visa_compelling_evidence_3?: Stripedispute_enhanced_eligibility_visa_compelling_evidence3;
364
+ readonly visa_compliance?: Stripedispute_enhanced_eligibility_visa_compliance;
365
+ } & { readonly [x: string]: Schema.Json };
366
+ export type Stripedispute_payment_method_details = {
367
+ readonly amazon_pay?: Stripedispute_payment_method_details_amazon_pay;
368
+ readonly card?: Stripedispute_payment_method_details_card;
369
+ readonly klarna?: Stripedispute_payment_method_details_klarna;
370
+ readonly paypal?: Stripedispute_payment_method_details_paypal;
371
+ readonly type: "amazon_pay" | "card" | "klarna" | "paypal";
372
+ } & { readonly [x: string]: Schema.Json };
373
+ export type Stripecharge_outcome = {
374
+ readonly advice_code?:
375
+ | "confirm_card_data"
376
+ | "do_not_try_again"
377
+ | "try_again_later"
378
+ | null;
379
+ readonly network_advice_code?: string | null;
380
+ readonly network_decline_code?: string | null;
381
+ readonly network_status?: string | null;
382
+ readonly reason?: string | null;
383
+ readonly risk_level?: string;
384
+ readonly risk_score?: number;
385
+ readonly rule?: string | Striperadar_rule;
386
+ readonly seller_message?: string | null;
387
+ readonly type: string;
388
+ } & { readonly [x: string]: Schema.Json };
389
+ export type Striperefund_next_action = {
390
+ readonly display_details?: Striperefund_next_action_display_details;
391
+ readonly type: string;
392
+ } & { readonly [x: string]: Schema.Json };
393
+ export type Stripedispute_enhanced_evidence_visa_compelling_evidence3 = {
394
+ readonly disputed_transaction?: Stripedispute_visa_compelling_evidence3_disputed_transaction | null;
395
+ readonly prior_undisputed_transactions: ReadonlyArray<Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction>;
396
+ } & { readonly [x: string]: Schema.Json };
397
+ export type Stripedispute_evidence_details = {
398
+ readonly due_by?: number | null;
399
+ readonly enhanced_eligibility: Stripedispute_enhanced_eligibility;
400
+ readonly has_evidence: boolean;
401
+ readonly past_due: boolean;
402
+ readonly submission_count: number;
403
+ readonly submission_method: "manual" | "not_submitted" | "smart_disputes";
404
+ } & { readonly [x: string]: Schema.Json };
405
+ export type Stripedispute_enhanced_evidence = {
406
+ readonly mastercard_compliance?: Stripedispute_enhanced_evidence_mastercard_compliance;
407
+ readonly visa_compelling_evidence_3?: Stripedispute_enhanced_evidence_visa_compelling_evidence3;
408
+ readonly visa_compliance?: Stripedispute_enhanced_evidence_visa_compliance;
409
+ } & { readonly [x: string]: Schema.Json };
410
+ export type Stripedispute_evidence = {
411
+ readonly access_activity_log?: string | null;
412
+ readonly appeal?: Stripedispute_appeal | null;
413
+ readonly billing_address?: string | null;
414
+ readonly cancellation_policy?: string | Stripefile | null;
415
+ readonly cancellation_policy_disclosure?: string | null;
416
+ readonly cancellation_rebuttal?: string | null;
417
+ readonly customer_communication?: string | Stripefile | null;
418
+ readonly customer_email_address?: string | null;
419
+ readonly customer_name?: string | null;
420
+ readonly customer_purchase_ip?: string | null;
421
+ readonly customer_signature?: string | Stripefile | null;
422
+ readonly duplicate_charge_documentation?: string | Stripefile | null;
423
+ readonly duplicate_charge_explanation?: string | null;
424
+ readonly duplicate_charge_id?: string | null;
425
+ readonly enhanced_evidence: Stripedispute_enhanced_evidence;
426
+ readonly product_description?: string | null;
427
+ readonly receipt?: string | Stripefile | null;
428
+ readonly refund_policy?: string | Stripefile | null;
429
+ readonly refund_policy_disclosure?: string | null;
430
+ readonly refund_refusal_explanation?: string | null;
431
+ readonly service_date?: string | null;
432
+ readonly service_documentation?: string | Stripefile | null;
433
+ readonly shipping_address?: string | null;
434
+ readonly shipping_carrier?: string | null;
435
+ readonly shipping_date?: string | null;
436
+ readonly shipping_documentation?: string | Stripefile | null;
437
+ readonly shipping_tracking_number?: string | null;
438
+ readonly uncategorized_file?: string | Stripefile | null;
439
+ readonly uncategorized_text?: string | null;
440
+ } & { readonly [x: string]: Schema.Json };
441
+
442
+ export const Stripecharge = Schema.suspend(
443
+ (): Schema.Codec<Stripecharge> =>
444
+ Schema.StructWithRest(
445
+ Schema.Struct({
446
+ amount: Schema.Number.annotate({
447
+ description:
448
+ "Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).",
449
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
450
+ amount_captured: Schema.Number.annotate({
451
+ description:
452
+ "Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made).",
453
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
454
+ amount_refunded: Schema.Number.annotate({
455
+ description:
456
+ "Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the charge if a partial refund was issued).",
457
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
458
+ application: Schema.optionalKey(
459
+ Schema.Union([
460
+ Schema.Union([
461
+ Schema.String.check(
462
+ Schema.isMaxCodePoints(5000).annotate({
463
+ expected: "a string with at most 5000 code points",
464
+ }),
465
+ ),
466
+ Stripeapplication,
467
+ ]).annotate({
468
+ description:
469
+ "ID of the Connect application that created the charge.",
470
+ }),
471
+ Schema.Null,
472
+ ]),
473
+ ),
474
+ application_fee: Schema.optionalKey(
475
+ Schema.Union([
476
+ Schema.Union([
477
+ Schema.String.check(
478
+ Schema.isMaxCodePoints(5000).annotate({
479
+ expected: "a string with at most 5000 code points",
480
+ }),
481
+ ),
482
+ Schema.suspend(
483
+ (): Schema.Codec<Stripeapplication_fee> =>
484
+ Stripeapplication_fee,
485
+ ),
486
+ ]).annotate({
487
+ description:
488
+ "The application fee (if any) for the charge. [See the Connect documentation](https://docs.stripe.com/connect/direct-charges#collect-fees) for details.",
489
+ }),
490
+ Schema.Null,
491
+ ]),
492
+ ),
493
+ application_fee_amount: Schema.optionalKey(
494
+ Schema.Union([
495
+ Schema.Number.annotate({
496
+ description:
497
+ "The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://docs.stripe.com/connect/direct-charges#collect-fees) for details.",
498
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
499
+ Schema.Null,
500
+ ]),
501
+ ),
502
+ balance_transaction: Schema.optionalKey(
503
+ Schema.Union([
504
+ Schema.Union([
505
+ Schema.String.check(
506
+ Schema.isMaxCodePoints(5000).annotate({
507
+ expected: "a string with at most 5000 code points",
508
+ }),
509
+ ),
510
+ Schema.suspend(
511
+ (): Schema.Codec<Stripebalance_transaction> =>
512
+ Stripebalance_transaction,
513
+ ),
514
+ ]).annotate({
515
+ description:
516
+ "ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).",
517
+ }),
518
+ Schema.Null,
519
+ ]),
520
+ ),
521
+ billing_details: Stripebilling_details,
522
+ calculated_statement_descriptor: Schema.optionalKey(
523
+ Schema.Union([
524
+ Schema.String.annotate({
525
+ description:
526
+ "The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments.",
527
+ }).check(
528
+ Schema.isMaxCodePoints(5000).annotate({
529
+ expected: "a string with at most 5000 code points",
530
+ }),
531
+ ),
532
+ Schema.Null,
533
+ ]),
534
+ ),
535
+ captured: Schema.Boolean.annotate({
536
+ description:
537
+ "If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured.",
538
+ }),
539
+ created: Schema.Number.annotate({
540
+ description:
541
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
542
+ format: "unix-time",
543
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
544
+ currency: Schema.String.annotate({
545
+ description:
546
+ "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).",
547
+ format: "currency",
548
+ }),
549
+ customer: Schema.optionalKey(
550
+ Schema.Union([
551
+ Schema.Union([
552
+ Schema.String.check(
553
+ Schema.isMaxCodePoints(5000).annotate({
554
+ expected: "a string with at most 5000 code points",
555
+ }),
556
+ ),
557
+ Schema.suspend(
558
+ (): Schema.Codec<Stripecustomer> => Stripecustomer,
559
+ ),
560
+ Stripedeleted_customer,
561
+ ]).annotate({
562
+ description:
563
+ "ID of the customer this charge is for if one exists.",
564
+ }),
565
+ Schema.Null,
566
+ ]),
567
+ ),
568
+ description: Schema.optionalKey(
569
+ Schema.Union([
570
+ Schema.String.annotate({
571
+ description:
572
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
573
+ }).check(
574
+ Schema.isMaxCodePoints(40000).annotate({
575
+ expected: "a string with at most 40000 code points",
576
+ }),
577
+ ),
578
+ Schema.Null,
579
+ ]),
580
+ ),
581
+ disputed: Schema.Boolean.annotate({
582
+ description: "Whether the charge has been disputed.",
583
+ }),
584
+ failure_balance_transaction: Schema.optionalKey(
585
+ Schema.Union([
586
+ Schema.Union([
587
+ Schema.String.check(
588
+ Schema.isMaxCodePoints(5000).annotate({
589
+ expected: "a string with at most 5000 code points",
590
+ }),
591
+ ),
592
+ Schema.suspend(
593
+ (): Schema.Codec<Stripebalance_transaction> =>
594
+ Stripebalance_transaction,
595
+ ),
596
+ ]).annotate({
597
+ description:
598
+ "ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.",
599
+ }),
600
+ Schema.Null,
601
+ ]),
602
+ ),
603
+ failure_code: Schema.optionalKey(
604
+ Schema.Union([
605
+ Schema.String.annotate({
606
+ description:
607
+ "Error code explaining reason for charge failure if available (see [the errors section](https://docs.stripe.com/error-codes) for a list of codes).",
608
+ }).check(
609
+ Schema.isMaxCodePoints(5000).annotate({
610
+ expected: "a string with at most 5000 code points",
611
+ }),
612
+ ),
613
+ Schema.Null,
614
+ ]),
615
+ ),
616
+ failure_message: Schema.optionalKey(
617
+ Schema.Union([
618
+ Schema.String.annotate({
619
+ description:
620
+ "Message to user further explaining reason for charge failure if available.",
621
+ }).check(
622
+ Schema.isMaxCodePoints(5000).annotate({
623
+ expected: "a string with at most 5000 code points",
624
+ }),
625
+ ),
626
+ Schema.Null,
627
+ ]),
628
+ ),
629
+ fraud_details: Schema.optionalKey(
630
+ Schema.Union([
631
+ Schema.Union([Stripecharge_fraud_details]).annotate({
632
+ description: "Information on fraud assessments for the charge.",
633
+ }),
634
+ Schema.Null,
635
+ ]),
636
+ ),
637
+ id: Schema.String.annotate({
638
+ description: "Unique identifier for the object.",
639
+ }).check(
640
+ Schema.isMaxCodePoints(5000).annotate({
641
+ expected: "a string with at most 5000 code points",
642
+ }),
643
+ ),
644
+ livemode: Schema.Boolean.annotate({
645
+ description:
646
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
647
+ }),
648
+ metadata: Schema.Record(
649
+ Schema.String,
650
+ Schema.String.check(
651
+ Schema.isMaxCodePoints(500).annotate({
652
+ expected: "a string with at most 500 code points",
653
+ }),
654
+ ),
655
+ ).annotate({
656
+ description:
657
+ "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.",
658
+ }),
659
+ object: Schema.Literal("charge").annotate({
660
+ description:
661
+ "String representing the object's type. Objects of the same type share the same value.",
662
+ }),
663
+ on_behalf_of: Schema.optionalKey(
664
+ Schema.Union([
665
+ Schema.Union([
666
+ Schema.String.check(
667
+ Schema.isMaxCodePoints(5000).annotate({
668
+ expected: "a string with at most 5000 code points",
669
+ }),
670
+ ),
671
+ Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
672
+ ]).annotate({
673
+ description:
674
+ "The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.",
675
+ }),
676
+ Schema.Null,
677
+ ]),
678
+ ),
679
+ outcome: Schema.optionalKey(
680
+ Schema.Union([
681
+ Schema.Union([Stripecharge_outcome]).annotate({
682
+ description:
683
+ "Details about whether the payment was accepted, and why. See [understanding declines](https://docs.stripe.com/declines) for details.",
684
+ }),
685
+ Schema.Null,
686
+ ]),
687
+ ),
688
+ paid: Schema.Boolean.annotate({
689
+ description:
690
+ "`true` if the charge succeeded, or was successfully authorized for later capture.",
691
+ }),
692
+ payment_intent: Schema.optionalKey(
693
+ Schema.Union([
694
+ Schema.Union([
695
+ Schema.String.check(
696
+ Schema.isMaxCodePoints(5000).annotate({
697
+ expected: "a string with at most 5000 code points",
698
+ }),
699
+ ),
700
+ Schema.suspend(
701
+ (): Schema.Codec<Stripepayment_intent> => Stripepayment_intent,
702
+ ),
703
+ ]).annotate({
704
+ description:
705
+ "ID of the PaymentIntent associated with this charge, if one exists.",
706
+ }),
707
+ Schema.Null,
708
+ ]),
709
+ ),
710
+ payment_method: Schema.optionalKey(
711
+ Schema.Union([
712
+ Schema.String.annotate({
713
+ description: "ID of the payment method used in this charge.",
714
+ }).check(
715
+ Schema.isMaxCodePoints(5000).annotate({
716
+ expected: "a string with at most 5000 code points",
717
+ }),
718
+ ),
719
+ Schema.Null,
720
+ ]),
721
+ ),
722
+ payment_method_details: Schema.optionalKey(
723
+ Schema.Union([
724
+ Schema.Union([
725
+ Schema.suspend(
726
+ (): Schema.Codec<Stripepayment_method_details> =>
727
+ Stripepayment_method_details,
728
+ ),
729
+ ]).annotate({
730
+ description:
731
+ "Details about the payment method at the time of the transaction.",
732
+ }),
733
+ Schema.Null,
734
+ ]),
735
+ ),
736
+ presentment_details: Schema.optionalKey(
737
+ Stripepayment_flows_payment_intent_presentment_details,
738
+ ),
739
+ radar_options: Schema.optionalKey(Striperadar_radar_options),
740
+ receipt_email: Schema.optionalKey(
741
+ Schema.Union([
742
+ Schema.String.annotate({
743
+ description:
744
+ "This is the email address that the receipt for this charge was sent to.",
745
+ }).check(
746
+ Schema.isMaxCodePoints(5000).annotate({
747
+ expected: "a string with at most 5000 code points",
748
+ }),
749
+ ),
750
+ Schema.Null,
751
+ ]),
752
+ ),
753
+ receipt_number: Schema.optionalKey(
754
+ Schema.Union([
755
+ Schema.String.annotate({
756
+ description:
757
+ "This is the transaction number that appears on email receipts sent for this charge. This attribute will be `null` until a receipt has been sent.",
758
+ }).check(
759
+ Schema.isMaxCodePoints(5000).annotate({
760
+ expected: "a string with at most 5000 code points",
761
+ }),
762
+ ),
763
+ Schema.Null,
764
+ ]),
765
+ ),
766
+ receipt_url: Schema.optionalKey(
767
+ Schema.Union([
768
+ Schema.String.annotate({
769
+ description:
770
+ "This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.",
771
+ }).check(
772
+ Schema.isMaxCodePoints(5000).annotate({
773
+ expected: "a string with at most 5000 code points",
774
+ }),
775
+ ),
776
+ Schema.Null,
777
+ ]),
778
+ ),
779
+ refunded: Schema.Boolean.annotate({
780
+ description:
781
+ "Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.",
782
+ }),
783
+ refunds: Schema.optionalKey(
784
+ Schema.Union([
785
+ Schema.StructWithRest(
786
+ Schema.Struct({
787
+ data: Schema.Array(
788
+ Schema.suspend(
789
+ (): Schema.Codec<Striperefund> => Striperefund,
790
+ ),
791
+ ).annotate({ description: "Details about each object." }),
792
+ has_more: Schema.Boolean.annotate({
793
+ description:
794
+ "True if this list has another page of items after this one that can be fetched.",
795
+ }),
796
+ object: Schema.Literal("list").annotate({
797
+ description:
798
+ "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
799
+ }),
800
+ url: Schema.String.annotate({
801
+ description: "The URL where this list can be accessed.",
802
+ }).check(
803
+ Schema.isMaxCodePoints(5000).annotate({
804
+ expected: "a string with at most 5000 code points",
805
+ }),
806
+ ),
807
+ }),
808
+ [
809
+ Schema.Record(
810
+ Schema.String,
811
+ Schema.Json.annotate({ expected: "JSON value" }),
812
+ ),
813
+ ],
814
+ ).annotate({
815
+ title: "RefundList",
816
+ description:
817
+ "A list of refunds that have been applied to the charge.",
818
+ }),
819
+ Schema.Null,
820
+ ]),
821
+ ),
822
+ review: Schema.optionalKey(
823
+ Schema.Union([
824
+ Schema.Union([
825
+ Schema.String.check(
826
+ Schema.isMaxCodePoints(5000).annotate({
827
+ expected: "a string with at most 5000 code points",
828
+ }),
829
+ ),
830
+ Schema.suspend((): Schema.Codec<Stripereview> => Stripereview),
831
+ ]).annotate({
832
+ description:
833
+ "ID of the review associated with this charge if one exists.",
834
+ }),
835
+ Schema.Null,
836
+ ]),
837
+ ),
838
+ shipping: Schema.optionalKey(
839
+ Schema.Union([
840
+ Schema.Union([Stripeshipping]).annotate({
841
+ description: "Shipping information for the charge.",
842
+ }),
843
+ Schema.Null,
844
+ ]),
845
+ ),
846
+ source_transfer: Schema.optionalKey(
847
+ Schema.Union([
848
+ Schema.Union([
849
+ Schema.String.check(
850
+ Schema.isMaxCodePoints(5000).annotate({
851
+ expected: "a string with at most 5000 code points",
852
+ }),
853
+ ),
854
+ Schema.suspend(
855
+ (): Schema.Codec<Stripetransfer> => Stripetransfer,
856
+ ),
857
+ ]).annotate({
858
+ description:
859
+ "The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.",
860
+ }),
861
+ Schema.Null,
862
+ ]),
863
+ ),
864
+ statement_descriptor: Schema.optionalKey(
865
+ Schema.Union([
866
+ Schema.String.annotate({
867
+ description:
868
+ "For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).\n\nFor a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.",
869
+ }).check(
870
+ Schema.isMaxCodePoints(5000).annotate({
871
+ expected: "a string with at most 5000 code points",
872
+ }),
873
+ ),
874
+ Schema.Null,
875
+ ]),
876
+ ),
877
+ statement_descriptor_suffix: Schema.optionalKey(
878
+ Schema.Union([
879
+ Schema.String.annotate({
880
+ description:
881
+ "Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.",
882
+ }).check(
883
+ Schema.isMaxCodePoints(5000).annotate({
884
+ expected: "a string with at most 5000 code points",
885
+ }),
886
+ ),
887
+ Schema.Null,
888
+ ]),
889
+ ),
890
+ status: Schema.Literals(["failed", "pending", "succeeded"]).annotate({
891
+ description:
892
+ "The status of the payment is either `succeeded`, `pending`, or `failed`.",
893
+ }),
894
+ transfer: Schema.optionalKey(
895
+ Schema.Union([
896
+ Schema.String.check(
897
+ Schema.isMaxCodePoints(5000).annotate({
898
+ expected: "a string with at most 5000 code points",
899
+ }),
900
+ ),
901
+ Schema.suspend((): Schema.Codec<Stripetransfer> => Stripetransfer),
902
+ ]).annotate({
903
+ description:
904
+ "ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter).",
905
+ }),
906
+ ),
907
+ transfer_data: Schema.optionalKey(
908
+ Schema.Union([
909
+ Schema.Union([Stripecharge_transfer_data]).annotate({
910
+ description:
911
+ "An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.",
912
+ }),
913
+ Schema.Null,
914
+ ]),
915
+ ),
916
+ transfer_group: Schema.optionalKey(
917
+ Schema.Union([
918
+ Schema.String.annotate({
919
+ description:
920
+ "A string that identifies this transaction as part of a group. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.",
921
+ }).check(
922
+ Schema.isMaxCodePoints(5000).annotate({
923
+ expected: "a string with at most 5000 code points",
924
+ }),
925
+ ),
926
+ Schema.Null,
927
+ ]),
928
+ ),
929
+ }),
930
+ [
931
+ Schema.Record(
932
+ Schema.String,
933
+ Schema.Json.annotate({ expected: "JSON value" }),
934
+ ),
935
+ ],
936
+ ).annotate({
937
+ title: "Charge",
938
+ description:
939
+ "The `Charge` object represents a single attempt to move money into your Stripe account.\nPaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://docs.stripe.com/connect/account-debits) may also create Charges.\nThe create and capture methods are deprecated and will be deleted soon. If your integration uses either of them, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/payments/payment-intents).",
940
+ identifier: "Stripecharge",
941
+ }),
942
+ );
943
+ export const Striperefund = Schema.suspend(
944
+ (): Schema.Codec<Striperefund> =>
945
+ Schema.StructWithRest(
946
+ Schema.Struct({
947
+ amount: Schema.Number.annotate({
948
+ description: "Amount, in cents (or local equivalent).",
949
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
950
+ balance_transaction: Schema.optionalKey(
951
+ Schema.Union([
952
+ Schema.Union([
953
+ Schema.String.check(
954
+ Schema.isMaxCodePoints(5000).annotate({
955
+ expected: "a string with at most 5000 code points",
956
+ }),
957
+ ),
958
+ Schema.suspend(
959
+ (): Schema.Codec<Stripebalance_transaction> =>
960
+ Stripebalance_transaction,
961
+ ),
962
+ ]).annotate({
963
+ description:
964
+ "Balance transaction that describes the impact on your account balance.",
965
+ }),
966
+ Schema.Null,
967
+ ]),
968
+ ),
969
+ charge: Schema.optionalKey(
970
+ Schema.Union([
971
+ Schema.Union([
972
+ Schema.String.check(
973
+ Schema.isMaxCodePoints(5000).annotate({
974
+ expected: "a string with at most 5000 code points",
975
+ }),
976
+ ),
977
+ Schema.suspend((): Schema.Codec<Stripecharge> => Stripecharge),
978
+ ]).annotate({ description: "ID of the charge that's refunded." }),
979
+ Schema.Null,
980
+ ]),
981
+ ),
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
+ customer: Schema.optionalKey(
993
+ Schema.Union([
994
+ Schema.Union([
995
+ Schema.String.check(
996
+ Schema.isMaxCodePoints(5000).annotate({
997
+ expected: "a string with at most 5000 code points",
998
+ }),
999
+ ),
1000
+ Schema.suspend(
1001
+ (): Schema.Codec<Stripecustomer> => Stripecustomer,
1002
+ ),
1003
+ Stripedeleted_customer,
1004
+ ]).annotate({ description: "ID of the customer of this refund." }),
1005
+ Schema.Null,
1006
+ ]),
1007
+ ),
1008
+ customer_account: Schema.optionalKey(
1009
+ Schema.Union([
1010
+ Schema.String.annotate({
1011
+ description: "ID of the account of this refund.",
1012
+ }).check(
1013
+ Schema.isMaxCodePoints(5000).annotate({
1014
+ expected: "a string with at most 5000 code points",
1015
+ }),
1016
+ ),
1017
+ Schema.Null,
1018
+ ]),
1019
+ ),
1020
+ description: Schema.optionalKey(
1021
+ Schema.String.annotate({
1022
+ description:
1023
+ "An arbitrary string attached to the object. You can use this for displaying to users (available on non-card refunds only).",
1024
+ }).check(
1025
+ Schema.isMaxCodePoints(5000).annotate({
1026
+ expected: "a string with at most 5000 code points",
1027
+ }),
1028
+ ),
1029
+ ),
1030
+ destination_details: Schema.optionalKey(
1031
+ Striperefund_destination_details,
1032
+ ),
1033
+ failure_balance_transaction: Schema.optionalKey(
1034
+ Schema.Union([
1035
+ Schema.String.check(
1036
+ Schema.isMaxCodePoints(5000).annotate({
1037
+ expected: "a string with at most 5000 code points",
1038
+ }),
1039
+ ),
1040
+ Schema.suspend(
1041
+ (): Schema.Codec<Stripebalance_transaction> =>
1042
+ Stripebalance_transaction,
1043
+ ),
1044
+ ]).annotate({
1045
+ description:
1046
+ "After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.",
1047
+ }),
1048
+ ),
1049
+ failure_reason: Schema.optionalKey(
1050
+ Schema.String.annotate({
1051
+ description:
1052
+ "Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`.",
1053
+ }).check(
1054
+ Schema.isMaxCodePoints(5000).annotate({
1055
+ expected: "a string with at most 5000 code points",
1056
+ }),
1057
+ ),
1058
+ ),
1059
+ id: Schema.String.annotate({
1060
+ description: "Unique identifier for the object.",
1061
+ }).check(
1062
+ Schema.isMaxCodePoints(5000).annotate({
1063
+ expected: "a string with at most 5000 code points",
1064
+ }),
1065
+ ),
1066
+ instructions_email: Schema.optionalKey(
1067
+ Schema.String.annotate({
1068
+ description:
1069
+ "For payment methods without native refund support (for example, Konbini, PromptPay), provide an email address for the customer to receive refund instructions.",
1070
+ }).check(
1071
+ Schema.isMaxCodePoints(5000).annotate({
1072
+ expected: "a string with at most 5000 code points",
1073
+ }),
1074
+ ),
1075
+ ),
1076
+ metadata: Schema.optionalKey(
1077
+ Schema.Union([
1078
+ Schema.Record(
1079
+ Schema.String,
1080
+ Schema.String.check(
1081
+ Schema.isMaxCodePoints(500).annotate({
1082
+ expected: "a string with at most 500 code points",
1083
+ }),
1084
+ ),
1085
+ ).annotate({
1086
+ description:
1087
+ "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.",
1088
+ }),
1089
+ Schema.Null,
1090
+ ]),
1091
+ ),
1092
+ next_action: Schema.optionalKey(Striperefund_next_action),
1093
+ object: Schema.Literal("refund").annotate({
1094
+ description:
1095
+ "String representing the object's type. Objects of the same type share the same value.",
1096
+ }),
1097
+ payment_intent: Schema.optionalKey(
1098
+ Schema.Union([
1099
+ Schema.Union([
1100
+ Schema.String.check(
1101
+ Schema.isMaxCodePoints(5000).annotate({
1102
+ expected: "a string with at most 5000 code points",
1103
+ }),
1104
+ ),
1105
+ Schema.suspend(
1106
+ (): Schema.Codec<Stripepayment_intent> => Stripepayment_intent,
1107
+ ),
1108
+ ]).annotate({
1109
+ description: "ID of the PaymentIntent that's refunded.",
1110
+ }),
1111
+ Schema.Null,
1112
+ ]),
1113
+ ),
1114
+ payment_method: Schema.optionalKey(
1115
+ Schema.Union([
1116
+ Schema.Union([
1117
+ Schema.String.check(
1118
+ Schema.isMaxCodePoints(5000).annotate({
1119
+ expected: "a string with at most 5000 code points",
1120
+ }),
1121
+ ),
1122
+ Schema.suspend(
1123
+ (): Schema.Codec<Stripepayment_method> => Stripepayment_method,
1124
+ ),
1125
+ ]).annotate({
1126
+ description:
1127
+ "ID of the payment method associated with this refund.",
1128
+ }),
1129
+ Schema.Null,
1130
+ ]),
1131
+ ),
1132
+ pending_reason: Schema.optionalKey(
1133
+ Schema.Literals([
1134
+ "charge_pending",
1135
+ "insufficient_funds",
1136
+ "processing",
1137
+ ]).annotate({
1138
+ description:
1139
+ "Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`.",
1140
+ }),
1141
+ ),
1142
+ presentment_details: Schema.optionalKey(
1143
+ Stripepayment_flows_payment_intent_presentment_details,
1144
+ ),
1145
+ reason: Schema.optionalKey(
1146
+ Schema.Union([
1147
+ Schema.Literals([
1148
+ "duplicate",
1149
+ "expired_uncaptured_charge",
1150
+ "fraudulent",
1151
+ "requested_by_customer",
1152
+ ]).annotate({
1153
+ description:
1154
+ "Reason for the refund, which is either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`).",
1155
+ }),
1156
+ Schema.Null,
1157
+ ]),
1158
+ ),
1159
+ receipt_number: Schema.optionalKey(
1160
+ Schema.Union([
1161
+ Schema.String.annotate({
1162
+ description:
1163
+ "This is the transaction number that appears on email receipts sent for this refund.",
1164
+ }).check(
1165
+ Schema.isMaxCodePoints(5000).annotate({
1166
+ expected: "a string with at most 5000 code points",
1167
+ }),
1168
+ ),
1169
+ Schema.Null,
1170
+ ]),
1171
+ ),
1172
+ source_transfer_reversal: Schema.optionalKey(
1173
+ Schema.Union([
1174
+ Schema.Union([
1175
+ Schema.String.check(
1176
+ Schema.isMaxCodePoints(5000).annotate({
1177
+ expected: "a string with at most 5000 code points",
1178
+ }),
1179
+ ),
1180
+ Schema.suspend(
1181
+ (): Schema.Codec<Stripetransfer_reversal> =>
1182
+ Stripetransfer_reversal,
1183
+ ),
1184
+ ]).annotate({
1185
+ description:
1186
+ "The transfer reversal that's associated with the refund. Only present if the charge came from another Stripe account.",
1187
+ }),
1188
+ Schema.Null,
1189
+ ]),
1190
+ ),
1191
+ status: Schema.optionalKey(
1192
+ Schema.Union([
1193
+ Schema.String.annotate({
1194
+ description:
1195
+ "Status of the refund. This can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Learn more about [failed refunds](https://docs.stripe.com/refunds#failed-refunds).",
1196
+ }).check(
1197
+ Schema.isMaxCodePoints(5000).annotate({
1198
+ expected: "a string with at most 5000 code points",
1199
+ }),
1200
+ ),
1201
+ Schema.Null,
1202
+ ]),
1203
+ ),
1204
+ transfer_reversal: Schema.optionalKey(
1205
+ Schema.Union([
1206
+ Schema.Union([
1207
+ Schema.String.check(
1208
+ Schema.isMaxCodePoints(5000).annotate({
1209
+ expected: "a string with at most 5000 code points",
1210
+ }),
1211
+ ),
1212
+ Schema.suspend(
1213
+ (): Schema.Codec<Stripetransfer_reversal> =>
1214
+ Stripetransfer_reversal,
1215
+ ),
1216
+ ]).annotate({
1217
+ description:
1218
+ "This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter.",
1219
+ }),
1220
+ Schema.Null,
1221
+ ]),
1222
+ ),
1223
+ }),
1224
+ [
1225
+ Schema.Record(
1226
+ Schema.String,
1227
+ Schema.Json.annotate({ expected: "JSON value" }),
1228
+ ),
1229
+ ],
1230
+ ).annotate({
1231
+ title: "Refund",
1232
+ description:
1233
+ "Refund objects allow you to refund a previously created charge that isn't\nrefunded yet. Funds are refunded to the credit or debit card that's\ninitially charged.\n\nRelated guide: [Refunds](https://docs.stripe.com/refunds)",
1234
+ identifier: "Striperefund",
1235
+ }),
1236
+ );
1237
+ export const Stripedispute = Schema.suspend(
1238
+ (): Schema.Codec<Stripedispute> =>
1239
+ Schema.StructWithRest(
1240
+ Schema.Struct({
1241
+ amount: Schema.Number.annotate({
1242
+ description:
1243
+ "Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).",
1244
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1245
+ balance_transactions: Schema.Array(
1246
+ Schema.suspend(
1247
+ (): Schema.Codec<Stripebalance_transaction> =>
1248
+ Stripebalance_transaction,
1249
+ ),
1250
+ ).annotate({
1251
+ description:
1252
+ "List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.",
1253
+ }),
1254
+ charge: Schema.Union([
1255
+ Schema.String.check(
1256
+ Schema.isMaxCodePoints(5000).annotate({
1257
+ expected: "a string with at most 5000 code points",
1258
+ }),
1259
+ ),
1260
+ Schema.suspend((): Schema.Codec<Stripecharge> => Stripecharge),
1261
+ ]).annotate({ description: "ID of the charge that's disputed." }),
1262
+ created: Schema.Number.annotate({
1263
+ description:
1264
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1265
+ format: "unix-time",
1266
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1267
+ currency: Schema.String.annotate({
1268
+ description:
1269
+ "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).",
1270
+ format: "currency",
1271
+ }),
1272
+ enhanced_eligibility_types: Schema.Array(
1273
+ Schema.Literals([
1274
+ "mastercard_compliance",
1275
+ "visa_compelling_evidence_3",
1276
+ "visa_compliance",
1277
+ ]),
1278
+ ).annotate({
1279
+ description:
1280
+ "List of eligibility types that are included in `enhanced_evidence`.",
1281
+ }),
1282
+ evidence: Stripedispute_evidence,
1283
+ evidence_details: Stripedispute_evidence_details,
1284
+ id: Schema.String.annotate({
1285
+ description: "Unique identifier for the object.",
1286
+ }).check(
1287
+ Schema.isMaxCodePoints(5000).annotate({
1288
+ expected: "a string with at most 5000 code points",
1289
+ }),
1290
+ ),
1291
+ intended_submission_method: Schema.optionalKey(
1292
+ Schema.Union([
1293
+ Schema.Literals([
1294
+ "manual",
1295
+ "prefer_manual",
1296
+ "prefer_smart_disputes",
1297
+ "smart_disputes",
1298
+ ]).annotate({
1299
+ description: "Intended submission method for the dispute.",
1300
+ }),
1301
+ Schema.Null,
1302
+ ]),
1303
+ ),
1304
+ is_charge_refundable: Schema.Boolean.annotate({
1305
+ description:
1306
+ "If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.",
1307
+ }),
1308
+ livemode: Schema.Boolean.annotate({
1309
+ description:
1310
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1311
+ }),
1312
+ metadata: Schema.Record(
1313
+ Schema.String,
1314
+ Schema.String.check(
1315
+ Schema.isMaxCodePoints(500).annotate({
1316
+ expected: "a string with at most 500 code points",
1317
+ }),
1318
+ ),
1319
+ ).annotate({
1320
+ description:
1321
+ "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.",
1322
+ }),
1323
+ object: Schema.Literal("dispute").annotate({
1324
+ description:
1325
+ "String representing the object's type. Objects of the same type share the same value.",
1326
+ }),
1327
+ payment_intent: Schema.optionalKey(
1328
+ Schema.Union([
1329
+ Schema.Union([
1330
+ Schema.String.check(
1331
+ Schema.isMaxCodePoints(5000).annotate({
1332
+ expected: "a string with at most 5000 code points",
1333
+ }),
1334
+ ),
1335
+ Schema.suspend(
1336
+ (): Schema.Codec<Stripepayment_intent> => Stripepayment_intent,
1337
+ ),
1338
+ ]).annotate({
1339
+ description: "ID of the PaymentIntent that's disputed.",
1340
+ }),
1341
+ Schema.Null,
1342
+ ]),
1343
+ ),
1344
+ payment_method_details: Schema.optionalKey(
1345
+ Stripedispute_payment_method_details,
1346
+ ),
1347
+ reason: Schema.String.annotate({
1348
+ description:
1349
+ "Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).",
1350
+ }).check(
1351
+ Schema.isMaxCodePoints(5000).annotate({
1352
+ expected: "a string with at most 5000 code points",
1353
+ }),
1354
+ ),
1355
+ status: Schema.Literals([
1356
+ "appeal_needs_response",
1357
+ "appeal_under_review",
1358
+ "lost",
1359
+ "needs_response",
1360
+ "prevented",
1361
+ "under_review",
1362
+ "warning_closed",
1363
+ "warning_needs_response",
1364
+ "warning_under_review",
1365
+ "won",
1366
+ ]).annotate({
1367
+ description:
1368
+ "The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `appeal_needs_response`, `appeal_under_review`, `won`, `lost`, or `prevented`.",
1369
+ }),
1370
+ }),
1371
+ [
1372
+ Schema.Record(
1373
+ Schema.String,
1374
+ Schema.Json.annotate({ expected: "JSON value" }),
1375
+ ),
1376
+ ],
1377
+ ).annotate({
1378
+ title: "Dispute",
1379
+ description:
1380
+ "A dispute occurs when a customer questions your charge with their card issuer.\nWhen this happens, you have the opportunity to respond to the dispute with\nevidence that shows that the charge is legitimate.\n\nRelated guide: [Disputes and fraud](https://docs.stripe.com/disputes)",
1381
+ identifier: "Stripedispute",
1382
+ }),
1383
+ );
1384
+ export const Striperefund_destination_details_afterpay_clearpay =
1385
+ Schema.StructWithRest(
1386
+ Schema.Struct({
1387
+ reference: Schema.optionalKey(
1388
+ Schema.Union([
1389
+ Schema.String.annotate({
1390
+ description: "The reference assigned to the refund.",
1391
+ }).check(
1392
+ Schema.isMaxCodePoints(5000).annotate({
1393
+ expected: "a string with at most 5000 code points",
1394
+ }),
1395
+ ),
1396
+ Schema.Null,
1397
+ ]),
1398
+ ),
1399
+ reference_status: Schema.optionalKey(
1400
+ Schema.Union([
1401
+ Schema.String.annotate({
1402
+ description:
1403
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1404
+ }).check(
1405
+ Schema.isMaxCodePoints(5000).annotate({
1406
+ expected: "a string with at most 5000 code points",
1407
+ }),
1408
+ ),
1409
+ Schema.Null,
1410
+ ]),
1411
+ ),
1412
+ }),
1413
+ [
1414
+ Schema.Record(
1415
+ Schema.String,
1416
+ Schema.Json.annotate({ expected: "JSON value" }),
1417
+ ),
1418
+ ],
1419
+ ).annotate({
1420
+ title: "refund_destination_details_afterpay_clearpay",
1421
+ description: "",
1422
+ identifier: "Striperefund_destination_details_afterpay_clearpay",
1423
+ });
1424
+ export const Striperefund_destination_details_blik = Schema.StructWithRest(
1425
+ Schema.Struct({
1426
+ network_decline_code: Schema.optionalKey(
1427
+ Schema.Union([
1428
+ Schema.String.annotate({
1429
+ description:
1430
+ "For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.",
1431
+ }).check(
1432
+ Schema.isMaxCodePoints(5000).annotate({
1433
+ expected: "a string with at most 5000 code points",
1434
+ }),
1435
+ ),
1436
+ Schema.Null,
1437
+ ]),
1438
+ ),
1439
+ reference: Schema.optionalKey(
1440
+ Schema.Union([
1441
+ Schema.String.annotate({
1442
+ description: "The reference assigned to the refund.",
1443
+ }).check(
1444
+ Schema.isMaxCodePoints(5000).annotate({
1445
+ expected: "a string with at most 5000 code points",
1446
+ }),
1447
+ ),
1448
+ Schema.Null,
1449
+ ]),
1450
+ ),
1451
+ reference_status: Schema.optionalKey(
1452
+ Schema.Union([
1453
+ Schema.String.annotate({
1454
+ description:
1455
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1456
+ }).check(
1457
+ Schema.isMaxCodePoints(5000).annotate({
1458
+ expected: "a string with at most 5000 code points",
1459
+ }),
1460
+ ),
1461
+ Schema.Null,
1462
+ ]),
1463
+ ),
1464
+ }),
1465
+ [
1466
+ Schema.Record(
1467
+ Schema.String,
1468
+ Schema.Json.annotate({ expected: "JSON value" }),
1469
+ ),
1470
+ ],
1471
+ ).annotate({
1472
+ title: "refund_destination_details_blik",
1473
+ description: "",
1474
+ identifier: "Striperefund_destination_details_blik",
1475
+ });
1476
+ export const Striperefund_destination_details_br_bank_transfer =
1477
+ Schema.StructWithRest(
1478
+ Schema.Struct({
1479
+ reference: Schema.optionalKey(
1480
+ Schema.Union([
1481
+ Schema.String.annotate({
1482
+ description: "The reference assigned to the refund.",
1483
+ }).check(
1484
+ Schema.isMaxCodePoints(5000).annotate({
1485
+ expected: "a string with at most 5000 code points",
1486
+ }),
1487
+ ),
1488
+ Schema.Null,
1489
+ ]),
1490
+ ),
1491
+ reference_status: Schema.optionalKey(
1492
+ Schema.Union([
1493
+ Schema.String.annotate({
1494
+ description:
1495
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1496
+ }).check(
1497
+ Schema.isMaxCodePoints(5000).annotate({
1498
+ expected: "a string with at most 5000 code points",
1499
+ }),
1500
+ ),
1501
+ Schema.Null,
1502
+ ]),
1503
+ ),
1504
+ }),
1505
+ [
1506
+ Schema.Record(
1507
+ Schema.String,
1508
+ Schema.Json.annotate({ expected: "JSON value" }),
1509
+ ),
1510
+ ],
1511
+ ).annotate({
1512
+ title: "refund_destination_details_br_bank_transfer",
1513
+ description: "",
1514
+ identifier: "Striperefund_destination_details_br_bank_transfer",
1515
+ });
1516
+ export const Striperefund_destination_details_card = Schema.StructWithRest(
1517
+ Schema.Struct({
1518
+ reference: Schema.optionalKey(
1519
+ Schema.String.annotate({
1520
+ description: "Value of the reference number assigned to the refund.",
1521
+ }).check(
1522
+ Schema.isMaxCodePoints(5000).annotate({
1523
+ expected: "a string with at most 5000 code points",
1524
+ }),
1525
+ ),
1526
+ ),
1527
+ reference_status: Schema.optionalKey(
1528
+ Schema.String.annotate({
1529
+ description:
1530
+ "Status of the reference number on the refund. This can be `pending`, `available` or `unavailable`.",
1531
+ }).check(
1532
+ Schema.isMaxCodePoints(5000).annotate({
1533
+ expected: "a string with at most 5000 code points",
1534
+ }),
1535
+ ),
1536
+ ),
1537
+ reference_type: Schema.optionalKey(
1538
+ Schema.String.annotate({
1539
+ description: "Type of the reference number assigned to the refund.",
1540
+ }).check(
1541
+ Schema.isMaxCodePoints(5000).annotate({
1542
+ expected: "a string with at most 5000 code points",
1543
+ }),
1544
+ ),
1545
+ ),
1546
+ type: Schema.Literals(["pending", "refund", "reversal"]).annotate({
1547
+ description:
1548
+ "The type of refund. This can be `refund`, `reversal`, or `pending`.",
1549
+ }),
1550
+ }),
1551
+ [
1552
+ Schema.Record(
1553
+ Schema.String,
1554
+ Schema.Json.annotate({ expected: "JSON value" }),
1555
+ ),
1556
+ ],
1557
+ ).annotate({
1558
+ title: "refund_destination_details_card",
1559
+ description: "",
1560
+ identifier: "Striperefund_destination_details_card",
1561
+ });
1562
+ export const Striperefund_destination_details_crypto = Schema.StructWithRest(
1563
+ Schema.Struct({
1564
+ reference: Schema.optionalKey(
1565
+ Schema.Union([
1566
+ Schema.String.annotate({
1567
+ description: "The transaction hash of the refund.",
1568
+ }).check(
1569
+ Schema.isMaxCodePoints(5000).annotate({
1570
+ expected: "a string with at most 5000 code points",
1571
+ }),
1572
+ ),
1573
+ Schema.Null,
1574
+ ]),
1575
+ ),
1576
+ }),
1577
+ [
1578
+ Schema.Record(
1579
+ Schema.String,
1580
+ Schema.Json.annotate({ expected: "JSON value" }),
1581
+ ),
1582
+ ],
1583
+ ).annotate({
1584
+ title: "refund_destination_details_crypto",
1585
+ description: "",
1586
+ identifier: "Striperefund_destination_details_crypto",
1587
+ });
1588
+ export const Striperefund_destination_details_eu_bank_transfer =
1589
+ Schema.StructWithRest(
1590
+ Schema.Struct({
1591
+ reference: Schema.optionalKey(
1592
+ Schema.Union([
1593
+ Schema.String.annotate({
1594
+ description: "The reference assigned to the refund.",
1595
+ }).check(
1596
+ Schema.isMaxCodePoints(5000).annotate({
1597
+ expected: "a string with at most 5000 code points",
1598
+ }),
1599
+ ),
1600
+ Schema.Null,
1601
+ ]),
1602
+ ),
1603
+ reference_status: Schema.optionalKey(
1604
+ Schema.Union([
1605
+ Schema.String.annotate({
1606
+ description:
1607
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1608
+ }).check(
1609
+ Schema.isMaxCodePoints(5000).annotate({
1610
+ expected: "a string with at most 5000 code points",
1611
+ }),
1612
+ ),
1613
+ Schema.Null,
1614
+ ]),
1615
+ ),
1616
+ }),
1617
+ [
1618
+ Schema.Record(
1619
+ Schema.String,
1620
+ Schema.Json.annotate({ expected: "JSON value" }),
1621
+ ),
1622
+ ],
1623
+ ).annotate({
1624
+ title: "refund_destination_details_eu_bank_transfer",
1625
+ description: "",
1626
+ identifier: "Striperefund_destination_details_eu_bank_transfer",
1627
+ });
1628
+ export const Striperefund_destination_details_gb_bank_transfer =
1629
+ Schema.StructWithRest(
1630
+ Schema.Struct({
1631
+ reference: Schema.optionalKey(
1632
+ Schema.Union([
1633
+ Schema.String.annotate({
1634
+ description: "The reference assigned to the refund.",
1635
+ }).check(
1636
+ Schema.isMaxCodePoints(5000).annotate({
1637
+ expected: "a string with at most 5000 code points",
1638
+ }),
1639
+ ),
1640
+ Schema.Null,
1641
+ ]),
1642
+ ),
1643
+ reference_status: Schema.optionalKey(
1644
+ Schema.Union([
1645
+ Schema.String.annotate({
1646
+ description:
1647
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1648
+ }).check(
1649
+ Schema.isMaxCodePoints(5000).annotate({
1650
+ expected: "a string with at most 5000 code points",
1651
+ }),
1652
+ ),
1653
+ Schema.Null,
1654
+ ]),
1655
+ ),
1656
+ }),
1657
+ [
1658
+ Schema.Record(
1659
+ Schema.String,
1660
+ Schema.Json.annotate({ expected: "JSON value" }),
1661
+ ),
1662
+ ],
1663
+ ).annotate({
1664
+ title: "refund_destination_details_gb_bank_transfer",
1665
+ description: "",
1666
+ identifier: "Striperefund_destination_details_gb_bank_transfer",
1667
+ });
1668
+ export const Striperefund_destination_details_jp_bank_transfer =
1669
+ Schema.StructWithRest(
1670
+ Schema.Struct({
1671
+ reference: Schema.optionalKey(
1672
+ Schema.Union([
1673
+ Schema.String.annotate({
1674
+ description: "The reference assigned to the refund.",
1675
+ }).check(
1676
+ Schema.isMaxCodePoints(5000).annotate({
1677
+ expected: "a string with at most 5000 code points",
1678
+ }),
1679
+ ),
1680
+ Schema.Null,
1681
+ ]),
1682
+ ),
1683
+ reference_status: Schema.optionalKey(
1684
+ Schema.Union([
1685
+ Schema.String.annotate({
1686
+ description:
1687
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1688
+ }).check(
1689
+ Schema.isMaxCodePoints(5000).annotate({
1690
+ expected: "a string with at most 5000 code points",
1691
+ }),
1692
+ ),
1693
+ Schema.Null,
1694
+ ]),
1695
+ ),
1696
+ }),
1697
+ [
1698
+ Schema.Record(
1699
+ Schema.String,
1700
+ Schema.Json.annotate({ expected: "JSON value" }),
1701
+ ),
1702
+ ],
1703
+ ).annotate({
1704
+ title: "refund_destination_details_jp_bank_transfer",
1705
+ description: "",
1706
+ identifier: "Striperefund_destination_details_jp_bank_transfer",
1707
+ });
1708
+ export const Striperefund_destination_details_klarna = Schema.StructWithRest(
1709
+ Schema.Struct({
1710
+ reference: Schema.optionalKey(
1711
+ Schema.Union([
1712
+ Schema.String.annotate({
1713
+ description: "The reference assigned to the refund.",
1714
+ }).check(
1715
+ Schema.isMaxCodePoints(5000).annotate({
1716
+ expected: "a string with at most 5000 code points",
1717
+ }),
1718
+ ),
1719
+ Schema.Null,
1720
+ ]),
1721
+ ),
1722
+ reference_status: Schema.optionalKey(
1723
+ Schema.Union([
1724
+ Schema.String.annotate({
1725
+ description:
1726
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1727
+ }).check(
1728
+ Schema.isMaxCodePoints(5000).annotate({
1729
+ expected: "a string with at most 5000 code points",
1730
+ }),
1731
+ ),
1732
+ Schema.Null,
1733
+ ]),
1734
+ ),
1735
+ }),
1736
+ [
1737
+ Schema.Record(
1738
+ Schema.String,
1739
+ Schema.Json.annotate({ expected: "JSON value" }),
1740
+ ),
1741
+ ],
1742
+ ).annotate({
1743
+ title: "refund_destination_details_klarna",
1744
+ description: "",
1745
+ identifier: "Striperefund_destination_details_klarna",
1746
+ });
1747
+ export const Striperefund_destination_details_mb_way = Schema.StructWithRest(
1748
+ Schema.Struct({
1749
+ reference: Schema.optionalKey(
1750
+ Schema.Union([
1751
+ Schema.String.annotate({
1752
+ description: "The reference assigned to the refund.",
1753
+ }).check(
1754
+ Schema.isMaxCodePoints(5000).annotate({
1755
+ expected: "a string with at most 5000 code points",
1756
+ }),
1757
+ ),
1758
+ Schema.Null,
1759
+ ]),
1760
+ ),
1761
+ reference_status: Schema.optionalKey(
1762
+ Schema.Union([
1763
+ Schema.String.annotate({
1764
+ description:
1765
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1766
+ }).check(
1767
+ Schema.isMaxCodePoints(5000).annotate({
1768
+ expected: "a string with at most 5000 code points",
1769
+ }),
1770
+ ),
1771
+ Schema.Null,
1772
+ ]),
1773
+ ),
1774
+ }),
1775
+ [
1776
+ Schema.Record(
1777
+ Schema.String,
1778
+ Schema.Json.annotate({ expected: "JSON value" }),
1779
+ ),
1780
+ ],
1781
+ ).annotate({
1782
+ title: "refund_destination_details_mb_way",
1783
+ description: "",
1784
+ identifier: "Striperefund_destination_details_mb_way",
1785
+ });
1786
+ export const Striperefund_destination_details_multibanco =
1787
+ Schema.StructWithRest(
1788
+ Schema.Struct({
1789
+ reference: Schema.optionalKey(
1790
+ Schema.Union([
1791
+ Schema.String.annotate({
1792
+ description: "The reference assigned to the refund.",
1793
+ }).check(
1794
+ Schema.isMaxCodePoints(5000).annotate({
1795
+ expected: "a string with at most 5000 code points",
1796
+ }),
1797
+ ),
1798
+ Schema.Null,
1799
+ ]),
1800
+ ),
1801
+ reference_status: Schema.optionalKey(
1802
+ Schema.Union([
1803
+ Schema.String.annotate({
1804
+ description:
1805
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1806
+ }).check(
1807
+ Schema.isMaxCodePoints(5000).annotate({
1808
+ expected: "a string with at most 5000 code points",
1809
+ }),
1810
+ ),
1811
+ Schema.Null,
1812
+ ]),
1813
+ ),
1814
+ }),
1815
+ [
1816
+ Schema.Record(
1817
+ Schema.String,
1818
+ Schema.Json.annotate({ expected: "JSON value" }),
1819
+ ),
1820
+ ],
1821
+ ).annotate({
1822
+ title: "refund_destination_details_multibanco",
1823
+ description: "",
1824
+ identifier: "Striperefund_destination_details_multibanco",
1825
+ });
1826
+ export const Striperefund_destination_details_mx_bank_transfer =
1827
+ Schema.StructWithRest(
1828
+ Schema.Struct({
1829
+ reference: Schema.optionalKey(
1830
+ Schema.Union([
1831
+ Schema.String.annotate({
1832
+ description: "The reference assigned to the refund.",
1833
+ }).check(
1834
+ Schema.isMaxCodePoints(5000).annotate({
1835
+ expected: "a string with at most 5000 code points",
1836
+ }),
1837
+ ),
1838
+ Schema.Null,
1839
+ ]),
1840
+ ),
1841
+ reference_status: Schema.optionalKey(
1842
+ Schema.Union([
1843
+ Schema.String.annotate({
1844
+ description:
1845
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1846
+ }).check(
1847
+ Schema.isMaxCodePoints(5000).annotate({
1848
+ expected: "a string with at most 5000 code points",
1849
+ }),
1850
+ ),
1851
+ Schema.Null,
1852
+ ]),
1853
+ ),
1854
+ }),
1855
+ [
1856
+ Schema.Record(
1857
+ Schema.String,
1858
+ Schema.Json.annotate({ expected: "JSON value" }),
1859
+ ),
1860
+ ],
1861
+ ).annotate({
1862
+ title: "refund_destination_details_mx_bank_transfer",
1863
+ description: "",
1864
+ identifier: "Striperefund_destination_details_mx_bank_transfer",
1865
+ });
1866
+ export const Striperefund_destination_details_p24 = Schema.StructWithRest(
1867
+ Schema.Struct({
1868
+ reference: Schema.optionalKey(
1869
+ Schema.Union([
1870
+ Schema.String.annotate({
1871
+ description: "The reference assigned to the refund.",
1872
+ }).check(
1873
+ Schema.isMaxCodePoints(5000).annotate({
1874
+ expected: "a string with at most 5000 code points",
1875
+ }),
1876
+ ),
1877
+ Schema.Null,
1878
+ ]),
1879
+ ),
1880
+ reference_status: Schema.optionalKey(
1881
+ Schema.Union([
1882
+ Schema.String.annotate({
1883
+ description:
1884
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1885
+ }).check(
1886
+ Schema.isMaxCodePoints(5000).annotate({
1887
+ expected: "a string with at most 5000 code points",
1888
+ }),
1889
+ ),
1890
+ Schema.Null,
1891
+ ]),
1892
+ ),
1893
+ }),
1894
+ [
1895
+ Schema.Record(
1896
+ Schema.String,
1897
+ Schema.Json.annotate({ expected: "JSON value" }),
1898
+ ),
1899
+ ],
1900
+ ).annotate({
1901
+ title: "refund_destination_details_p24",
1902
+ description: "",
1903
+ identifier: "Striperefund_destination_details_p24",
1904
+ });
1905
+ export const Striperefund_destination_details_paypal = Schema.StructWithRest(
1906
+ Schema.Struct({
1907
+ network_decline_code: Schema.optionalKey(
1908
+ Schema.Union([
1909
+ Schema.String.annotate({
1910
+ description:
1911
+ "For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.",
1912
+ }).check(
1913
+ Schema.isMaxCodePoints(5000).annotate({
1914
+ expected: "a string with at most 5000 code points",
1915
+ }),
1916
+ ),
1917
+ Schema.Null,
1918
+ ]),
1919
+ ),
1920
+ reference: Schema.optionalKey(
1921
+ Schema.Union([
1922
+ Schema.String.annotate({
1923
+ description: "The reference assigned to the refund.",
1924
+ }).check(
1925
+ Schema.isMaxCodePoints(5000).annotate({
1926
+ expected: "a string with at most 5000 code points",
1927
+ }),
1928
+ ),
1929
+ Schema.Null,
1930
+ ]),
1931
+ ),
1932
+ reference_status: Schema.optionalKey(
1933
+ Schema.Union([
1934
+ Schema.String.annotate({
1935
+ description:
1936
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1937
+ }).check(
1938
+ Schema.isMaxCodePoints(5000).annotate({
1939
+ expected: "a string with at most 5000 code points",
1940
+ }),
1941
+ ),
1942
+ Schema.Null,
1943
+ ]),
1944
+ ),
1945
+ }),
1946
+ [
1947
+ Schema.Record(
1948
+ Schema.String,
1949
+ Schema.Json.annotate({ expected: "JSON value" }),
1950
+ ),
1951
+ ],
1952
+ ).annotate({
1953
+ title: "refund_destination_details_paypal",
1954
+ description: "",
1955
+ identifier: "Striperefund_destination_details_paypal",
1956
+ });
1957
+ export const Striperefund_destination_details_swish = Schema.StructWithRest(
1958
+ Schema.Struct({
1959
+ network_decline_code: Schema.optionalKey(
1960
+ Schema.Union([
1961
+ Schema.String.annotate({
1962
+ description:
1963
+ "For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.",
1964
+ }).check(
1965
+ Schema.isMaxCodePoints(5000).annotate({
1966
+ expected: "a string with at most 5000 code points",
1967
+ }),
1968
+ ),
1969
+ Schema.Null,
1970
+ ]),
1971
+ ),
1972
+ reference: Schema.optionalKey(
1973
+ Schema.Union([
1974
+ Schema.String.annotate({
1975
+ description: "The reference assigned to the refund.",
1976
+ }).check(
1977
+ Schema.isMaxCodePoints(5000).annotate({
1978
+ expected: "a string with at most 5000 code points",
1979
+ }),
1980
+ ),
1981
+ Schema.Null,
1982
+ ]),
1983
+ ),
1984
+ reference_status: Schema.optionalKey(
1985
+ Schema.Union([
1986
+ Schema.String.annotate({
1987
+ description:
1988
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
1989
+ }).check(
1990
+ Schema.isMaxCodePoints(5000).annotate({
1991
+ expected: "a string with at most 5000 code points",
1992
+ }),
1993
+ ),
1994
+ Schema.Null,
1995
+ ]),
1996
+ ),
1997
+ }),
1998
+ [
1999
+ Schema.Record(
2000
+ Schema.String,
2001
+ Schema.Json.annotate({ expected: "JSON value" }),
2002
+ ),
2003
+ ],
2004
+ ).annotate({
2005
+ title: "refund_destination_details_swish",
2006
+ description: "",
2007
+ identifier: "Striperefund_destination_details_swish",
2008
+ });
2009
+ export const Striperefund_destination_details_th_bank_transfer =
2010
+ Schema.StructWithRest(
2011
+ Schema.Struct({
2012
+ reference: Schema.optionalKey(
2013
+ Schema.Union([
2014
+ Schema.String.annotate({
2015
+ description: "The reference assigned to the refund.",
2016
+ }).check(
2017
+ Schema.isMaxCodePoints(5000).annotate({
2018
+ expected: "a string with at most 5000 code points",
2019
+ }),
2020
+ ),
2021
+ Schema.Null,
2022
+ ]),
2023
+ ),
2024
+ reference_status: Schema.optionalKey(
2025
+ Schema.Union([
2026
+ Schema.String.annotate({
2027
+ description:
2028
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
2029
+ }).check(
2030
+ Schema.isMaxCodePoints(5000).annotate({
2031
+ expected: "a string with at most 5000 code points",
2032
+ }),
2033
+ ),
2034
+ Schema.Null,
2035
+ ]),
2036
+ ),
2037
+ }),
2038
+ [
2039
+ Schema.Record(
2040
+ Schema.String,
2041
+ Schema.Json.annotate({ expected: "JSON value" }),
2042
+ ),
2043
+ ],
2044
+ ).annotate({
2045
+ title: "refund_destination_details_th_bank_transfer",
2046
+ description: "",
2047
+ identifier: "Striperefund_destination_details_th_bank_transfer",
2048
+ });
2049
+ export const Striperefund_destination_details_us_bank_transfer =
2050
+ Schema.StructWithRest(
2051
+ Schema.Struct({
2052
+ reference: Schema.optionalKey(
2053
+ Schema.Union([
2054
+ Schema.String.annotate({
2055
+ description: "The reference assigned to the refund.",
2056
+ }).check(
2057
+ Schema.isMaxCodePoints(5000).annotate({
2058
+ expected: "a string with at most 5000 code points",
2059
+ }),
2060
+ ),
2061
+ Schema.Null,
2062
+ ]),
2063
+ ),
2064
+ reference_status: Schema.optionalKey(
2065
+ Schema.Union([
2066
+ Schema.String.annotate({
2067
+ description:
2068
+ "Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.",
2069
+ }).check(
2070
+ Schema.isMaxCodePoints(5000).annotate({
2071
+ expected: "a string with at most 5000 code points",
2072
+ }),
2073
+ ),
2074
+ Schema.Null,
2075
+ ]),
2076
+ ),
2077
+ }),
2078
+ [
2079
+ Schema.Record(
2080
+ Schema.String,
2081
+ Schema.Json.annotate({ expected: "JSON value" }),
2082
+ ),
2083
+ ],
2084
+ ).annotate({
2085
+ title: "refund_destination_details_us_bank_transfer",
2086
+ description: "",
2087
+ identifier: "Striperefund_destination_details_us_bank_transfer",
2088
+ });
2089
+ export const Stripedispute_appeal_card = Schema.StructWithRest(
2090
+ Schema.Struct({
2091
+ reason_for_filing: Schema.optionalKey(
2092
+ Schema.String.annotate({
2093
+ description: "The reason for filing the appeal.",
2094
+ }).check(
2095
+ Schema.isMaxCodePoints(20000).annotate({
2096
+ expected: "a string with at most 20000 code points",
2097
+ }),
2098
+ ),
2099
+ ),
2100
+ supporting_files: Schema.optionalKey(
2101
+ Schema.Array(
2102
+ Schema.String.check(
2103
+ Schema.isMaxCodePoints(5000).annotate({
2104
+ expected: "a string with at most 5000 code points",
2105
+ }),
2106
+ ),
2107
+ ).annotate({
2108
+ description:
2109
+ "One or more document IDs returned by a [file upload](https://docs.stripe.com/api#create_file) with a `purpose` value of `dispute_evidence` to support the appeal.",
2110
+ }),
2111
+ ),
2112
+ }),
2113
+ [
2114
+ Schema.Record(
2115
+ Schema.String,
2116
+ Schema.Json.annotate({ expected: "JSON value" }),
2117
+ ),
2118
+ ],
2119
+ ).annotate({
2120
+ title: "DisputeAppealCard",
2121
+ description: "",
2122
+ identifier: "Stripedispute_appeal_card",
2123
+ });
2124
+ export const Stripedispute_enhanced_evidence_mastercard_compliance =
2125
+ Schema.StructWithRest(
2126
+ Schema.Struct({
2127
+ fee_acknowledged: Schema.Boolean.annotate({
2128
+ description:
2129
+ "A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute.",
2130
+ }),
2131
+ }),
2132
+ [
2133
+ Schema.Record(
2134
+ Schema.String,
2135
+ Schema.Json.annotate({ expected: "JSON value" }),
2136
+ ),
2137
+ ],
2138
+ ).annotate({
2139
+ title: "DisputeEnhancedEvidenceMastercardCompliance",
2140
+ description: "",
2141
+ identifier: "Stripedispute_enhanced_evidence_mastercard_compliance",
2142
+ });
2143
+ export const Stripedispute_transaction_shipping_address = Schema.StructWithRest(
2144
+ Schema.Struct({
2145
+ city: Schema.optionalKey(
2146
+ Schema.Union([
2147
+ Schema.String.annotate({
2148
+ description: "City, district, suburb, town, or village.",
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
+ country: Schema.optionalKey(
2158
+ Schema.Union([
2159
+ Schema.String.annotate({
2160
+ description:
2161
+ "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).",
2162
+ }).check(
2163
+ Schema.isMaxCodePoints(5000).annotate({
2164
+ expected: "a string with at most 5000 code points",
2165
+ }),
2166
+ ),
2167
+ Schema.Null,
2168
+ ]),
2169
+ ),
2170
+ line1: Schema.optionalKey(
2171
+ Schema.Union([
2172
+ Schema.String.annotate({
2173
+ description:
2174
+ "Address line 1, such as the street, PO Box, or company name.",
2175
+ }).check(
2176
+ Schema.isMaxCodePoints(5000).annotate({
2177
+ expected: "a string with at most 5000 code points",
2178
+ }),
2179
+ ),
2180
+ Schema.Null,
2181
+ ]),
2182
+ ),
2183
+ line2: Schema.optionalKey(
2184
+ Schema.Union([
2185
+ Schema.String.annotate({
2186
+ description:
2187
+ "Address line 2, such as the apartment, suite, unit, or building.",
2188
+ }).check(
2189
+ Schema.isMaxCodePoints(5000).annotate({
2190
+ expected: "a string with at most 5000 code points",
2191
+ }),
2192
+ ),
2193
+ Schema.Null,
2194
+ ]),
2195
+ ),
2196
+ postal_code: Schema.optionalKey(
2197
+ Schema.Union([
2198
+ Schema.String.annotate({ description: "ZIP or postal code." }).check(
2199
+ Schema.isMaxCodePoints(5000).annotate({
2200
+ expected: "a string with at most 5000 code points",
2201
+ }),
2202
+ ),
2203
+ Schema.Null,
2204
+ ]),
2205
+ ),
2206
+ state: Schema.optionalKey(
2207
+ Schema.Union([
2208
+ Schema.String.annotate({
2209
+ description:
2210
+ "State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).",
2211
+ }).check(
2212
+ Schema.isMaxCodePoints(5000).annotate({
2213
+ expected: "a string with at most 5000 code points",
2214
+ }),
2215
+ ),
2216
+ Schema.Null,
2217
+ ]),
2218
+ ),
2219
+ }),
2220
+ [
2221
+ Schema.Record(
2222
+ Schema.String,
2223
+ Schema.Json.annotate({ expected: "JSON value" }),
2224
+ ),
2225
+ ],
2226
+ ).annotate({
2227
+ title: "DisputeTransactionShippingAddress",
2228
+ description: "",
2229
+ identifier: "Stripedispute_transaction_shipping_address",
2230
+ });
2231
+ export const Stripedispute_enhanced_evidence_visa_compliance =
2232
+ Schema.StructWithRest(
2233
+ Schema.Struct({
2234
+ fee_acknowledged: Schema.Boolean.annotate({
2235
+ description:
2236
+ "A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.",
2237
+ }),
2238
+ }),
2239
+ [
2240
+ Schema.Record(
2241
+ Schema.String,
2242
+ Schema.Json.annotate({ expected: "JSON value" }),
2243
+ ),
2244
+ ],
2245
+ ).annotate({
2246
+ title: "DisputeEnhancedEvidenceVisaCompliance",
2247
+ description: "",
2248
+ identifier: "Stripedispute_enhanced_evidence_visa_compliance",
2249
+ });
2250
+ export const Stripedispute_enhanced_eligibility_mastercard_compliance =
2251
+ Schema.StructWithRest(
2252
+ Schema.Struct({
2253
+ status: Schema.Literals([
2254
+ "fee_acknowledged",
2255
+ "requires_fee_acknowledgement",
2256
+ ]).annotate({ description: "Mastercard compliance eligibility status." }),
2257
+ }),
2258
+ [
2259
+ Schema.Record(
2260
+ Schema.String,
2261
+ Schema.Json.annotate({ expected: "JSON value" }),
2262
+ ),
2263
+ ],
2264
+ ).annotate({
2265
+ title: "DisputeEnhancedEligibilityMastercardCompliance",
2266
+ description: "",
2267
+ identifier: "Stripedispute_enhanced_eligibility_mastercard_compliance",
2268
+ });
2269
+ export const Stripedispute_enhanced_eligibility_visa_compelling_evidence3 =
2270
+ Schema.StructWithRest(
2271
+ Schema.Struct({
2272
+ required_actions: Schema.Array(
2273
+ Schema.Literals([
2274
+ "missing_customer_identifiers",
2275
+ "missing_disputed_transaction_description",
2276
+ "missing_merchandise_or_services",
2277
+ "missing_prior_undisputed_transaction_description",
2278
+ "missing_prior_undisputed_transactions",
2279
+ ]),
2280
+ ).annotate({
2281
+ description:
2282
+ "List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.",
2283
+ }),
2284
+ status: Schema.Literals([
2285
+ "not_qualified",
2286
+ "qualified",
2287
+ "requires_action",
2288
+ ]).annotate({
2289
+ description: "Visa Compelling Evidence 3.0 eligibility status.",
2290
+ }),
2291
+ }),
2292
+ [
2293
+ Schema.Record(
2294
+ Schema.String,
2295
+ Schema.Json.annotate({ expected: "JSON value" }),
2296
+ ),
2297
+ ],
2298
+ ).annotate({
2299
+ title: "DisputeEnhancedEligibilityVisaCompellingEvidence3",
2300
+ description: "",
2301
+ identifier: "Stripedispute_enhanced_eligibility_visa_compelling_evidence3",
2302
+ });
2303
+ export const Stripedispute_enhanced_eligibility_visa_compliance =
2304
+ Schema.StructWithRest(
2305
+ Schema.Struct({
2306
+ status: Schema.Literals([
2307
+ "fee_acknowledged",
2308
+ "requires_fee_acknowledgement",
2309
+ ]).annotate({ description: "Visa compliance eligibility status." }),
2310
+ }),
2311
+ [
2312
+ Schema.Record(
2313
+ Schema.String,
2314
+ Schema.Json.annotate({ expected: "JSON value" }),
2315
+ ),
2316
+ ],
2317
+ ).annotate({
2318
+ title: "DisputeEnhancedEligibilityVisaCompliance",
2319
+ description: "",
2320
+ identifier: "Stripedispute_enhanced_eligibility_visa_compliance",
2321
+ });
2322
+ export const Stripedispute_payment_method_details_amazon_pay =
2323
+ Schema.StructWithRest(
2324
+ Schema.Struct({
2325
+ dispute_type: Schema.optionalKey(
2326
+ Schema.Union([
2327
+ Schema.Literals(["chargeback", "claim"]).annotate({
2328
+ description: "The AmazonPay dispute type, chargeback or claim",
2329
+ }),
2330
+ Schema.Null,
2331
+ ]),
2332
+ ),
2333
+ }),
2334
+ [
2335
+ Schema.Record(
2336
+ Schema.String,
2337
+ Schema.Json.annotate({ expected: "JSON value" }),
2338
+ ),
2339
+ ],
2340
+ ).annotate({
2341
+ title: "DisputePaymentMethodDetailsAmazonPay",
2342
+ description: "",
2343
+ identifier: "Stripedispute_payment_method_details_amazon_pay",
2344
+ });
2345
+ export const Stripedispute_payment_method_details_card = Schema.StructWithRest(
2346
+ Schema.Struct({
2347
+ brand: Schema.String.annotate({
2348
+ description:
2349
+ "Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.",
2350
+ }).check(
2351
+ Schema.isMaxCodePoints(5000).annotate({
2352
+ expected: "a string with at most 5000 code points",
2353
+ }),
2354
+ ),
2355
+ case_type: Schema.Literals([
2356
+ "block",
2357
+ "chargeback",
2358
+ "compliance",
2359
+ "inquiry",
2360
+ "resolution",
2361
+ ]).annotate({
2362
+ description:
2363
+ "The type of dispute opened. Different case types may have varying fees and financial impact.",
2364
+ }),
2365
+ network: Schema.String.annotate({
2366
+ description:
2367
+ "Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.",
2368
+ }).check(
2369
+ Schema.isMaxCodePoints(5000).annotate({
2370
+ expected: "a string with at most 5000 code points",
2371
+ }),
2372
+ ),
2373
+ network_reason_code: Schema.optionalKey(
2374
+ Schema.Union([
2375
+ Schema.String.annotate({
2376
+ description:
2377
+ "The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.",
2378
+ }).check(
2379
+ Schema.isMaxCodePoints(5000).annotate({
2380
+ expected: "a string with at most 5000 code points",
2381
+ }),
2382
+ ),
2383
+ Schema.Null,
2384
+ ]),
2385
+ ),
2386
+ }),
2387
+ [
2388
+ Schema.Record(
2389
+ Schema.String,
2390
+ Schema.Json.annotate({ expected: "JSON value" }),
2391
+ ),
2392
+ ],
2393
+ ).annotate({
2394
+ title: "DisputePaymentMethodDetailsCard",
2395
+ description: "",
2396
+ identifier: "Stripedispute_payment_method_details_card",
2397
+ });
2398
+ export const Stripedispute_payment_method_details_klarna =
2399
+ Schema.StructWithRest(
2400
+ Schema.Struct({
2401
+ chargeback_loss_reason_code: Schema.optionalKey(
2402
+ Schema.String.annotate({
2403
+ description:
2404
+ "Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason",
2405
+ }).check(
2406
+ Schema.isMaxCodePoints(5000).annotate({
2407
+ expected: "a string with at most 5000 code points",
2408
+ }),
2409
+ ),
2410
+ ),
2411
+ reason_code: Schema.optionalKey(
2412
+ Schema.Union([
2413
+ Schema.String.annotate({
2414
+ description: "The reason for the dispute as defined by Klarna",
2415
+ }).check(
2416
+ Schema.isMaxCodePoints(5000).annotate({
2417
+ expected: "a string with at most 5000 code points",
2418
+ }),
2419
+ ),
2420
+ Schema.Null,
2421
+ ]),
2422
+ ),
2423
+ }),
2424
+ [
2425
+ Schema.Record(
2426
+ Schema.String,
2427
+ Schema.Json.annotate({ expected: "JSON value" }),
2428
+ ),
2429
+ ],
2430
+ ).annotate({
2431
+ title: "DisputePaymentMethodDetailsKlarna",
2432
+ description: "",
2433
+ identifier: "Stripedispute_payment_method_details_klarna",
2434
+ });
2435
+ export const Stripedispute_payment_method_details_paypal =
2436
+ Schema.StructWithRest(
2437
+ Schema.Struct({
2438
+ case_id: Schema.optionalKey(
2439
+ Schema.Union([
2440
+ Schema.String.annotate({
2441
+ description: "The ID of the dispute in PayPal.",
2442
+ }).check(
2443
+ Schema.isMaxCodePoints(5000).annotate({
2444
+ expected: "a string with at most 5000 code points",
2445
+ }),
2446
+ ),
2447
+ Schema.Null,
2448
+ ]),
2449
+ ),
2450
+ reason_code: Schema.optionalKey(
2451
+ Schema.Union([
2452
+ Schema.String.annotate({
2453
+ description: "The reason for the dispute as defined by PayPal",
2454
+ }).check(
2455
+ Schema.isMaxCodePoints(5000).annotate({
2456
+ expected: "a string with at most 5000 code points",
2457
+ }),
2458
+ ),
2459
+ Schema.Null,
2460
+ ]),
2461
+ ),
2462
+ }),
2463
+ [
2464
+ Schema.Record(
2465
+ Schema.String,
2466
+ Schema.Json.annotate({ expected: "JSON value" }),
2467
+ ),
2468
+ ],
2469
+ ).annotate({
2470
+ title: "DisputePaymentMethodDetailsPaypal",
2471
+ description: "",
2472
+ identifier: "Stripedispute_payment_method_details_paypal",
2473
+ });
2474
+ export const Stripecharge_fraud_details = Schema.StructWithRest(
2475
+ Schema.Struct({
2476
+ stripe_report: Schema.optionalKey(
2477
+ Schema.String.annotate({
2478
+ description:
2479
+ "Assessments from Stripe. If set, the value is `fraudulent`.",
2480
+ }).check(
2481
+ Schema.isMaxCodePoints(5000).annotate({
2482
+ expected: "a string with at most 5000 code points",
2483
+ }),
2484
+ ),
2485
+ ),
2486
+ user_report: Schema.optionalKey(
2487
+ Schema.String.annotate({
2488
+ description:
2489
+ "Assessments reported by you. If set, possible values of are `safe` and `fraudulent`.",
2490
+ }).check(
2491
+ Schema.isMaxCodePoints(5000).annotate({
2492
+ expected: "a string with at most 5000 code points",
2493
+ }),
2494
+ ),
2495
+ ),
2496
+ }),
2497
+ [
2498
+ Schema.Record(
2499
+ Schema.String,
2500
+ Schema.Json.annotate({ expected: "JSON value" }),
2501
+ ),
2502
+ ],
2503
+ ).annotate({
2504
+ title: "ChargeFraudDetails",
2505
+ description: "",
2506
+ identifier: "Stripecharge_fraud_details",
2507
+ });
2508
+ export const Stripecharge_transfer_data = Schema.StructWithRest(
2509
+ Schema.Struct({
2510
+ amount: Schema.optionalKey(
2511
+ Schema.Union([
2512
+ Schema.Number.annotate({
2513
+ description:
2514
+ "The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.",
2515
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2516
+ Schema.Null,
2517
+ ]),
2518
+ ),
2519
+ destination: Schema.Union([
2520
+ Schema.String.check(
2521
+ Schema.isMaxCodePoints(5000).annotate({
2522
+ expected: "a string with at most 5000 code points",
2523
+ }),
2524
+ ),
2525
+ Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
2526
+ ]).annotate({
2527
+ description:
2528
+ "ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.",
2529
+ }),
2530
+ }),
2531
+ [
2532
+ Schema.Record(
2533
+ Schema.String,
2534
+ Schema.Json.annotate({ expected: "JSON value" }),
2535
+ ),
2536
+ ],
2537
+ ).annotate({
2538
+ title: "ChargeTransferData",
2539
+ description: "",
2540
+ identifier: "Stripecharge_transfer_data",
2541
+ });
2542
+ export const Striperefund_destination_details = Schema.suspend(
2543
+ (): Schema.Codec<Striperefund_destination_details> =>
2544
+ Schema.StructWithRest(
2545
+ Schema.Struct({
2546
+ affirm: Schema.optionalKey(Stripedestination_details_unimplemented),
2547
+ afterpay_clearpay: Schema.optionalKey(
2548
+ Striperefund_destination_details_afterpay_clearpay,
2549
+ ),
2550
+ alipay: Schema.optionalKey(Stripedestination_details_unimplemented),
2551
+ alma: Schema.optionalKey(Stripedestination_details_unimplemented),
2552
+ amazon_pay: Schema.optionalKey(Stripedestination_details_unimplemented),
2553
+ au_bank_transfer: Schema.optionalKey(
2554
+ Stripedestination_details_unimplemented,
2555
+ ),
2556
+ blik: Schema.optionalKey(Striperefund_destination_details_blik),
2557
+ br_bank_transfer: Schema.optionalKey(
2558
+ Striperefund_destination_details_br_bank_transfer,
2559
+ ),
2560
+ card: Schema.optionalKey(Striperefund_destination_details_card),
2561
+ cashapp: Schema.optionalKey(Stripedestination_details_unimplemented),
2562
+ crypto: Schema.optionalKey(Striperefund_destination_details_crypto),
2563
+ customer_cash_balance: Schema.optionalKey(
2564
+ Stripedestination_details_unimplemented,
2565
+ ),
2566
+ eps: Schema.optionalKey(Stripedestination_details_unimplemented),
2567
+ eu_bank_transfer: Schema.optionalKey(
2568
+ Striperefund_destination_details_eu_bank_transfer,
2569
+ ),
2570
+ gb_bank_transfer: Schema.optionalKey(
2571
+ Striperefund_destination_details_gb_bank_transfer,
2572
+ ),
2573
+ giropay: Schema.optionalKey(Stripedestination_details_unimplemented),
2574
+ grabpay: Schema.optionalKey(Stripedestination_details_unimplemented),
2575
+ jp_bank_transfer: Schema.optionalKey(
2576
+ Striperefund_destination_details_jp_bank_transfer,
2577
+ ),
2578
+ klarna: Schema.optionalKey(Striperefund_destination_details_klarna),
2579
+ mb_way: Schema.optionalKey(Striperefund_destination_details_mb_way),
2580
+ multibanco: Schema.optionalKey(
2581
+ Striperefund_destination_details_multibanco,
2582
+ ),
2583
+ mx_bank_transfer: Schema.optionalKey(
2584
+ Striperefund_destination_details_mx_bank_transfer,
2585
+ ),
2586
+ nz_bank_transfer: Schema.optionalKey(
2587
+ Stripedestination_details_unimplemented,
2588
+ ),
2589
+ p24: Schema.optionalKey(Striperefund_destination_details_p24),
2590
+ paynow: Schema.optionalKey(Stripedestination_details_unimplemented),
2591
+ paypal: Schema.optionalKey(Striperefund_destination_details_paypal),
2592
+ pix: Schema.optionalKey(Stripedestination_details_unimplemented),
2593
+ revolut: Schema.optionalKey(Stripedestination_details_unimplemented),
2594
+ scalapay: Schema.optionalKey(Stripedestination_details_unimplemented),
2595
+ sofort: Schema.optionalKey(Stripedestination_details_unimplemented),
2596
+ swish: Schema.optionalKey(Striperefund_destination_details_swish),
2597
+ th_bank_transfer: Schema.optionalKey(
2598
+ Striperefund_destination_details_th_bank_transfer,
2599
+ ),
2600
+ twint: Schema.optionalKey(Stripedestination_details_unimplemented),
2601
+ type: Schema.String.annotate({
2602
+ description:
2603
+ "The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction.",
2604
+ }).check(
2605
+ Schema.isMaxCodePoints(5000).annotate({
2606
+ expected: "a string with at most 5000 code points",
2607
+ }),
2608
+ ),
2609
+ us_bank_transfer: Schema.optionalKey(
2610
+ Striperefund_destination_details_us_bank_transfer,
2611
+ ),
2612
+ wechat_pay: Schema.optionalKey(Stripedestination_details_unimplemented),
2613
+ zip: Schema.optionalKey(Stripedestination_details_unimplemented),
2614
+ }),
2615
+ [
2616
+ Schema.Record(
2617
+ Schema.String,
2618
+ Schema.Json.annotate({ expected: "JSON value" }),
2619
+ ),
2620
+ ],
2621
+ ).annotate({
2622
+ title: "refund_destination_details",
2623
+ description: "",
2624
+ identifier: "Striperefund_destination_details",
2625
+ }),
2626
+ );
2627
+ export const Striperefund_next_action_display_details = Schema.suspend(
2628
+ (): Schema.Codec<Striperefund_next_action_display_details> =>
2629
+ Schema.StructWithRest(
2630
+ Schema.Struct({
2631
+ email_sent: Stripeemail_sent,
2632
+ expires_at: Schema.Number.annotate({
2633
+ description: "The expiry timestamp.",
2634
+ format: "unix-time",
2635
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2636
+ }),
2637
+ [
2638
+ Schema.Record(
2639
+ Schema.String,
2640
+ Schema.Json.annotate({ expected: "JSON value" }),
2641
+ ),
2642
+ ],
2643
+ ).annotate({
2644
+ title: "RefundNextActionDisplayDetails",
2645
+ description: "",
2646
+ identifier: "Striperefund_next_action_display_details",
2647
+ }),
2648
+ );
2649
+ export const Stripedispute_appeal = Schema.suspend(
2650
+ (): Schema.Codec<Stripedispute_appeal> =>
2651
+ Schema.StructWithRest(
2652
+ Schema.Struct({ card: Schema.optionalKey(Stripedispute_appeal_card) }),
2653
+ [
2654
+ Schema.Record(
2655
+ Schema.String,
2656
+ Schema.Json.annotate({ expected: "JSON value" }),
2657
+ ),
2658
+ ],
2659
+ ).annotate({
2660
+ title: "DisputeAppeal",
2661
+ description: "",
2662
+ identifier: "Stripedispute_appeal",
2663
+ }),
2664
+ );
2665
+ export const Stripedispute_visa_compelling_evidence3_disputed_transaction =
2666
+ Schema.suspend(
2667
+ (): Schema.Codec<Stripedispute_visa_compelling_evidence3_disputed_transaction> =>
2668
+ Schema.StructWithRest(
2669
+ Schema.Struct({
2670
+ customer_account_id: Schema.optionalKey(
2671
+ Schema.Union([
2672
+ Schema.String.annotate({
2673
+ description:
2674
+ "User Account ID used to log into business platform. Must be recognizable by the user.",
2675
+ }).check(
2676
+ Schema.isMaxCodePoints(5000).annotate({
2677
+ expected: "a string with at most 5000 code points",
2678
+ }),
2679
+ ),
2680
+ Schema.Null,
2681
+ ]),
2682
+ ),
2683
+ customer_device_fingerprint: Schema.optionalKey(
2684
+ Schema.Union([
2685
+ Schema.String.annotate({
2686
+ description:
2687
+ "Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.",
2688
+ }).check(
2689
+ Schema.isMaxCodePoints(5000).annotate({
2690
+ expected: "a string with at most 5000 code points",
2691
+ }),
2692
+ ),
2693
+ Schema.Null,
2694
+ ]),
2695
+ ),
2696
+ customer_device_id: Schema.optionalKey(
2697
+ Schema.Union([
2698
+ Schema.String.annotate({
2699
+ description:
2700
+ "Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.",
2701
+ }).check(
2702
+ Schema.isMaxCodePoints(5000).annotate({
2703
+ expected: "a string with at most 5000 code points",
2704
+ }),
2705
+ ),
2706
+ Schema.Null,
2707
+ ]),
2708
+ ),
2709
+ customer_email_address: Schema.optionalKey(
2710
+ Schema.Union([
2711
+ Schema.String.annotate({
2712
+ description: "The email address of the customer.",
2713
+ }).check(
2714
+ Schema.isMaxCodePoints(5000).annotate({
2715
+ expected: "a string with at most 5000 code points",
2716
+ }),
2717
+ ),
2718
+ Schema.Null,
2719
+ ]),
2720
+ ),
2721
+ customer_purchase_ip: Schema.optionalKey(
2722
+ Schema.Union([
2723
+ Schema.String.annotate({
2724
+ description:
2725
+ "The IP address that the customer used when making the purchase.",
2726
+ }).check(
2727
+ Schema.isMaxCodePoints(5000).annotate({
2728
+ expected: "a string with at most 5000 code points",
2729
+ }),
2730
+ ),
2731
+ Schema.Null,
2732
+ ]),
2733
+ ),
2734
+ merchandise_or_services: Schema.optionalKey(
2735
+ Schema.Union([
2736
+ Schema.Literals(["merchandise", "services"]).annotate({
2737
+ description: "Categorization of disputed payment.",
2738
+ }),
2739
+ Schema.Null,
2740
+ ]),
2741
+ ),
2742
+ product_description: Schema.optionalKey(
2743
+ Schema.Union([
2744
+ Schema.String.annotate({
2745
+ description:
2746
+ "A description of the product or service that was sold.",
2747
+ }).check(
2748
+ Schema.isMaxCodePoints(150000).annotate({
2749
+ expected: "a string with at most 150000 code points",
2750
+ }),
2751
+ ),
2752
+ Schema.Null,
2753
+ ]),
2754
+ ),
2755
+ shipping_address: Schema.optionalKey(
2756
+ Schema.Union([
2757
+ Schema.Union([
2758
+ Stripedispute_transaction_shipping_address,
2759
+ ]).annotate({
2760
+ description:
2761
+ "The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.",
2762
+ }),
2763
+ Schema.Null,
2764
+ ]),
2765
+ ),
2766
+ }),
2767
+ [
2768
+ Schema.Record(
2769
+ Schema.String,
2770
+ Schema.Json.annotate({ expected: "JSON value" }),
2771
+ ),
2772
+ ],
2773
+ ).annotate({
2774
+ title: "DisputeVisaCompellingEvidence3DisputedTransaction",
2775
+ description: "",
2776
+ identifier:
2777
+ "Stripedispute_visa_compelling_evidence3_disputed_transaction",
2778
+ }),
2779
+ );
2780
+ export const Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction =
2781
+ Schema.suspend(
2782
+ (): Schema.Codec<Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction> =>
2783
+ Schema.StructWithRest(
2784
+ Schema.Struct({
2785
+ charge: Schema.String.annotate({
2786
+ description:
2787
+ "Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.",
2788
+ }).check(
2789
+ Schema.isMaxCodePoints(5000).annotate({
2790
+ expected: "a string with at most 5000 code points",
2791
+ }),
2792
+ ),
2793
+ customer_account_id: Schema.optionalKey(
2794
+ Schema.Union([
2795
+ Schema.String.annotate({
2796
+ description:
2797
+ "User Account ID used to log into business platform. Must be recognizable by the user.",
2798
+ }).check(
2799
+ Schema.isMaxCodePoints(5000).annotate({
2800
+ expected: "a string with at most 5000 code points",
2801
+ }),
2802
+ ),
2803
+ Schema.Null,
2804
+ ]),
2805
+ ),
2806
+ customer_device_fingerprint: Schema.optionalKey(
2807
+ Schema.Union([
2808
+ Schema.String.annotate({
2809
+ description:
2810
+ "Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.",
2811
+ }).check(
2812
+ Schema.isMaxCodePoints(5000).annotate({
2813
+ expected: "a string with at most 5000 code points",
2814
+ }),
2815
+ ),
2816
+ Schema.Null,
2817
+ ]),
2818
+ ),
2819
+ customer_device_id: Schema.optionalKey(
2820
+ Schema.Union([
2821
+ Schema.String.annotate({
2822
+ description:
2823
+ "Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.",
2824
+ }).check(
2825
+ Schema.isMaxCodePoints(5000).annotate({
2826
+ expected: "a string with at most 5000 code points",
2827
+ }),
2828
+ ),
2829
+ Schema.Null,
2830
+ ]),
2831
+ ),
2832
+ customer_email_address: Schema.optionalKey(
2833
+ Schema.Union([
2834
+ Schema.String.annotate({
2835
+ description: "The email address of the customer.",
2836
+ }).check(
2837
+ Schema.isMaxCodePoints(5000).annotate({
2838
+ expected: "a string with at most 5000 code points",
2839
+ }),
2840
+ ),
2841
+ Schema.Null,
2842
+ ]),
2843
+ ),
2844
+ customer_purchase_ip: Schema.optionalKey(
2845
+ Schema.Union([
2846
+ Schema.String.annotate({
2847
+ description:
2848
+ "The IP address that the customer used when making the purchase.",
2849
+ }).check(
2850
+ Schema.isMaxCodePoints(5000).annotate({
2851
+ expected: "a string with at most 5000 code points",
2852
+ }),
2853
+ ),
2854
+ Schema.Null,
2855
+ ]),
2856
+ ),
2857
+ product_description: Schema.optionalKey(
2858
+ Schema.Union([
2859
+ Schema.String.annotate({
2860
+ description:
2861
+ "A description of the product or service that was sold.",
2862
+ }).check(
2863
+ Schema.isMaxCodePoints(150000).annotate({
2864
+ expected: "a string with at most 150000 code points",
2865
+ }),
2866
+ ),
2867
+ Schema.Null,
2868
+ ]),
2869
+ ),
2870
+ shipping_address: Schema.optionalKey(
2871
+ Schema.Union([
2872
+ Schema.Union([
2873
+ Stripedispute_transaction_shipping_address,
2874
+ ]).annotate({
2875
+ description:
2876
+ "The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.",
2877
+ }),
2878
+ Schema.Null,
2879
+ ]),
2880
+ ),
2881
+ }),
2882
+ [
2883
+ Schema.Record(
2884
+ Schema.String,
2885
+ Schema.Json.annotate({ expected: "JSON value" }),
2886
+ ),
2887
+ ],
2888
+ ).annotate({
2889
+ title: "DisputeVisaCompellingEvidence3PriorUndisputedTransaction",
2890
+ description: "",
2891
+ identifier:
2892
+ "Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction",
2893
+ }),
2894
+ );
2895
+ export const Stripedispute_enhanced_eligibility = Schema.suspend(
2896
+ (): Schema.Codec<Stripedispute_enhanced_eligibility> =>
2897
+ Schema.StructWithRest(
2898
+ Schema.Struct({
2899
+ mastercard_compliance: Schema.optionalKey(
2900
+ Stripedispute_enhanced_eligibility_mastercard_compliance,
2901
+ ),
2902
+ visa_compelling_evidence_3: Schema.optionalKey(
2903
+ Stripedispute_enhanced_eligibility_visa_compelling_evidence3,
2904
+ ),
2905
+ visa_compliance: Schema.optionalKey(
2906
+ Stripedispute_enhanced_eligibility_visa_compliance,
2907
+ ),
2908
+ }),
2909
+ [
2910
+ Schema.Record(
2911
+ Schema.String,
2912
+ Schema.Json.annotate({ expected: "JSON value" }),
2913
+ ),
2914
+ ],
2915
+ ).annotate({
2916
+ title: "DisputeEnhancedEligibility",
2917
+ description: "",
2918
+ identifier: "Stripedispute_enhanced_eligibility",
2919
+ }),
2920
+ );
2921
+ export const Stripedispute_payment_method_details = Schema.suspend(
2922
+ (): Schema.Codec<Stripedispute_payment_method_details> =>
2923
+ Schema.StructWithRest(
2924
+ Schema.Struct({
2925
+ amazon_pay: Schema.optionalKey(
2926
+ Stripedispute_payment_method_details_amazon_pay,
2927
+ ),
2928
+ card: Schema.optionalKey(Stripedispute_payment_method_details_card),
2929
+ klarna: Schema.optionalKey(Stripedispute_payment_method_details_klarna),
2930
+ paypal: Schema.optionalKey(Stripedispute_payment_method_details_paypal),
2931
+ type: Schema.Literals([
2932
+ "amazon_pay",
2933
+ "card",
2934
+ "klarna",
2935
+ "paypal",
2936
+ ]).annotate({ description: "Payment method type." }),
2937
+ }),
2938
+ [
2939
+ Schema.Record(
2940
+ Schema.String,
2941
+ Schema.Json.annotate({ expected: "JSON value" }),
2942
+ ),
2943
+ ],
2944
+ ).annotate({
2945
+ title: "DisputePaymentMethodDetails",
2946
+ description: "",
2947
+ identifier: "Stripedispute_payment_method_details",
2948
+ }),
2949
+ );
2950
+ export const Stripecharge_outcome = Schema.suspend(
2951
+ (): Schema.Codec<Stripecharge_outcome> =>
2952
+ Schema.StructWithRest(
2953
+ Schema.Struct({
2954
+ advice_code: Schema.optionalKey(
2955
+ Schema.Union([
2956
+ Schema.Literals([
2957
+ "confirm_card_data",
2958
+ "do_not_try_again",
2959
+ "try_again_later",
2960
+ ]).annotate({
2961
+ description:
2962
+ "An enumerated value providing a more detailed explanation on [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines).",
2963
+ }),
2964
+ Schema.Null,
2965
+ ]),
2966
+ ),
2967
+ network_advice_code: Schema.optionalKey(
2968
+ Schema.Union([
2969
+ Schema.String.annotate({
2970
+ description:
2971
+ "For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.",
2972
+ }).check(
2973
+ Schema.isMaxCodePoints(5000).annotate({
2974
+ expected: "a string with at most 5000 code points",
2975
+ }),
2976
+ ),
2977
+ Schema.Null,
2978
+ ]),
2979
+ ),
2980
+ network_decline_code: Schema.optionalKey(
2981
+ Schema.Union([
2982
+ Schema.String.annotate({
2983
+ description:
2984
+ "For charges declined by the network, an alphanumeric code which indicates the reason the charge failed.",
2985
+ }).check(
2986
+ Schema.isMaxCodePoints(5000).annotate({
2987
+ expected: "a string with at most 5000 code points",
2988
+ }),
2989
+ ),
2990
+ Schema.Null,
2991
+ ]),
2992
+ ),
2993
+ network_status: Schema.optionalKey(
2994
+ Schema.Union([
2995
+ Schema.String.annotate({
2996
+ description:
2997
+ 'Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://docs.stripe.com/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder\'s statement.',
2998
+ }).check(
2999
+ Schema.isMaxCodePoints(5000).annotate({
3000
+ expected: "a string with at most 5000 code points",
3001
+ }),
3002
+ ),
3003
+ Schema.Null,
3004
+ ]),
3005
+ ),
3006
+ reason: Schema.optionalKey(
3007
+ Schema.Union([
3008
+ Schema.String.annotate({
3009
+ description:
3010
+ "An enumerated value providing a more detailed explanation of the outcome's `type`. Charges blocked by Radar's default block rule have the value `highest_risk_level`. Charges placed in review by Radar's default review rule have the value `elevated_risk_level`. Charges blocked because the payment is unlikely to be authorized have the value `low_probability_of_authorization`. Charges authorized, blocked, or placed in review by custom rules have the value `rule`. See [understanding declines](https://docs.stripe.com/declines) for more details.",
3011
+ }).check(
3012
+ Schema.isMaxCodePoints(5000).annotate({
3013
+ expected: "a string with at most 5000 code points",
3014
+ }),
3015
+ ),
3016
+ Schema.Null,
3017
+ ]),
3018
+ ),
3019
+ risk_level: Schema.optionalKey(
3020
+ Schema.String.annotate({
3021
+ description:
3022
+ "Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are `normal`, `elevated`, `highest`. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the value `not_assessed`. In the event of an error in the evaluation, this field will have the value `unknown`. This field is only available with Radar.",
3023
+ }).check(
3024
+ Schema.isMaxCodePoints(5000).annotate({
3025
+ expected: "a string with at most 5000 code points",
3026
+ }),
3027
+ ),
3028
+ ),
3029
+ risk_score: Schema.optionalKey(
3030
+ Schema.Number.annotate({
3031
+ description:
3032
+ "Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.",
3033
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3034
+ ),
3035
+ rule: Schema.optionalKey(
3036
+ Schema.Union([
3037
+ Schema.String.check(
3038
+ Schema.isMaxCodePoints(5000).annotate({
3039
+ expected: "a string with at most 5000 code points",
3040
+ }),
3041
+ ),
3042
+ Striperadar_rule,
3043
+ ]).annotate({
3044
+ description:
3045
+ "The ID of the Radar rule that matched the payment, if applicable.",
3046
+ }),
3047
+ ),
3048
+ seller_message: Schema.optionalKey(
3049
+ Schema.Union([
3050
+ Schema.String.annotate({
3051
+ description:
3052
+ "A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.",
3053
+ }).check(
3054
+ Schema.isMaxCodePoints(5000).annotate({
3055
+ expected: "a string with at most 5000 code points",
3056
+ }),
3057
+ ),
3058
+ Schema.Null,
3059
+ ]),
3060
+ ),
3061
+ type: Schema.String.annotate({
3062
+ description:
3063
+ "Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://docs.stripe.com/declines) and [Radar reviews](https://docs.stripe.com/radar/reviews) for details.",
3064
+ }).check(
3065
+ Schema.isMaxCodePoints(5000).annotate({
3066
+ expected: "a string with at most 5000 code points",
3067
+ }),
3068
+ ),
3069
+ }),
3070
+ [
3071
+ Schema.Record(
3072
+ Schema.String,
3073
+ Schema.Json.annotate({ expected: "JSON value" }),
3074
+ ),
3075
+ ],
3076
+ ).annotate({
3077
+ title: "ChargeOutcome",
3078
+ description: "",
3079
+ identifier: "Stripecharge_outcome",
3080
+ }),
3081
+ );
3082
+ export const Striperefund_next_action = Schema.suspend(
3083
+ (): Schema.Codec<Striperefund_next_action> =>
3084
+ Schema.StructWithRest(
3085
+ Schema.Struct({
3086
+ display_details: Schema.optionalKey(
3087
+ Striperefund_next_action_display_details,
3088
+ ),
3089
+ type: Schema.String.annotate({
3090
+ description: "Type of the next action to perform.",
3091
+ }).check(
3092
+ Schema.isMaxCodePoints(5000).annotate({
3093
+ expected: "a string with at most 5000 code points",
3094
+ }),
3095
+ ),
3096
+ }),
3097
+ [
3098
+ Schema.Record(
3099
+ Schema.String,
3100
+ Schema.Json.annotate({ expected: "JSON value" }),
3101
+ ),
3102
+ ],
3103
+ ).annotate({
3104
+ title: "RefundNextAction",
3105
+ description: "",
3106
+ identifier: "Striperefund_next_action",
3107
+ }),
3108
+ );
3109
+ export const Stripedispute_enhanced_evidence_visa_compelling_evidence3 =
3110
+ Schema.suspend(
3111
+ (): Schema.Codec<Stripedispute_enhanced_evidence_visa_compelling_evidence3> =>
3112
+ Schema.StructWithRest(
3113
+ Schema.Struct({
3114
+ disputed_transaction: Schema.optionalKey(
3115
+ Schema.Union([
3116
+ Schema.Union([
3117
+ Stripedispute_visa_compelling_evidence3_disputed_transaction,
3118
+ ]).annotate({
3119
+ description:
3120
+ "Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.",
3121
+ }),
3122
+ Schema.Null,
3123
+ ]),
3124
+ ),
3125
+ prior_undisputed_transactions: Schema.Array(
3126
+ Stripedispute_visa_compelling_evidence3_prior_undisputed_transaction,
3127
+ ).annotate({
3128
+ description:
3129
+ "List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.",
3130
+ }),
3131
+ }),
3132
+ [
3133
+ Schema.Record(
3134
+ Schema.String,
3135
+ Schema.Json.annotate({ expected: "JSON value" }),
3136
+ ),
3137
+ ],
3138
+ ).annotate({
3139
+ title: "DisputeEnhancedEvidenceVisaCompellingEvidence3",
3140
+ description: "",
3141
+ identifier: "Stripedispute_enhanced_evidence_visa_compelling_evidence3",
3142
+ }),
3143
+ );
3144
+ export const Stripedispute_evidence_details = Schema.suspend(
3145
+ (): Schema.Codec<Stripedispute_evidence_details> =>
3146
+ Schema.StructWithRest(
3147
+ Schema.Struct({
3148
+ due_by: Schema.optionalKey(
3149
+ Schema.Union([
3150
+ Schema.Number.annotate({
3151
+ description:
3152
+ "Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.",
3153
+ format: "unix-time",
3154
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3155
+ Schema.Null,
3156
+ ]),
3157
+ ),
3158
+ enhanced_eligibility: Stripedispute_enhanced_eligibility,
3159
+ has_evidence: Schema.Boolean.annotate({
3160
+ description: "Whether evidence has been staged for this dispute.",
3161
+ }),
3162
+ past_due: Schema.Boolean.annotate({
3163
+ description:
3164
+ "Whether the last evidence submission was submitted past the due date. Defaults to `false` if no evidence submissions have occurred. If `true`, then delivery of the latest evidence is *not* guaranteed.",
3165
+ }),
3166
+ submission_count: Schema.Number.annotate({
3167
+ description:
3168
+ "The number of times evidence has been submitted. Typically, you may only submit evidence once.",
3169
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3170
+ submission_method: Schema.Literals([
3171
+ "manual",
3172
+ "not_submitted",
3173
+ "smart_disputes",
3174
+ ]).annotate({
3175
+ description:
3176
+ "Whether the dispute was submitted manually, with Smart Disputes, or not submitted.",
3177
+ }),
3178
+ }),
3179
+ [
3180
+ Schema.Record(
3181
+ Schema.String,
3182
+ Schema.Json.annotate({ expected: "JSON value" }),
3183
+ ),
3184
+ ],
3185
+ ).annotate({
3186
+ title: "DisputeEvidenceDetails",
3187
+ description: "",
3188
+ identifier: "Stripedispute_evidence_details",
3189
+ }),
3190
+ );
3191
+ export const Stripedispute_enhanced_evidence = Schema.suspend(
3192
+ (): Schema.Codec<Stripedispute_enhanced_evidence> =>
3193
+ Schema.StructWithRest(
3194
+ Schema.Struct({
3195
+ mastercard_compliance: Schema.optionalKey(
3196
+ Stripedispute_enhanced_evidence_mastercard_compliance,
3197
+ ),
3198
+ visa_compelling_evidence_3: Schema.optionalKey(
3199
+ Stripedispute_enhanced_evidence_visa_compelling_evidence3,
3200
+ ),
3201
+ visa_compliance: Schema.optionalKey(
3202
+ Stripedispute_enhanced_evidence_visa_compliance,
3203
+ ),
3204
+ }),
3205
+ [
3206
+ Schema.Record(
3207
+ Schema.String,
3208
+ Schema.Json.annotate({ expected: "JSON value" }),
3209
+ ),
3210
+ ],
3211
+ ).annotate({
3212
+ title: "DisputeEnhancedEvidence",
3213
+ description: "",
3214
+ identifier: "Stripedispute_enhanced_evidence",
3215
+ }),
3216
+ );
3217
+ export const Stripedispute_evidence = Schema.suspend(
3218
+ (): Schema.Codec<Stripedispute_evidence> =>
3219
+ Schema.StructWithRest(
3220
+ Schema.Struct({
3221
+ access_activity_log: Schema.optionalKey(
3222
+ Schema.Union([
3223
+ Schema.String.annotate({
3224
+ description:
3225
+ "Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.",
3226
+ }).check(
3227
+ Schema.isMaxCodePoints(150000).annotate({
3228
+ expected: "a string with at most 150000 code points",
3229
+ }),
3230
+ ),
3231
+ Schema.Null,
3232
+ ]),
3233
+ ),
3234
+ appeal: Schema.optionalKey(
3235
+ Schema.Union([
3236
+ Schema.Union([Stripedispute_appeal]).annotate({
3237
+ description: "Appeal evidence submitted during the appeal stage.",
3238
+ }),
3239
+ Schema.Null,
3240
+ ]),
3241
+ ),
3242
+ billing_address: Schema.optionalKey(
3243
+ Schema.Union([
3244
+ Schema.String.annotate({
3245
+ description: "The billing address provided by the customer.",
3246
+ }).check(
3247
+ Schema.isMaxCodePoints(5000).annotate({
3248
+ expected: "a string with at most 5000 code points",
3249
+ }),
3250
+ ),
3251
+ Schema.Null,
3252
+ ]),
3253
+ ),
3254
+ cancellation_policy: Schema.optionalKey(
3255
+ Schema.Union([
3256
+ Schema.Union([
3257
+ Schema.String.check(
3258
+ Schema.isMaxCodePoints(5000).annotate({
3259
+ expected: "a string with at most 5000 code points",
3260
+ }),
3261
+ ),
3262
+ Stripefile,
3263
+ ]).annotate({
3264
+ description:
3265
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer.",
3266
+ }),
3267
+ Schema.Null,
3268
+ ]),
3269
+ ),
3270
+ cancellation_policy_disclosure: Schema.optionalKey(
3271
+ Schema.Union([
3272
+ Schema.String.annotate({
3273
+ description:
3274
+ "An explanation of how and when the customer was shown your refund policy prior to purchase.",
3275
+ }).check(
3276
+ Schema.isMaxCodePoints(150000).annotate({
3277
+ expected: "a string with at most 150000 code points",
3278
+ }),
3279
+ ),
3280
+ Schema.Null,
3281
+ ]),
3282
+ ),
3283
+ cancellation_rebuttal: Schema.optionalKey(
3284
+ Schema.Union([
3285
+ Schema.String.annotate({
3286
+ description:
3287
+ "A justification for why the customer's subscription was not canceled.",
3288
+ }).check(
3289
+ Schema.isMaxCodePoints(150000).annotate({
3290
+ expected: "a string with at most 150000 code points",
3291
+ }),
3292
+ ),
3293
+ Schema.Null,
3294
+ ]),
3295
+ ),
3296
+ customer_communication: Schema.optionalKey(
3297
+ Schema.Union([
3298
+ Schema.Union([
3299
+ Schema.String.check(
3300
+ Schema.isMaxCodePoints(5000).annotate({
3301
+ expected: "a string with at most 5000 code points",
3302
+ }),
3303
+ ),
3304
+ Stripefile,
3305
+ ]).annotate({
3306
+ description:
3307
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service.",
3308
+ }),
3309
+ Schema.Null,
3310
+ ]),
3311
+ ),
3312
+ customer_email_address: Schema.optionalKey(
3313
+ Schema.Union([
3314
+ Schema.String.annotate({
3315
+ description: "The email address of the customer.",
3316
+ }).check(
3317
+ Schema.isMaxCodePoints(5000).annotate({
3318
+ expected: "a string with at most 5000 code points",
3319
+ }),
3320
+ ),
3321
+ Schema.Null,
3322
+ ]),
3323
+ ),
3324
+ customer_name: Schema.optionalKey(
3325
+ Schema.Union([
3326
+ Schema.String.annotate({
3327
+ description: "The name of the customer.",
3328
+ }).check(
3329
+ Schema.isMaxCodePoints(5000).annotate({
3330
+ expected: "a string with at most 5000 code points",
3331
+ }),
3332
+ ),
3333
+ Schema.Null,
3334
+ ]),
3335
+ ),
3336
+ customer_purchase_ip: Schema.optionalKey(
3337
+ Schema.Union([
3338
+ Schema.String.annotate({
3339
+ description:
3340
+ "The IP address that the customer used when making the purchase.",
3341
+ }).check(
3342
+ Schema.isMaxCodePoints(5000).annotate({
3343
+ expected: "a string with at most 5000 code points",
3344
+ }),
3345
+ ),
3346
+ Schema.Null,
3347
+ ]),
3348
+ ),
3349
+ customer_signature: Schema.optionalKey(
3350
+ Schema.Union([
3351
+ Schema.Union([
3352
+ Schema.String.check(
3353
+ Schema.isMaxCodePoints(5000).annotate({
3354
+ expected: "a string with at most 5000 code points",
3355
+ }),
3356
+ ),
3357
+ Stripefile,
3358
+ ]).annotate({
3359
+ description:
3360
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature.",
3361
+ }),
3362
+ Schema.Null,
3363
+ ]),
3364
+ ),
3365
+ duplicate_charge_documentation: Schema.optionalKey(
3366
+ Schema.Union([
3367
+ Schema.Union([
3368
+ Schema.String.check(
3369
+ Schema.isMaxCodePoints(5000).annotate({
3370
+ expected: "a string with at most 5000 code points",
3371
+ }),
3372
+ ),
3373
+ Stripefile,
3374
+ ]).annotate({
3375
+ description:
3376
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate.",
3377
+ }),
3378
+ Schema.Null,
3379
+ ]),
3380
+ ),
3381
+ duplicate_charge_explanation: Schema.optionalKey(
3382
+ Schema.Union([
3383
+ Schema.String.annotate({
3384
+ description:
3385
+ "An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.",
3386
+ }).check(
3387
+ Schema.isMaxCodePoints(150000).annotate({
3388
+ expected: "a string with at most 150000 code points",
3389
+ }),
3390
+ ),
3391
+ Schema.Null,
3392
+ ]),
3393
+ ),
3394
+ duplicate_charge_id: Schema.optionalKey(
3395
+ Schema.Union([
3396
+ Schema.String.annotate({
3397
+ description:
3398
+ "The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.",
3399
+ }).check(
3400
+ Schema.isMaxCodePoints(5000).annotate({
3401
+ expected: "a string with at most 5000 code points",
3402
+ }),
3403
+ ),
3404
+ Schema.Null,
3405
+ ]),
3406
+ ),
3407
+ enhanced_evidence: Stripedispute_enhanced_evidence,
3408
+ product_description: Schema.optionalKey(
3409
+ Schema.Union([
3410
+ Schema.String.annotate({
3411
+ description:
3412
+ "A description of the product or service that was sold.",
3413
+ }).check(
3414
+ Schema.isMaxCodePoints(150000).annotate({
3415
+ expected: "a string with at most 150000 code points",
3416
+ }),
3417
+ ),
3418
+ Schema.Null,
3419
+ ]),
3420
+ ),
3421
+ receipt: Schema.optionalKey(
3422
+ Schema.Union([
3423
+ Schema.Union([
3424
+ Schema.String.check(
3425
+ Schema.isMaxCodePoints(5000).annotate({
3426
+ expected: "a string with at most 5000 code points",
3427
+ }),
3428
+ ),
3429
+ Stripefile,
3430
+ ]).annotate({
3431
+ description:
3432
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge.",
3433
+ }),
3434
+ Schema.Null,
3435
+ ]),
3436
+ ),
3437
+ refund_policy: Schema.optionalKey(
3438
+ Schema.Union([
3439
+ Schema.Union([
3440
+ Schema.String.check(
3441
+ Schema.isMaxCodePoints(5000).annotate({
3442
+ expected: "a string with at most 5000 code points",
3443
+ }),
3444
+ ),
3445
+ Stripefile,
3446
+ ]).annotate({
3447
+ description:
3448
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer.",
3449
+ }),
3450
+ Schema.Null,
3451
+ ]),
3452
+ ),
3453
+ refund_policy_disclosure: Schema.optionalKey(
3454
+ Schema.Union([
3455
+ Schema.String.annotate({
3456
+ description:
3457
+ "Documentation demonstrating that the customer was shown your refund policy prior to purchase.",
3458
+ }).check(
3459
+ Schema.isMaxCodePoints(150000).annotate({
3460
+ expected: "a string with at most 150000 code points",
3461
+ }),
3462
+ ),
3463
+ Schema.Null,
3464
+ ]),
3465
+ ),
3466
+ refund_refusal_explanation: Schema.optionalKey(
3467
+ Schema.Union([
3468
+ Schema.String.annotate({
3469
+ description:
3470
+ "A justification for why the customer is not entitled to a refund.",
3471
+ }).check(
3472
+ Schema.isMaxCodePoints(150000).annotate({
3473
+ expected: "a string with at most 150000 code points",
3474
+ }),
3475
+ ),
3476
+ Schema.Null,
3477
+ ]),
3478
+ ),
3479
+ service_date: Schema.optionalKey(
3480
+ Schema.Union([
3481
+ Schema.String.annotate({
3482
+ description:
3483
+ "The date on which the customer received or began receiving the purchased service, in a clear human-readable format.",
3484
+ }).check(
3485
+ Schema.isMaxCodePoints(5000).annotate({
3486
+ expected: "a string with at most 5000 code points",
3487
+ }),
3488
+ ),
3489
+ Schema.Null,
3490
+ ]),
3491
+ ),
3492
+ service_documentation: Schema.optionalKey(
3493
+ Schema.Union([
3494
+ Schema.Union([
3495
+ Schema.String.check(
3496
+ Schema.isMaxCodePoints(5000).annotate({
3497
+ expected: "a string with at most 5000 code points",
3498
+ }),
3499
+ ),
3500
+ Stripefile,
3501
+ ]).annotate({
3502
+ description:
3503
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement.",
3504
+ }),
3505
+ Schema.Null,
3506
+ ]),
3507
+ ),
3508
+ shipping_address: Schema.optionalKey(
3509
+ Schema.Union([
3510
+ Schema.String.annotate({
3511
+ description:
3512
+ "The address to which a physical product was shipped. You should try to include as complete address information as possible.",
3513
+ }).check(
3514
+ Schema.isMaxCodePoints(5000).annotate({
3515
+ expected: "a string with at most 5000 code points",
3516
+ }),
3517
+ ),
3518
+ Schema.Null,
3519
+ ]),
3520
+ ),
3521
+ shipping_carrier: Schema.optionalKey(
3522
+ Schema.Union([
3523
+ Schema.String.annotate({
3524
+ description:
3525
+ "The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.",
3526
+ }).check(
3527
+ Schema.isMaxCodePoints(5000).annotate({
3528
+ expected: "a string with at most 5000 code points",
3529
+ }),
3530
+ ),
3531
+ Schema.Null,
3532
+ ]),
3533
+ ),
3534
+ shipping_date: Schema.optionalKey(
3535
+ Schema.Union([
3536
+ Schema.String.annotate({
3537
+ description:
3538
+ "The date on which a physical product began its route to the shipping address, in a clear human-readable format.",
3539
+ }).check(
3540
+ Schema.isMaxCodePoints(5000).annotate({
3541
+ expected: "a string with at most 5000 code points",
3542
+ }),
3543
+ ),
3544
+ Schema.Null,
3545
+ ]),
3546
+ ),
3547
+ shipping_documentation: Schema.optionalKey(
3548
+ Schema.Union([
3549
+ Schema.Union([
3550
+ Schema.String.check(
3551
+ Schema.isMaxCodePoints(5000).annotate({
3552
+ expected: "a string with at most 5000 code points",
3553
+ }),
3554
+ ),
3555
+ Stripefile,
3556
+ ]).annotate({
3557
+ description:
3558
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible.",
3559
+ }),
3560
+ Schema.Null,
3561
+ ]),
3562
+ ),
3563
+ shipping_tracking_number: Schema.optionalKey(
3564
+ Schema.Union([
3565
+ Schema.String.annotate({
3566
+ description:
3567
+ "The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.",
3568
+ }).check(
3569
+ Schema.isMaxCodePoints(5000).annotate({
3570
+ expected: "a string with at most 5000 code points",
3571
+ }),
3572
+ ),
3573
+ Schema.Null,
3574
+ ]),
3575
+ ),
3576
+ uncategorized_file: Schema.optionalKey(
3577
+ Schema.Union([
3578
+ Schema.Union([
3579
+ Schema.String.check(
3580
+ Schema.isMaxCodePoints(5000).annotate({
3581
+ expected: "a string with at most 5000 code points",
3582
+ }),
3583
+ ),
3584
+ Stripefile,
3585
+ ]).annotate({
3586
+ description:
3587
+ "(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements.",
3588
+ }),
3589
+ Schema.Null,
3590
+ ]),
3591
+ ),
3592
+ uncategorized_text: Schema.optionalKey(
3593
+ Schema.Union([
3594
+ Schema.String.annotate({
3595
+ description: "Any additional evidence or statements.",
3596
+ }).check(
3597
+ Schema.isMaxCodePoints(150000).annotate({
3598
+ expected: "a string with at most 150000 code points",
3599
+ }),
3600
+ ),
3601
+ Schema.Null,
3602
+ ]),
3603
+ ),
3604
+ }),
3605
+ [
3606
+ Schema.Record(
3607
+ Schema.String,
3608
+ Schema.Json.annotate({ expected: "JSON value" }),
3609
+ ),
3610
+ ],
3611
+ ).annotate({
3612
+ title: "DisputeEvidence",
3613
+ description: "",
3614
+ identifier: "Stripedispute_evidence",
3615
+ }),
3616
+ );