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,2637 @@
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 { Effect, Schema } from "effect";
5
+ import { StripeClient } from "../stripeClient.js";
6
+ import type { StripeOperation } from "../stripeClientModel.js";
7
+ import { stripeApiBaseUrl, stripeApiVersion } from "./configuration.js";
8
+ import { Stripecharge, Stripedispute, Striperefund } from "./models/charges.js";
9
+ import { Stripeerror } from "./models/common.js";
10
+
11
+ export type GetChargesInput = {
12
+ readonly created?:
13
+ | ({
14
+ readonly gt?: number;
15
+ readonly gte?: number;
16
+ readonly lt?: number;
17
+ readonly lte?: number;
18
+ } & { readonly [x: string]: Schema.Json })
19
+ | number;
20
+ readonly customer?: string;
21
+ readonly ending_before?: string;
22
+ readonly expand?: ReadonlyArray<string>;
23
+ readonly limit?: number;
24
+ readonly payment_intent?: string;
25
+ readonly starting_after?: string;
26
+ readonly transfer_group?: string;
27
+ };
28
+ export type GetChargesOutput = {
29
+ readonly data: ReadonlyArray<Stripecharge>;
30
+ readonly has_more: boolean;
31
+ readonly object: "list";
32
+ readonly url: string;
33
+ } & { readonly [x: string]: Schema.Json };
34
+ export type GetChargesError = Stripeerror;
35
+ export type PostChargesInput = {
36
+ readonly amount?: number;
37
+ readonly application_fee?: number;
38
+ readonly application_fee_amount?: number;
39
+ readonly capture?: boolean;
40
+ readonly card?:
41
+ | ({
42
+ readonly address_city?: string;
43
+ readonly address_country?: string;
44
+ readonly address_line1?: string;
45
+ readonly address_line2?: string;
46
+ readonly address_state?: string;
47
+ readonly address_zip?: string;
48
+ readonly cvc?: string;
49
+ readonly encrypted?: string;
50
+ readonly exp_month: number;
51
+ readonly exp_year: number;
52
+ readonly metadata?: { readonly [x: string]: string };
53
+ readonly name?: string;
54
+ readonly network_token?: { readonly number?: string } & {
55
+ readonly [x: string]: Schema.Json;
56
+ };
57
+ readonly number: string;
58
+ readonly object?: "card";
59
+ readonly swipe_data?: string;
60
+ } & { readonly [x: string]: Schema.Json })
61
+ | string;
62
+ readonly currency?: string;
63
+ readonly customer?: string;
64
+ readonly description?: string;
65
+ readonly destination?:
66
+ | ({ readonly account: string; readonly amount?: number } & {
67
+ readonly [x: string]: Schema.Json;
68
+ })
69
+ | string;
70
+ readonly expand?: ReadonlyArray<string>;
71
+ readonly metadata?: { readonly [x: string]: string } | "";
72
+ readonly on_behalf_of?: string;
73
+ readonly radar_options?: { readonly session?: string } & {
74
+ readonly [x: string]: Schema.Json;
75
+ };
76
+ readonly receipt_email?: string;
77
+ readonly shipping?: {
78
+ readonly address: {
79
+ readonly city?: string;
80
+ readonly country?: string;
81
+ readonly line1?: string;
82
+ readonly line2?: string;
83
+ readonly postal_code?: string;
84
+ readonly state?: string;
85
+ } & { readonly [x: string]: Schema.Json };
86
+ readonly carrier?: string;
87
+ readonly name: string;
88
+ readonly phone?: string;
89
+ readonly tracking_number?: string;
90
+ } & { readonly [x: string]: Schema.Json };
91
+ readonly source?: string;
92
+ readonly statement_descriptor?: string;
93
+ readonly statement_descriptor_suffix?: string;
94
+ readonly transfer_data?: {
95
+ readonly amount?: number;
96
+ readonly description?: string;
97
+ readonly destination: string;
98
+ } & { readonly [x: string]: Schema.Json };
99
+ readonly transfer_group?: string;
100
+ };
101
+ export type PostChargesOutput = Stripecharge;
102
+ export type PostChargesError = Stripeerror;
103
+ export type GetChargesSearchInput = {
104
+ readonly expand?: ReadonlyArray<string>;
105
+ readonly limit?: number;
106
+ readonly page?: string;
107
+ readonly query: string;
108
+ };
109
+ export type GetChargesSearchOutput = {
110
+ readonly data: ReadonlyArray<Stripecharge>;
111
+ readonly has_more: boolean;
112
+ readonly next_page?: string | null;
113
+ readonly object: "search_result";
114
+ readonly total_count?: number;
115
+ readonly url: string;
116
+ } & { readonly [x: string]: Schema.Json };
117
+ export type GetChargesSearchError = Stripeerror;
118
+ export type GetChargesChargeInput = {
119
+ readonly charge: string;
120
+ readonly expand?: ReadonlyArray<string>;
121
+ };
122
+ export type GetChargesChargeOutput = Stripecharge;
123
+ export type GetChargesChargeError = Stripeerror;
124
+ export type PostChargesChargeInput = {
125
+ readonly customer?: string;
126
+ readonly description?: string;
127
+ readonly expand?: ReadonlyArray<string>;
128
+ readonly fraud_details?: {
129
+ readonly user_report: "" | "fraudulent" | "safe";
130
+ } & { readonly [x: string]: Schema.Json };
131
+ readonly metadata?: { readonly [x: string]: string } | "";
132
+ readonly receipt_email?: string;
133
+ readonly shipping?: {
134
+ readonly address: {
135
+ readonly city?: string;
136
+ readonly country?: string;
137
+ readonly line1?: string;
138
+ readonly line2?: string;
139
+ readonly postal_code?: string;
140
+ readonly state?: string;
141
+ } & { readonly [x: string]: Schema.Json };
142
+ readonly carrier?: string;
143
+ readonly name: string;
144
+ readonly phone?: string;
145
+ readonly tracking_number?: string;
146
+ } & { readonly [x: string]: Schema.Json };
147
+ readonly transfer_group?: string;
148
+ readonly charge: string;
149
+ };
150
+ export type PostChargesChargeOutput = Stripecharge;
151
+ export type PostChargesChargeError = Stripeerror;
152
+ export type PostChargesChargeCaptureInput = {
153
+ readonly amount?: number;
154
+ readonly application_fee?: number;
155
+ readonly application_fee_amount?: number;
156
+ readonly expand?: ReadonlyArray<string>;
157
+ readonly receipt_email?: string;
158
+ readonly statement_descriptor?: string;
159
+ readonly statement_descriptor_suffix?: string;
160
+ readonly transfer_data?: { readonly amount?: number } & {
161
+ readonly [x: string]: Schema.Json;
162
+ };
163
+ readonly transfer_group?: string;
164
+ readonly charge: string;
165
+ };
166
+ export type PostChargesChargeCaptureOutput = Stripecharge;
167
+ export type PostChargesChargeCaptureError = Stripeerror;
168
+ export type GetChargesChargeDisputeInput = {
169
+ readonly charge: string;
170
+ readonly expand?: ReadonlyArray<string>;
171
+ };
172
+ export type GetChargesChargeDisputeOutput = Stripedispute;
173
+ export type GetChargesChargeDisputeError = Stripeerror;
174
+ export type PostChargesChargeDisputeInput = {
175
+ readonly evidence?: {
176
+ readonly access_activity_log?: string;
177
+ readonly appeal?:
178
+ | ({
179
+ readonly card?:
180
+ | ({
181
+ readonly reason_for_filing?: string | "";
182
+ readonly supporting_files?: ReadonlyArray<string> | "";
183
+ } & { readonly [x: string]: Schema.Json })
184
+ | "";
185
+ } & { readonly [x: string]: Schema.Json })
186
+ | "";
187
+ readonly billing_address?: string;
188
+ readonly cancellation_policy?: string;
189
+ readonly cancellation_policy_disclosure?: string;
190
+ readonly cancellation_rebuttal?: string;
191
+ readonly customer_communication?: string;
192
+ readonly customer_email_address?: string;
193
+ readonly customer_name?: string;
194
+ readonly customer_purchase_ip?: string;
195
+ readonly customer_signature?: string;
196
+ readonly duplicate_charge_documentation?: string;
197
+ readonly duplicate_charge_explanation?: string;
198
+ readonly duplicate_charge_id?: string;
199
+ readonly enhanced_evidence?:
200
+ | ({
201
+ readonly mastercard_compliance?: {
202
+ readonly fee_acknowledged?: boolean;
203
+ } & { readonly [x: string]: Schema.Json };
204
+ readonly visa_compelling_evidence_3?: {
205
+ readonly disputed_transaction?: {
206
+ readonly customer_account_id?: string | "";
207
+ readonly customer_device_fingerprint?: string | "";
208
+ readonly customer_device_id?: string | "";
209
+ readonly customer_email_address?: string | "";
210
+ readonly customer_purchase_ip?: string | "";
211
+ readonly merchandise_or_services?: "merchandise" | "services";
212
+ readonly product_description?: string | "";
213
+ readonly shipping_address?: {
214
+ readonly city?: string | "";
215
+ readonly country?: string | "";
216
+ readonly line1?: string | "";
217
+ readonly line2?: string | "";
218
+ readonly postal_code?: string | "";
219
+ readonly state?: string | "";
220
+ } & { readonly [x: string]: Schema.Json };
221
+ } & { readonly [x: string]: Schema.Json };
222
+ readonly prior_undisputed_transactions?: ReadonlyArray<
223
+ {
224
+ readonly charge: string;
225
+ readonly customer_account_id?: string | "";
226
+ readonly customer_device_fingerprint?: string | "";
227
+ readonly customer_device_id?: string | "";
228
+ readonly customer_email_address?: string | "";
229
+ readonly customer_purchase_ip?: string | "";
230
+ readonly product_description?: string | "";
231
+ readonly shipping_address?: {
232
+ readonly city?: string | "";
233
+ readonly country?: string | "";
234
+ readonly line1?: string | "";
235
+ readonly line2?: string | "";
236
+ readonly postal_code?: string | "";
237
+ readonly state?: string | "";
238
+ } & { readonly [x: string]: Schema.Json };
239
+ } & { readonly [x: string]: Schema.Json }
240
+ >;
241
+ } & { readonly [x: string]: Schema.Json };
242
+ readonly visa_compliance?: { readonly fee_acknowledged?: boolean } & {
243
+ readonly [x: string]: Schema.Json;
244
+ };
245
+ } & { readonly [x: string]: Schema.Json })
246
+ | "";
247
+ readonly product_description?: string;
248
+ readonly receipt?: string;
249
+ readonly refund_policy?: string;
250
+ readonly refund_policy_disclosure?: string;
251
+ readonly refund_refusal_explanation?: string;
252
+ readonly service_date?: string;
253
+ readonly service_documentation?: string;
254
+ readonly shipping_address?: string;
255
+ readonly shipping_carrier?: string;
256
+ readonly shipping_date?: string;
257
+ readonly shipping_documentation?: string;
258
+ readonly shipping_tracking_number?: string;
259
+ readonly uncategorized_file?: string;
260
+ readonly uncategorized_text?: string;
261
+ } & { readonly [x: string]: Schema.Json };
262
+ readonly expand?: ReadonlyArray<string>;
263
+ readonly intended_submission_method?:
264
+ | "manual"
265
+ | "prefer_manual"
266
+ | "prefer_smart_disputes"
267
+ | "smart_disputes";
268
+ readonly metadata?: { readonly [x: string]: string } | "";
269
+ readonly submit?: boolean;
270
+ readonly charge: string;
271
+ };
272
+ export type PostChargesChargeDisputeOutput = Stripedispute;
273
+ export type PostChargesChargeDisputeError = Stripeerror;
274
+ export type PostChargesChargeDisputeCloseInput = {
275
+ readonly expand?: ReadonlyArray<string>;
276
+ readonly charge: string;
277
+ };
278
+ export type PostChargesChargeDisputeCloseOutput = Stripedispute;
279
+ export type PostChargesChargeDisputeCloseError = Stripeerror;
280
+ export type PostChargesChargeRefundInput = {
281
+ readonly amount?: number;
282
+ readonly expand?: ReadonlyArray<string>;
283
+ readonly instructions_email?: string;
284
+ readonly metadata?: { readonly [x: string]: string } | "";
285
+ readonly payment_intent?: string;
286
+ readonly reason?: "duplicate" | "fraudulent" | "requested_by_customer";
287
+ readonly refund_application_fee?: boolean;
288
+ readonly reverse_transfer?: boolean;
289
+ readonly charge: string;
290
+ };
291
+ export type PostChargesChargeRefundOutput = Stripecharge;
292
+ export type PostChargesChargeRefundError = Stripeerror;
293
+ export type GetChargesChargeRefundsInput = {
294
+ readonly charge: string;
295
+ readonly ending_before?: string;
296
+ readonly expand?: ReadonlyArray<string>;
297
+ readonly limit?: number;
298
+ readonly starting_after?: string;
299
+ };
300
+ export type GetChargesChargeRefundsOutput = {
301
+ readonly data: ReadonlyArray<Striperefund>;
302
+ readonly has_more: boolean;
303
+ readonly object: "list";
304
+ readonly url: string;
305
+ } & { readonly [x: string]: Schema.Json };
306
+ export type GetChargesChargeRefundsError = Stripeerror;
307
+ export type PostChargesChargeRefundsInput = {
308
+ readonly amount?: number;
309
+ readonly currency?: string;
310
+ readonly customer?: string;
311
+ readonly expand?: ReadonlyArray<string>;
312
+ readonly instructions_email?: string;
313
+ readonly metadata?: { readonly [x: string]: string } | "";
314
+ readonly origin?: "customer_balance";
315
+ readonly payment_intent?: string;
316
+ readonly reason?: "duplicate" | "fraudulent" | "requested_by_customer";
317
+ readonly refund_application_fee?: boolean;
318
+ readonly reverse_transfer?: boolean;
319
+ readonly charge: string;
320
+ };
321
+ export type PostChargesChargeRefundsOutput = Striperefund;
322
+ export type PostChargesChargeRefundsError = Stripeerror;
323
+ export type GetChargesChargeRefundsRefundInput = {
324
+ readonly charge: string;
325
+ readonly expand?: ReadonlyArray<string>;
326
+ readonly refund: string;
327
+ };
328
+ export type GetChargesChargeRefundsRefundOutput = Striperefund;
329
+ export type GetChargesChargeRefundsRefundError = Stripeerror;
330
+ export type PostChargesChargeRefundsRefundInput = {
331
+ readonly expand?: ReadonlyArray<string>;
332
+ readonly metadata?: { readonly [x: string]: string } | "";
333
+ readonly charge: string;
334
+ readonly refund: string;
335
+ };
336
+ export type PostChargesChargeRefundsRefundOutput = Striperefund;
337
+ export type PostChargesChargeRefundsRefundError = Stripeerror;
338
+
339
+ export const GetChargesInput = Schema.Struct({
340
+ created: Schema.optionalKey(
341
+ Schema.Union([
342
+ Schema.StructWithRest(
343
+ Schema.Struct({
344
+ gt: Schema.optionalKey(Schema.Int),
345
+ gte: Schema.optionalKey(Schema.Int),
346
+ lt: Schema.optionalKey(Schema.Int),
347
+ lte: Schema.optionalKey(Schema.Int),
348
+ }),
349
+ [
350
+ Schema.Record(
351
+ Schema.String,
352
+ Schema.Json.annotate({ expected: "JSON value" }),
353
+ ),
354
+ ],
355
+ ).annotate({ title: "range_query_specs" }),
356
+ Schema.Int,
357
+ ]),
358
+ ),
359
+ customer: Schema.optionalKey(
360
+ Schema.String.check(
361
+ Schema.isMaxCodePoints(5000).annotate({
362
+ expected: "a string with at most 5000 code points",
363
+ }),
364
+ ),
365
+ ),
366
+ ending_before: Schema.optionalKey(Schema.String),
367
+ expand: Schema.optionalKey(
368
+ Schema.Array(
369
+ Schema.String.check(
370
+ Schema.isMaxCodePoints(5000).annotate({
371
+ expected: "a string with at most 5000 code points",
372
+ }),
373
+ ),
374
+ ),
375
+ ),
376
+ limit: Schema.optionalKey(Schema.Int),
377
+ payment_intent: Schema.optionalKey(
378
+ Schema.String.check(
379
+ Schema.isMaxCodePoints(5000).annotate({
380
+ expected: "a string with at most 5000 code points",
381
+ }),
382
+ ),
383
+ ),
384
+ starting_after: Schema.optionalKey(Schema.String),
385
+ transfer_group: Schema.optionalKey(
386
+ Schema.String.check(
387
+ Schema.isMaxCodePoints(5000).annotate({
388
+ expected: "a string with at most 5000 code points",
389
+ }),
390
+ ),
391
+ ),
392
+ });
393
+ export const GetChargesOutput = Schema.StructWithRest(
394
+ Schema.Struct({
395
+ data: Schema.Array(Stripecharge),
396
+ has_more: Schema.Boolean.annotate({
397
+ description:
398
+ "True if this list has another page of items after this one that can be fetched.",
399
+ }),
400
+ object: Schema.Literal("list").annotate({
401
+ description:
402
+ "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
403
+ }),
404
+ url: Schema.String.annotate({
405
+ description: "The URL where this list can be accessed.",
406
+ })
407
+ .check(
408
+ Schema.isMaxCodePoints(5000).annotate({
409
+ expected: "a string with at most 5000 code points",
410
+ }),
411
+ )
412
+ .check(
413
+ Schema.isPattern(
414
+ new globalThis.RegExp("^\\/v1\\/charges", "u"),
415
+ ).annotate({
416
+ expected: "a string matching the RegExp ^\\/v1\\/charges",
417
+ }),
418
+ ),
419
+ }),
420
+ [
421
+ Schema.Record(
422
+ Schema.String,
423
+ Schema.Json.annotate({ expected: "JSON value" }),
424
+ ),
425
+ ],
426
+ ).annotate({ title: "ChargeList", description: "" });
427
+ export const GetChargesError = Stripeerror;
428
+ export const PostChargesInput = Schema.Struct({
429
+ amount: Schema.optionalKey(
430
+ Schema.Number.annotate({
431
+ description:
432
+ "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).",
433
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
434
+ ),
435
+ application_fee: Schema.optionalKey(Schema.Int),
436
+ application_fee_amount: Schema.optionalKey(
437
+ Schema.Number.annotate({
438
+ description:
439
+ "A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/connect/direct-charges#collect-fees).",
440
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
441
+ ),
442
+ capture: Schema.optionalKey(
443
+ Schema.Boolean.annotate({
444
+ description:
445
+ "Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://docs.stripe.com/api#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://docs.stripe.com/charges/placing-a-hold) documentation.",
446
+ }),
447
+ ),
448
+ card: Schema.optionalKey(
449
+ Schema.Union([
450
+ Schema.StructWithRest(
451
+ Schema.Struct({
452
+ address_city: Schema.optionalKey(
453
+ Schema.String.check(
454
+ Schema.isMaxCodePoints(5000).annotate({
455
+ expected: "a string with at most 5000 code points",
456
+ }),
457
+ ),
458
+ ),
459
+ address_country: Schema.optionalKey(
460
+ Schema.String.check(
461
+ Schema.isMaxCodePoints(5000).annotate({
462
+ expected: "a string with at most 5000 code points",
463
+ }),
464
+ ),
465
+ ),
466
+ address_line1: Schema.optionalKey(
467
+ Schema.String.check(
468
+ Schema.isMaxCodePoints(5000).annotate({
469
+ expected: "a string with at most 5000 code points",
470
+ }),
471
+ ),
472
+ ),
473
+ address_line2: Schema.optionalKey(
474
+ Schema.String.check(
475
+ Schema.isMaxCodePoints(5000).annotate({
476
+ expected: "a string with at most 5000 code points",
477
+ }),
478
+ ),
479
+ ),
480
+ address_state: Schema.optionalKey(
481
+ Schema.String.check(
482
+ Schema.isMaxCodePoints(5000).annotate({
483
+ expected: "a string with at most 5000 code points",
484
+ }),
485
+ ),
486
+ ),
487
+ address_zip: Schema.optionalKey(
488
+ Schema.String.check(
489
+ Schema.isMaxCodePoints(5000).annotate({
490
+ expected: "a string with at most 5000 code points",
491
+ }),
492
+ ),
493
+ ),
494
+ cvc: Schema.optionalKey(
495
+ Schema.String.check(
496
+ Schema.isMaxCodePoints(5000).annotate({
497
+ expected: "a string with at most 5000 code points",
498
+ }),
499
+ ),
500
+ ),
501
+ encrypted: Schema.optionalKey(
502
+ Schema.String.check(
503
+ Schema.isMaxCodePoints(5000).annotate({
504
+ expected: "a string with at most 5000 code points",
505
+ }),
506
+ ),
507
+ ),
508
+ exp_month: Schema.Int,
509
+ exp_year: Schema.Int,
510
+ metadata: Schema.optionalKey(
511
+ Schema.Record(Schema.String, Schema.String),
512
+ ),
513
+ name: Schema.optionalKey(
514
+ Schema.String.check(
515
+ Schema.isMaxCodePoints(5000).annotate({
516
+ expected: "a string with at most 5000 code points",
517
+ }),
518
+ ),
519
+ ),
520
+ network_token: Schema.optionalKey(
521
+ Schema.StructWithRest(
522
+ Schema.Struct({
523
+ number: Schema.optionalKey(
524
+ Schema.String.check(
525
+ Schema.isMaxCodePoints(5000).annotate({
526
+ expected: "a string with at most 5000 code points",
527
+ }),
528
+ ),
529
+ ),
530
+ }),
531
+ [
532
+ Schema.Record(
533
+ Schema.String,
534
+ Schema.Json.annotate({ expected: "JSON value" }),
535
+ ),
536
+ ],
537
+ ).annotate({ title: "source_deprecated_card_network_token" }),
538
+ ),
539
+ number: Schema.String.check(
540
+ Schema.isMaxCodePoints(5000).annotate({
541
+ expected: "a string with at most 5000 code points",
542
+ }),
543
+ ),
544
+ object: Schema.optionalKey(Schema.Literal("card")),
545
+ swipe_data: Schema.optionalKey(
546
+ Schema.String.check(
547
+ Schema.isMaxCodePoints(5000).annotate({
548
+ expected: "a string with at most 5000 code points",
549
+ }),
550
+ ),
551
+ ),
552
+ }),
553
+ [
554
+ Schema.Record(
555
+ Schema.String,
556
+ Schema.Json.annotate({ expected: "JSON value" }),
557
+ ),
558
+ ],
559
+ ).annotate({ title: "customer_payment_source_card" }),
560
+ Schema.String.check(
561
+ Schema.isMaxCodePoints(5000).annotate({
562
+ expected: "a string with at most 5000 code points",
563
+ }),
564
+ ),
565
+ ]).annotate({
566
+ description:
567
+ "A token, like the ones returned by [Stripe.js](https://stripe.com/docs/js).",
568
+ }),
569
+ ),
570
+ currency: Schema.optionalKey(
571
+ Schema.String.annotate({
572
+ description:
573
+ "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).",
574
+ format: "currency",
575
+ }),
576
+ ),
577
+ customer: Schema.optionalKey(
578
+ Schema.String.annotate({
579
+ description:
580
+ "The ID of an existing customer that will be charged in this request.",
581
+ }).check(
582
+ Schema.isMaxCodePoints(500).annotate({
583
+ expected: "a string with at most 500 code points",
584
+ }),
585
+ ),
586
+ ),
587
+ description: Schema.optionalKey(
588
+ Schema.String.annotate({
589
+ description:
590
+ "An arbitrary string which you can attach to a `Charge` object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.",
591
+ }).check(
592
+ Schema.isMaxCodePoints(40000).annotate({
593
+ expected: "a string with at most 40000 code points",
594
+ }),
595
+ ),
596
+ ),
597
+ destination: Schema.optionalKey(
598
+ Schema.Union([
599
+ Schema.StructWithRest(
600
+ Schema.Struct({
601
+ account: Schema.String.check(
602
+ Schema.isMaxCodePoints(5000).annotate({
603
+ expected: "a string with at most 5000 code points",
604
+ }),
605
+ ),
606
+ amount: Schema.optionalKey(Schema.Int),
607
+ }),
608
+ [
609
+ Schema.Record(
610
+ Schema.String,
611
+ Schema.Json.annotate({ expected: "JSON value" }),
612
+ ),
613
+ ],
614
+ ).annotate({ title: "destination_specs" }),
615
+ Schema.String,
616
+ ]),
617
+ ),
618
+ expand: Schema.optionalKey(
619
+ Schema.Array(
620
+ Schema.String.check(
621
+ Schema.isMaxCodePoints(5000).annotate({
622
+ expected: "a string with at most 5000 code points",
623
+ }),
624
+ ),
625
+ ).annotate({
626
+ description: "Specifies which fields in the response should be expanded.",
627
+ }),
628
+ ),
629
+ metadata: Schema.optionalKey(
630
+ Schema.Union([
631
+ Schema.Record(Schema.String, Schema.String),
632
+ Schema.Literal(""),
633
+ ]).annotate({
634
+ description:
635
+ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
636
+ }),
637
+ ),
638
+ on_behalf_of: Schema.optionalKey(
639
+ Schema.String.annotate({
640
+ description:
641
+ "The Stripe account ID for which these funds are intended. You can specify the business of record as the connected account using the `on_behalf_of` attribute on the charge. For details, see [Creating Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant).",
642
+ }).check(
643
+ Schema.isMaxCodePoints(5000).annotate({
644
+ expected: "a string with at most 5000 code points",
645
+ }),
646
+ ),
647
+ ),
648
+ radar_options: Schema.optionalKey(
649
+ Schema.StructWithRest(
650
+ Schema.Struct({
651
+ session: Schema.optionalKey(
652
+ Schema.String.check(
653
+ Schema.isMaxCodePoints(5000).annotate({
654
+ expected: "a string with at most 5000 code points",
655
+ }),
656
+ ),
657
+ ),
658
+ }),
659
+ [
660
+ Schema.Record(
661
+ Schema.String,
662
+ Schema.Json.annotate({ expected: "JSON value" }),
663
+ ),
664
+ ],
665
+ ).annotate({
666
+ title: "radar_options_with_hidden_options",
667
+ description:
668
+ "Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.",
669
+ }),
670
+ ),
671
+ receipt_email: Schema.optionalKey(
672
+ Schema.String.annotate({
673
+ description:
674
+ "The email address to which this charge's [receipt](https://docs.stripe.com/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and receipts are only sent for payments in live mode. If this charge is for a [Customer](https://docs.stripe.com/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).",
675
+ }).check(
676
+ Schema.isMaxCodePoints(800).annotate({
677
+ expected: "a string with at most 800 code points",
678
+ }),
679
+ ),
680
+ ),
681
+ shipping: Schema.optionalKey(
682
+ Schema.StructWithRest(
683
+ Schema.Struct({
684
+ address: Schema.StructWithRest(
685
+ Schema.Struct({
686
+ city: Schema.optionalKey(
687
+ Schema.String.check(
688
+ Schema.isMaxCodePoints(5000).annotate({
689
+ expected: "a string with at most 5000 code points",
690
+ }),
691
+ ),
692
+ ),
693
+ country: Schema.optionalKey(
694
+ Schema.String.check(
695
+ Schema.isMaxCodePoints(5000).annotate({
696
+ expected: "a string with at most 5000 code points",
697
+ }),
698
+ ),
699
+ ),
700
+ line1: Schema.optionalKey(
701
+ Schema.String.check(
702
+ Schema.isMaxCodePoints(5000).annotate({
703
+ expected: "a string with at most 5000 code points",
704
+ }),
705
+ ),
706
+ ),
707
+ line2: Schema.optionalKey(
708
+ Schema.String.check(
709
+ Schema.isMaxCodePoints(5000).annotate({
710
+ expected: "a string with at most 5000 code points",
711
+ }),
712
+ ),
713
+ ),
714
+ postal_code: Schema.optionalKey(
715
+ Schema.String.check(
716
+ Schema.isMaxCodePoints(5000).annotate({
717
+ expected: "a string with at most 5000 code points",
718
+ }),
719
+ ),
720
+ ),
721
+ state: Schema.optionalKey(
722
+ Schema.String.check(
723
+ Schema.isMaxCodePoints(5000).annotate({
724
+ expected: "a string with at most 5000 code points",
725
+ }),
726
+ ),
727
+ ),
728
+ }),
729
+ [
730
+ Schema.Record(
731
+ Schema.String,
732
+ Schema.Json.annotate({ expected: "JSON value" }),
733
+ ),
734
+ ],
735
+ ).annotate({ title: "optional_fields_address" }),
736
+ carrier: Schema.optionalKey(
737
+ Schema.String.check(
738
+ Schema.isMaxCodePoints(5000).annotate({
739
+ expected: "a string with at most 5000 code points",
740
+ }),
741
+ ),
742
+ ),
743
+ name: Schema.String.check(
744
+ Schema.isMaxCodePoints(5000).annotate({
745
+ expected: "a string with at most 5000 code points",
746
+ }),
747
+ ),
748
+ phone: Schema.optionalKey(
749
+ Schema.String.check(
750
+ Schema.isMaxCodePoints(5000).annotate({
751
+ expected: "a string with at most 5000 code points",
752
+ }),
753
+ ),
754
+ ),
755
+ tracking_number: Schema.optionalKey(
756
+ Schema.String.check(
757
+ Schema.isMaxCodePoints(5000).annotate({
758
+ expected: "a string with at most 5000 code points",
759
+ }),
760
+ ),
761
+ ),
762
+ }),
763
+ [
764
+ Schema.Record(
765
+ Schema.String,
766
+ Schema.Json.annotate({ expected: "JSON value" }),
767
+ ),
768
+ ],
769
+ ).annotate({
770
+ title: "optional_fields_shipping",
771
+ description:
772
+ "Shipping information for the charge. Helps prevent fraud on charges for physical goods.",
773
+ }),
774
+ ),
775
+ source: Schema.optionalKey(
776
+ Schema.String.annotate({
777
+ description:
778
+ "A payment source to be charged. This can be the ID of a [card](https://docs.stripe.com/api#cards) (i.e., credit or debit card), a [bank account](https://docs.stripe.com/api#bank_accounts), a [source](https://docs.stripe.com/api#sources), a [token](https://docs.stripe.com/api#tokens), or a [connected account](https://docs.stripe.com/connect/account-debits#charging-a-connected-account). For certain sources---namely, [cards](https://docs.stripe.com/api#cards), [bank accounts](https://docs.stripe.com/api#bank_accounts), and attached [sources](https://docs.stripe.com/api#sources)---you must also pass the ID of the associated customer.",
779
+ }).check(
780
+ Schema.isMaxCodePoints(5000).annotate({
781
+ expected: "a string with at most 5000 code points",
782
+ }),
783
+ ),
784
+ ),
785
+ statement_descriptor: Schema.optionalKey(
786
+ Schema.String.annotate({
787
+ description:
788
+ "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.",
789
+ }).check(
790
+ Schema.isMaxCodePoints(22).annotate({
791
+ expected: "a string with at most 22 code points",
792
+ }),
793
+ ),
794
+ ),
795
+ statement_descriptor_suffix: Schema.optionalKey(
796
+ Schema.String.annotate({
797
+ description:
798
+ "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.",
799
+ }).check(
800
+ Schema.isMaxCodePoints(22).annotate({
801
+ expected: "a string with at most 22 code points",
802
+ }),
803
+ ),
804
+ ),
805
+ transfer_data: Schema.optionalKey(
806
+ Schema.StructWithRest(
807
+ Schema.Struct({
808
+ amount: Schema.optionalKey(Schema.Int),
809
+ description: Schema.optionalKey(
810
+ Schema.String.check(
811
+ Schema.isMaxCodePoints(5000).annotate({
812
+ expected: "a string with at most 5000 code points",
813
+ }),
814
+ ),
815
+ ),
816
+ destination: Schema.String.check(
817
+ Schema.isMaxCodePoints(5000).annotate({
818
+ expected: "a string with at most 5000 code points",
819
+ }),
820
+ ),
821
+ }),
822
+ [
823
+ Schema.Record(
824
+ Schema.String,
825
+ Schema.Json.annotate({ expected: "JSON value" }),
826
+ ),
827
+ ],
828
+ ).annotate({
829
+ title: "transfer_data_specs",
830
+ description:
831
+ "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.",
832
+ }),
833
+ ),
834
+ transfer_group: Schema.optionalKey(
835
+ Schema.String.annotate({
836
+ description:
837
+ "A string that identifies this transaction as part of a group. For details, see [Grouping transactions](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options).",
838
+ }),
839
+ ),
840
+ });
841
+ export const PostChargesOutput = Stripecharge;
842
+ export const PostChargesError = Stripeerror;
843
+ export const GetChargesSearchInput = Schema.Struct({
844
+ expand: Schema.optionalKey(
845
+ Schema.Array(
846
+ Schema.String.check(
847
+ Schema.isMaxCodePoints(5000).annotate({
848
+ expected: "a string with at most 5000 code points",
849
+ }),
850
+ ),
851
+ ),
852
+ ),
853
+ limit: Schema.optionalKey(Schema.Int),
854
+ page: Schema.optionalKey(
855
+ Schema.String.check(
856
+ Schema.isMaxCodePoints(5000).annotate({
857
+ expected: "a string with at most 5000 code points",
858
+ }),
859
+ ),
860
+ ),
861
+ query: Schema.String.check(
862
+ Schema.isMaxCodePoints(5000).annotate({
863
+ expected: "a string with at most 5000 code points",
864
+ }),
865
+ ),
866
+ });
867
+ export const GetChargesSearchOutput = Schema.StructWithRest(
868
+ Schema.Struct({
869
+ data: Schema.Array(Stripecharge),
870
+ has_more: Schema.Boolean,
871
+ next_page: Schema.optionalKey(
872
+ Schema.Union([
873
+ Schema.String.check(
874
+ Schema.isMaxCodePoints(5000).annotate({
875
+ expected: "a string with at most 5000 code points",
876
+ }),
877
+ ),
878
+ Schema.Null,
879
+ ]),
880
+ ),
881
+ object: Schema.Literal("search_result").annotate({
882
+ description:
883
+ "String representing the object's type. Objects of the same type share the same value.",
884
+ }),
885
+ total_count: Schema.optionalKey(
886
+ Schema.Number.annotate({
887
+ description:
888
+ "The total number of objects that match the query, only accurate up to 10,000.",
889
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
890
+ ),
891
+ url: Schema.String.check(
892
+ Schema.isMaxCodePoints(5000).annotate({
893
+ expected: "a string with at most 5000 code points",
894
+ }),
895
+ ),
896
+ }),
897
+ [
898
+ Schema.Record(
899
+ Schema.String,
900
+ Schema.Json.annotate({ expected: "JSON value" }),
901
+ ),
902
+ ],
903
+ ).annotate({ title: "SearchResult", description: "" });
904
+ export const GetChargesSearchError = Stripeerror;
905
+ export const GetChargesChargeInput = Schema.Struct({
906
+ charge: Schema.String.check(
907
+ Schema.isMaxCodePoints(5000).annotate({
908
+ expected: "a string with at most 5000 code points",
909
+ }),
910
+ ),
911
+ expand: Schema.optionalKey(
912
+ Schema.Array(
913
+ Schema.String.check(
914
+ Schema.isMaxCodePoints(5000).annotate({
915
+ expected: "a string with at most 5000 code points",
916
+ }),
917
+ ),
918
+ ),
919
+ ),
920
+ });
921
+ export const GetChargesChargeOutput = Stripecharge;
922
+ export const GetChargesChargeError = Stripeerror;
923
+ export const PostChargesChargeInput = Schema.Struct({
924
+ customer: Schema.optionalKey(
925
+ Schema.String.annotate({
926
+ description:
927
+ "The ID of an existing customer that will be associated with this request. This field may only be updated if there is no existing associated customer with this charge.",
928
+ }).check(
929
+ Schema.isMaxCodePoints(5000).annotate({
930
+ expected: "a string with at most 5000 code points",
931
+ }),
932
+ ),
933
+ ),
934
+ description: Schema.optionalKey(
935
+ Schema.String.annotate({
936
+ description:
937
+ "An arbitrary string which you can attach to a charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.",
938
+ }).check(
939
+ Schema.isMaxCodePoints(40000).annotate({
940
+ expected: "a string with at most 40000 code points",
941
+ }),
942
+ ),
943
+ ),
944
+ expand: Schema.optionalKey(
945
+ Schema.Array(
946
+ Schema.String.check(
947
+ Schema.isMaxCodePoints(5000).annotate({
948
+ expected: "a string with at most 5000 code points",
949
+ }),
950
+ ),
951
+ ).annotate({
952
+ description: "Specifies which fields in the response should be expanded.",
953
+ }),
954
+ ),
955
+ fraud_details: Schema.optionalKey(
956
+ Schema.StructWithRest(
957
+ Schema.Struct({
958
+ user_report: Schema.Literals(["", "fraudulent", "safe"]),
959
+ }),
960
+ [
961
+ Schema.Record(
962
+ Schema.String,
963
+ Schema.Json.annotate({ expected: "JSON value" }),
964
+ ),
965
+ ],
966
+ ).annotate({
967
+ title: "fraud_details",
968
+ description:
969
+ "A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.",
970
+ }),
971
+ ),
972
+ metadata: Schema.optionalKey(
973
+ Schema.Union([
974
+ Schema.Record(Schema.String, Schema.String),
975
+ Schema.Literal(""),
976
+ ]).annotate({
977
+ description:
978
+ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
979
+ }),
980
+ ),
981
+ receipt_email: Schema.optionalKey(
982
+ Schema.String.annotate({
983
+ description:
984
+ "This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.",
985
+ }).check(
986
+ Schema.isMaxCodePoints(5000).annotate({
987
+ expected: "a string with at most 5000 code points",
988
+ }),
989
+ ),
990
+ ),
991
+ shipping: Schema.optionalKey(
992
+ Schema.StructWithRest(
993
+ Schema.Struct({
994
+ address: Schema.StructWithRest(
995
+ Schema.Struct({
996
+ city: Schema.optionalKey(
997
+ Schema.String.check(
998
+ Schema.isMaxCodePoints(5000).annotate({
999
+ expected: "a string with at most 5000 code points",
1000
+ }),
1001
+ ),
1002
+ ),
1003
+ country: Schema.optionalKey(
1004
+ Schema.String.check(
1005
+ Schema.isMaxCodePoints(5000).annotate({
1006
+ expected: "a string with at most 5000 code points",
1007
+ }),
1008
+ ),
1009
+ ),
1010
+ line1: Schema.optionalKey(
1011
+ Schema.String.check(
1012
+ Schema.isMaxCodePoints(5000).annotate({
1013
+ expected: "a string with at most 5000 code points",
1014
+ }),
1015
+ ),
1016
+ ),
1017
+ line2: Schema.optionalKey(
1018
+ Schema.String.check(
1019
+ Schema.isMaxCodePoints(5000).annotate({
1020
+ expected: "a string with at most 5000 code points",
1021
+ }),
1022
+ ),
1023
+ ),
1024
+ postal_code: Schema.optionalKey(
1025
+ Schema.String.check(
1026
+ Schema.isMaxCodePoints(5000).annotate({
1027
+ expected: "a string with at most 5000 code points",
1028
+ }),
1029
+ ),
1030
+ ),
1031
+ state: Schema.optionalKey(
1032
+ Schema.String.check(
1033
+ Schema.isMaxCodePoints(5000).annotate({
1034
+ expected: "a string with at most 5000 code points",
1035
+ }),
1036
+ ),
1037
+ ),
1038
+ }),
1039
+ [
1040
+ Schema.Record(
1041
+ Schema.String,
1042
+ Schema.Json.annotate({ expected: "JSON value" }),
1043
+ ),
1044
+ ],
1045
+ ).annotate({ title: "optional_fields_address" }),
1046
+ carrier: Schema.optionalKey(
1047
+ Schema.String.check(
1048
+ Schema.isMaxCodePoints(5000).annotate({
1049
+ expected: "a string with at most 5000 code points",
1050
+ }),
1051
+ ),
1052
+ ),
1053
+ name: Schema.String.check(
1054
+ Schema.isMaxCodePoints(5000).annotate({
1055
+ expected: "a string with at most 5000 code points",
1056
+ }),
1057
+ ),
1058
+ phone: Schema.optionalKey(
1059
+ Schema.String.check(
1060
+ Schema.isMaxCodePoints(5000).annotate({
1061
+ expected: "a string with at most 5000 code points",
1062
+ }),
1063
+ ),
1064
+ ),
1065
+ tracking_number: Schema.optionalKey(
1066
+ Schema.String.check(
1067
+ Schema.isMaxCodePoints(5000).annotate({
1068
+ expected: "a string with at most 5000 code points",
1069
+ }),
1070
+ ),
1071
+ ),
1072
+ }),
1073
+ [
1074
+ Schema.Record(
1075
+ Schema.String,
1076
+ Schema.Json.annotate({ expected: "JSON value" }),
1077
+ ),
1078
+ ],
1079
+ ).annotate({
1080
+ title: "optional_fields_shipping",
1081
+ description:
1082
+ "Shipping information for the charge. Helps prevent fraud on charges for physical goods.",
1083
+ }),
1084
+ ),
1085
+ transfer_group: Schema.optionalKey(
1086
+ Schema.String.annotate({
1087
+ description:
1088
+ "A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.",
1089
+ }),
1090
+ ),
1091
+ charge: Schema.String.check(
1092
+ Schema.isMaxCodePoints(5000).annotate({
1093
+ expected: "a string with at most 5000 code points",
1094
+ }),
1095
+ ),
1096
+ });
1097
+ export const PostChargesChargeOutput = Stripecharge;
1098
+ export const PostChargesChargeError = Stripeerror;
1099
+ export const PostChargesChargeCaptureInput = Schema.Struct({
1100
+ amount: Schema.optionalKey(
1101
+ Schema.Number.annotate({
1102
+ description:
1103
+ "The amount to capture, which must be less than or equal to the original amount.",
1104
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1105
+ ),
1106
+ application_fee: Schema.optionalKey(
1107
+ Schema.Number.annotate({
1108
+ description: "An application fee to add on to this charge.",
1109
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1110
+ ),
1111
+ application_fee_amount: Schema.optionalKey(
1112
+ Schema.Number.annotate({
1113
+ description:
1114
+ "An application fee amount to add on to this charge, which must be less than or equal to the original amount.",
1115
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1116
+ ),
1117
+ expand: Schema.optionalKey(
1118
+ Schema.Array(
1119
+ Schema.String.check(
1120
+ Schema.isMaxCodePoints(5000).annotate({
1121
+ expected: "a string with at most 5000 code points",
1122
+ }),
1123
+ ),
1124
+ ).annotate({
1125
+ description: "Specifies which fields in the response should be expanded.",
1126
+ }),
1127
+ ),
1128
+ receipt_email: Schema.optionalKey(
1129
+ Schema.String.annotate({
1130
+ description:
1131
+ "The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts are only sent for payments in live mode.",
1132
+ }).check(
1133
+ Schema.isMaxCodePoints(800).annotate({
1134
+ expected: "a string with at most 800 code points",
1135
+ }),
1136
+ ),
1137
+ ),
1138
+ statement_descriptor: Schema.optionalKey(
1139
+ Schema.String.annotate({
1140
+ description:
1141
+ "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.",
1142
+ }).check(
1143
+ Schema.isMaxCodePoints(22).annotate({
1144
+ expected: "a string with at most 22 code points",
1145
+ }),
1146
+ ),
1147
+ ),
1148
+ statement_descriptor_suffix: Schema.optionalKey(
1149
+ Schema.String.annotate({
1150
+ description:
1151
+ "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.",
1152
+ }).check(
1153
+ Schema.isMaxCodePoints(22).annotate({
1154
+ expected: "a string with at most 22 code points",
1155
+ }),
1156
+ ),
1157
+ ),
1158
+ transfer_data: Schema.optionalKey(
1159
+ Schema.StructWithRest(
1160
+ Schema.Struct({ amount: Schema.optionalKey(Schema.Int) }),
1161
+ [
1162
+ Schema.Record(
1163
+ Schema.String,
1164
+ Schema.Json.annotate({ expected: "JSON value" }),
1165
+ ),
1166
+ ],
1167
+ ).annotate({
1168
+ title: "transfer_data_specs",
1169
+ description:
1170
+ "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.",
1171
+ }),
1172
+ ),
1173
+ transfer_group: Schema.optionalKey(
1174
+ Schema.String.annotate({
1175
+ description:
1176
+ "A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details.",
1177
+ }),
1178
+ ),
1179
+ charge: Schema.String.check(
1180
+ Schema.isMaxCodePoints(5000).annotate({
1181
+ expected: "a string with at most 5000 code points",
1182
+ }),
1183
+ ),
1184
+ });
1185
+ export const PostChargesChargeCaptureOutput = Stripecharge;
1186
+ export const PostChargesChargeCaptureError = Stripeerror;
1187
+ export const GetChargesChargeDisputeInput = Schema.Struct({
1188
+ charge: Schema.String.check(
1189
+ Schema.isMaxCodePoints(5000).annotate({
1190
+ expected: "a string with at most 5000 code points",
1191
+ }),
1192
+ ),
1193
+ expand: Schema.optionalKey(
1194
+ Schema.Array(
1195
+ Schema.String.check(
1196
+ Schema.isMaxCodePoints(5000).annotate({
1197
+ expected: "a string with at most 5000 code points",
1198
+ }),
1199
+ ),
1200
+ ),
1201
+ ),
1202
+ });
1203
+ export const GetChargesChargeDisputeOutput = Stripedispute;
1204
+ export const GetChargesChargeDisputeError = Stripeerror;
1205
+ export const PostChargesChargeDisputeInput = Schema.Struct({
1206
+ evidence: Schema.optionalKey(
1207
+ Schema.StructWithRest(
1208
+ Schema.Struct({
1209
+ access_activity_log: Schema.optionalKey(
1210
+ Schema.String.check(
1211
+ Schema.isMaxCodePoints(20000).annotate({
1212
+ expected: "a string with at most 20000 code points",
1213
+ }),
1214
+ ),
1215
+ ),
1216
+ appeal: Schema.optionalKey(
1217
+ Schema.Union([
1218
+ Schema.StructWithRest(
1219
+ Schema.Struct({
1220
+ card: Schema.optionalKey(
1221
+ Schema.Union([
1222
+ Schema.StructWithRest(
1223
+ Schema.Struct({
1224
+ reason_for_filing: Schema.optionalKey(
1225
+ Schema.Union([
1226
+ Schema.String.check(
1227
+ Schema.isMaxCodePoints(20000).annotate({
1228
+ expected:
1229
+ "a string with at most 20000 code points",
1230
+ }),
1231
+ ),
1232
+ Schema.Literal(""),
1233
+ ]),
1234
+ ),
1235
+ supporting_files: Schema.optionalKey(
1236
+ Schema.Union([
1237
+ Schema.Array(Schema.String),
1238
+ Schema.Literal(""),
1239
+ ]),
1240
+ ),
1241
+ }),
1242
+ [
1243
+ Schema.Record(
1244
+ Schema.String,
1245
+ Schema.Json.annotate({ expected: "JSON value" }),
1246
+ ),
1247
+ ],
1248
+ ).annotate({ title: "appeal_evidence_card_params" }),
1249
+ Schema.Literal(""),
1250
+ ]),
1251
+ ),
1252
+ }),
1253
+ [
1254
+ Schema.Record(
1255
+ Schema.String,
1256
+ Schema.Json.annotate({ expected: "JSON value" }),
1257
+ ),
1258
+ ],
1259
+ ).annotate({ title: "appeal_evidence_params" }),
1260
+ Schema.Literal(""),
1261
+ ]),
1262
+ ),
1263
+ billing_address: Schema.optionalKey(
1264
+ Schema.String.check(
1265
+ Schema.isMaxCodePoints(5000).annotate({
1266
+ expected: "a string with at most 5000 code points",
1267
+ }),
1268
+ ),
1269
+ ),
1270
+ cancellation_policy: Schema.optionalKey(Schema.String),
1271
+ cancellation_policy_disclosure: Schema.optionalKey(
1272
+ Schema.String.check(
1273
+ Schema.isMaxCodePoints(20000).annotate({
1274
+ expected: "a string with at most 20000 code points",
1275
+ }),
1276
+ ),
1277
+ ),
1278
+ cancellation_rebuttal: Schema.optionalKey(
1279
+ Schema.String.check(
1280
+ Schema.isMaxCodePoints(20000).annotate({
1281
+ expected: "a string with at most 20000 code points",
1282
+ }),
1283
+ ),
1284
+ ),
1285
+ customer_communication: Schema.optionalKey(Schema.String),
1286
+ customer_email_address: Schema.optionalKey(
1287
+ Schema.String.check(
1288
+ Schema.isMaxCodePoints(5000).annotate({
1289
+ expected: "a string with at most 5000 code points",
1290
+ }),
1291
+ ),
1292
+ ),
1293
+ customer_name: Schema.optionalKey(
1294
+ Schema.String.check(
1295
+ Schema.isMaxCodePoints(5000).annotate({
1296
+ expected: "a string with at most 5000 code points",
1297
+ }),
1298
+ ),
1299
+ ),
1300
+ customer_purchase_ip: Schema.optionalKey(
1301
+ Schema.String.check(
1302
+ Schema.isMaxCodePoints(5000).annotate({
1303
+ expected: "a string with at most 5000 code points",
1304
+ }),
1305
+ ),
1306
+ ),
1307
+ customer_signature: Schema.optionalKey(Schema.String),
1308
+ duplicate_charge_documentation: Schema.optionalKey(Schema.String),
1309
+ duplicate_charge_explanation: Schema.optionalKey(
1310
+ Schema.String.check(
1311
+ Schema.isMaxCodePoints(20000).annotate({
1312
+ expected: "a string with at most 20000 code points",
1313
+ }),
1314
+ ),
1315
+ ),
1316
+ duplicate_charge_id: Schema.optionalKey(
1317
+ Schema.String.check(
1318
+ Schema.isMaxCodePoints(5000).annotate({
1319
+ expected: "a string with at most 5000 code points",
1320
+ }),
1321
+ ),
1322
+ ),
1323
+ enhanced_evidence: Schema.optionalKey(
1324
+ Schema.Union([
1325
+ Schema.StructWithRest(
1326
+ Schema.Struct({
1327
+ mastercard_compliance: Schema.optionalKey(
1328
+ Schema.StructWithRest(
1329
+ Schema.Struct({
1330
+ fee_acknowledged: Schema.optionalKey(Schema.Boolean),
1331
+ }),
1332
+ [
1333
+ Schema.Record(
1334
+ Schema.String,
1335
+ Schema.Json.annotate({ expected: "JSON value" }),
1336
+ ),
1337
+ ],
1338
+ ).annotate({ title: "mastercard_compliance" }),
1339
+ ),
1340
+ visa_compelling_evidence_3: Schema.optionalKey(
1341
+ Schema.StructWithRest(
1342
+ Schema.Struct({
1343
+ disputed_transaction: Schema.optionalKey(
1344
+ Schema.StructWithRest(
1345
+ Schema.Struct({
1346
+ customer_account_id: Schema.optionalKey(
1347
+ Schema.Union([
1348
+ Schema.String.check(
1349
+ Schema.isMaxCodePoints(5000).annotate({
1350
+ expected:
1351
+ "a string with at most 5000 code points",
1352
+ }),
1353
+ ),
1354
+ Schema.Literal(""),
1355
+ ]),
1356
+ ),
1357
+ customer_device_fingerprint: Schema.optionalKey(
1358
+ Schema.Union([
1359
+ Schema.String.check(
1360
+ Schema.isMaxCodePoints(5000).annotate({
1361
+ expected:
1362
+ "a string with at most 5000 code points",
1363
+ }),
1364
+ ),
1365
+ Schema.Literal(""),
1366
+ ]),
1367
+ ),
1368
+ customer_device_id: Schema.optionalKey(
1369
+ Schema.Union([
1370
+ Schema.String.check(
1371
+ Schema.isMaxCodePoints(5000).annotate({
1372
+ expected:
1373
+ "a string with at most 5000 code points",
1374
+ }),
1375
+ ),
1376
+ Schema.Literal(""),
1377
+ ]),
1378
+ ),
1379
+ customer_email_address: Schema.optionalKey(
1380
+ Schema.Union([
1381
+ Schema.String.check(
1382
+ Schema.isMaxCodePoints(5000).annotate({
1383
+ expected:
1384
+ "a string with at most 5000 code points",
1385
+ }),
1386
+ ),
1387
+ Schema.Literal(""),
1388
+ ]),
1389
+ ),
1390
+ customer_purchase_ip: Schema.optionalKey(
1391
+ Schema.Union([
1392
+ Schema.String.check(
1393
+ Schema.isMaxCodePoints(5000).annotate({
1394
+ expected:
1395
+ "a string with at most 5000 code points",
1396
+ }),
1397
+ ),
1398
+ Schema.Literal(""),
1399
+ ]),
1400
+ ),
1401
+ merchandise_or_services: Schema.optionalKey(
1402
+ Schema.Literals(["merchandise", "services"]),
1403
+ ),
1404
+ product_description: Schema.optionalKey(
1405
+ Schema.Union([
1406
+ Schema.String.check(
1407
+ Schema.isMaxCodePoints(5000).annotate({
1408
+ expected:
1409
+ "a string with at most 5000 code points",
1410
+ }),
1411
+ ),
1412
+ Schema.Literal(""),
1413
+ ]),
1414
+ ),
1415
+ shipping_address: Schema.optionalKey(
1416
+ Schema.StructWithRest(
1417
+ Schema.Struct({
1418
+ city: Schema.optionalKey(
1419
+ Schema.Union([
1420
+ Schema.String.check(
1421
+ Schema.isMaxCodePoints(5000).annotate({
1422
+ expected:
1423
+ "a string with at most 5000 code points",
1424
+ }),
1425
+ ),
1426
+ Schema.Literal(""),
1427
+ ]),
1428
+ ),
1429
+ country: Schema.optionalKey(
1430
+ Schema.Union([
1431
+ Schema.String.check(
1432
+ Schema.isMaxCodePoints(5000).annotate({
1433
+ expected:
1434
+ "a string with at most 5000 code points",
1435
+ }),
1436
+ ),
1437
+ Schema.Literal(""),
1438
+ ]),
1439
+ ),
1440
+ line1: Schema.optionalKey(
1441
+ Schema.Union([
1442
+ Schema.String.check(
1443
+ Schema.isMaxCodePoints(5000).annotate({
1444
+ expected:
1445
+ "a string with at most 5000 code points",
1446
+ }),
1447
+ ),
1448
+ Schema.Literal(""),
1449
+ ]),
1450
+ ),
1451
+ line2: Schema.optionalKey(
1452
+ Schema.Union([
1453
+ Schema.String.check(
1454
+ Schema.isMaxCodePoints(5000).annotate({
1455
+ expected:
1456
+ "a string with at most 5000 code points",
1457
+ }),
1458
+ ),
1459
+ Schema.Literal(""),
1460
+ ]),
1461
+ ),
1462
+ postal_code: Schema.optionalKey(
1463
+ Schema.Union([
1464
+ Schema.String.check(
1465
+ Schema.isMaxCodePoints(5000).annotate({
1466
+ expected:
1467
+ "a string with at most 5000 code points",
1468
+ }),
1469
+ ),
1470
+ Schema.Literal(""),
1471
+ ]),
1472
+ ),
1473
+ state: Schema.optionalKey(
1474
+ Schema.Union([
1475
+ Schema.String.check(
1476
+ Schema.isMaxCodePoints(5000).annotate({
1477
+ expected:
1478
+ "a string with at most 5000 code points",
1479
+ }),
1480
+ ),
1481
+ Schema.Literal(""),
1482
+ ]),
1483
+ ),
1484
+ }),
1485
+ [
1486
+ Schema.Record(
1487
+ Schema.String,
1488
+ Schema.Json.annotate({
1489
+ expected: "JSON value",
1490
+ }),
1491
+ ),
1492
+ ],
1493
+ ).annotate({ title: "shipping_address" }),
1494
+ ),
1495
+ }),
1496
+ [
1497
+ Schema.Record(
1498
+ Schema.String,
1499
+ Schema.Json.annotate({ expected: "JSON value" }),
1500
+ ),
1501
+ ],
1502
+ ).annotate({
1503
+ title:
1504
+ "visa_compelling_evidence3_disputed_transaction",
1505
+ }),
1506
+ ),
1507
+ prior_undisputed_transactions: Schema.optionalKey(
1508
+ Schema.Array(
1509
+ Schema.StructWithRest(
1510
+ Schema.Struct({
1511
+ charge: Schema.String.check(
1512
+ Schema.isMaxCodePoints(5000).annotate({
1513
+ expected:
1514
+ "a string with at most 5000 code points",
1515
+ }),
1516
+ ),
1517
+ customer_account_id: Schema.optionalKey(
1518
+ Schema.Union([
1519
+ Schema.String.check(
1520
+ Schema.isMaxCodePoints(5000).annotate({
1521
+ expected:
1522
+ "a string with at most 5000 code points",
1523
+ }),
1524
+ ),
1525
+ Schema.Literal(""),
1526
+ ]),
1527
+ ),
1528
+ customer_device_fingerprint: Schema.optionalKey(
1529
+ Schema.Union([
1530
+ Schema.String.check(
1531
+ Schema.isMaxCodePoints(5000).annotate({
1532
+ expected:
1533
+ "a string with at most 5000 code points",
1534
+ }),
1535
+ ),
1536
+ Schema.Literal(""),
1537
+ ]),
1538
+ ),
1539
+ customer_device_id: Schema.optionalKey(
1540
+ Schema.Union([
1541
+ Schema.String.check(
1542
+ Schema.isMaxCodePoints(5000).annotate({
1543
+ expected:
1544
+ "a string with at most 5000 code points",
1545
+ }),
1546
+ ),
1547
+ Schema.Literal(""),
1548
+ ]),
1549
+ ),
1550
+ customer_email_address: Schema.optionalKey(
1551
+ Schema.Union([
1552
+ Schema.String.check(
1553
+ Schema.isMaxCodePoints(5000).annotate({
1554
+ expected:
1555
+ "a string with at most 5000 code points",
1556
+ }),
1557
+ ),
1558
+ Schema.Literal(""),
1559
+ ]),
1560
+ ),
1561
+ customer_purchase_ip: Schema.optionalKey(
1562
+ Schema.Union([
1563
+ Schema.String.check(
1564
+ Schema.isMaxCodePoints(5000).annotate({
1565
+ expected:
1566
+ "a string with at most 5000 code points",
1567
+ }),
1568
+ ),
1569
+ Schema.Literal(""),
1570
+ ]),
1571
+ ),
1572
+ product_description: Schema.optionalKey(
1573
+ Schema.Union([
1574
+ Schema.String.check(
1575
+ Schema.isMaxCodePoints(5000).annotate({
1576
+ expected:
1577
+ "a string with at most 5000 code points",
1578
+ }),
1579
+ ),
1580
+ Schema.Literal(""),
1581
+ ]),
1582
+ ),
1583
+ shipping_address: Schema.optionalKey(
1584
+ Schema.StructWithRest(
1585
+ Schema.Struct({
1586
+ city: Schema.optionalKey(
1587
+ Schema.Union([
1588
+ Schema.String.check(
1589
+ Schema.isMaxCodePoints(5000).annotate(
1590
+ {
1591
+ expected:
1592
+ "a string with at most 5000 code points",
1593
+ },
1594
+ ),
1595
+ ),
1596
+ Schema.Literal(""),
1597
+ ]),
1598
+ ),
1599
+ country: Schema.optionalKey(
1600
+ Schema.Union([
1601
+ Schema.String.check(
1602
+ Schema.isMaxCodePoints(5000).annotate(
1603
+ {
1604
+ expected:
1605
+ "a string with at most 5000 code points",
1606
+ },
1607
+ ),
1608
+ ),
1609
+ Schema.Literal(""),
1610
+ ]),
1611
+ ),
1612
+ line1: Schema.optionalKey(
1613
+ Schema.Union([
1614
+ Schema.String.check(
1615
+ Schema.isMaxCodePoints(5000).annotate(
1616
+ {
1617
+ expected:
1618
+ "a string with at most 5000 code points",
1619
+ },
1620
+ ),
1621
+ ),
1622
+ Schema.Literal(""),
1623
+ ]),
1624
+ ),
1625
+ line2: Schema.optionalKey(
1626
+ Schema.Union([
1627
+ Schema.String.check(
1628
+ Schema.isMaxCodePoints(5000).annotate(
1629
+ {
1630
+ expected:
1631
+ "a string with at most 5000 code points",
1632
+ },
1633
+ ),
1634
+ ),
1635
+ Schema.Literal(""),
1636
+ ]),
1637
+ ),
1638
+ postal_code: Schema.optionalKey(
1639
+ Schema.Union([
1640
+ Schema.String.check(
1641
+ Schema.isMaxCodePoints(5000).annotate(
1642
+ {
1643
+ expected:
1644
+ "a string with at most 5000 code points",
1645
+ },
1646
+ ),
1647
+ ),
1648
+ Schema.Literal(""),
1649
+ ]),
1650
+ ),
1651
+ state: Schema.optionalKey(
1652
+ Schema.Union([
1653
+ Schema.String.check(
1654
+ Schema.isMaxCodePoints(5000).annotate(
1655
+ {
1656
+ expected:
1657
+ "a string with at most 5000 code points",
1658
+ },
1659
+ ),
1660
+ ),
1661
+ Schema.Literal(""),
1662
+ ]),
1663
+ ),
1664
+ }),
1665
+ [
1666
+ Schema.Record(
1667
+ Schema.String,
1668
+ Schema.Json.annotate({
1669
+ expected: "JSON value",
1670
+ }),
1671
+ ),
1672
+ ],
1673
+ ).annotate({ title: "shipping_address" }),
1674
+ ),
1675
+ }),
1676
+ [
1677
+ Schema.Record(
1678
+ Schema.String,
1679
+ Schema.Json.annotate({
1680
+ expected: "JSON value",
1681
+ }),
1682
+ ),
1683
+ ],
1684
+ ).annotate({
1685
+ title:
1686
+ "visa_compelling_evidence3_prior_undisputed_transaction",
1687
+ }),
1688
+ ),
1689
+ ),
1690
+ }),
1691
+ [
1692
+ Schema.Record(
1693
+ Schema.String,
1694
+ Schema.Json.annotate({ expected: "JSON value" }),
1695
+ ),
1696
+ ],
1697
+ ).annotate({ title: "visa_compelling_evidence3" }),
1698
+ ),
1699
+ visa_compliance: Schema.optionalKey(
1700
+ Schema.StructWithRest(
1701
+ Schema.Struct({
1702
+ fee_acknowledged: Schema.optionalKey(Schema.Boolean),
1703
+ }),
1704
+ [
1705
+ Schema.Record(
1706
+ Schema.String,
1707
+ Schema.Json.annotate({ expected: "JSON value" }),
1708
+ ),
1709
+ ],
1710
+ ).annotate({ title: "visa_compliance" }),
1711
+ ),
1712
+ }),
1713
+ [
1714
+ Schema.Record(
1715
+ Schema.String,
1716
+ Schema.Json.annotate({ expected: "JSON value" }),
1717
+ ),
1718
+ ],
1719
+ ).annotate({ title: "enhanced_evidence" }),
1720
+ Schema.Literal(""),
1721
+ ]),
1722
+ ),
1723
+ product_description: Schema.optionalKey(
1724
+ Schema.String.check(
1725
+ Schema.isMaxCodePoints(20000).annotate({
1726
+ expected: "a string with at most 20000 code points",
1727
+ }),
1728
+ ),
1729
+ ),
1730
+ receipt: Schema.optionalKey(Schema.String),
1731
+ refund_policy: Schema.optionalKey(Schema.String),
1732
+ refund_policy_disclosure: Schema.optionalKey(
1733
+ Schema.String.check(
1734
+ Schema.isMaxCodePoints(20000).annotate({
1735
+ expected: "a string with at most 20000 code points",
1736
+ }),
1737
+ ),
1738
+ ),
1739
+ refund_refusal_explanation: Schema.optionalKey(
1740
+ Schema.String.check(
1741
+ Schema.isMaxCodePoints(20000).annotate({
1742
+ expected: "a string with at most 20000 code points",
1743
+ }),
1744
+ ),
1745
+ ),
1746
+ service_date: Schema.optionalKey(
1747
+ Schema.String.check(
1748
+ Schema.isMaxCodePoints(5000).annotate({
1749
+ expected: "a string with at most 5000 code points",
1750
+ }),
1751
+ ),
1752
+ ),
1753
+ service_documentation: Schema.optionalKey(Schema.String),
1754
+ shipping_address: Schema.optionalKey(
1755
+ Schema.String.check(
1756
+ Schema.isMaxCodePoints(5000).annotate({
1757
+ expected: "a string with at most 5000 code points",
1758
+ }),
1759
+ ),
1760
+ ),
1761
+ shipping_carrier: Schema.optionalKey(
1762
+ Schema.String.check(
1763
+ Schema.isMaxCodePoints(5000).annotate({
1764
+ expected: "a string with at most 5000 code points",
1765
+ }),
1766
+ ),
1767
+ ),
1768
+ shipping_date: Schema.optionalKey(
1769
+ Schema.String.check(
1770
+ Schema.isMaxCodePoints(5000).annotate({
1771
+ expected: "a string with at most 5000 code points",
1772
+ }),
1773
+ ),
1774
+ ),
1775
+ shipping_documentation: Schema.optionalKey(Schema.String),
1776
+ shipping_tracking_number: Schema.optionalKey(
1777
+ Schema.String.check(
1778
+ Schema.isMaxCodePoints(5000).annotate({
1779
+ expected: "a string with at most 5000 code points",
1780
+ }),
1781
+ ),
1782
+ ),
1783
+ uncategorized_file: Schema.optionalKey(Schema.String),
1784
+ uncategorized_text: Schema.optionalKey(
1785
+ Schema.String.check(
1786
+ Schema.isMaxCodePoints(20000).annotate({
1787
+ expected: "a string with at most 20000 code points",
1788
+ }),
1789
+ ),
1790
+ ),
1791
+ }),
1792
+ [
1793
+ Schema.Record(
1794
+ Schema.String,
1795
+ Schema.Json.annotate({ expected: "JSON value" }),
1796
+ ),
1797
+ ],
1798
+ ).annotate({
1799
+ title: "dispute_evidence_params",
1800
+ description:
1801
+ "Evidence to upload, to respond to a dispute. Updating any field in the hash will submit all fields in the hash for review. The combined character count of all fields is limited to 150,000.",
1802
+ }),
1803
+ ),
1804
+ expand: Schema.optionalKey(
1805
+ Schema.Array(
1806
+ Schema.String.check(
1807
+ Schema.isMaxCodePoints(5000).annotate({
1808
+ expected: "a string with at most 5000 code points",
1809
+ }),
1810
+ ),
1811
+ ).annotate({
1812
+ description: "Specifies which fields in the response should be expanded.",
1813
+ }),
1814
+ ),
1815
+ intended_submission_method: Schema.optionalKey(
1816
+ Schema.Literals([
1817
+ "manual",
1818
+ "prefer_manual",
1819
+ "prefer_smart_disputes",
1820
+ "smart_disputes",
1821
+ ]).annotate({ description: "Intended submission method for the dispute." }),
1822
+ ),
1823
+ metadata: Schema.optionalKey(
1824
+ Schema.Union([
1825
+ Schema.Record(Schema.String, Schema.String),
1826
+ Schema.Literal(""),
1827
+ ]).annotate({
1828
+ description:
1829
+ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
1830
+ }),
1831
+ ),
1832
+ submit: Schema.optionalKey(
1833
+ Schema.Boolean.annotate({
1834
+ description:
1835
+ "Whether to immediately submit evidence to the bank. If `false`, evidence is staged on the dispute. Staged evidence is visible in the API and Dashboard, and can be submitted to the bank by making another request with this attribute set to `true` (the default).",
1836
+ }),
1837
+ ),
1838
+ charge: Schema.String.check(
1839
+ Schema.isMaxCodePoints(5000).annotate({
1840
+ expected: "a string with at most 5000 code points",
1841
+ }),
1842
+ ),
1843
+ });
1844
+ export const PostChargesChargeDisputeOutput = Stripedispute;
1845
+ export const PostChargesChargeDisputeError = Stripeerror;
1846
+ export const PostChargesChargeDisputeCloseInput = Schema.Struct({
1847
+ expand: Schema.optionalKey(
1848
+ Schema.Array(
1849
+ Schema.String.check(
1850
+ Schema.isMaxCodePoints(5000).annotate({
1851
+ expected: "a string with at most 5000 code points",
1852
+ }),
1853
+ ),
1854
+ ).annotate({
1855
+ description: "Specifies which fields in the response should be expanded.",
1856
+ }),
1857
+ ),
1858
+ charge: Schema.String.check(
1859
+ Schema.isMaxCodePoints(5000).annotate({
1860
+ expected: "a string with at most 5000 code points",
1861
+ }),
1862
+ ),
1863
+ });
1864
+ export const PostChargesChargeDisputeCloseOutput = Stripedispute;
1865
+ export const PostChargesChargeDisputeCloseError = Stripeerror;
1866
+ export const PostChargesChargeRefundInput = Schema.Struct({
1867
+ amount: Schema.optionalKey(
1868
+ Schema.Number.annotate({
1869
+ description:
1870
+ "A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) representing how much of this charge to refund. Can refund only up to the remaining, unrefunded amount of the charge.",
1871
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1872
+ ),
1873
+ expand: Schema.optionalKey(
1874
+ Schema.Array(
1875
+ Schema.String.check(
1876
+ Schema.isMaxCodePoints(5000).annotate({
1877
+ expected: "a string with at most 5000 code points",
1878
+ }),
1879
+ ),
1880
+ ).annotate({
1881
+ description: "Specifies which fields in the response should be expanded.",
1882
+ }),
1883
+ ),
1884
+ instructions_email: Schema.optionalKey(
1885
+ Schema.String.annotate({
1886
+ description:
1887
+ "For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions.",
1888
+ }).check(
1889
+ Schema.isMaxCodePoints(800).annotate({
1890
+ expected: "a string with at most 800 code points",
1891
+ }),
1892
+ ),
1893
+ ),
1894
+ metadata: Schema.optionalKey(
1895
+ Schema.Union([
1896
+ Schema.Record(Schema.String, Schema.String),
1897
+ Schema.Literal(""),
1898
+ ]).annotate({
1899
+ description:
1900
+ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
1901
+ }),
1902
+ ),
1903
+ payment_intent: Schema.optionalKey(
1904
+ Schema.String.annotate({
1905
+ description: "The identifier of the PaymentIntent to refund.",
1906
+ }).check(
1907
+ Schema.isMaxCodePoints(5000).annotate({
1908
+ expected: "a string with at most 5000 code points",
1909
+ }),
1910
+ ),
1911
+ ),
1912
+ reason: Schema.optionalKey(
1913
+ Schema.Literals([
1914
+ "duplicate",
1915
+ "fraudulent",
1916
+ "requested_by_customer",
1917
+ ]).annotate({
1918
+ description:
1919
+ "String indicating the reason for the refund. If set, possible values are `duplicate`, `fraudulent`, and `requested_by_customer`. If you believe the charge to be fraudulent, specifying `fraudulent` as the reason will add the associated card and email to your [block lists](https://docs.stripe.com/radar/lists), and will also help us improve our fraud detection algorithms.",
1920
+ }),
1921
+ ),
1922
+ refund_application_fee: Schema.optionalKey(
1923
+ Schema.Boolean.annotate({
1924
+ description:
1925
+ "Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.",
1926
+ }),
1927
+ ),
1928
+ reverse_transfer: Schema.optionalKey(
1929
+ Schema.Boolean.annotate({
1930
+ description:
1931
+ "Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).<br><br>A transfer can be reversed only by the application that created the charge.",
1932
+ }),
1933
+ ),
1934
+ charge: Schema.String.check(
1935
+ Schema.isMaxCodePoints(5000).annotate({
1936
+ expected: "a string with at most 5000 code points",
1937
+ }),
1938
+ ),
1939
+ });
1940
+ export const PostChargesChargeRefundOutput = Stripecharge;
1941
+ export const PostChargesChargeRefundError = Stripeerror;
1942
+ export const GetChargesChargeRefundsInput = Schema.Struct({
1943
+ charge: Schema.String,
1944
+ ending_before: Schema.optionalKey(Schema.String),
1945
+ expand: Schema.optionalKey(
1946
+ Schema.Array(
1947
+ Schema.String.check(
1948
+ Schema.isMaxCodePoints(5000).annotate({
1949
+ expected: "a string with at most 5000 code points",
1950
+ }),
1951
+ ),
1952
+ ),
1953
+ ),
1954
+ limit: Schema.optionalKey(Schema.Int),
1955
+ starting_after: Schema.optionalKey(Schema.String),
1956
+ });
1957
+ export const GetChargesChargeRefundsOutput = Schema.StructWithRest(
1958
+ Schema.Struct({
1959
+ data: Schema.Array(Striperefund).annotate({
1960
+ description: "Details about each object.",
1961
+ }),
1962
+ has_more: Schema.Boolean.annotate({
1963
+ description:
1964
+ "True if this list has another page of items after this one that can be fetched.",
1965
+ }),
1966
+ object: Schema.Literal("list").annotate({
1967
+ description:
1968
+ "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
1969
+ }),
1970
+ url: Schema.String.annotate({
1971
+ description: "The URL where this list can be accessed.",
1972
+ }).check(
1973
+ Schema.isMaxCodePoints(5000).annotate({
1974
+ expected: "a string with at most 5000 code points",
1975
+ }),
1976
+ ),
1977
+ }),
1978
+ [
1979
+ Schema.Record(
1980
+ Schema.String,
1981
+ Schema.Json.annotate({ expected: "JSON value" }),
1982
+ ),
1983
+ ],
1984
+ ).annotate({ title: "RefundList", description: "" });
1985
+ export const GetChargesChargeRefundsError = Stripeerror;
1986
+ export const PostChargesChargeRefundsInput = Schema.Struct({
1987
+ amount: Schema.optionalKey(Schema.Int),
1988
+ currency: Schema.optionalKey(
1989
+ Schema.String.annotate({
1990
+ description:
1991
+ "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).",
1992
+ format: "currency",
1993
+ }),
1994
+ ),
1995
+ customer: Schema.optionalKey(
1996
+ Schema.String.annotate({
1997
+ description: "Customer whose customer balance to refund from.",
1998
+ }).check(
1999
+ Schema.isMaxCodePoints(5000).annotate({
2000
+ expected: "a string with at most 5000 code points",
2001
+ }),
2002
+ ),
2003
+ ),
2004
+ expand: Schema.optionalKey(
2005
+ Schema.Array(
2006
+ Schema.String.check(
2007
+ Schema.isMaxCodePoints(5000).annotate({
2008
+ expected: "a string with at most 5000 code points",
2009
+ }),
2010
+ ),
2011
+ ).annotate({
2012
+ description: "Specifies which fields in the response should be expanded.",
2013
+ }),
2014
+ ),
2015
+ instructions_email: Schema.optionalKey(
2016
+ Schema.String.annotate({
2017
+ description:
2018
+ "For payment methods without native refund support (e.g., Konbini, PromptPay), use this email from the customer to receive refund instructions.",
2019
+ }).check(
2020
+ Schema.isMaxCodePoints(800).annotate({
2021
+ expected: "a string with at most 800 code points",
2022
+ }),
2023
+ ),
2024
+ ),
2025
+ metadata: Schema.optionalKey(
2026
+ Schema.Union([
2027
+ Schema.Record(Schema.String, Schema.String),
2028
+ Schema.Literal(""),
2029
+ ]).annotate({
2030
+ description:
2031
+ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
2032
+ }),
2033
+ ),
2034
+ origin: Schema.optionalKey(
2035
+ Schema.Literal("customer_balance").annotate({
2036
+ description: "Origin of the refund",
2037
+ }),
2038
+ ),
2039
+ payment_intent: Schema.optionalKey(
2040
+ Schema.String.annotate({
2041
+ description: "The identifier of the PaymentIntent to refund.",
2042
+ }).check(
2043
+ Schema.isMaxCodePoints(5000).annotate({
2044
+ expected: "a string with at most 5000 code points",
2045
+ }),
2046
+ ),
2047
+ ),
2048
+ reason: Schema.optionalKey(
2049
+ Schema.Literals([
2050
+ "duplicate",
2051
+ "fraudulent",
2052
+ "requested_by_customer",
2053
+ ]).annotate({
2054
+ description:
2055
+ "String indicating the reason for the refund. If set, possible values are `duplicate`, `fraudulent`, and `requested_by_customer`. If you believe the charge to be fraudulent, specifying `fraudulent` as the reason will add the associated card and email to your [block lists](https://docs.stripe.com/radar/lists), and will also help us improve our fraud detection algorithms.",
2056
+ }),
2057
+ ),
2058
+ refund_application_fee: Schema.optionalKey(
2059
+ Schema.Boolean.annotate({
2060
+ description:
2061
+ "Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge.",
2062
+ }),
2063
+ ),
2064
+ reverse_transfer: Schema.optionalKey(
2065
+ Schema.Boolean.annotate({
2066
+ description:
2067
+ "Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount).<br><br>A transfer can be reversed only by the application that created the charge.",
2068
+ }),
2069
+ ),
2070
+ charge: Schema.String.check(
2071
+ Schema.isMaxCodePoints(5000).annotate({
2072
+ expected: "a string with at most 5000 code points",
2073
+ }),
2074
+ ),
2075
+ });
2076
+ export const PostChargesChargeRefundsOutput = Striperefund;
2077
+ export const PostChargesChargeRefundsError = Stripeerror;
2078
+ export const GetChargesChargeRefundsRefundInput = Schema.Struct({
2079
+ charge: Schema.String,
2080
+ expand: Schema.optionalKey(
2081
+ Schema.Array(
2082
+ Schema.String.check(
2083
+ Schema.isMaxCodePoints(5000).annotate({
2084
+ expected: "a string with at most 5000 code points",
2085
+ }),
2086
+ ),
2087
+ ),
2088
+ ),
2089
+ refund: Schema.String,
2090
+ });
2091
+ export const GetChargesChargeRefundsRefundOutput = Striperefund;
2092
+ export const GetChargesChargeRefundsRefundError = Stripeerror;
2093
+ export const PostChargesChargeRefundsRefundInput = Schema.Struct({
2094
+ expand: Schema.optionalKey(
2095
+ Schema.Array(
2096
+ Schema.String.check(
2097
+ Schema.isMaxCodePoints(5000).annotate({
2098
+ expected: "a string with at most 5000 code points",
2099
+ }),
2100
+ ),
2101
+ ).annotate({
2102
+ description: "Specifies which fields in the response should be expanded.",
2103
+ }),
2104
+ ),
2105
+ metadata: Schema.optionalKey(
2106
+ Schema.Union([
2107
+ Schema.Record(Schema.String, Schema.String),
2108
+ Schema.Literal(""),
2109
+ ]),
2110
+ ),
2111
+ charge: Schema.String,
2112
+ refund: Schema.String,
2113
+ });
2114
+ export const PostChargesChargeRefundsRefundOutput = Striperefund;
2115
+ export const PostChargesChargeRefundsRefundError = Stripeerror;
2116
+ /**
2117
+ * The GetChargesOperation value selects the schemas
2118
+ * that validate requests and decode responses for this API version.
2119
+ */
2120
+ export const GetChargesOperation: StripeOperation & {
2121
+ readonly input: typeof GetChargesInput;
2122
+ readonly output: typeof GetChargesOutput;
2123
+ readonly error: typeof GetChargesError;
2124
+ } = {
2125
+ name: "GetCharges",
2126
+ method: "GET",
2127
+ path: "/v1/charges",
2128
+ pathParameters: [],
2129
+ queryParameters: [
2130
+ "created",
2131
+ "customer",
2132
+ "ending_before",
2133
+ "expand",
2134
+ "limit",
2135
+ "payment_intent",
2136
+ "starting_after",
2137
+ "transfer_group",
2138
+ ],
2139
+ contentType: "application/x-www-form-urlencoded",
2140
+ apiVersion: stripeApiVersion,
2141
+ baseUrl: stripeApiBaseUrl,
2142
+ input: GetChargesInput,
2143
+ output: GetChargesOutput,
2144
+ error: GetChargesError,
2145
+ };
2146
+ /**
2147
+ * The PostChargesOperation value selects the schemas
2148
+ * that validate requests and decode responses for this API version.
2149
+ */
2150
+ export const PostChargesOperation: StripeOperation & {
2151
+ readonly input: typeof PostChargesInput;
2152
+ readonly output: typeof PostChargesOutput;
2153
+ readonly error: typeof PostChargesError;
2154
+ } = {
2155
+ name: "PostCharges",
2156
+ method: "POST",
2157
+ path: "/v1/charges",
2158
+ pathParameters: [],
2159
+ queryParameters: [],
2160
+ contentType: "application/x-www-form-urlencoded",
2161
+ apiVersion: stripeApiVersion,
2162
+ baseUrl: stripeApiBaseUrl,
2163
+ input: PostChargesInput,
2164
+ output: PostChargesOutput,
2165
+ error: PostChargesError,
2166
+ };
2167
+ /**
2168
+ * The GetChargesSearchOperation value selects the schemas
2169
+ * that validate requests and decode responses for this API version.
2170
+ */
2171
+ export const GetChargesSearchOperation: StripeOperation & {
2172
+ readonly input: typeof GetChargesSearchInput;
2173
+ readonly output: typeof GetChargesSearchOutput;
2174
+ readonly error: typeof GetChargesSearchError;
2175
+ } = {
2176
+ name: "GetChargesSearch",
2177
+ method: "GET",
2178
+ path: "/v1/charges/search",
2179
+ pathParameters: [],
2180
+ queryParameters: ["expand", "limit", "page", "query"],
2181
+ contentType: "application/x-www-form-urlencoded",
2182
+ apiVersion: stripeApiVersion,
2183
+ baseUrl: stripeApiBaseUrl,
2184
+ input: GetChargesSearchInput,
2185
+ output: GetChargesSearchOutput,
2186
+ error: GetChargesSearchError,
2187
+ };
2188
+ /**
2189
+ * The GetChargesChargeOperation value selects the schemas
2190
+ * that validate requests and decode responses for this API version.
2191
+ */
2192
+ export const GetChargesChargeOperation: StripeOperation & {
2193
+ readonly input: typeof GetChargesChargeInput;
2194
+ readonly output: typeof GetChargesChargeOutput;
2195
+ readonly error: typeof GetChargesChargeError;
2196
+ } = {
2197
+ name: "GetChargesCharge",
2198
+ method: "GET",
2199
+ path: "/v1/charges/{charge}",
2200
+ pathParameters: ["charge"],
2201
+ queryParameters: ["expand"],
2202
+ contentType: "application/x-www-form-urlencoded",
2203
+ apiVersion: stripeApiVersion,
2204
+ baseUrl: stripeApiBaseUrl,
2205
+ input: GetChargesChargeInput,
2206
+ output: GetChargesChargeOutput,
2207
+ error: GetChargesChargeError,
2208
+ };
2209
+ /**
2210
+ * The PostChargesChargeOperation value selects the schemas
2211
+ * that validate requests and decode responses for this API version.
2212
+ */
2213
+ export const PostChargesChargeOperation: StripeOperation & {
2214
+ readonly input: typeof PostChargesChargeInput;
2215
+ readonly output: typeof PostChargesChargeOutput;
2216
+ readonly error: typeof PostChargesChargeError;
2217
+ } = {
2218
+ name: "PostChargesCharge",
2219
+ method: "POST",
2220
+ path: "/v1/charges/{charge}",
2221
+ pathParameters: ["charge"],
2222
+ queryParameters: [],
2223
+ contentType: "application/x-www-form-urlencoded",
2224
+ apiVersion: stripeApiVersion,
2225
+ baseUrl: stripeApiBaseUrl,
2226
+ input: PostChargesChargeInput,
2227
+ output: PostChargesChargeOutput,
2228
+ error: PostChargesChargeError,
2229
+ };
2230
+ /**
2231
+ * The PostChargesChargeCaptureOperation value selects the schemas
2232
+ * that validate requests and decode responses for this API version.
2233
+ */
2234
+ export const PostChargesChargeCaptureOperation: StripeOperation & {
2235
+ readonly input: typeof PostChargesChargeCaptureInput;
2236
+ readonly output: typeof PostChargesChargeCaptureOutput;
2237
+ readonly error: typeof PostChargesChargeCaptureError;
2238
+ } = {
2239
+ name: "PostChargesChargeCapture",
2240
+ method: "POST",
2241
+ path: "/v1/charges/{charge}/capture",
2242
+ pathParameters: ["charge"],
2243
+ queryParameters: [],
2244
+ contentType: "application/x-www-form-urlencoded",
2245
+ apiVersion: stripeApiVersion,
2246
+ baseUrl: stripeApiBaseUrl,
2247
+ input: PostChargesChargeCaptureInput,
2248
+ output: PostChargesChargeCaptureOutput,
2249
+ error: PostChargesChargeCaptureError,
2250
+ };
2251
+ /**
2252
+ * The GetChargesChargeDisputeOperation value selects the schemas
2253
+ * that validate requests and decode responses for this API version.
2254
+ */
2255
+ export const GetChargesChargeDisputeOperation: StripeOperation & {
2256
+ readonly input: typeof GetChargesChargeDisputeInput;
2257
+ readonly output: typeof GetChargesChargeDisputeOutput;
2258
+ readonly error: typeof GetChargesChargeDisputeError;
2259
+ } = {
2260
+ name: "GetChargesChargeDispute",
2261
+ method: "GET",
2262
+ path: "/v1/charges/{charge}/dispute",
2263
+ pathParameters: ["charge"],
2264
+ queryParameters: ["expand"],
2265
+ contentType: "application/x-www-form-urlencoded",
2266
+ apiVersion: stripeApiVersion,
2267
+ baseUrl: stripeApiBaseUrl,
2268
+ input: GetChargesChargeDisputeInput,
2269
+ output: GetChargesChargeDisputeOutput,
2270
+ error: GetChargesChargeDisputeError,
2271
+ };
2272
+ /**
2273
+ * The PostChargesChargeDisputeOperation value selects the schemas
2274
+ * that validate requests and decode responses for this API version.
2275
+ */
2276
+ export const PostChargesChargeDisputeOperation: StripeOperation & {
2277
+ readonly input: typeof PostChargesChargeDisputeInput;
2278
+ readonly output: typeof PostChargesChargeDisputeOutput;
2279
+ readonly error: typeof PostChargesChargeDisputeError;
2280
+ } = {
2281
+ name: "PostChargesChargeDispute",
2282
+ method: "POST",
2283
+ path: "/v1/charges/{charge}/dispute",
2284
+ pathParameters: ["charge"],
2285
+ queryParameters: [],
2286
+ contentType: "application/x-www-form-urlencoded",
2287
+ apiVersion: stripeApiVersion,
2288
+ baseUrl: stripeApiBaseUrl,
2289
+ input: PostChargesChargeDisputeInput,
2290
+ output: PostChargesChargeDisputeOutput,
2291
+ error: PostChargesChargeDisputeError,
2292
+ };
2293
+ /**
2294
+ * The PostChargesChargeDisputeCloseOperation value selects the schemas
2295
+ * that validate requests and decode responses for this API version.
2296
+ */
2297
+ export const PostChargesChargeDisputeCloseOperation: StripeOperation & {
2298
+ readonly input: typeof PostChargesChargeDisputeCloseInput;
2299
+ readonly output: typeof PostChargesChargeDisputeCloseOutput;
2300
+ readonly error: typeof PostChargesChargeDisputeCloseError;
2301
+ } = {
2302
+ name: "PostChargesChargeDisputeClose",
2303
+ method: "POST",
2304
+ path: "/v1/charges/{charge}/dispute/close",
2305
+ pathParameters: ["charge"],
2306
+ queryParameters: [],
2307
+ contentType: "application/x-www-form-urlencoded",
2308
+ apiVersion: stripeApiVersion,
2309
+ baseUrl: stripeApiBaseUrl,
2310
+ input: PostChargesChargeDisputeCloseInput,
2311
+ output: PostChargesChargeDisputeCloseOutput,
2312
+ error: PostChargesChargeDisputeCloseError,
2313
+ };
2314
+ /**
2315
+ * The PostChargesChargeRefundOperation value selects the schemas
2316
+ * that validate requests and decode responses for this API version.
2317
+ */
2318
+ export const PostChargesChargeRefundOperation: StripeOperation & {
2319
+ readonly input: typeof PostChargesChargeRefundInput;
2320
+ readonly output: typeof PostChargesChargeRefundOutput;
2321
+ readonly error: typeof PostChargesChargeRefundError;
2322
+ } = {
2323
+ name: "PostChargesChargeRefund",
2324
+ method: "POST",
2325
+ path: "/v1/charges/{charge}/refund",
2326
+ pathParameters: ["charge"],
2327
+ queryParameters: [],
2328
+ contentType: "application/x-www-form-urlencoded",
2329
+ apiVersion: stripeApiVersion,
2330
+ baseUrl: stripeApiBaseUrl,
2331
+ input: PostChargesChargeRefundInput,
2332
+ output: PostChargesChargeRefundOutput,
2333
+ error: PostChargesChargeRefundError,
2334
+ };
2335
+ /**
2336
+ * The GetChargesChargeRefundsOperation value selects the schemas
2337
+ * that validate requests and decode responses for this API version.
2338
+ */
2339
+ export const GetChargesChargeRefundsOperation: StripeOperation & {
2340
+ readonly input: typeof GetChargesChargeRefundsInput;
2341
+ readonly output: typeof GetChargesChargeRefundsOutput;
2342
+ readonly error: typeof GetChargesChargeRefundsError;
2343
+ } = {
2344
+ name: "GetChargesChargeRefunds",
2345
+ method: "GET",
2346
+ path: "/v1/charges/{charge}/refunds",
2347
+ pathParameters: ["charge"],
2348
+ queryParameters: ["ending_before", "expand", "limit", "starting_after"],
2349
+ contentType: "application/x-www-form-urlencoded",
2350
+ apiVersion: stripeApiVersion,
2351
+ baseUrl: stripeApiBaseUrl,
2352
+ input: GetChargesChargeRefundsInput,
2353
+ output: GetChargesChargeRefundsOutput,
2354
+ error: GetChargesChargeRefundsError,
2355
+ };
2356
+ /**
2357
+ * The PostChargesChargeRefundsOperation value selects the schemas
2358
+ * that validate requests and decode responses for this API version.
2359
+ */
2360
+ export const PostChargesChargeRefundsOperation: StripeOperation & {
2361
+ readonly input: typeof PostChargesChargeRefundsInput;
2362
+ readonly output: typeof PostChargesChargeRefundsOutput;
2363
+ readonly error: typeof PostChargesChargeRefundsError;
2364
+ } = {
2365
+ name: "PostChargesChargeRefunds",
2366
+ method: "POST",
2367
+ path: "/v1/charges/{charge}/refunds",
2368
+ pathParameters: ["charge"],
2369
+ queryParameters: [],
2370
+ contentType: "application/x-www-form-urlencoded",
2371
+ apiVersion: stripeApiVersion,
2372
+ baseUrl: stripeApiBaseUrl,
2373
+ input: PostChargesChargeRefundsInput,
2374
+ output: PostChargesChargeRefundsOutput,
2375
+ error: PostChargesChargeRefundsError,
2376
+ };
2377
+ /**
2378
+ * The GetChargesChargeRefundsRefundOperation value selects the schemas
2379
+ * that validate requests and decode responses for this API version.
2380
+ */
2381
+ export const GetChargesChargeRefundsRefundOperation: StripeOperation & {
2382
+ readonly input: typeof GetChargesChargeRefundsRefundInput;
2383
+ readonly output: typeof GetChargesChargeRefundsRefundOutput;
2384
+ readonly error: typeof GetChargesChargeRefundsRefundError;
2385
+ } = {
2386
+ name: "GetChargesChargeRefundsRefund",
2387
+ method: "GET",
2388
+ path: "/v1/charges/{charge}/refunds/{refund}",
2389
+ pathParameters: ["charge", "refund"],
2390
+ queryParameters: ["expand"],
2391
+ contentType: "application/x-www-form-urlencoded",
2392
+ apiVersion: stripeApiVersion,
2393
+ baseUrl: stripeApiBaseUrl,
2394
+ input: GetChargesChargeRefundsRefundInput,
2395
+ output: GetChargesChargeRefundsRefundOutput,
2396
+ error: GetChargesChargeRefundsRefundError,
2397
+ };
2398
+ /**
2399
+ * The PostChargesChargeRefundsRefundOperation value selects the schemas
2400
+ * that validate requests and decode responses for this API version.
2401
+ */
2402
+ export const PostChargesChargeRefundsRefundOperation: StripeOperation & {
2403
+ readonly input: typeof PostChargesChargeRefundsRefundInput;
2404
+ readonly output: typeof PostChargesChargeRefundsRefundOutput;
2405
+ readonly error: typeof PostChargesChargeRefundsRefundError;
2406
+ } = {
2407
+ name: "PostChargesChargeRefundsRefund",
2408
+ method: "POST",
2409
+ path: "/v1/charges/{charge}/refunds/{refund}",
2410
+ pathParameters: ["charge", "refund"],
2411
+ queryParameters: [],
2412
+ contentType: "application/x-www-form-urlencoded",
2413
+ apiVersion: stripeApiVersion,
2414
+ baseUrl: stripeApiBaseUrl,
2415
+ input: PostChargesChargeRefundsRefundInput,
2416
+ output: PostChargesChargeRefundsRefundOutput,
2417
+ error: PostChargesChargeRefundsRefundError,
2418
+ };
2419
+ /**
2420
+ * The makeChargesClient Effect obtains the application's StripeClient service.
2421
+ * Its result exposes functions with the contracts fixed by this specification.
2422
+ */
2423
+ export const makeChargesClient = Effect.gen(function* () {
2424
+ const client = yield* StripeClient;
2425
+ /**
2426
+ * The GetCharges function validates its request before it invokes Stripe.
2427
+ * The result is the decoded response. Failures in transport or validation
2428
+ * and modeled Stripe errors propagate to the caller.
2429
+ */
2430
+ const GetCharges = Effect.fn("charges.GetCharges")(function* (
2431
+ input: GetChargesInput,
2432
+ ) {
2433
+ const response: GetChargesOutput = yield* client.invoke(
2434
+ GetChargesOperation,
2435
+ input,
2436
+ );
2437
+ return response;
2438
+ });
2439
+ /**
2440
+ * The PostCharges function validates its request before it invokes Stripe.
2441
+ * The result is the decoded response. Failures in transport or validation
2442
+ * and modeled Stripe errors propagate to the caller.
2443
+ */
2444
+ const PostCharges = Effect.fn("charges.PostCharges")(function* (
2445
+ input: PostChargesInput,
2446
+ ) {
2447
+ const response: PostChargesOutput = yield* client.invoke(
2448
+ PostChargesOperation,
2449
+ input,
2450
+ );
2451
+ return response;
2452
+ });
2453
+ /**
2454
+ * The GetChargesSearch function validates its request before it invokes Stripe.
2455
+ * The result is the decoded response. Failures in transport or validation
2456
+ * and modeled Stripe errors propagate to the caller.
2457
+ */
2458
+ const GetChargesSearch = Effect.fn("charges.GetChargesSearch")(function* (
2459
+ input: GetChargesSearchInput,
2460
+ ) {
2461
+ const response: GetChargesSearchOutput = yield* client.invoke(
2462
+ GetChargesSearchOperation,
2463
+ input,
2464
+ );
2465
+ return response;
2466
+ });
2467
+ /**
2468
+ * The GetChargesCharge function validates its request before it invokes Stripe.
2469
+ * The result is the decoded response. Failures in transport or validation
2470
+ * and modeled Stripe errors propagate to the caller.
2471
+ */
2472
+ const GetChargesCharge = Effect.fn("charges.GetChargesCharge")(function* (
2473
+ input: GetChargesChargeInput,
2474
+ ) {
2475
+ const response: GetChargesChargeOutput = yield* client.invoke(
2476
+ GetChargesChargeOperation,
2477
+ input,
2478
+ );
2479
+ return response;
2480
+ });
2481
+ /**
2482
+ * The PostChargesCharge function validates its request before it invokes Stripe.
2483
+ * The result is the decoded response. Failures in transport or validation
2484
+ * and modeled Stripe errors propagate to the caller.
2485
+ */
2486
+ const PostChargesCharge = Effect.fn("charges.PostChargesCharge")(function* (
2487
+ input: PostChargesChargeInput,
2488
+ ) {
2489
+ const response: PostChargesChargeOutput = yield* client.invoke(
2490
+ PostChargesChargeOperation,
2491
+ input,
2492
+ );
2493
+ return response;
2494
+ });
2495
+ /**
2496
+ * The PostChargesChargeCapture function validates its request before it invokes Stripe.
2497
+ * The result is the decoded response. Failures in transport or validation
2498
+ * and modeled Stripe errors propagate to the caller.
2499
+ */
2500
+ const PostChargesChargeCapture = Effect.fn(
2501
+ "charges.PostChargesChargeCapture",
2502
+ )(function* (input: PostChargesChargeCaptureInput) {
2503
+ const response: PostChargesChargeCaptureOutput = yield* client.invoke(
2504
+ PostChargesChargeCaptureOperation,
2505
+ input,
2506
+ );
2507
+ return response;
2508
+ });
2509
+ /**
2510
+ * The GetChargesChargeDispute function validates its request before it invokes Stripe.
2511
+ * The result is the decoded response. Failures in transport or validation
2512
+ * and modeled Stripe errors propagate to the caller.
2513
+ */
2514
+ const GetChargesChargeDispute = Effect.fn("charges.GetChargesChargeDispute")(
2515
+ function* (input: GetChargesChargeDisputeInput) {
2516
+ const response: GetChargesChargeDisputeOutput = yield* client.invoke(
2517
+ GetChargesChargeDisputeOperation,
2518
+ input,
2519
+ );
2520
+ return response;
2521
+ },
2522
+ );
2523
+ /**
2524
+ * The PostChargesChargeDispute function validates its request before it invokes Stripe.
2525
+ * The result is the decoded response. Failures in transport or validation
2526
+ * and modeled Stripe errors propagate to the caller.
2527
+ */
2528
+ const PostChargesChargeDispute = Effect.fn(
2529
+ "charges.PostChargesChargeDispute",
2530
+ )(function* (input: PostChargesChargeDisputeInput) {
2531
+ const response: PostChargesChargeDisputeOutput = yield* client.invoke(
2532
+ PostChargesChargeDisputeOperation,
2533
+ input,
2534
+ );
2535
+ return response;
2536
+ });
2537
+ /**
2538
+ * The PostChargesChargeDisputeClose function validates its request before it invokes Stripe.
2539
+ * The result is the decoded response. Failures in transport or validation
2540
+ * and modeled Stripe errors propagate to the caller.
2541
+ */
2542
+ const PostChargesChargeDisputeClose = Effect.fn(
2543
+ "charges.PostChargesChargeDisputeClose",
2544
+ )(function* (input: PostChargesChargeDisputeCloseInput) {
2545
+ const response: PostChargesChargeDisputeCloseOutput = yield* client.invoke(
2546
+ PostChargesChargeDisputeCloseOperation,
2547
+ input,
2548
+ );
2549
+ return response;
2550
+ });
2551
+ /**
2552
+ * The PostChargesChargeRefund function validates its request before it invokes Stripe.
2553
+ * The result is the decoded response. Failures in transport or validation
2554
+ * and modeled Stripe errors propagate to the caller.
2555
+ */
2556
+ const PostChargesChargeRefund = Effect.fn("charges.PostChargesChargeRefund")(
2557
+ function* (input: PostChargesChargeRefundInput) {
2558
+ const response: PostChargesChargeRefundOutput = yield* client.invoke(
2559
+ PostChargesChargeRefundOperation,
2560
+ input,
2561
+ );
2562
+ return response;
2563
+ },
2564
+ );
2565
+ /**
2566
+ * The GetChargesChargeRefunds function validates its request before it invokes Stripe.
2567
+ * The result is the decoded response. Failures in transport or validation
2568
+ * and modeled Stripe errors propagate to the caller.
2569
+ */
2570
+ const GetChargesChargeRefunds = Effect.fn("charges.GetChargesChargeRefunds")(
2571
+ function* (input: GetChargesChargeRefundsInput) {
2572
+ const response: GetChargesChargeRefundsOutput = yield* client.invoke(
2573
+ GetChargesChargeRefundsOperation,
2574
+ input,
2575
+ );
2576
+ return response;
2577
+ },
2578
+ );
2579
+ /**
2580
+ * The PostChargesChargeRefunds function validates its request before it invokes Stripe.
2581
+ * The result is the decoded response. Failures in transport or validation
2582
+ * and modeled Stripe errors propagate to the caller.
2583
+ */
2584
+ const PostChargesChargeRefunds = Effect.fn(
2585
+ "charges.PostChargesChargeRefunds",
2586
+ )(function* (input: PostChargesChargeRefundsInput) {
2587
+ const response: PostChargesChargeRefundsOutput = yield* client.invoke(
2588
+ PostChargesChargeRefundsOperation,
2589
+ input,
2590
+ );
2591
+ return response;
2592
+ });
2593
+ /**
2594
+ * The GetChargesChargeRefundsRefund function validates its request before it invokes Stripe.
2595
+ * The result is the decoded response. Failures in transport or validation
2596
+ * and modeled Stripe errors propagate to the caller.
2597
+ */
2598
+ const GetChargesChargeRefundsRefund = Effect.fn(
2599
+ "charges.GetChargesChargeRefundsRefund",
2600
+ )(function* (input: GetChargesChargeRefundsRefundInput) {
2601
+ const response: GetChargesChargeRefundsRefundOutput = yield* client.invoke(
2602
+ GetChargesChargeRefundsRefundOperation,
2603
+ input,
2604
+ );
2605
+ return response;
2606
+ });
2607
+ /**
2608
+ * The PostChargesChargeRefundsRefund function validates its request before it invokes Stripe.
2609
+ * The result is the decoded response. Failures in transport or validation
2610
+ * and modeled Stripe errors propagate to the caller.
2611
+ */
2612
+ const PostChargesChargeRefundsRefund = Effect.fn(
2613
+ "charges.PostChargesChargeRefundsRefund",
2614
+ )(function* (input: PostChargesChargeRefundsRefundInput) {
2615
+ const response: PostChargesChargeRefundsRefundOutput = yield* client.invoke(
2616
+ PostChargesChargeRefundsRefundOperation,
2617
+ input,
2618
+ );
2619
+ return response;
2620
+ });
2621
+ return {
2622
+ GetCharges,
2623
+ PostCharges,
2624
+ GetChargesSearch,
2625
+ GetChargesCharge,
2626
+ PostChargesCharge,
2627
+ PostChargesChargeCapture,
2628
+ GetChargesChargeDispute,
2629
+ PostChargesChargeDispute,
2630
+ PostChargesChargeDisputeClose,
2631
+ PostChargesChargeRefund,
2632
+ GetChargesChargeRefunds,
2633
+ PostChargesChargeRefunds,
2634
+ GetChargesChargeRefundsRefund,
2635
+ PostChargesChargeRefundsRefund,
2636
+ };
2637
+ });