nomoss 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (710) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +1 -1
  3. package/README.md +52 -26
  4. package/ROADMAP.md +19 -0
  5. package/docs/README.md +19 -0
  6. package/docs/application/aws-resource-coverage.md +26 -0
  7. package/docs/application/aws-resource-lifecycle-management.md +47 -0
  8. package/docs/application/cli-workflow.md +111 -0
  9. package/docs/application/engine-design.md +43 -0
  10. package/docs/application/generation-architecture.md +285 -0
  11. package/docs/application/resource-command-policy-stage.md +37 -0
  12. package/docs/application/resource-graph.md +45 -0
  13. package/docs/application/resource-lifecycle-tracker.md +43 -0
  14. package/docs/application/resource-mapping.md +112 -0
  15. package/docs/application/resource-operations.md +41 -0
  16. package/docs/application/resource-outputs.md +66 -0
  17. package/docs/application/tracing.md +27 -0
  18. package/docs/development/code-documentation.md +54 -0
  19. package/docs/development/commit-message-spec.md +9 -0
  20. package/docs/development/effect-native-development.md +89 -0
  21. package/docs/development/linting.md +39 -0
  22. package/docs/development/resource-graph-testing-approach.md +9 -0
  23. package/docs/development/review-code.md +73 -0
  24. package/docs/development/review-docs.md +27 -0
  25. package/docs/development/review-remediation-spec.md +40 -0
  26. package/docs/development/spec-writing.md +35 -0
  27. package/docs/development/testing.md +125 -0
  28. package/docs/development/unslop.md +55 -0
  29. package/docs/operations/observability-sop.md +32 -0
  30. package/docs/operations/releasing.md +7 -0
  31. package/examples/README.md +11 -0
  32. package/examples/cli.ts +15 -0
  33. package/examples/commands.ts +32 -0
  34. package/examples/http-echo/index.ts +54 -0
  35. package/examples/queue/application.ts +37 -0
  36. package/examples/state-machine/application.ts +57 -0
  37. package/examples/stripe-billing/application.ts +56 -0
  38. package/media/nomoss-http-demo.gif +0 -0
  39. package/package.json +63 -24
  40. package/providers/aws/README.md +21 -0
  41. package/providers/aws/awsEnvironment.ts +114 -0
  42. package/providers/aws/generated/managementRegistry.ts +136 -0
  43. package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
  44. package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
  45. package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
  46. package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
  47. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  48. package/providers/aws/generated/resources/iam/group.ts +294 -0
  49. package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
  50. package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
  51. package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
  52. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  53. package/providers/aws/generated/resources/iam/policy.ts +264 -0
  54. package/providers/aws/generated/resources/iam/role.ts +444 -0
  55. package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
  56. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  57. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  58. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  59. package/providers/aws/generated/resources/iam/user.ts +435 -0
  60. package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
  61. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
  62. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  63. package/providers/aws/generated/resources/kms/key.ts +552 -0
  64. package/providers/aws/generated/resources/lambda/function.ts +1924 -0
  65. package/providers/aws/generated/resources/lambda/permission.ts +913 -0
  66. package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
  67. package/providers/aws/generated/resources/sns/topic.ts +536 -0
  68. package/providers/aws/generated/resources/sqs/queue.ts +476 -0
  69. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
  70. package/providers/aws/management/mappings/iam/group.ts +63 -0
  71. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  72. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  73. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  74. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  75. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  76. package/providers/aws/management/mappings/iam/role.ts +74 -0
  77. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  78. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  79. package/providers/aws/management/mappings/iam/user.ts +61 -0
  80. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  81. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  82. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  83. package/providers/aws/management/operations/iam/policy.ts +476 -0
  84. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  85. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  86. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  87. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  88. package/providers/aws/management/resourceAssociations.ts +168 -0
  89. package/providers/aws/management/resourceConfiguration.ts +119 -0
  90. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  91. package/providers/aws/management/resourceManagementModule.ts +31 -0
  92. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  93. package/providers/aws/management/resourceMapping.ts +84 -0
  94. package/providers/aws/management/resourceOperation.ts +134 -0
  95. package/providers/aws/management/resourceTagOperations.ts +108 -0
  96. package/providers/aws/management/resourceTiming.ts +4 -0
  97. package/providers/aws/runtime.ts +52 -0
  98. package/src/cli.ts +31 -13
  99. package/src/cliCommand.ts +207 -170
  100. package/src/cliDiagnostics.ts +104 -0
  101. package/src/core/asset.ts +350 -0
  102. package/src/core/index.ts +61 -17
  103. package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
  104. package/src/core/resource/model.ts +1168 -0
  105. package/src/core/resource/resourceCommandPolicy.ts +88 -0
  106. package/src/core/resource/resourceGraphBuilder.ts +319 -0
  107. package/src/core/resource/resourceGraphStore.ts +373 -0
  108. package/src/core/resource/resourceLifecycle.ts +644 -0
  109. package/src/core/resource/resourceOutputBinding.ts +113 -0
  110. package/src/core/resource/resourceOutputResolver.ts +365 -0
  111. package/src/core/resource/resourceRequest.ts +186 -0
  112. package/src/core/resource/resourceStabilization.ts +120 -0
  113. package/src/core/resource/resourceVersions.ts +102 -0
  114. package/src/core/runtime/stackRuntimeLayer.ts +16 -0
  115. package/src/core/runtime/tracing.ts +43 -0
  116. package/src/core/stack/planner.ts +663 -0
  117. package/src/core/stack/resourceDisplay.ts +213 -0
  118. package/src/core/stack/resourceStackDefinition.ts +32 -0
  119. package/src/core/stack/resourceStackLifecycle.ts +1229 -0
  120. package/src/core/stack/resourceStackOperations.ts +642 -0
  121. package/src/core/stack/resourceStackProgress.ts +169 -0
  122. package/src/core/stack/stackWorkflowRenderer.ts +756 -0
  123. package/src/core/state/localState.ts +18 -0
  124. package/src/core/state/resourceState.ts +77 -0
  125. package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
  126. package/src/core/state/stateStore.ts +600 -0
  127. package/src/providers/file/jsonFile.ts +94 -0
  128. package/src/providers/file/model.ts +29 -0
  129. package/src/providers/file/resourcePolicy.ts +271 -0
  130. package/src/providers/index.ts +0 -2
  131. package/src/providers/providerRuntimeLayer.ts +27 -113
  132. package/src/providers/resourceCommandPolicyLayer.ts +151 -200
  133. package/src/providers/stripe/client/generated/LICENSE +21 -0
  134. package/src/providers/stripe/client/generated/accounts.ts +14360 -0
  135. package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
  136. package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
  137. package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
  138. package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
  139. package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
  140. package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
  141. package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
  142. package/src/providers/stripe/client/generated/catalog.ts +18881 -0
  143. package/src/providers/stripe/client/generated/charges.ts +2637 -0
  144. package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
  145. package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
  146. package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
  147. package/src/providers/stripe/client/generated/configuration.ts +3 -0
  148. package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
  149. package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
  150. package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
  151. package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
  152. package/src/providers/stripe/client/generated/coupons.ts +562 -0
  153. package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
  154. package/src/providers/stripe/client/generated/customers.ts +10712 -0
  155. package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
  156. package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
  157. package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
  158. package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
  159. package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
  160. package/src/providers/stripe/client/generated/index.ts +330 -0
  161. package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
  162. package/src/providers/stripe/client/generated/invoices.ts +8412 -0
  163. package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
  164. package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
  165. package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
  166. package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
  167. package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
  168. package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
  169. package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
  170. package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
  171. package/src/providers/stripe/client/generated/models/common.ts +25024 -0
  172. package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
  173. package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
  174. package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
  175. package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
  176. package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
  177. package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
  178. package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
  179. package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
  180. package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
  181. package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
  182. package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
  183. package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
  184. package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
  185. package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
  186. package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
  187. package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
  188. package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
  189. package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
  190. package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
  191. package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
  192. package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
  193. package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
  194. package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
  195. package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
  196. package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
  197. package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
  198. package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
  199. package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
  200. package/src/providers/stripe/client/generated/payouts.ts +589 -0
  201. package/src/providers/stripe/client/generated/plans.ts +712 -0
  202. package/src/providers/stripe/client/generated/prices.ts +1045 -0
  203. package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
  204. package/src/providers/stripe/client/generated/products.ts +1370 -0
  205. package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
  206. package/src/providers/stripe/client/generated/quotes.ts +1874 -0
  207. package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
  208. package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
  209. package/src/providers/stripe/client/generated/refunds.ts +493 -0
  210. package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
  211. package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
  212. package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
  213. package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
  214. package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
  215. package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
  216. package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
  217. package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
  218. package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
  219. package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
  220. package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
  221. package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
  222. package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
  223. package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
  224. package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
  225. package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
  226. package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
  227. package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
  228. package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
  229. package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
  230. package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
  231. package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
  232. package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
  233. package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
  234. package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
  235. package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
  236. package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
  237. package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
  238. package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
  239. package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
  240. package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
  241. package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
  242. package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
  243. package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
  244. package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
  245. package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
  246. package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
  247. package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
  248. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
  249. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
  250. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
  251. package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
  252. package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
  253. package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
  254. package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
  255. package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
  256. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
  257. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
  258. package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
  259. package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
  260. package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
  261. package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
  262. package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
  263. package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
  264. package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
  265. package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
  266. package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
  267. package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
  268. package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
  269. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
  270. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
  271. package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
  272. package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
  273. package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
  274. package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
  275. package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
  276. package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
  277. package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
  278. package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
  279. package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
  280. package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
  281. package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
  282. package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
  283. package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
  284. package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
  285. package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
  286. package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
  287. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
  288. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
  289. package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
  290. package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
  291. package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
  292. package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
  293. package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
  294. package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
  321. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
  322. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
  324. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
  325. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
  327. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
  328. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
  330. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
  331. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
  333. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
  334. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
  336. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
  337. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
  339. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
  340. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
  342. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
  343. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
  345. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
  346. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
  357. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
  358. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
  366. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
  367. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
  369. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
  370. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
  372. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
  373. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
  375. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
  376. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
  378. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
  379. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
  381. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
  382. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
  390. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
  391. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
  458. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
  459. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
  460. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
  461. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
  462. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
  463. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
  464. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
  465. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
  466. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
  467. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
  468. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
  469. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
  470. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
  471. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
  472. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
  473. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
  474. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
  475. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
  476. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
  477. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
  478. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
  479. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
  480. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
  481. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
  482. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
  483. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
  484. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
  485. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
  486. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
  610. package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
  611. package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
  612. package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
  613. package/src/providers/stripe/client/generated/sources.ts +1482 -0
  614. package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
  615. package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
  616. package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
  617. package/src/providers/stripe/client/generated/taxIds.ts +644 -0
  618. package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
  619. package/src/providers/stripe/client/generated/taxRates.ts +620 -0
  620. package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
  621. package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
  622. package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
  623. package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
  624. package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
  625. package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
  626. package/src/providers/stripe/client/generated/tokens.ts +2498 -0
  627. package/src/providers/stripe/client/generated/topups.ts +556 -0
  628. package/src/providers/stripe/client/generated/transfers.ts +786 -0
  629. package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
  630. package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
  631. package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
  632. package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
  633. package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
  634. package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
  635. package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
  636. package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
  637. package/src/providers/stripe/client/stripeClient.ts +212 -0
  638. package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
  639. package/src/providers/stripe/client/stripeClientModel.ts +40 -0
  640. package/src/providers/stripe/index.ts +8 -15
  641. package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
  642. package/src/providers/stripe/management/resourcePolicy.ts +500 -0
  643. package/src/providers/stripe/management/resources.ts +36 -0
  644. package/src/providers/stripe/runtime.ts +74 -0
  645. package/bin/nomoss +0 -13
  646. package/docs/code-documentation.md +0 -36
  647. package/docs/effect-native-development.md +0 -55
  648. package/docs/engine-design.md +0 -93
  649. package/docs/linting.md +0 -88
  650. package/docs/releasing.md +0 -13
  651. package/docs/resource-command-policy-stage.md +0 -71
  652. package/docs/resource-graph-mvp.md +0 -31
  653. package/docs/resource-graph-testing-approach.md +0 -11
  654. package/docs/resource-lifecycle-tracker.md +0 -93
  655. package/docs/testing.md +0 -86
  656. package/examples/upload-events/README.md +0 -41
  657. package/src/cliRuntimeLayer.ts +0 -49
  658. package/src/core/model.ts +0 -229
  659. package/src/core/physicalNameStore.ts +0 -226
  660. package/src/core/planner.ts +0 -645
  661. package/src/core/resourceCommandPolicy.ts +0 -79
  662. package/src/core/resourceGraphBuilder.ts +0 -167
  663. package/src/core/resourceGraphStore.ts +0 -288
  664. package/src/core/resourceOutputResolver.ts +0 -185
  665. package/src/core/resourcePolicy.ts +0 -77
  666. package/src/core/resourceStackDefinition.ts +0 -17
  667. package/src/core/resourceStackLifecycle.ts +0 -456
  668. package/src/core/resourceStackOperations.ts +0 -129
  669. package/src/core/runtimeLayer.ts +0 -73
  670. package/src/core/stackWorkflowRenderer.ts +0 -239
  671. package/src/core/stateStore.ts +0 -652
  672. package/src/core/tracing.ts +0 -26
  673. package/src/providers/aws/awsApply.ts +0 -132
  674. package/src/providers/aws/awsBucket.ts +0 -329
  675. package/src/providers/aws/awsBucketNotification.ts +0 -351
  676. package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
  677. package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
  678. package/src/providers/aws/awsProviderLayer.ts +0 -274
  679. package/src/providers/aws/awsQueue.ts +0 -346
  680. package/src/providers/aws/awsQueuePolicy.ts +0 -419
  681. package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
  682. package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
  683. package/src/providers/aws/awsReconciliation.ts +0 -92
  684. package/src/providers/aws/awsRefresh.ts +0 -50
  685. package/src/providers/aws/awsResourceLifecycle.ts +0 -118
  686. package/src/providers/aws/awsResourcePolicy.ts +0 -83
  687. package/src/providers/aws/awsResources.ts +0 -274
  688. package/src/providers/aws/awsRuntimeLayer.ts +0 -21
  689. package/src/providers/aws/awsSqsTransport.ts +0 -33
  690. package/src/providers/aws/awsStackLifecycle.ts +0 -272
  691. package/src/providers/aws/awsTagging.ts +0 -186
  692. package/src/providers/aws/constants.ts +0 -3
  693. package/src/providers/aws/index.ts +0 -22
  694. package/src/providers/aws/sampleStack.ts +0 -65
  695. package/src/providers/aws/stackWorkflow.ts +0 -443
  696. package/src/providers/stripe/stripeAccount.ts +0 -139
  697. package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
  698. package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
  699. package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
  700. package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
  701. package/src/providers/stripe/stripeCustomer.ts +0 -148
  702. package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
  703. package/src/providers/stripe/stripePrice.ts +0 -218
  704. package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
  705. package/src/providers/stripe/stripeProduct.ts +0 -171
  706. package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
  707. package/src/providers/stripe/stripeResources.ts +0 -454
  708. package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
  709. package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
  710. package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
@@ -0,0 +1,3411 @@
1
+ // This schema module comes from the selected resource contracts. Do not edit.
2
+
3
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
4
+ import { Schema } from "effect";
5
+ import { Stripeaccount } from "./accounts.js";
6
+ import {
7
+ Stripeaddress,
8
+ Stripeapplication,
9
+ Stripecurrency_option,
10
+ Stripecustom_unit_amount,
11
+ Stripedeleted_price,
12
+ Stripedeleted_product,
13
+ Stripeentitlements_feature,
14
+ Stripepackage_dimensions,
15
+ Striperecurring,
16
+ Stripetransform_quantity,
17
+ Stripetransform_usage,
18
+ } from "./common.js";
19
+ import { Stripecustomer } from "./customers.js";
20
+
21
+ export type Stripetax_id = {
22
+ readonly country?: string | null;
23
+ readonly created: number;
24
+ readonly customer?: string | Stripecustomer | null;
25
+ readonly customer_account?: string | null;
26
+ readonly id: string;
27
+ readonly livemode: boolean;
28
+ readonly object: "tax_id";
29
+ readonly owner?: Stripetax_i_ds_owner | null;
30
+ readonly type:
31
+ | "ad_nrt"
32
+ | "ae_trn"
33
+ | "al_tin"
34
+ | "am_tin"
35
+ | "ao_tin"
36
+ | "ar_cuit"
37
+ | "au_abn"
38
+ | "au_acn"
39
+ | "au_arn"
40
+ | "au_wpn"
41
+ | "aw_tin"
42
+ | "az_tin"
43
+ | "ba_tin"
44
+ | "bb_tin"
45
+ | "bd_bin"
46
+ | "bf_ifu"
47
+ | "bg_uic"
48
+ | "bh_vat"
49
+ | "bj_ifu"
50
+ | "bo_tin"
51
+ | "br_cnpj"
52
+ | "br_cpf"
53
+ | "bs_tin"
54
+ | "bw_vat"
55
+ | "by_tin"
56
+ | "ca_bn"
57
+ | "ca_gst_hst"
58
+ | "ca_pst_bc"
59
+ | "ca_pst_mb"
60
+ | "ca_pst_sk"
61
+ | "ca_qst"
62
+ | "cd_nif"
63
+ | "ch_uid"
64
+ | "ch_vat"
65
+ | "ci_vat"
66
+ | "cl_tin"
67
+ | "cm_niu"
68
+ | "cn_tin"
69
+ | "co_nit"
70
+ | "cr_tin"
71
+ | "cv_nif"
72
+ | "cz_dic"
73
+ | "de_stn"
74
+ | "do_rcn"
75
+ | "ec_ruc"
76
+ | "eg_tin"
77
+ | "es_cif"
78
+ | "et_tin"
79
+ | "eu_oss_vat"
80
+ | "eu_vat"
81
+ | "fo_vat"
82
+ | "fr_siren"
83
+ | "fr_siret"
84
+ | "fr_spi"
85
+ | "gb_vat"
86
+ | "ge_vat"
87
+ | "gh_tin"
88
+ | "gi_tin"
89
+ | "gn_nif"
90
+ | "hk_br"
91
+ | "hr_oib"
92
+ | "hu_tin"
93
+ | "ic_nif"
94
+ | "id_npwp"
95
+ | "il_vat"
96
+ | "in_gst"
97
+ | "is_kt"
98
+ | "is_vat"
99
+ | "it_cf"
100
+ | "jp_cn"
101
+ | "jp_rn"
102
+ | "jp_trn"
103
+ | "ke_pin"
104
+ | "kg_tin"
105
+ | "kh_tin"
106
+ | "kr_brn"
107
+ | "kz_bin"
108
+ | "la_tin"
109
+ | "li_uid"
110
+ | "li_vat"
111
+ | "lk_vat"
112
+ | "ma_vat"
113
+ | "md_cf"
114
+ | "md_vat"
115
+ | "me_pib"
116
+ | "mk_vat"
117
+ | "mr_nif"
118
+ | "mu_vat"
119
+ | "mx_rfc"
120
+ | "my_frp"
121
+ | "my_itn"
122
+ | "my_sst"
123
+ | "mz_nuit"
124
+ | "ng_tin"
125
+ | "no_vat"
126
+ | "no_voec"
127
+ | "np_pan"
128
+ | "nz_bn"
129
+ | "nz_gst"
130
+ | "om_vat"
131
+ | "pe_ruc"
132
+ | "ph_tin"
133
+ | "pl_nip"
134
+ | "pt_nif"
135
+ | "py_ruc"
136
+ | "ro_tin"
137
+ | "rs_pib"
138
+ | "ru_inn"
139
+ | "ru_kpp"
140
+ | "sa_vat"
141
+ | "sg_gst"
142
+ | "sg_uen"
143
+ | "si_tin"
144
+ | "sm_coe"
145
+ | "sn_ninea"
146
+ | "sr_fin"
147
+ | "sv_nit"
148
+ | "th_vat"
149
+ | "tj_tin"
150
+ | "tr_tin"
151
+ | "tt_bir"
152
+ | "tt_vat"
153
+ | "tw_vat"
154
+ | "tz_vat"
155
+ | "ua_vat"
156
+ | "ug_tin"
157
+ | "unknown"
158
+ | "us_ein"
159
+ | "uy_ruc"
160
+ | "uz_tin"
161
+ | "uz_vat"
162
+ | "ve_rif"
163
+ | "vn_tin"
164
+ | "za_vat"
165
+ | "zm_tin"
166
+ | "zw_tin";
167
+ readonly value: string;
168
+ readonly verification?: Stripetax_id_verification | null;
169
+ } & { readonly [x: string]: Schema.Json };
170
+ export type Stripetax_i_ds_owner = {
171
+ readonly account?: string | Stripeaccount;
172
+ readonly application?: string | Stripeapplication;
173
+ readonly customer?: string | Stripecustomer;
174
+ readonly customer_account?: string | null;
175
+ readonly type: "account" | "application" | "customer" | "self";
176
+ } & { readonly [x: string]: Schema.Json };
177
+ export type Stripeprice = {
178
+ readonly active: boolean;
179
+ readonly billing_scheme: "per_unit" | "tiered";
180
+ readonly created: number;
181
+ readonly currency: string;
182
+ readonly currency_options?: { readonly [x: string]: Stripecurrency_option };
183
+ readonly custom_unit_amount?: Stripecustom_unit_amount | null | null;
184
+ readonly id: string;
185
+ readonly livemode: boolean;
186
+ readonly lookup_key?: string | null;
187
+ readonly metadata: { readonly [x: string]: string };
188
+ readonly nickname?: string | null;
189
+ readonly object: "price";
190
+ readonly product: string | Stripeproduct | Stripedeleted_product;
191
+ readonly recurring?: Striperecurring | null | null;
192
+ readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified" | null;
193
+ readonly tiers?: ReadonlyArray<Stripeprice_tier>;
194
+ readonly tiers_mode?: "graduated" | "volume" | null;
195
+ readonly transform_quantity?: Stripetransform_quantity | null | null;
196
+ readonly type: "one_time" | "recurring";
197
+ readonly unit_amount?: number | null;
198
+ readonly unit_amount_decimal?: string | null;
199
+ } & { readonly [x: string]: Schema.Json };
200
+ export type Stripeproduct = {
201
+ readonly active: boolean;
202
+ readonly created: number;
203
+ readonly default_price?: string | Stripeprice | null | null;
204
+ readonly description?: string | null;
205
+ readonly id: string;
206
+ readonly images: ReadonlyArray<string>;
207
+ readonly livemode: boolean;
208
+ readonly marketing_features: ReadonlyArray<Stripeproduct_marketing_feature>;
209
+ readonly metadata: { readonly [x: string]: string };
210
+ readonly name: string;
211
+ readonly object: "product";
212
+ readonly package_dimensions?: Stripepackage_dimensions | null | null;
213
+ readonly shippable?: boolean | null;
214
+ readonly statement_descriptor?: string | null;
215
+ readonly tax_code?: string | Stripetax_code | null | null;
216
+ readonly tax_details?: Stripetax_product_tax_details_resource_tax_details | null | null;
217
+ readonly unit_label?: string | null;
218
+ readonly updated: number;
219
+ readonly url?: string | null;
220
+ } & { readonly [x: string]: Schema.Json };
221
+ export type Stripetax_deducted_at_source = {
222
+ readonly id: string;
223
+ readonly object: "tax_deducted_at_source";
224
+ readonly period_end: number;
225
+ readonly period_start: number;
226
+ readonly tax_deduction_account_number: string;
227
+ } & { readonly [x: string]: Schema.Json };
228
+ export type Stripeprice_tier = {
229
+ readonly flat_amount?: number | null;
230
+ readonly flat_amount_decimal?: string | null;
231
+ readonly unit_amount?: number | null;
232
+ readonly unit_amount_decimal?: string | null;
233
+ readonly up_to?: number | null;
234
+ } & { readonly [x: string]: Schema.Json };
235
+ export type Stripeproduct_marketing_feature = { readonly name?: string } & {
236
+ readonly [x: string]: Schema.Json;
237
+ };
238
+ export type Stripetax_code_requirements = {
239
+ readonly performance_location: "optional" | "required";
240
+ } & { readonly [x: string]: Schema.Json };
241
+ export type Stripetax_product_tax_details_resource_tax_details = {
242
+ readonly performance_location?: string | null;
243
+ readonly tax_code?: string | null;
244
+ } & { readonly [x: string]: Schema.Json };
245
+ export type Stripetax_rate_flat_amount = {
246
+ readonly amount: number;
247
+ readonly currency: string;
248
+ } & { readonly [x: string]: Schema.Json };
249
+ export type Stripetax_id_verification = {
250
+ readonly status: "pending" | "unavailable" | "unverified" | "verified";
251
+ readonly verified_address?: string | null;
252
+ readonly verified_name?: string | null;
253
+ } & { readonly [x: string]: Schema.Json };
254
+ export type Stripeplan_tier = {
255
+ readonly flat_amount?: number | null;
256
+ readonly flat_amount_decimal?: string | null;
257
+ readonly unit_amount?: number | null;
258
+ readonly unit_amount_decimal?: string | null;
259
+ readonly up_to?: number | null;
260
+ } & { readonly [x: string]: Schema.Json };
261
+ export type Stripeproduct_catalog_impl_endpoints_trial_offer_resource_relative_duration =
262
+ { readonly iterations: number } & { readonly [x: string]: Schema.Json };
263
+ export type Stripetax_product_registrations_resource_country_options_default_standard =
264
+ { readonly place_of_supply_scheme: "inbound_goods" | "standard" } & {
265
+ readonly [x: string]: Schema.Json;
266
+ };
267
+ export type Stripetax_product_registrations_resource_country_options_default = {
268
+ readonly type: "standard";
269
+ } & { readonly [x: string]: Schema.Json };
270
+ export type Stripetax_product_registrations_resource_country_options_simplified =
271
+ { readonly type: "simplified" } & { readonly [x: string]: Schema.Json };
272
+ export type Stripetax_product_registrations_resource_country_options_eu_standard =
273
+ {
274
+ readonly place_of_supply_scheme:
275
+ | "inbound_goods"
276
+ | "small_seller"
277
+ | "standard";
278
+ } & { readonly [x: string]: Schema.Json };
279
+ export type Stripetax_product_registrations_resource_country_options_ca_province_standard =
280
+ { readonly province: string } & { readonly [x: string]: Schema.Json };
281
+ export type Stripetax_product_registrations_resource_country_options_thailand =
282
+ { readonly type: "simplified" } & { readonly [x: string]: Schema.Json };
283
+ export type Stripetax_product_registrations_resource_country_options_us_admissions_tax =
284
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
285
+ export type Stripetax_product_registrations_resource_country_options_us_attendance_tax =
286
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
287
+ export type Stripetax_product_registrations_resource_country_options_us_entertainment_tax =
288
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
289
+ export type Stripetax_product_registrations_resource_country_options_us_gross_receipts_tax =
290
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
291
+ export type Stripetax_product_registrations_resource_country_options_us_hospitality_tax =
292
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
293
+ export type Stripetax_product_registrations_resource_country_options_us_local_amusement_tax =
294
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
295
+ export type Stripetax_product_registrations_resource_country_options_us_local_lease_tax =
296
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
297
+ export type Stripetax_product_registrations_resource_country_options_us_luxury_tax =
298
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
299
+ export type Stripetax_product_registrations_resource_country_options_us_mass_transit_parking_tax =
300
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
301
+ export type Stripetax_product_registrations_resource_country_options_us_parking_tax =
302
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
303
+ export type Stripetax_product_registrations_resource_country_options_us_resort_tax =
304
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
305
+ export type Stripetax_product_registrations_resource_country_options_us_state_sales_tax_election =
306
+ {
307
+ readonly jurisdiction?: string;
308
+ readonly type:
309
+ | "local_use_tax"
310
+ | "simplified_sellers_use_tax"
311
+ | "single_local_use_tax";
312
+ } & { readonly [x: string]: Schema.Json };
313
+ export type Stripetax_product_registrations_resource_country_options_us_tourism_tax =
314
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
315
+ export type Stripetax_product_registrations_resource_country_options_us_utility_users_tax =
316
+ { readonly jurisdiction: string } & { readonly [x: string]: Schema.Json };
317
+ export type Stripetax_location = {
318
+ readonly address: Stripeaddress;
319
+ readonly description?: string | null;
320
+ readonly id: string;
321
+ readonly livemode: boolean;
322
+ readonly object: "tax.location";
323
+ readonly type: "performance";
324
+ } & { readonly [x: string]: Schema.Json };
325
+ export type Stripetax_code = {
326
+ readonly description: string;
327
+ readonly id: string;
328
+ readonly name: string;
329
+ readonly object: "tax_code";
330
+ readonly requirements?: Stripetax_code_requirements | null;
331
+ } & { readonly [x: string]: Schema.Json };
332
+ export type Stripetax_rate = {
333
+ readonly active: boolean;
334
+ readonly country?: string | null;
335
+ readonly created: number;
336
+ readonly description?: string | null;
337
+ readonly display_name: string;
338
+ readonly effective_percentage?: number | null;
339
+ readonly flat_amount?: Stripetax_rate_flat_amount | null;
340
+ readonly id: string;
341
+ readonly inclusive: boolean;
342
+ readonly jurisdiction?: string | null;
343
+ readonly jurisdiction_level?:
344
+ | "city"
345
+ | "country"
346
+ | "county"
347
+ | "district"
348
+ | "multiple"
349
+ | "state"
350
+ | null;
351
+ readonly livemode: boolean;
352
+ readonly metadata?: { readonly [x: string]: string } | null;
353
+ readonly object: "tax_rate";
354
+ readonly percentage: number;
355
+ readonly rate_type?: "flat_amount" | "percentage" | null;
356
+ readonly state?: string | null;
357
+ readonly tax_type?:
358
+ | "admissions_tax"
359
+ | "amusement_tax"
360
+ | "attendance_tax"
361
+ | "communications_tax"
362
+ | "digital_excise_tax"
363
+ | "entertainment_tax"
364
+ | "get_fund"
365
+ | "gross_receipts_tax"
366
+ | "gst"
367
+ | "hospitality_tax"
368
+ | "hst"
369
+ | "igst"
370
+ | "jct"
371
+ | "lease_tax"
372
+ | "luxury_tax"
373
+ | "mass_transit_parking_tax"
374
+ | "nhil"
375
+ | "parking_tax"
376
+ | "pst"
377
+ | "qst"
378
+ | "resort_tax"
379
+ | "retail_delivery_fee"
380
+ | "rst"
381
+ | "sales_tax"
382
+ | "service_tax"
383
+ | "tourism_tax"
384
+ | "utility_users_tax"
385
+ | "vat"
386
+ | null;
387
+ } & { readonly [x: string]: Schema.Json };
388
+ export type Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition =
389
+ { readonly price: string | Stripeprice | Stripedeleted_price } & {
390
+ readonly [x: string]: Schema.Json;
391
+ };
392
+ export type Stripeproduct_feature = {
393
+ readonly entitlement_feature: Stripeentitlements_feature;
394
+ readonly id: string;
395
+ readonly livemode: boolean;
396
+ readonly object: "product_feature";
397
+ } & { readonly [x: string]: Schema.Json };
398
+ export type Stripeplan = {
399
+ readonly active: boolean;
400
+ readonly amount?: number | null;
401
+ readonly amount_decimal?: string | null;
402
+ readonly billing_scheme: "per_unit" | "tiered";
403
+ readonly created: number;
404
+ readonly currency: string;
405
+ readonly id: string;
406
+ readonly interval: "day" | "month" | "week" | "year";
407
+ readonly interval_count: number;
408
+ readonly livemode: boolean;
409
+ readonly metadata?: { readonly [x: string]: string } | null;
410
+ readonly meter?: string | null;
411
+ readonly nickname?: string | null;
412
+ readonly object: "plan";
413
+ readonly product?: string | Stripeproduct | Stripedeleted_product | null;
414
+ readonly tiers?: ReadonlyArray<Stripeplan_tier>;
415
+ readonly tiers_mode?: "graduated" | "volume" | null;
416
+ readonly transform_usage?: Stripetransform_usage | null;
417
+ readonly trial_period_days?: number | null;
418
+ readonly usage_type: "licensed" | "metered";
419
+ } & { readonly [x: string]: Schema.Json };
420
+ export type Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration =
421
+ {
422
+ readonly relative?: Stripeproduct_catalog_impl_endpoints_trial_offer_resource_relative_duration;
423
+ readonly type: "relative";
424
+ } & { readonly [x: string]: Schema.Json };
425
+ export type Stripetax_product_registrations_resource_country_options_default_inbound_goods =
426
+ {
427
+ readonly standard?: Stripetax_product_registrations_resource_country_options_default_standard;
428
+ readonly type: "standard";
429
+ } & { readonly [x: string]: Schema.Json };
430
+ export type Stripetax_product_registrations_resource_country_options_europe = {
431
+ readonly standard?: Stripetax_product_registrations_resource_country_options_eu_standard;
432
+ readonly type: "ioss" | "oss_non_union" | "oss_union" | "standard";
433
+ } & { readonly [x: string]: Schema.Json };
434
+ export type Stripetax_product_registrations_resource_country_options_spain = {
435
+ readonly standard?: Stripetax_product_registrations_resource_country_options_eu_standard;
436
+ readonly type: "ioss" | "oss_non_union" | "oss_union" | "standard";
437
+ } & { readonly [x: string]: Schema.Json };
438
+ export type Stripetax_product_registrations_resource_country_options_canada = {
439
+ readonly province_standard?: Stripetax_product_registrations_resource_country_options_ca_province_standard;
440
+ readonly type: "province_standard" | "simplified" | "standard";
441
+ } & { readonly [x: string]: Schema.Json };
442
+ export type Stripetax_product_registrations_resource_country_options_us_state_sales_tax =
443
+ {
444
+ readonly elections?: ReadonlyArray<Stripetax_product_registrations_resource_country_options_us_state_sales_tax_election>;
445
+ } & { readonly [x: string]: Schema.Json };
446
+ export type Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior =
447
+ {
448
+ readonly transition?: Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition;
449
+ readonly type: "transition";
450
+ } & { readonly [x: string]: Schema.Json };
451
+ export type Stripetax_product_registrations_resource_country_options_united_states =
452
+ {
453
+ readonly admissions_tax?: Stripetax_product_registrations_resource_country_options_us_admissions_tax;
454
+ readonly attendance_tax?: Stripetax_product_registrations_resource_country_options_us_attendance_tax;
455
+ readonly entertainment_tax?: Stripetax_product_registrations_resource_country_options_us_entertainment_tax;
456
+ readonly gross_receipts_tax?: Stripetax_product_registrations_resource_country_options_us_gross_receipts_tax;
457
+ readonly hospitality_tax?: Stripetax_product_registrations_resource_country_options_us_hospitality_tax;
458
+ readonly local_amusement_tax?: Stripetax_product_registrations_resource_country_options_us_local_amusement_tax;
459
+ readonly local_lease_tax?: Stripetax_product_registrations_resource_country_options_us_local_lease_tax;
460
+ readonly luxury_tax?: Stripetax_product_registrations_resource_country_options_us_luxury_tax;
461
+ readonly mass_transit_parking_tax?: Stripetax_product_registrations_resource_country_options_us_mass_transit_parking_tax;
462
+ readonly parking_tax?: Stripetax_product_registrations_resource_country_options_us_parking_tax;
463
+ readonly resort_tax?: Stripetax_product_registrations_resource_country_options_us_resort_tax;
464
+ readonly state: string;
465
+ readonly state_sales_tax?: Stripetax_product_registrations_resource_country_options_us_state_sales_tax;
466
+ readonly tourism_tax?: Stripetax_product_registrations_resource_country_options_us_tourism_tax;
467
+ readonly type:
468
+ | "admissions_tax"
469
+ | "attendance_tax"
470
+ | "digital_excise_tax"
471
+ | "entertainment_tax"
472
+ | "gross_receipts_tax"
473
+ | "hospitality_tax"
474
+ | "local_amusement_tax"
475
+ | "local_lease_tax"
476
+ | "luxury_tax"
477
+ | "mass_transit_parking_tax"
478
+ | "parking_tax"
479
+ | "resort_tax"
480
+ | "state_communications_tax"
481
+ | "state_retail_delivery_fee"
482
+ | "state_sales_tax"
483
+ | "tourism_tax"
484
+ | "utility_users_tax";
485
+ readonly utility_users_tax?: Stripetax_product_registrations_resource_country_options_us_utility_users_tax;
486
+ } & { readonly [x: string]: Schema.Json };
487
+ export type Stripeproduct_catalog_trial_offer = {
488
+ readonly active: boolean;
489
+ readonly duration: Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration;
490
+ readonly end_behavior: Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior;
491
+ readonly id: string;
492
+ readonly livemode: boolean;
493
+ readonly nickname?: string | null;
494
+ readonly object: "product_catalog.trial_offer";
495
+ readonly price: string | Stripeprice | Stripedeleted_price;
496
+ } & { readonly [x: string]: Schema.Json };
497
+ export type Stripetax_product_registrations_resource_country_options = {
498
+ readonly ae?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
499
+ readonly al?: Stripetax_product_registrations_resource_country_options_default;
500
+ readonly am?: Stripetax_product_registrations_resource_country_options_simplified;
501
+ readonly ao?: Stripetax_product_registrations_resource_country_options_default;
502
+ readonly at?: Stripetax_product_registrations_resource_country_options_europe;
503
+ readonly au?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
504
+ readonly aw?: Stripetax_product_registrations_resource_country_options_default;
505
+ readonly az?: Stripetax_product_registrations_resource_country_options_simplified;
506
+ readonly ba?: Stripetax_product_registrations_resource_country_options_default;
507
+ readonly bb?: Stripetax_product_registrations_resource_country_options_default;
508
+ readonly bd?: Stripetax_product_registrations_resource_country_options_default;
509
+ readonly be?: Stripetax_product_registrations_resource_country_options_europe;
510
+ readonly bf?: Stripetax_product_registrations_resource_country_options_default;
511
+ readonly bg?: Stripetax_product_registrations_resource_country_options_europe;
512
+ readonly bh?: Stripetax_product_registrations_resource_country_options_default;
513
+ readonly bj?: Stripetax_product_registrations_resource_country_options_simplified;
514
+ readonly bs?: Stripetax_product_registrations_resource_country_options_default;
515
+ readonly bw?: Stripetax_product_registrations_resource_country_options_simplified;
516
+ readonly by?: Stripetax_product_registrations_resource_country_options_simplified;
517
+ readonly ca?: Stripetax_product_registrations_resource_country_options_canada;
518
+ readonly cd?: Stripetax_product_registrations_resource_country_options_default;
519
+ readonly ch?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
520
+ readonly ci?: Stripetax_product_registrations_resource_country_options_simplified;
521
+ readonly cl?: Stripetax_product_registrations_resource_country_options_simplified;
522
+ readonly cm?: Stripetax_product_registrations_resource_country_options_simplified;
523
+ readonly co?: Stripetax_product_registrations_resource_country_options_simplified;
524
+ readonly cr?: Stripetax_product_registrations_resource_country_options_simplified;
525
+ readonly cv?: Stripetax_product_registrations_resource_country_options_simplified;
526
+ readonly cy?: Stripetax_product_registrations_resource_country_options_europe;
527
+ readonly cz?: Stripetax_product_registrations_resource_country_options_europe;
528
+ readonly de?: Stripetax_product_registrations_resource_country_options_europe;
529
+ readonly dk?: Stripetax_product_registrations_resource_country_options_europe;
530
+ readonly ec?: Stripetax_product_registrations_resource_country_options_simplified;
531
+ readonly ee?: Stripetax_product_registrations_resource_country_options_europe;
532
+ readonly eg?: Stripetax_product_registrations_resource_country_options_simplified;
533
+ readonly es?: Stripetax_product_registrations_resource_country_options_spain;
534
+ readonly et?: Stripetax_product_registrations_resource_country_options_default;
535
+ readonly fi?: Stripetax_product_registrations_resource_country_options_europe;
536
+ readonly fr?: Stripetax_product_registrations_resource_country_options_europe;
537
+ readonly gb?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
538
+ readonly ge?: Stripetax_product_registrations_resource_country_options_simplified;
539
+ readonly gh?: Stripetax_product_registrations_resource_country_options_simplified;
540
+ readonly gn?: Stripetax_product_registrations_resource_country_options_default;
541
+ readonly gr?: Stripetax_product_registrations_resource_country_options_europe;
542
+ readonly hr?: Stripetax_product_registrations_resource_country_options_europe;
543
+ readonly hu?: Stripetax_product_registrations_resource_country_options_europe;
544
+ readonly id?: Stripetax_product_registrations_resource_country_options_simplified;
545
+ readonly ie?: Stripetax_product_registrations_resource_country_options_europe;
546
+ readonly in?: Stripetax_product_registrations_resource_country_options_simplified;
547
+ readonly is?: Stripetax_product_registrations_resource_country_options_default;
548
+ readonly it?: Stripetax_product_registrations_resource_country_options_europe;
549
+ readonly jp?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
550
+ readonly ke?: Stripetax_product_registrations_resource_country_options_simplified;
551
+ readonly kg?: Stripetax_product_registrations_resource_country_options_simplified;
552
+ readonly kh?: Stripetax_product_registrations_resource_country_options_simplified;
553
+ readonly kr?: Stripetax_product_registrations_resource_country_options_simplified;
554
+ readonly kz?: Stripetax_product_registrations_resource_country_options_simplified;
555
+ readonly la?: Stripetax_product_registrations_resource_country_options_simplified;
556
+ readonly lk?: Stripetax_product_registrations_resource_country_options_simplified;
557
+ readonly lt?: Stripetax_product_registrations_resource_country_options_europe;
558
+ readonly lu?: Stripetax_product_registrations_resource_country_options_europe;
559
+ readonly lv?: Stripetax_product_registrations_resource_country_options_europe;
560
+ readonly ma?: Stripetax_product_registrations_resource_country_options_simplified;
561
+ readonly md?: Stripetax_product_registrations_resource_country_options_simplified;
562
+ readonly me?: Stripetax_product_registrations_resource_country_options_default;
563
+ readonly mk?: Stripetax_product_registrations_resource_country_options_default;
564
+ readonly mr?: Stripetax_product_registrations_resource_country_options_default;
565
+ readonly mt?: Stripetax_product_registrations_resource_country_options_europe;
566
+ readonly mu?: Stripetax_product_registrations_resource_country_options_simplified;
567
+ readonly mx?: Stripetax_product_registrations_resource_country_options_simplified;
568
+ readonly my?: Stripetax_product_registrations_resource_country_options_simplified;
569
+ readonly ng?: Stripetax_product_registrations_resource_country_options_simplified;
570
+ readonly nl?: Stripetax_product_registrations_resource_country_options_europe;
571
+ readonly no?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
572
+ readonly np?: Stripetax_product_registrations_resource_country_options_simplified;
573
+ readonly nz?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
574
+ readonly om?: Stripetax_product_registrations_resource_country_options_default;
575
+ readonly pe?: Stripetax_product_registrations_resource_country_options_simplified;
576
+ readonly ph?: Stripetax_product_registrations_resource_country_options_simplified;
577
+ readonly pl?: Stripetax_product_registrations_resource_country_options_europe;
578
+ readonly pt?: Stripetax_product_registrations_resource_country_options_europe;
579
+ readonly ro?: Stripetax_product_registrations_resource_country_options_europe;
580
+ readonly rs?: Stripetax_product_registrations_resource_country_options_default;
581
+ readonly ru?: Stripetax_product_registrations_resource_country_options_simplified;
582
+ readonly sa?: Stripetax_product_registrations_resource_country_options_simplified;
583
+ readonly se?: Stripetax_product_registrations_resource_country_options_europe;
584
+ readonly sg?: Stripetax_product_registrations_resource_country_options_default_inbound_goods;
585
+ readonly si?: Stripetax_product_registrations_resource_country_options_europe;
586
+ readonly sk?: Stripetax_product_registrations_resource_country_options_europe;
587
+ readonly sn?: Stripetax_product_registrations_resource_country_options_simplified;
588
+ readonly sr?: Stripetax_product_registrations_resource_country_options_default;
589
+ readonly th?: Stripetax_product_registrations_resource_country_options_thailand;
590
+ readonly tj?: Stripetax_product_registrations_resource_country_options_simplified;
591
+ readonly tr?: Stripetax_product_registrations_resource_country_options_simplified;
592
+ readonly tw?: Stripetax_product_registrations_resource_country_options_simplified;
593
+ readonly tz?: Stripetax_product_registrations_resource_country_options_simplified;
594
+ readonly ua?: Stripetax_product_registrations_resource_country_options_simplified;
595
+ readonly ug?: Stripetax_product_registrations_resource_country_options_simplified;
596
+ readonly us?: Stripetax_product_registrations_resource_country_options_united_states;
597
+ readonly uy?: Stripetax_product_registrations_resource_country_options_default;
598
+ readonly uz?: Stripetax_product_registrations_resource_country_options_simplified;
599
+ readonly vn?: Stripetax_product_registrations_resource_country_options_simplified;
600
+ readonly za?: Stripetax_product_registrations_resource_country_options_default;
601
+ readonly zm?: Stripetax_product_registrations_resource_country_options_simplified;
602
+ readonly zw?: Stripetax_product_registrations_resource_country_options_default;
603
+ } & { readonly [x: string]: Schema.Json };
604
+ export type Stripetax_registration = {
605
+ readonly active_from: number;
606
+ readonly country: string;
607
+ readonly country_options: Stripetax_product_registrations_resource_country_options;
608
+ readonly created: number;
609
+ readonly expires_at?: number | null;
610
+ readonly id: string;
611
+ readonly livemode: boolean;
612
+ readonly object: "tax.registration";
613
+ readonly status: "active" | "expired" | "scheduled";
614
+ } & { readonly [x: string]: Schema.Json };
615
+
616
+ export const Stripetax_id = Schema.suspend(
617
+ (): Schema.Codec<Stripetax_id> =>
618
+ Schema.StructWithRest(
619
+ Schema.Struct({
620
+ country: Schema.optionalKey(
621
+ Schema.Union([
622
+ Schema.String.annotate({
623
+ description:
624
+ "Two-letter ISO code representing the country of the tax ID.",
625
+ }).check(
626
+ Schema.isMaxCodePoints(5000).annotate({
627
+ expected: "a string with at most 5000 code points",
628
+ }),
629
+ ),
630
+ Schema.Null,
631
+ ]),
632
+ ),
633
+ created: Schema.Number.annotate({
634
+ description:
635
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
636
+ format: "unix-time",
637
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
638
+ customer: Schema.optionalKey(
639
+ Schema.Union([
640
+ Schema.Union([
641
+ Schema.String.check(
642
+ Schema.isMaxCodePoints(5000).annotate({
643
+ expected: "a string with at most 5000 code points",
644
+ }),
645
+ ),
646
+ Schema.suspend(
647
+ (): Schema.Codec<Stripecustomer> => Stripecustomer,
648
+ ),
649
+ ]).annotate({ description: "ID of the customer." }),
650
+ Schema.Null,
651
+ ]),
652
+ ),
653
+ customer_account: Schema.optionalKey(
654
+ Schema.Union([
655
+ Schema.String.annotate({
656
+ description: "ID of the Account representing the customer.",
657
+ }).check(
658
+ Schema.isMaxCodePoints(5000).annotate({
659
+ expected: "a string with at most 5000 code points",
660
+ }),
661
+ ),
662
+ Schema.Null,
663
+ ]),
664
+ ),
665
+ id: Schema.String.annotate({
666
+ description: "Unique identifier for the object.",
667
+ }).check(
668
+ Schema.isMaxCodePoints(5000).annotate({
669
+ expected: "a string with at most 5000 code points",
670
+ }),
671
+ ),
672
+ livemode: Schema.Boolean.annotate({
673
+ description:
674
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
675
+ }),
676
+ object: Schema.Literal("tax_id").annotate({
677
+ description:
678
+ "String representing the object's type. Objects of the same type share the same value.",
679
+ }),
680
+ owner: Schema.optionalKey(
681
+ Schema.Union([
682
+ Schema.Union([
683
+ Schema.suspend(
684
+ (): Schema.Codec<Stripetax_i_ds_owner> => Stripetax_i_ds_owner,
685
+ ),
686
+ ]).annotate({
687
+ description: "The account or customer the tax ID belongs to.",
688
+ }),
689
+ Schema.Null,
690
+ ]),
691
+ ),
692
+ type: Schema.Literals([
693
+ "ad_nrt",
694
+ "ae_trn",
695
+ "al_tin",
696
+ "am_tin",
697
+ "ao_tin",
698
+ "ar_cuit",
699
+ "au_abn",
700
+ "au_acn",
701
+ "au_arn",
702
+ "au_wpn",
703
+ "aw_tin",
704
+ "az_tin",
705
+ "ba_tin",
706
+ "bb_tin",
707
+ "bd_bin",
708
+ "bf_ifu",
709
+ "bg_uic",
710
+ "bh_vat",
711
+ "bj_ifu",
712
+ "bo_tin",
713
+ "br_cnpj",
714
+ "br_cpf",
715
+ "bs_tin",
716
+ "bw_vat",
717
+ "by_tin",
718
+ "ca_bn",
719
+ "ca_gst_hst",
720
+ "ca_pst_bc",
721
+ "ca_pst_mb",
722
+ "ca_pst_sk",
723
+ "ca_qst",
724
+ "cd_nif",
725
+ "ch_uid",
726
+ "ch_vat",
727
+ "ci_vat",
728
+ "cl_tin",
729
+ "cm_niu",
730
+ "cn_tin",
731
+ "co_nit",
732
+ "cr_tin",
733
+ "cv_nif",
734
+ "cz_dic",
735
+ "de_stn",
736
+ "do_rcn",
737
+ "ec_ruc",
738
+ "eg_tin",
739
+ "es_cif",
740
+ "et_tin",
741
+ "eu_oss_vat",
742
+ "eu_vat",
743
+ "fo_vat",
744
+ "fr_siren",
745
+ "fr_siret",
746
+ "fr_spi",
747
+ "gb_vat",
748
+ "ge_vat",
749
+ "gh_tin",
750
+ "gi_tin",
751
+ "gn_nif",
752
+ "hk_br",
753
+ "hr_oib",
754
+ "hu_tin",
755
+ "ic_nif",
756
+ "id_npwp",
757
+ "il_vat",
758
+ "in_gst",
759
+ "is_kt",
760
+ "is_vat",
761
+ "it_cf",
762
+ "jp_cn",
763
+ "jp_rn",
764
+ "jp_trn",
765
+ "ke_pin",
766
+ "kg_tin",
767
+ "kh_tin",
768
+ "kr_brn",
769
+ "kz_bin",
770
+ "la_tin",
771
+ "li_uid",
772
+ "li_vat",
773
+ "lk_vat",
774
+ "ma_vat",
775
+ "md_cf",
776
+ "md_vat",
777
+ "me_pib",
778
+ "mk_vat",
779
+ "mr_nif",
780
+ "mu_vat",
781
+ "mx_rfc",
782
+ "my_frp",
783
+ "my_itn",
784
+ "my_sst",
785
+ "mz_nuit",
786
+ "ng_tin",
787
+ "no_vat",
788
+ "no_voec",
789
+ "np_pan",
790
+ "nz_bn",
791
+ "nz_gst",
792
+ "om_vat",
793
+ "pe_ruc",
794
+ "ph_tin",
795
+ "pl_nip",
796
+ "pt_nif",
797
+ "py_ruc",
798
+ "ro_tin",
799
+ "rs_pib",
800
+ "ru_inn",
801
+ "ru_kpp",
802
+ "sa_vat",
803
+ "sg_gst",
804
+ "sg_uen",
805
+ "si_tin",
806
+ "sm_coe",
807
+ "sn_ninea",
808
+ "sr_fin",
809
+ "sv_nit",
810
+ "th_vat",
811
+ "tj_tin",
812
+ "tr_tin",
813
+ "tt_bir",
814
+ "tt_vat",
815
+ "tw_vat",
816
+ "tz_vat",
817
+ "ua_vat",
818
+ "ug_tin",
819
+ "unknown",
820
+ "us_ein",
821
+ "uy_ruc",
822
+ "uz_tin",
823
+ "uz_vat",
824
+ "ve_rif",
825
+ "vn_tin",
826
+ "za_vat",
827
+ "zm_tin",
828
+ "zw_tin",
829
+ ]).annotate({
830
+ description:
831
+ "Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_acn`, `au_arn`, `au_wpn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `bw_vat`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `ci_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `cz_dic`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `fr_siren`, `fr_siret`, `fr_spi`, `gb_vat`, `ge_vat`, `gh_tin`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_kt`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_cf`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mu_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `mz_nuit`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_bn`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `pt_nif`, `py_ruc`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sm_coe`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tt_bir`, `tt_vat`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown`",
832
+ }),
833
+ value: Schema.String.annotate({
834
+ description: "Value of the tax ID.",
835
+ }).check(
836
+ Schema.isMaxCodePoints(5000).annotate({
837
+ expected: "a string with at most 5000 code points",
838
+ }),
839
+ ),
840
+ verification: Schema.optionalKey(
841
+ Schema.Union([
842
+ Schema.Union([Stripetax_id_verification]).annotate({
843
+ description: "Tax ID verification information.",
844
+ }),
845
+ Schema.Null,
846
+ ]),
847
+ ),
848
+ }),
849
+ [
850
+ Schema.Record(
851
+ Schema.String,
852
+ Schema.Json.annotate({ expected: "JSON value" }),
853
+ ),
854
+ ],
855
+ ).annotate({
856
+ title: "Tax ID",
857
+ description:
858
+ "You can add one or multiple tax IDs to a [customer](https://docs.stripe.com/api/customers) or account.\nCustomer and account tax IDs get displayed on related invoices and credit notes.\n\nRelated guides: [Customer tax identification numbers](https://docs.stripe.com/billing/taxes/tax-ids), [Account tax IDs](https://docs.stripe.com/invoicing/connect#account-tax-ids)",
859
+ identifier: "Stripetax_id",
860
+ }),
861
+ );
862
+ export const Stripetax_i_ds_owner = Schema.suspend(
863
+ (): Schema.Codec<Stripetax_i_ds_owner> =>
864
+ Schema.StructWithRest(
865
+ Schema.Struct({
866
+ account: Schema.optionalKey(
867
+ Schema.Union([
868
+ Schema.String.check(
869
+ Schema.isMaxCodePoints(5000).annotate({
870
+ expected: "a string with at most 5000 code points",
871
+ }),
872
+ ),
873
+ Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
874
+ ]).annotate({
875
+ description:
876
+ "The account being referenced when `type` is `account`.",
877
+ }),
878
+ ),
879
+ application: Schema.optionalKey(
880
+ Schema.Union([
881
+ Schema.String.check(
882
+ Schema.isMaxCodePoints(5000).annotate({
883
+ expected: "a string with at most 5000 code points",
884
+ }),
885
+ ),
886
+ Stripeapplication,
887
+ ]).annotate({
888
+ description:
889
+ "The Connect Application being referenced when `type` is `application`.",
890
+ }),
891
+ ),
892
+ customer: Schema.optionalKey(
893
+ Schema.Union([
894
+ Schema.String.check(
895
+ Schema.isMaxCodePoints(5000).annotate({
896
+ expected: "a string with at most 5000 code points",
897
+ }),
898
+ ),
899
+ Schema.suspend((): Schema.Codec<Stripecustomer> => Stripecustomer),
900
+ ]).annotate({
901
+ description:
902
+ "The customer being referenced when `type` is `customer`.",
903
+ }),
904
+ ),
905
+ customer_account: Schema.optionalKey(
906
+ Schema.Union([
907
+ Schema.String.annotate({
908
+ description:
909
+ "The Account representing the customer being referenced when `type` is `customer`.",
910
+ }).check(
911
+ Schema.isMaxCodePoints(5000).annotate({
912
+ expected: "a string with at most 5000 code points",
913
+ }),
914
+ ),
915
+ Schema.Null,
916
+ ]),
917
+ ),
918
+ type: Schema.Literals([
919
+ "account",
920
+ "application",
921
+ "customer",
922
+ "self",
923
+ ]).annotate({ description: "Type of owner referenced." }),
924
+ }),
925
+ [
926
+ Schema.Record(
927
+ Schema.String,
928
+ Schema.Json.annotate({ expected: "JSON value" }),
929
+ ),
930
+ ],
931
+ ).annotate({
932
+ title: "TaxIDsOwner",
933
+ description: "",
934
+ identifier: "Stripetax_i_ds_owner",
935
+ }),
936
+ );
937
+ export const Stripeprice = Schema.suspend(
938
+ (): Schema.Codec<Stripeprice> =>
939
+ Schema.StructWithRest(
940
+ Schema.Struct({
941
+ active: Schema.Boolean.annotate({
942
+ description: "Whether the price can be used for new purchases.",
943
+ }),
944
+ billing_scheme: Schema.Literals(["per_unit", "tiered"]).annotate({
945
+ description:
946
+ "Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.",
947
+ }),
948
+ created: Schema.Number.annotate({
949
+ description:
950
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
951
+ format: "unix-time",
952
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
953
+ currency: Schema.String.annotate({
954
+ description:
955
+ "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).",
956
+ format: "currency",
957
+ }),
958
+ currency_options: Schema.optionalKey(
959
+ Schema.Record(Schema.String, Stripecurrency_option).annotate({
960
+ description:
961
+ "Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).",
962
+ }),
963
+ ),
964
+ custom_unit_amount: Schema.optionalKey(
965
+ Schema.Union([
966
+ Schema.Union([Stripecustom_unit_amount, Schema.Null]).annotate({
967
+ description:
968
+ "When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.",
969
+ }),
970
+ Schema.Null,
971
+ ]),
972
+ ),
973
+ id: Schema.String.annotate({
974
+ description: "Unique identifier for the object.",
975
+ }).check(
976
+ Schema.isMaxCodePoints(5000).annotate({
977
+ expected: "a string with at most 5000 code points",
978
+ }),
979
+ ),
980
+ livemode: Schema.Boolean.annotate({
981
+ description:
982
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
983
+ }),
984
+ lookup_key: Schema.optionalKey(
985
+ Schema.Union([
986
+ Schema.String.annotate({
987
+ description:
988
+ "A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.",
989
+ }).check(
990
+ Schema.isMaxCodePoints(5000).annotate({
991
+ expected: "a string with at most 5000 code points",
992
+ }),
993
+ ),
994
+ Schema.Null,
995
+ ]),
996
+ ),
997
+ metadata: Schema.Record(
998
+ Schema.String,
999
+ Schema.String.check(
1000
+ Schema.isMaxCodePoints(500).annotate({
1001
+ expected: "a string with at most 500 code points",
1002
+ }),
1003
+ ),
1004
+ ).annotate({
1005
+ description:
1006
+ "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.",
1007
+ }),
1008
+ nickname: Schema.optionalKey(
1009
+ Schema.Union([
1010
+ Schema.String.annotate({
1011
+ description:
1012
+ "A brief description of the price, hidden from customers.",
1013
+ }).check(
1014
+ Schema.isMaxCodePoints(5000).annotate({
1015
+ expected: "a string with at most 5000 code points",
1016
+ }),
1017
+ ),
1018
+ Schema.Null,
1019
+ ]),
1020
+ ),
1021
+ object: Schema.Literal("price").annotate({
1022
+ description:
1023
+ "String representing the object's type. Objects of the same type share the same value.",
1024
+ }),
1025
+ product: Schema.Union([
1026
+ Schema.String.check(
1027
+ Schema.isMaxCodePoints(5000).annotate({
1028
+ expected: "a string with at most 5000 code points",
1029
+ }),
1030
+ ),
1031
+ Schema.suspend((): Schema.Codec<Stripeproduct> => Stripeproduct),
1032
+ Stripedeleted_product,
1033
+ ]).annotate({
1034
+ description: "The ID of the product this price is associated with.",
1035
+ }),
1036
+ recurring: Schema.optionalKey(
1037
+ Schema.Union([
1038
+ Schema.Union([Striperecurring, Schema.Null]).annotate({
1039
+ description:
1040
+ "The recurring components of a price such as `interval` and `usage_type`.",
1041
+ }),
1042
+ Schema.Null,
1043
+ ]),
1044
+ ),
1045
+ tax_behavior: Schema.optionalKey(
1046
+ Schema.Union([
1047
+ Schema.Literals(["exclusive", "inclusive", "unspecified"]).annotate(
1048
+ {
1049
+ description:
1050
+ "Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.",
1051
+ },
1052
+ ),
1053
+ Schema.Null,
1054
+ ]),
1055
+ ),
1056
+ tiers: Schema.optionalKey(
1057
+ Schema.Array(Stripeprice_tier).annotate({
1058
+ description:
1059
+ "Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.",
1060
+ }),
1061
+ ),
1062
+ tiers_mode: Schema.optionalKey(
1063
+ Schema.Union([
1064
+ Schema.Literals(["graduated", "volume"]).annotate({
1065
+ description:
1066
+ "Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.",
1067
+ }),
1068
+ Schema.Null,
1069
+ ]),
1070
+ ),
1071
+ transform_quantity: Schema.optionalKey(
1072
+ Schema.Union([
1073
+ Schema.Union([Stripetransform_quantity, Schema.Null]).annotate({
1074
+ description:
1075
+ "Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.",
1076
+ }),
1077
+ Schema.Null,
1078
+ ]),
1079
+ ),
1080
+ type: Schema.Literals(["one_time", "recurring"]).annotate({
1081
+ description:
1082
+ "One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.",
1083
+ }),
1084
+ unit_amount: Schema.optionalKey(
1085
+ Schema.Union([
1086
+ Schema.Number.annotate({
1087
+ description:
1088
+ "The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`.",
1089
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1090
+ Schema.Null,
1091
+ ]),
1092
+ ),
1093
+ unit_amount_decimal: Schema.optionalKey(
1094
+ Schema.Union([
1095
+ Schema.String.annotate({
1096
+ description:
1097
+ "The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.",
1098
+ format: "decimal",
1099
+ }),
1100
+ Schema.Null,
1101
+ ]),
1102
+ ),
1103
+ }),
1104
+ [
1105
+ Schema.Record(
1106
+ Schema.String,
1107
+ Schema.Json.annotate({ expected: "JSON value" }),
1108
+ ),
1109
+ ],
1110
+ ).annotate({
1111
+ title: "Price",
1112
+ description:
1113
+ 'Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.\n[Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.\n\nFor example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.\n\nRelated guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription), [create an invoice](https://docs.stripe.com/billing/invoices/create), and more about [products and prices](https://docs.stripe.com/products-prices/overview).',
1114
+ identifier: "Stripeprice",
1115
+ }),
1116
+ );
1117
+ export const Stripeproduct = Schema.suspend(
1118
+ (): Schema.Codec<Stripeproduct> =>
1119
+ Schema.StructWithRest(
1120
+ Schema.Struct({
1121
+ active: Schema.Boolean.annotate({
1122
+ description:
1123
+ "Whether the product is currently available for purchase.",
1124
+ }),
1125
+ created: Schema.Number.annotate({
1126
+ description:
1127
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1128
+ format: "unix-time",
1129
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1130
+ default_price: Schema.optionalKey(
1131
+ Schema.Union([
1132
+ Schema.Union([
1133
+ Schema.String.check(
1134
+ Schema.isMaxCodePoints(5000).annotate({
1135
+ expected: "a string with at most 5000 code points",
1136
+ }),
1137
+ ),
1138
+ Schema.suspend((): Schema.Codec<Stripeprice> => Stripeprice),
1139
+ Schema.Null,
1140
+ ]).annotate({
1141
+ description:
1142
+ "The ID of the [Price](https://docs.stripe.com/api/prices) object that is the default price for this product.",
1143
+ }),
1144
+ Schema.Null,
1145
+ ]),
1146
+ ),
1147
+ description: Schema.optionalKey(
1148
+ Schema.Union([
1149
+ Schema.String.annotate({
1150
+ description:
1151
+ "The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.",
1152
+ }).check(
1153
+ Schema.isMaxCodePoints(5000).annotate({
1154
+ expected: "a string with at most 5000 code points",
1155
+ }),
1156
+ ),
1157
+ Schema.Null,
1158
+ ]),
1159
+ ),
1160
+ id: Schema.String.annotate({
1161
+ description: "Unique identifier for the object.",
1162
+ }).check(
1163
+ Schema.isMaxCodePoints(5000).annotate({
1164
+ expected: "a string with at most 5000 code points",
1165
+ }),
1166
+ ),
1167
+ images: Schema.Array(
1168
+ Schema.String.check(
1169
+ Schema.isMaxCodePoints(5000).annotate({
1170
+ expected: "a string with at most 5000 code points",
1171
+ }),
1172
+ ),
1173
+ ).annotate({
1174
+ description:
1175
+ "A list of up to 8 URLs of images for this product, meant to be displayable to the customer.",
1176
+ }),
1177
+ livemode: Schema.Boolean.annotate({
1178
+ description:
1179
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1180
+ }),
1181
+ marketing_features: Schema.Array(
1182
+ Stripeproduct_marketing_feature,
1183
+ ).annotate({
1184
+ description:
1185
+ "A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://docs.stripe.com/payments/checkout/pricing-table).",
1186
+ }),
1187
+ metadata: Schema.Record(
1188
+ Schema.String,
1189
+ Schema.String.check(
1190
+ Schema.isMaxCodePoints(500).annotate({
1191
+ expected: "a string with at most 500 code points",
1192
+ }),
1193
+ ),
1194
+ ).annotate({
1195
+ description:
1196
+ "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.",
1197
+ }),
1198
+ name: Schema.String.annotate({
1199
+ description:
1200
+ "The product's name, meant to be displayable to the customer.",
1201
+ }).check(
1202
+ Schema.isMaxCodePoints(5000).annotate({
1203
+ expected: "a string with at most 5000 code points",
1204
+ }),
1205
+ ),
1206
+ object: Schema.Literal("product").annotate({
1207
+ description:
1208
+ "String representing the object's type. Objects of the same type share the same value.",
1209
+ }),
1210
+ package_dimensions: Schema.optionalKey(
1211
+ Schema.Union([
1212
+ Schema.Union([Stripepackage_dimensions, Schema.Null]).annotate({
1213
+ description:
1214
+ "The dimensions of this product for shipping purposes.",
1215
+ }),
1216
+ Schema.Null,
1217
+ ]),
1218
+ ),
1219
+ shippable: Schema.optionalKey(
1220
+ Schema.Union([
1221
+ Schema.Boolean.annotate({
1222
+ description:
1223
+ "Whether this product is shipped (i.e., physical goods).",
1224
+ }),
1225
+ Schema.Null,
1226
+ ]),
1227
+ ),
1228
+ statement_descriptor: Schema.optionalKey(
1229
+ Schema.Union([
1230
+ Schema.String.annotate({
1231
+ description:
1232
+ "Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.",
1233
+ }).check(
1234
+ Schema.isMaxCodePoints(5000).annotate({
1235
+ expected: "a string with at most 5000 code points",
1236
+ }),
1237
+ ),
1238
+ Schema.Null,
1239
+ ]),
1240
+ ),
1241
+ tax_code: Schema.optionalKey(
1242
+ Schema.Union([
1243
+ Schema.Union([
1244
+ Schema.String.check(
1245
+ Schema.isMaxCodePoints(5000).annotate({
1246
+ expected: "a string with at most 5000 code points",
1247
+ }),
1248
+ ),
1249
+ Stripetax_code,
1250
+ Schema.Null,
1251
+ ]).annotate({
1252
+ description:
1253
+ "A [tax code](https://docs.stripe.com/tax/tax-categories) ID.",
1254
+ }),
1255
+ Schema.Null,
1256
+ ]),
1257
+ ),
1258
+ tax_details: Schema.optionalKey(
1259
+ Schema.Union([
1260
+ Schema.Union([
1261
+ Stripetax_product_tax_details_resource_tax_details,
1262
+ Schema.Null,
1263
+ ]).annotate({
1264
+ description:
1265
+ "Tax details for this product, including the [tax code](/tax/tax-codes) and an optional performance location.",
1266
+ }),
1267
+ Schema.Null,
1268
+ ]),
1269
+ ),
1270
+ unit_label: Schema.optionalKey(
1271
+ Schema.Union([
1272
+ Schema.String.annotate({
1273
+ description:
1274
+ "A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.",
1275
+ }).check(
1276
+ Schema.isMaxCodePoints(5000).annotate({
1277
+ expected: "a string with at most 5000 code points",
1278
+ }),
1279
+ ),
1280
+ Schema.Null,
1281
+ ]),
1282
+ ),
1283
+ updated: Schema.Number.annotate({
1284
+ description:
1285
+ "Time at which the object was last updated. Measured in seconds since the Unix epoch.",
1286
+ format: "unix-time",
1287
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1288
+ url: Schema.optionalKey(
1289
+ Schema.Union([
1290
+ Schema.String.annotate({
1291
+ description:
1292
+ "A URL of a publicly-accessible webpage for this product.",
1293
+ }).check(
1294
+ Schema.isMaxCodePoints(2048).annotate({
1295
+ expected: "a string with at most 2048 code points",
1296
+ }),
1297
+ ),
1298
+ Schema.Null,
1299
+ ]),
1300
+ ),
1301
+ }),
1302
+ [
1303
+ Schema.Record(
1304
+ Schema.String,
1305
+ Schema.Json.annotate({ expected: "JSON value" }),
1306
+ ),
1307
+ ],
1308
+ ).annotate({
1309
+ title: "Product",
1310
+ description:
1311
+ "Products describe the specific goods or services you offer to your customers.\nFor example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.\nThey can be used in conjunction with [Prices](https://docs.stripe.com/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.\n\nRelated guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription),\n[share a Payment Link](https://docs.stripe.com/payment-links),\n[accept payments with Checkout](https://docs.stripe.com/payments/accept-a-payment#create-product-prices-upfront),\nand more about [Products and Prices](https://docs.stripe.com/products-prices/overview)",
1312
+ identifier: "Stripeproduct",
1313
+ }),
1314
+ );
1315
+ export const Stripetax_deducted_at_source = Schema.StructWithRest(
1316
+ Schema.Struct({
1317
+ id: Schema.String.annotate({
1318
+ description: "Unique identifier for the object.",
1319
+ }).check(
1320
+ Schema.isMaxCodePoints(5000).annotate({
1321
+ expected: "a string with at most 5000 code points",
1322
+ }),
1323
+ ),
1324
+ object: Schema.Literal("tax_deducted_at_source").annotate({
1325
+ description:
1326
+ "String representing the object's type. Objects of the same type share the same value.",
1327
+ }),
1328
+ period_end: Schema.Number.annotate({
1329
+ description:
1330
+ "The end of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.",
1331
+ format: "unix-time",
1332
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1333
+ period_start: Schema.Number.annotate({
1334
+ description:
1335
+ "The start of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.",
1336
+ format: "unix-time",
1337
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1338
+ tax_deduction_account_number: Schema.String.annotate({
1339
+ description: "The TAN that was supplied to Stripe when TDS was assessed",
1340
+ }).check(
1341
+ Schema.isMaxCodePoints(5000).annotate({
1342
+ expected: "a string with at most 5000 code points",
1343
+ }),
1344
+ ),
1345
+ }),
1346
+ [
1347
+ Schema.Record(
1348
+ Schema.String,
1349
+ Schema.Json.annotate({ expected: "JSON value" }),
1350
+ ),
1351
+ ],
1352
+ ).annotate({
1353
+ title: "TaxDeductedAtSource",
1354
+ description: "",
1355
+ identifier: "Stripetax_deducted_at_source",
1356
+ });
1357
+ export const Stripeprice_tier = Schema.StructWithRest(
1358
+ Schema.Struct({
1359
+ flat_amount: Schema.optionalKey(
1360
+ Schema.Union([
1361
+ Schema.Number.annotate({
1362
+ description: "Price for the entire tier.",
1363
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1364
+ Schema.Null,
1365
+ ]),
1366
+ ),
1367
+ flat_amount_decimal: Schema.optionalKey(
1368
+ Schema.Union([
1369
+ Schema.String.annotate({
1370
+ description:
1371
+ "Same as `flat_amount`, but contains a decimal value with at most 12 decimal places.",
1372
+ format: "decimal",
1373
+ }),
1374
+ Schema.Null,
1375
+ ]),
1376
+ ),
1377
+ unit_amount: Schema.optionalKey(
1378
+ Schema.Union([
1379
+ Schema.Number.annotate({
1380
+ description: "Per unit price for units relevant to the tier.",
1381
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1382
+ Schema.Null,
1383
+ ]),
1384
+ ),
1385
+ unit_amount_decimal: Schema.optionalKey(
1386
+ Schema.Union([
1387
+ Schema.String.annotate({
1388
+ description:
1389
+ "Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.",
1390
+ format: "decimal",
1391
+ }),
1392
+ Schema.Null,
1393
+ ]),
1394
+ ),
1395
+ up_to: Schema.optionalKey(
1396
+ Schema.Union([
1397
+ Schema.Number.annotate({
1398
+ description:
1399
+ "Up to and including to this quantity will be contained in the tier.",
1400
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1401
+ Schema.Null,
1402
+ ]),
1403
+ ),
1404
+ }),
1405
+ [
1406
+ Schema.Record(
1407
+ Schema.String,
1408
+ Schema.Json.annotate({ expected: "JSON value" }),
1409
+ ),
1410
+ ],
1411
+ ).annotate({
1412
+ title: "PriceTier",
1413
+ description: "",
1414
+ identifier: "Stripeprice_tier",
1415
+ });
1416
+ export const Stripeproduct_marketing_feature = Schema.StructWithRest(
1417
+ Schema.Struct({
1418
+ name: Schema.optionalKey(
1419
+ Schema.String.annotate({
1420
+ description: "The marketing feature name. Up to 80 characters long.",
1421
+ }).check(
1422
+ Schema.isMaxCodePoints(5000).annotate({
1423
+ expected: "a string with at most 5000 code points",
1424
+ }),
1425
+ ),
1426
+ ),
1427
+ }),
1428
+ [
1429
+ Schema.Record(
1430
+ Schema.String,
1431
+ Schema.Json.annotate({ expected: "JSON value" }),
1432
+ ),
1433
+ ],
1434
+ ).annotate({
1435
+ title: "ProductMarketingFeature",
1436
+ description: "",
1437
+ identifier: "Stripeproduct_marketing_feature",
1438
+ });
1439
+ export const Stripetax_code_requirements = Schema.StructWithRest(
1440
+ Schema.Struct({
1441
+ performance_location: Schema.Literals(["optional", "required"]).annotate({
1442
+ description:
1443
+ "Describes whether a performance location is required for a successful tax calculation with a tax code.",
1444
+ }),
1445
+ }),
1446
+ [
1447
+ Schema.Record(
1448
+ Schema.String,
1449
+ Schema.Json.annotate({ expected: "JSON value" }),
1450
+ ),
1451
+ ],
1452
+ ).annotate({
1453
+ title: "TaxCodeRequirements",
1454
+ description: "",
1455
+ identifier: "Stripetax_code_requirements",
1456
+ });
1457
+ export const Stripetax_product_tax_details_resource_tax_details =
1458
+ Schema.StructWithRest(
1459
+ Schema.Struct({
1460
+ performance_location: Schema.optionalKey(
1461
+ Schema.Union([
1462
+ Schema.String.annotate({
1463
+ description:
1464
+ "The ID of a tax location with type `performance`, representing where the performance takes place.",
1465
+ }).check(
1466
+ Schema.isMaxCodePoints(5000).annotate({
1467
+ expected: "a string with at most 5000 code points",
1468
+ }),
1469
+ ),
1470
+ Schema.Null,
1471
+ ]),
1472
+ ),
1473
+ tax_code: Schema.optionalKey(
1474
+ Schema.Union([
1475
+ Schema.String.annotate({
1476
+ description:
1477
+ "A [tax code](https://docs.stripe.com/tax/tax-categories) ID.",
1478
+ }).check(
1479
+ Schema.isMaxCodePoints(5000).annotate({
1480
+ expected: "a string with at most 5000 code points",
1481
+ }),
1482
+ ),
1483
+ Schema.Null,
1484
+ ]),
1485
+ ),
1486
+ }),
1487
+ [
1488
+ Schema.Record(
1489
+ Schema.String,
1490
+ Schema.Json.annotate({ expected: "JSON value" }),
1491
+ ),
1492
+ ],
1493
+ ).annotate({
1494
+ title: "Tax Detail",
1495
+ description:
1496
+ "Tax details contains information about the data that was used to calculate taxes.",
1497
+ identifier: "Stripetax_product_tax_details_resource_tax_details",
1498
+ });
1499
+ export const Stripetax_rate_flat_amount = Schema.StructWithRest(
1500
+ Schema.Struct({
1501
+ amount: Schema.Number.annotate({
1502
+ description:
1503
+ "Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).",
1504
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1505
+ currency: Schema.String.annotate({
1506
+ description: "Three-letter ISO currency code, in lowercase.",
1507
+ }).check(
1508
+ Schema.isMaxCodePoints(5000).annotate({
1509
+ expected: "a string with at most 5000 code points",
1510
+ }),
1511
+ ),
1512
+ }),
1513
+ [
1514
+ Schema.Record(
1515
+ Schema.String,
1516
+ Schema.Json.annotate({ expected: "JSON value" }),
1517
+ ),
1518
+ ],
1519
+ ).annotate({
1520
+ title: "Flat Amount",
1521
+ description:
1522
+ "The amount of the tax rate when the `rate_type`` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate.",
1523
+ identifier: "Stripetax_rate_flat_amount",
1524
+ });
1525
+ export const Stripetax_id_verification = Schema.StructWithRest(
1526
+ Schema.Struct({
1527
+ status: Schema.Literals([
1528
+ "pending",
1529
+ "unavailable",
1530
+ "unverified",
1531
+ "verified",
1532
+ ]).annotate({
1533
+ description:
1534
+ "Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`.",
1535
+ }),
1536
+ verified_address: Schema.optionalKey(
1537
+ Schema.Union([
1538
+ Schema.String.annotate({ description: "Verified address." }).check(
1539
+ Schema.isMaxCodePoints(5000).annotate({
1540
+ expected: "a string with at most 5000 code points",
1541
+ }),
1542
+ ),
1543
+ Schema.Null,
1544
+ ]),
1545
+ ),
1546
+ verified_name: Schema.optionalKey(
1547
+ Schema.Union([
1548
+ Schema.String.annotate({ description: "Verified name." }).check(
1549
+ Schema.isMaxCodePoints(5000).annotate({
1550
+ expected: "a string with at most 5000 code points",
1551
+ }),
1552
+ ),
1553
+ Schema.Null,
1554
+ ]),
1555
+ ),
1556
+ }),
1557
+ [
1558
+ Schema.Record(
1559
+ Schema.String,
1560
+ Schema.Json.annotate({ expected: "JSON value" }),
1561
+ ),
1562
+ ],
1563
+ ).annotate({
1564
+ title: "tax_id_verification",
1565
+ description: "",
1566
+ identifier: "Stripetax_id_verification",
1567
+ });
1568
+ export const Stripeplan_tier = Schema.StructWithRest(
1569
+ Schema.Struct({
1570
+ flat_amount: Schema.optionalKey(
1571
+ Schema.Union([
1572
+ Schema.Number.annotate({
1573
+ description: "Price for the entire tier.",
1574
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1575
+ Schema.Null,
1576
+ ]),
1577
+ ),
1578
+ flat_amount_decimal: Schema.optionalKey(
1579
+ Schema.Union([
1580
+ Schema.String.annotate({
1581
+ description:
1582
+ "Same as `flat_amount`, but contains a decimal value with at most 12 decimal places.",
1583
+ format: "decimal",
1584
+ }),
1585
+ Schema.Null,
1586
+ ]),
1587
+ ),
1588
+ unit_amount: Schema.optionalKey(
1589
+ Schema.Union([
1590
+ Schema.Number.annotate({
1591
+ description: "Per unit price for units relevant to the tier.",
1592
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1593
+ Schema.Null,
1594
+ ]),
1595
+ ),
1596
+ unit_amount_decimal: Schema.optionalKey(
1597
+ Schema.Union([
1598
+ Schema.String.annotate({
1599
+ description:
1600
+ "Same as `unit_amount`, but contains a decimal value with at most 12 decimal places.",
1601
+ format: "decimal",
1602
+ }),
1603
+ Schema.Null,
1604
+ ]),
1605
+ ),
1606
+ up_to: Schema.optionalKey(
1607
+ Schema.Union([
1608
+ Schema.Number.annotate({
1609
+ description:
1610
+ "Up to and including to this quantity will be contained in the tier.",
1611
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1612
+ Schema.Null,
1613
+ ]),
1614
+ ),
1615
+ }),
1616
+ [
1617
+ Schema.Record(
1618
+ Schema.String,
1619
+ Schema.Json.annotate({ expected: "JSON value" }),
1620
+ ),
1621
+ ],
1622
+ ).annotate({
1623
+ title: "PlanTier",
1624
+ description: "",
1625
+ identifier: "Stripeplan_tier",
1626
+ });
1627
+ export const Stripeproduct_catalog_impl_endpoints_trial_offer_resource_relative_duration =
1628
+ Schema.StructWithRest(
1629
+ Schema.Struct({
1630
+ iterations: Schema.Number.annotate({
1631
+ description:
1632
+ "The number of iterations of the price's interval for this trial offer.",
1633
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1634
+ }),
1635
+ [
1636
+ Schema.Record(
1637
+ Schema.String,
1638
+ Schema.Json.annotate({ expected: "JSON value" }),
1639
+ ),
1640
+ ],
1641
+ ).annotate({
1642
+ title: "ProductCatalogImplEndpointsTrialOfferResourceRelativeDuration",
1643
+ description: "",
1644
+ identifier:
1645
+ "Stripeproduct_catalog_impl_endpoints_trial_offer_resource_relative_duration",
1646
+ });
1647
+ export const Stripetax_product_registrations_resource_country_options_default_standard =
1648
+ Schema.StructWithRest(
1649
+ Schema.Struct({
1650
+ place_of_supply_scheme: Schema.Literals([
1651
+ "inbound_goods",
1652
+ "standard",
1653
+ ]).annotate({
1654
+ description:
1655
+ "Place of supply scheme used in an Default standard registration.",
1656
+ }),
1657
+ }),
1658
+ [
1659
+ Schema.Record(
1660
+ Schema.String,
1661
+ Schema.Json.annotate({ expected: "JSON value" }),
1662
+ ),
1663
+ ],
1664
+ ).annotate({
1665
+ title: "TaxProductRegistrationsResourceCountryOptionsDefaultStandard",
1666
+ description: "",
1667
+ identifier:
1668
+ "Stripetax_product_registrations_resource_country_options_default_standard",
1669
+ });
1670
+ export const Stripetax_product_registrations_resource_country_options_default =
1671
+ Schema.StructWithRest(
1672
+ Schema.Struct({
1673
+ type: Schema.Literal("standard").annotate({
1674
+ description: "Type of registration in `country`.",
1675
+ }),
1676
+ }),
1677
+ [
1678
+ Schema.Record(
1679
+ Schema.String,
1680
+ Schema.Json.annotate({ expected: "JSON value" }),
1681
+ ),
1682
+ ],
1683
+ ).annotate({
1684
+ title: "TaxProductRegistrationsResourceCountryOptionsDefault",
1685
+ description: "",
1686
+ identifier:
1687
+ "Stripetax_product_registrations_resource_country_options_default",
1688
+ });
1689
+ export const Stripetax_product_registrations_resource_country_options_simplified =
1690
+ Schema.StructWithRest(
1691
+ Schema.Struct({
1692
+ type: Schema.Literal("simplified").annotate({
1693
+ description: "Type of registration in `country`.",
1694
+ }),
1695
+ }),
1696
+ [
1697
+ Schema.Record(
1698
+ Schema.String,
1699
+ Schema.Json.annotate({ expected: "JSON value" }),
1700
+ ),
1701
+ ],
1702
+ ).annotate({
1703
+ title: "TaxProductRegistrationsResourceCountryOptionsSimplified",
1704
+ description: "",
1705
+ identifier:
1706
+ "Stripetax_product_registrations_resource_country_options_simplified",
1707
+ });
1708
+ export const Stripetax_product_registrations_resource_country_options_eu_standard =
1709
+ Schema.StructWithRest(
1710
+ Schema.Struct({
1711
+ place_of_supply_scheme: Schema.Literals([
1712
+ "inbound_goods",
1713
+ "small_seller",
1714
+ "standard",
1715
+ ]).annotate({
1716
+ description:
1717
+ "Place of supply scheme used in an EU standard registration.",
1718
+ }),
1719
+ }),
1720
+ [
1721
+ Schema.Record(
1722
+ Schema.String,
1723
+ Schema.Json.annotate({ expected: "JSON value" }),
1724
+ ),
1725
+ ],
1726
+ ).annotate({
1727
+ title: "TaxProductRegistrationsResourceCountryOptionsEuStandard",
1728
+ description: "",
1729
+ identifier:
1730
+ "Stripetax_product_registrations_resource_country_options_eu_standard",
1731
+ });
1732
+ export const Stripetax_product_registrations_resource_country_options_ca_province_standard =
1733
+ Schema.StructWithRest(
1734
+ Schema.Struct({
1735
+ province: Schema.String.annotate({
1736
+ description:
1737
+ "Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).",
1738
+ }).check(
1739
+ Schema.isMaxCodePoints(5000).annotate({
1740
+ expected: "a string with at most 5000 code points",
1741
+ }),
1742
+ ),
1743
+ }),
1744
+ [
1745
+ Schema.Record(
1746
+ Schema.String,
1747
+ Schema.Json.annotate({ expected: "JSON value" }),
1748
+ ),
1749
+ ],
1750
+ ).annotate({
1751
+ title: "TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard",
1752
+ description: "",
1753
+ identifier:
1754
+ "Stripetax_product_registrations_resource_country_options_ca_province_standard",
1755
+ });
1756
+ export const Stripetax_product_registrations_resource_country_options_thailand =
1757
+ Schema.StructWithRest(
1758
+ Schema.Struct({
1759
+ type: Schema.Literal("simplified").annotate({
1760
+ description: "Type of registration in `country`.",
1761
+ }),
1762
+ }),
1763
+ [
1764
+ Schema.Record(
1765
+ Schema.String,
1766
+ Schema.Json.annotate({ expected: "JSON value" }),
1767
+ ),
1768
+ ],
1769
+ ).annotate({
1770
+ title: "TaxProductRegistrationsResourceCountryOptionsThailand",
1771
+ description: "",
1772
+ identifier:
1773
+ "Stripetax_product_registrations_resource_country_options_thailand",
1774
+ });
1775
+ export const Stripetax_product_registrations_resource_country_options_us_admissions_tax =
1776
+ Schema.StructWithRest(
1777
+ Schema.Struct({
1778
+ jurisdiction: Schema.String.annotate({
1779
+ description:
1780
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types) representing the local jurisdiction.",
1781
+ }).check(
1782
+ Schema.isMaxCodePoints(5000).annotate({
1783
+ expected: "a string with at most 5000 code points",
1784
+ }),
1785
+ ),
1786
+ }),
1787
+ [
1788
+ Schema.Record(
1789
+ Schema.String,
1790
+ Schema.Json.annotate({ expected: "JSON value" }),
1791
+ ),
1792
+ ],
1793
+ ).annotate({
1794
+ title: "TaxProductRegistrationsResourceCountryOptionsUsAdmissionsTax",
1795
+ description: "",
1796
+ identifier:
1797
+ "Stripetax_product_registrations_resource_country_options_us_admissions_tax",
1798
+ });
1799
+ export const Stripetax_product_registrations_resource_country_options_us_attendance_tax =
1800
+ Schema.StructWithRest(
1801
+ Schema.Struct({
1802
+ jurisdiction: Schema.String.annotate({
1803
+ description:
1804
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types) representing the local jurisdiction.",
1805
+ }).check(
1806
+ Schema.isMaxCodePoints(5000).annotate({
1807
+ expected: "a string with at most 5000 code points",
1808
+ }),
1809
+ ),
1810
+ }),
1811
+ [
1812
+ Schema.Record(
1813
+ Schema.String,
1814
+ Schema.Json.annotate({ expected: "JSON value" }),
1815
+ ),
1816
+ ],
1817
+ ).annotate({
1818
+ title: "TaxProductRegistrationsResourceCountryOptionsUsAttendanceTax",
1819
+ description: "",
1820
+ identifier:
1821
+ "Stripetax_product_registrations_resource_country_options_us_attendance_tax",
1822
+ });
1823
+ export const Stripetax_product_registrations_resource_country_options_us_entertainment_tax =
1824
+ Schema.StructWithRest(
1825
+ Schema.Struct({
1826
+ jurisdiction: Schema.String.annotate({
1827
+ description:
1828
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types) representing the local jurisdiction.",
1829
+ }).check(
1830
+ Schema.isMaxCodePoints(5000).annotate({
1831
+ expected: "a string with at most 5000 code points",
1832
+ }),
1833
+ ),
1834
+ }),
1835
+ [
1836
+ Schema.Record(
1837
+ Schema.String,
1838
+ Schema.Json.annotate({ expected: "JSON value" }),
1839
+ ),
1840
+ ],
1841
+ ).annotate({
1842
+ title: "TaxProductRegistrationsResourceCountryOptionsUsEntertainmentTax",
1843
+ description: "",
1844
+ identifier:
1845
+ "Stripetax_product_registrations_resource_country_options_us_entertainment_tax",
1846
+ });
1847
+ export const Stripetax_product_registrations_resource_country_options_us_gross_receipts_tax =
1848
+ Schema.StructWithRest(
1849
+ Schema.Struct({
1850
+ jurisdiction: Schema.String.annotate({
1851
+ description:
1852
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types) representing the local jurisdiction.",
1853
+ }).check(
1854
+ Schema.isMaxCodePoints(5000).annotate({
1855
+ expected: "a string with at most 5000 code points",
1856
+ }),
1857
+ ),
1858
+ }),
1859
+ [
1860
+ Schema.Record(
1861
+ Schema.String,
1862
+ Schema.Json.annotate({ expected: "JSON value" }),
1863
+ ),
1864
+ ],
1865
+ ).annotate({
1866
+ title: "TaxProductRegistrationsResourceCountryOptionsUsGrossReceiptsTax",
1867
+ description: "",
1868
+ identifier:
1869
+ "Stripetax_product_registrations_resource_country_options_us_gross_receipts_tax",
1870
+ });
1871
+ export const Stripetax_product_registrations_resource_country_options_us_hospitality_tax =
1872
+ Schema.StructWithRest(
1873
+ Schema.Struct({
1874
+ jurisdiction: Schema.String.annotate({
1875
+ description:
1876
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types) representing the local jurisdiction.",
1877
+ }).check(
1878
+ Schema.isMaxCodePoints(5000).annotate({
1879
+ expected: "a string with at most 5000 code points",
1880
+ }),
1881
+ ),
1882
+ }),
1883
+ [
1884
+ Schema.Record(
1885
+ Schema.String,
1886
+ Schema.Json.annotate({ expected: "JSON value" }),
1887
+ ),
1888
+ ],
1889
+ ).annotate({
1890
+ title: "TaxProductRegistrationsResourceCountryOptionsUsHospitalityTax",
1891
+ description: "",
1892
+ identifier:
1893
+ "Stripetax_product_registrations_resource_country_options_us_hospitality_tax",
1894
+ });
1895
+ export const Stripetax_product_registrations_resource_country_options_us_local_amusement_tax =
1896
+ Schema.StructWithRest(
1897
+ Schema.Struct({
1898
+ jurisdiction: Schema.String.annotate({
1899
+ description:
1900
+ "A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.",
1901
+ }).check(
1902
+ Schema.isMaxCodePoints(5000).annotate({
1903
+ expected: "a string with at most 5000 code points",
1904
+ }),
1905
+ ),
1906
+ }),
1907
+ [
1908
+ Schema.Record(
1909
+ Schema.String,
1910
+ Schema.Json.annotate({ expected: "JSON value" }),
1911
+ ),
1912
+ ],
1913
+ ).annotate({
1914
+ title: "TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax",
1915
+ description: "",
1916
+ identifier:
1917
+ "Stripetax_product_registrations_resource_country_options_us_local_amusement_tax",
1918
+ });
1919
+ export const Stripetax_product_registrations_resource_country_options_us_local_lease_tax =
1920
+ Schema.StructWithRest(
1921
+ Schema.Struct({
1922
+ jurisdiction: Schema.String.annotate({
1923
+ description:
1924
+ "A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.",
1925
+ }).check(
1926
+ Schema.isMaxCodePoints(5000).annotate({
1927
+ expected: "a string with at most 5000 code points",
1928
+ }),
1929
+ ),
1930
+ }),
1931
+ [
1932
+ Schema.Record(
1933
+ Schema.String,
1934
+ Schema.Json.annotate({ expected: "JSON value" }),
1935
+ ),
1936
+ ],
1937
+ ).annotate({
1938
+ title: "TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax",
1939
+ description: "",
1940
+ identifier:
1941
+ "Stripetax_product_registrations_resource_country_options_us_local_lease_tax",
1942
+ });
1943
+ export const Stripetax_product_registrations_resource_country_options_us_luxury_tax =
1944
+ Schema.StructWithRest(
1945
+ Schema.Struct({
1946
+ jurisdiction: Schema.String.annotate({
1947
+ description:
1948
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types) representing the local jurisdiction.",
1949
+ }).check(
1950
+ Schema.isMaxCodePoints(5000).annotate({
1951
+ expected: "a string with at most 5000 code points",
1952
+ }),
1953
+ ),
1954
+ }),
1955
+ [
1956
+ Schema.Record(
1957
+ Schema.String,
1958
+ Schema.Json.annotate({ expected: "JSON value" }),
1959
+ ),
1960
+ ],
1961
+ ).annotate({
1962
+ title: "TaxProductRegistrationsResourceCountryOptionsUsLuxuryTax",
1963
+ description: "",
1964
+ identifier:
1965
+ "Stripetax_product_registrations_resource_country_options_us_luxury_tax",
1966
+ });
1967
+ export const Stripetax_product_registrations_resource_country_options_us_mass_transit_parking_tax =
1968
+ Schema.StructWithRest(
1969
+ Schema.Struct({
1970
+ jurisdiction: Schema.String.annotate({
1971
+ description:
1972
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=mass_transit_parking_tax#registration-types) representing the local jurisdiction.",
1973
+ }).check(
1974
+ Schema.isMaxCodePoints(5000).annotate({
1975
+ expected: "a string with at most 5000 code points",
1976
+ }),
1977
+ ),
1978
+ }),
1979
+ [
1980
+ Schema.Record(
1981
+ Schema.String,
1982
+ Schema.Json.annotate({ expected: "JSON value" }),
1983
+ ),
1984
+ ],
1985
+ ).annotate({
1986
+ title:
1987
+ "TaxProductRegistrationsResourceCountryOptionsUsMassTransitParkingTax",
1988
+ description: "",
1989
+ identifier:
1990
+ "Stripetax_product_registrations_resource_country_options_us_mass_transit_parking_tax",
1991
+ });
1992
+ export const Stripetax_product_registrations_resource_country_options_us_parking_tax =
1993
+ Schema.StructWithRest(
1994
+ Schema.Struct({
1995
+ jurisdiction: Schema.String.annotate({
1996
+ description:
1997
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=parking_tax#registration-types) representing the local jurisdiction.",
1998
+ }).check(
1999
+ Schema.isMaxCodePoints(5000).annotate({
2000
+ expected: "a string with at most 5000 code points",
2001
+ }),
2002
+ ),
2003
+ }),
2004
+ [
2005
+ Schema.Record(
2006
+ Schema.String,
2007
+ Schema.Json.annotate({ expected: "JSON value" }),
2008
+ ),
2009
+ ],
2010
+ ).annotate({
2011
+ title: "TaxProductRegistrationsResourceCountryOptionsUsParkingTax",
2012
+ description: "",
2013
+ identifier:
2014
+ "Stripetax_product_registrations_resource_country_options_us_parking_tax",
2015
+ });
2016
+ export const Stripetax_product_registrations_resource_country_options_us_resort_tax =
2017
+ Schema.StructWithRest(
2018
+ Schema.Struct({
2019
+ jurisdiction: Schema.String.annotate({
2020
+ description:
2021
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction.",
2022
+ }).check(
2023
+ Schema.isMaxCodePoints(5000).annotate({
2024
+ expected: "a string with at most 5000 code points",
2025
+ }),
2026
+ ),
2027
+ }),
2028
+ [
2029
+ Schema.Record(
2030
+ Schema.String,
2031
+ Schema.Json.annotate({ expected: "JSON value" }),
2032
+ ),
2033
+ ],
2034
+ ).annotate({
2035
+ title: "TaxProductRegistrationsResourceCountryOptionsUsResortTax",
2036
+ description: "",
2037
+ identifier:
2038
+ "Stripetax_product_registrations_resource_country_options_us_resort_tax",
2039
+ });
2040
+ export const Stripetax_product_registrations_resource_country_options_us_state_sales_tax_election =
2041
+ Schema.StructWithRest(
2042
+ Schema.Struct({
2043
+ jurisdiction: Schema.optionalKey(
2044
+ Schema.String.annotate({
2045
+ description:
2046
+ "A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.",
2047
+ }).check(
2048
+ Schema.isMaxCodePoints(5000).annotate({
2049
+ expected: "a string with at most 5000 code points",
2050
+ }),
2051
+ ),
2052
+ ),
2053
+ type: Schema.Literals([
2054
+ "local_use_tax",
2055
+ "simplified_sellers_use_tax",
2056
+ "single_local_use_tax",
2057
+ ]).annotate({
2058
+ description:
2059
+ "The type of the election for the state sales tax registration.",
2060
+ }),
2061
+ }),
2062
+ [
2063
+ Schema.Record(
2064
+ Schema.String,
2065
+ Schema.Json.annotate({ expected: "JSON value" }),
2066
+ ),
2067
+ ],
2068
+ ).annotate({
2069
+ title:
2070
+ "TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection",
2071
+ description: "",
2072
+ identifier:
2073
+ "Stripetax_product_registrations_resource_country_options_us_state_sales_tax_election",
2074
+ });
2075
+ export const Stripetax_product_registrations_resource_country_options_us_tourism_tax =
2076
+ Schema.StructWithRest(
2077
+ Schema.Struct({
2078
+ jurisdiction: Schema.String.annotate({
2079
+ description:
2080
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types) representing the local jurisdiction.",
2081
+ }).check(
2082
+ Schema.isMaxCodePoints(5000).annotate({
2083
+ expected: "a string with at most 5000 code points",
2084
+ }),
2085
+ ),
2086
+ }),
2087
+ [
2088
+ Schema.Record(
2089
+ Schema.String,
2090
+ Schema.Json.annotate({ expected: "JSON value" }),
2091
+ ),
2092
+ ],
2093
+ ).annotate({
2094
+ title: "TaxProductRegistrationsResourceCountryOptionsUsTourismTax",
2095
+ description: "",
2096
+ identifier:
2097
+ "Stripetax_product_registrations_resource_country_options_us_tourism_tax",
2098
+ });
2099
+ export const Stripetax_product_registrations_resource_country_options_us_utility_users_tax =
2100
+ Schema.StructWithRest(
2101
+ Schema.Struct({
2102
+ jurisdiction: Schema.String.annotate({
2103
+ description:
2104
+ "A [jurisdiction code](https://docs.stripe.com/tax/registering?type=utility_users_tax#registration-types) representing the local jurisdiction.",
2105
+ }).check(
2106
+ Schema.isMaxCodePoints(5000).annotate({
2107
+ expected: "a string with at most 5000 code points",
2108
+ }),
2109
+ ),
2110
+ }),
2111
+ [
2112
+ Schema.Record(
2113
+ Schema.String,
2114
+ Schema.Json.annotate({ expected: "JSON value" }),
2115
+ ),
2116
+ ],
2117
+ ).annotate({
2118
+ title: "TaxProductRegistrationsResourceCountryOptionsUsUtilityUsersTax",
2119
+ description: "",
2120
+ identifier:
2121
+ "Stripetax_product_registrations_resource_country_options_us_utility_users_tax",
2122
+ });
2123
+ export const Stripetax_location = Schema.suspend(
2124
+ (): Schema.Codec<Stripetax_location> =>
2125
+ Schema.StructWithRest(
2126
+ Schema.Struct({
2127
+ address: Stripeaddress,
2128
+ description: Schema.optionalKey(
2129
+ Schema.Union([
2130
+ Schema.String.annotate({
2131
+ description:
2132
+ 'A descriptive text providing additional context about the tax location. This can include information about the venue, types of events held, services available, or any relevant details for better identification (for example, "A spacious auditorium suitable for large concerts and events.").',
2133
+ }).check(
2134
+ Schema.isMaxCodePoints(5000).annotate({
2135
+ expected: "a string with at most 5000 code points",
2136
+ }),
2137
+ ),
2138
+ Schema.Null,
2139
+ ]),
2140
+ ),
2141
+ id: Schema.String.annotate({
2142
+ description: "Unique identifier for the object.",
2143
+ }).check(
2144
+ Schema.isMaxCodePoints(5000).annotate({
2145
+ expected: "a string with at most 5000 code points",
2146
+ }),
2147
+ ),
2148
+ livemode: Schema.Boolean.annotate({
2149
+ description:
2150
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2151
+ }),
2152
+ object: Schema.Literal("tax.location").annotate({
2153
+ description:
2154
+ "String representing the object's type. Objects of the same type share the same value.",
2155
+ }),
2156
+ type: Schema.Literal("performance").annotate({
2157
+ description:
2158
+ "The type of tax location to be defined. Currently the only option is `performance`.",
2159
+ }),
2160
+ }),
2161
+ [
2162
+ Schema.Record(
2163
+ Schema.String,
2164
+ Schema.Json.annotate({ expected: "JSON value" }),
2165
+ ),
2166
+ ],
2167
+ ).annotate({
2168
+ title: "Tax location",
2169
+ description:
2170
+ "Tax locations represent venues for services, tickets, or other product types.",
2171
+ identifier: "Stripetax.location",
2172
+ }),
2173
+ );
2174
+ export const Stripetax_code = Schema.suspend(
2175
+ (): Schema.Codec<Stripetax_code> =>
2176
+ Schema.StructWithRest(
2177
+ Schema.Struct({
2178
+ description: Schema.String.annotate({
2179
+ description:
2180
+ "A detailed description of which types of products the tax code represents.",
2181
+ }).check(
2182
+ Schema.isMaxCodePoints(5000).annotate({
2183
+ expected: "a string with at most 5000 code points",
2184
+ }),
2185
+ ),
2186
+ id: Schema.String.annotate({
2187
+ description: "Unique identifier for the object.",
2188
+ }).check(
2189
+ Schema.isMaxCodePoints(5000).annotate({
2190
+ expected: "a string with at most 5000 code points",
2191
+ }),
2192
+ ),
2193
+ name: Schema.String.annotate({
2194
+ description: "A short name for the tax code.",
2195
+ }).check(
2196
+ Schema.isMaxCodePoints(5000).annotate({
2197
+ expected: "a string with at most 5000 code points",
2198
+ }),
2199
+ ),
2200
+ object: Schema.Literal("tax_code").annotate({
2201
+ description:
2202
+ "String representing the object's type. Objects of the same type share the same value.",
2203
+ }),
2204
+ requirements: Schema.optionalKey(
2205
+ Schema.Union([
2206
+ Schema.Union([Stripetax_code_requirements]).annotate({
2207
+ description:
2208
+ "An object that describes more information about the tax location required for this tax code. Some tax codes require a [performance location](/tax/location-sales#required-versus-optional-performance-locations) to calculate tax correctly.",
2209
+ }),
2210
+ Schema.Null,
2211
+ ]),
2212
+ ),
2213
+ }),
2214
+ [
2215
+ Schema.Record(
2216
+ Schema.String,
2217
+ Schema.Json.annotate({ expected: "JSON value" }),
2218
+ ),
2219
+ ],
2220
+ ).annotate({
2221
+ title: "Tax Code",
2222
+ description:
2223
+ "[Tax codes](https://stripe.com/docs/tax/tax-categories) classify goods and services for tax purposes.",
2224
+ identifier: "Stripetax_code",
2225
+ }),
2226
+ );
2227
+ export const Stripetax_rate = Schema.suspend(
2228
+ (): Schema.Codec<Stripetax_rate> =>
2229
+ Schema.StructWithRest(
2230
+ Schema.Struct({
2231
+ active: Schema.Boolean.annotate({
2232
+ description:
2233
+ "Defaults to `true`. When set to `false`, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.",
2234
+ }),
2235
+ country: Schema.optionalKey(
2236
+ Schema.Union([
2237
+ Schema.String.annotate({
2238
+ description:
2239
+ "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).",
2240
+ }).check(
2241
+ Schema.isMaxCodePoints(5000).annotate({
2242
+ expected: "a string with at most 5000 code points",
2243
+ }),
2244
+ ),
2245
+ Schema.Null,
2246
+ ]),
2247
+ ),
2248
+ created: Schema.Number.annotate({
2249
+ description:
2250
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
2251
+ format: "unix-time",
2252
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2253
+ description: Schema.optionalKey(
2254
+ Schema.Union([
2255
+ Schema.String.annotate({
2256
+ description:
2257
+ "An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.",
2258
+ }).check(
2259
+ Schema.isMaxCodePoints(5000).annotate({
2260
+ expected: "a string with at most 5000 code points",
2261
+ }),
2262
+ ),
2263
+ Schema.Null,
2264
+ ]),
2265
+ ),
2266
+ display_name: Schema.String.annotate({
2267
+ description:
2268
+ "The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.",
2269
+ }).check(
2270
+ Schema.isMaxCodePoints(5000).annotate({
2271
+ expected: "a string with at most 5000 code points",
2272
+ }),
2273
+ ),
2274
+ effective_percentage: Schema.optionalKey(
2275
+ Schema.Union([
2276
+ Schema.Number.annotate({
2277
+ description:
2278
+ "Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true,\nthis percentage reflects the rate actually used to calculate tax based on the product's taxability\nand whether the user is registered to collect taxes in the corresponding jurisdiction.",
2279
+ }).check(
2280
+ Schema.isFinite().annotate({ expected: "a finite number" }),
2281
+ ),
2282
+ Schema.Null,
2283
+ ]),
2284
+ ),
2285
+ flat_amount: Schema.optionalKey(
2286
+ Schema.Union([
2287
+ Schema.Union([Stripetax_rate_flat_amount]).annotate({
2288
+ description:
2289
+ "The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate.",
2290
+ }),
2291
+ Schema.Null,
2292
+ ]),
2293
+ ),
2294
+ id: Schema.String.annotate({
2295
+ description: "Unique identifier for the object.",
2296
+ }).check(
2297
+ Schema.isMaxCodePoints(5000).annotate({
2298
+ expected: "a string with at most 5000 code points",
2299
+ }),
2300
+ ),
2301
+ inclusive: Schema.Boolean.annotate({
2302
+ description:
2303
+ "This specifies if the tax rate is inclusive or exclusive.",
2304
+ }),
2305
+ jurisdiction: Schema.optionalKey(
2306
+ Schema.Union([
2307
+ Schema.String.annotate({
2308
+ description:
2309
+ "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.",
2310
+ }).check(
2311
+ Schema.isMaxCodePoints(5000).annotate({
2312
+ expected: "a string with at most 5000 code points",
2313
+ }),
2314
+ ),
2315
+ Schema.Null,
2316
+ ]),
2317
+ ),
2318
+ jurisdiction_level: Schema.optionalKey(
2319
+ Schema.Union([
2320
+ Schema.Literals([
2321
+ "city",
2322
+ "country",
2323
+ "county",
2324
+ "district",
2325
+ "multiple",
2326
+ "state",
2327
+ ]).annotate({
2328
+ description:
2329
+ "The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates.",
2330
+ }),
2331
+ Schema.Null,
2332
+ ]),
2333
+ ),
2334
+ livemode: Schema.Boolean.annotate({
2335
+ description:
2336
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2337
+ }),
2338
+ metadata: Schema.optionalKey(
2339
+ Schema.Union([
2340
+ Schema.Record(
2341
+ Schema.String,
2342
+ Schema.String.check(
2343
+ Schema.isMaxCodePoints(500).annotate({
2344
+ expected: "a string with at most 500 code points",
2345
+ }),
2346
+ ),
2347
+ ).annotate({
2348
+ description:
2349
+ "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.",
2350
+ }),
2351
+ Schema.Null,
2352
+ ]),
2353
+ ),
2354
+ object: Schema.Literal("tax_rate").annotate({
2355
+ description:
2356
+ "String representing the object's type. Objects of the same type share the same value.",
2357
+ }),
2358
+ percentage: Schema.Number.annotate({
2359
+ description:
2360
+ "Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.",
2361
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
2362
+ rate_type: Schema.optionalKey(
2363
+ Schema.Union([
2364
+ Schema.Literals(["flat_amount", "percentage"]).annotate({
2365
+ description:
2366
+ "Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.",
2367
+ }),
2368
+ Schema.Null,
2369
+ ]),
2370
+ ),
2371
+ state: Schema.optionalKey(
2372
+ Schema.Union([
2373
+ Schema.String.annotate({
2374
+ description:
2375
+ '[ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.',
2376
+ }).check(
2377
+ Schema.isMaxCodePoints(5000).annotate({
2378
+ expected: "a string with at most 5000 code points",
2379
+ }),
2380
+ ),
2381
+ Schema.Null,
2382
+ ]),
2383
+ ),
2384
+ tax_type: Schema.optionalKey(
2385
+ Schema.Union([
2386
+ Schema.Literals([
2387
+ "admissions_tax",
2388
+ "amusement_tax",
2389
+ "attendance_tax",
2390
+ "communications_tax",
2391
+ "digital_excise_tax",
2392
+ "entertainment_tax",
2393
+ "get_fund",
2394
+ "gross_receipts_tax",
2395
+ "gst",
2396
+ "hospitality_tax",
2397
+ "hst",
2398
+ "igst",
2399
+ "jct",
2400
+ "lease_tax",
2401
+ "luxury_tax",
2402
+ "mass_transit_parking_tax",
2403
+ "nhil",
2404
+ "parking_tax",
2405
+ "pst",
2406
+ "qst",
2407
+ "resort_tax",
2408
+ "retail_delivery_fee",
2409
+ "rst",
2410
+ "sales_tax",
2411
+ "service_tax",
2412
+ "tourism_tax",
2413
+ "utility_users_tax",
2414
+ "vat",
2415
+ ]).annotate({
2416
+ description:
2417
+ "The high-level tax type, such as `vat` or `sales_tax`.",
2418
+ }),
2419
+ Schema.Null,
2420
+ ]),
2421
+ ),
2422
+ }),
2423
+ [
2424
+ Schema.Record(
2425
+ Schema.String,
2426
+ Schema.Json.annotate({ expected: "JSON value" }),
2427
+ ),
2428
+ ],
2429
+ ).annotate({
2430
+ title: "Tax Rate",
2431
+ description:
2432
+ "Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.\n\nRelated guide: [Tax rates](/billing/taxes/tax-rates)",
2433
+ identifier: "Stripetax_rate",
2434
+ }),
2435
+ );
2436
+ export const Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition =
2437
+ Schema.suspend(
2438
+ (): Schema.Codec<Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition> =>
2439
+ Schema.StructWithRest(
2440
+ Schema.Struct({
2441
+ price: Schema.Union([
2442
+ Schema.String.check(
2443
+ Schema.isMaxCodePoints(5000).annotate({
2444
+ expected: "a string with at most 5000 code points",
2445
+ }),
2446
+ ),
2447
+ Stripeprice,
2448
+ Stripedeleted_price,
2449
+ ]).annotate({
2450
+ description:
2451
+ "The new price to use at the end of the trial offer period.",
2452
+ }),
2453
+ }),
2454
+ [
2455
+ Schema.Record(
2456
+ Schema.String,
2457
+ Schema.Json.annotate({ expected: "JSON value" }),
2458
+ ),
2459
+ ],
2460
+ ).annotate({
2461
+ title: "ProductCatalogImplEndpointsTrialOfferResourceTransition",
2462
+ description: "",
2463
+ identifier:
2464
+ "Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition",
2465
+ }),
2466
+ );
2467
+ export const Stripeproduct_feature = Schema.suspend(
2468
+ (): Schema.Codec<Stripeproduct_feature> =>
2469
+ Schema.StructWithRest(
2470
+ Schema.Struct({
2471
+ entitlement_feature: Stripeentitlements_feature,
2472
+ id: Schema.String.annotate({
2473
+ description: "Unique identifier for the object.",
2474
+ }).check(
2475
+ Schema.isMaxCodePoints(5000).annotate({
2476
+ expected: "a string with at most 5000 code points",
2477
+ }),
2478
+ ),
2479
+ livemode: Schema.Boolean.annotate({
2480
+ description:
2481
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2482
+ }),
2483
+ object: Schema.Literal("product_feature").annotate({
2484
+ description:
2485
+ "String representing the object's type. Objects of the same type share the same value.",
2486
+ }),
2487
+ }),
2488
+ [
2489
+ Schema.Record(
2490
+ Schema.String,
2491
+ Schema.Json.annotate({ expected: "JSON value" }),
2492
+ ),
2493
+ ],
2494
+ ).annotate({
2495
+ title: "ProductFeature",
2496
+ description:
2497
+ "A product_feature represents an attachment between a feature and a product.\nWhen a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer.",
2498
+ identifier: "Stripeproduct_feature",
2499
+ }),
2500
+ );
2501
+ export const Stripeplan = Schema.suspend(
2502
+ (): Schema.Codec<Stripeplan> =>
2503
+ Schema.StructWithRest(
2504
+ Schema.Struct({
2505
+ active: Schema.Boolean.annotate({
2506
+ description: "Whether the plan can be used for new purchases.",
2507
+ }),
2508
+ amount: Schema.optionalKey(
2509
+ Schema.Union([
2510
+ Schema.Number.annotate({
2511
+ description:
2512
+ "The unit amount in cents (or local equivalent) to be charged, represented as a whole integer if possible. Only set if `billing_scheme=per_unit`.",
2513
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2514
+ Schema.Null,
2515
+ ]),
2516
+ ),
2517
+ amount_decimal: Schema.optionalKey(
2518
+ Schema.Union([
2519
+ Schema.String.annotate({
2520
+ description:
2521
+ "The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.",
2522
+ format: "decimal",
2523
+ }),
2524
+ Schema.Null,
2525
+ ]),
2526
+ ),
2527
+ billing_scheme: Schema.Literals(["per_unit", "tiered"]).annotate({
2528
+ description:
2529
+ "Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.",
2530
+ }),
2531
+ created: Schema.Number.annotate({
2532
+ description:
2533
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
2534
+ format: "unix-time",
2535
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2536
+ currency: Schema.String.annotate({
2537
+ description:
2538
+ "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
2539
+ format: "currency",
2540
+ }),
2541
+ id: Schema.String.annotate({
2542
+ description: "Unique identifier for the object.",
2543
+ }).check(
2544
+ Schema.isMaxCodePoints(5000).annotate({
2545
+ expected: "a string with at most 5000 code points",
2546
+ }),
2547
+ ),
2548
+ interval: Schema.Literals(["day", "month", "week", "year"]).annotate({
2549
+ description:
2550
+ "The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.",
2551
+ }),
2552
+ interval_count: Schema.Number.annotate({
2553
+ description:
2554
+ "The number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months.",
2555
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2556
+ livemode: Schema.Boolean.annotate({
2557
+ description:
2558
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2559
+ }),
2560
+ metadata: Schema.optionalKey(
2561
+ Schema.Union([
2562
+ Schema.Record(
2563
+ Schema.String,
2564
+ Schema.String.check(
2565
+ Schema.isMaxCodePoints(500).annotate({
2566
+ expected: "a string with at most 500 code points",
2567
+ }),
2568
+ ),
2569
+ ).annotate({
2570
+ description:
2571
+ "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.",
2572
+ }),
2573
+ Schema.Null,
2574
+ ]),
2575
+ ),
2576
+ meter: Schema.optionalKey(
2577
+ Schema.Union([
2578
+ Schema.String.annotate({
2579
+ description: "The meter tracking the usage of a metered price",
2580
+ }).check(
2581
+ Schema.isMaxCodePoints(5000).annotate({
2582
+ expected: "a string with at most 5000 code points",
2583
+ }),
2584
+ ),
2585
+ Schema.Null,
2586
+ ]),
2587
+ ),
2588
+ nickname: Schema.optionalKey(
2589
+ Schema.Union([
2590
+ Schema.String.annotate({
2591
+ description:
2592
+ "A brief description of the plan, hidden from customers.",
2593
+ }).check(
2594
+ Schema.isMaxCodePoints(5000).annotate({
2595
+ expected: "a string with at most 5000 code points",
2596
+ }),
2597
+ ),
2598
+ Schema.Null,
2599
+ ]),
2600
+ ),
2601
+ object: Schema.Literal("plan").annotate({
2602
+ description:
2603
+ "String representing the object's type. Objects of the same type share the same value.",
2604
+ }),
2605
+ product: Schema.optionalKey(
2606
+ Schema.Union([
2607
+ Schema.Union([
2608
+ Schema.String.check(
2609
+ Schema.isMaxCodePoints(5000).annotate({
2610
+ expected: "a string with at most 5000 code points",
2611
+ }),
2612
+ ),
2613
+ Stripeproduct,
2614
+ Stripedeleted_product,
2615
+ ]).annotate({
2616
+ description: "The product whose pricing this plan determines.",
2617
+ }),
2618
+ Schema.Null,
2619
+ ]),
2620
+ ),
2621
+ tiers: Schema.optionalKey(
2622
+ Schema.Array(Stripeplan_tier).annotate({
2623
+ description:
2624
+ "Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.",
2625
+ }),
2626
+ ),
2627
+ tiers_mode: Schema.optionalKey(
2628
+ Schema.Union([
2629
+ Schema.Literals(["graduated", "volume"]).annotate({
2630
+ description:
2631
+ "Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.",
2632
+ }),
2633
+ Schema.Null,
2634
+ ]),
2635
+ ),
2636
+ transform_usage: Schema.optionalKey(
2637
+ Schema.Union([
2638
+ Schema.Union([Stripetransform_usage]).annotate({
2639
+ description:
2640
+ "Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.",
2641
+ }),
2642
+ Schema.Null,
2643
+ ]),
2644
+ ),
2645
+ trial_period_days: Schema.optionalKey(
2646
+ Schema.Union([
2647
+ Schema.Number.annotate({
2648
+ description:
2649
+ "Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan).",
2650
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2651
+ Schema.Null,
2652
+ ]),
2653
+ ),
2654
+ usage_type: Schema.Literals(["licensed", "metered"]).annotate({
2655
+ description:
2656
+ "Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.",
2657
+ }),
2658
+ }),
2659
+ [
2660
+ Schema.Record(
2661
+ Schema.String,
2662
+ Schema.Json.annotate({ expected: "JSON value" }),
2663
+ ),
2664
+ ],
2665
+ ).annotate({
2666
+ title: "Plan",
2667
+ description:
2668
+ 'You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.\n\nPlans define the base price, currency, and billing cycle for recurring purchases of products.\n[Products](https://docs.stripe.com/api#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.\n\nFor example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.\n\nRelated guides: [Set up a subscription](https://docs.stripe.com/billing/subscriptions/set-up-subscription) and more about [products and prices](https://docs.stripe.com/products-prices/overview).',
2669
+ identifier: "Stripeplan",
2670
+ }),
2671
+ );
2672
+ export const Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration =
2673
+ Schema.suspend(
2674
+ (): Schema.Codec<Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration> =>
2675
+ Schema.StructWithRest(
2676
+ Schema.Struct({
2677
+ relative: Schema.optionalKey(
2678
+ Stripeproduct_catalog_impl_endpoints_trial_offer_resource_relative_duration,
2679
+ ),
2680
+ type: Schema.Literal("relative").annotate({
2681
+ description: "The type of trial offer duration.",
2682
+ }),
2683
+ }),
2684
+ [
2685
+ Schema.Record(
2686
+ Schema.String,
2687
+ Schema.Json.annotate({ expected: "JSON value" }),
2688
+ ),
2689
+ ],
2690
+ ).annotate({
2691
+ title:
2692
+ "ProductCatalogImplEndpointsTrialOfferResourceTrialOfferDuration",
2693
+ description: "",
2694
+ identifier:
2695
+ "Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration",
2696
+ }),
2697
+ );
2698
+ export const Stripetax_product_registrations_resource_country_options_default_inbound_goods =
2699
+ Schema.suspend(
2700
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_default_inbound_goods> =>
2701
+ Schema.StructWithRest(
2702
+ Schema.Struct({
2703
+ standard: Schema.optionalKey(
2704
+ Stripetax_product_registrations_resource_country_options_default_standard,
2705
+ ),
2706
+ type: Schema.Literal("standard").annotate({
2707
+ description: "Type of registration in `country`.",
2708
+ }),
2709
+ }),
2710
+ [
2711
+ Schema.Record(
2712
+ Schema.String,
2713
+ Schema.Json.annotate({ expected: "JSON value" }),
2714
+ ),
2715
+ ],
2716
+ ).annotate({
2717
+ title:
2718
+ "TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods",
2719
+ description: "",
2720
+ identifier:
2721
+ "Stripetax_product_registrations_resource_country_options_default_inbound_goods",
2722
+ }),
2723
+ );
2724
+ export const Stripetax_product_registrations_resource_country_options_europe =
2725
+ Schema.suspend(
2726
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_europe> =>
2727
+ Schema.StructWithRest(
2728
+ Schema.Struct({
2729
+ standard: Schema.optionalKey(
2730
+ Stripetax_product_registrations_resource_country_options_eu_standard,
2731
+ ),
2732
+ type: Schema.Literals([
2733
+ "ioss",
2734
+ "oss_non_union",
2735
+ "oss_union",
2736
+ "standard",
2737
+ ]).annotate({
2738
+ description: "Type of registration in an EU country.",
2739
+ }),
2740
+ }),
2741
+ [
2742
+ Schema.Record(
2743
+ Schema.String,
2744
+ Schema.Json.annotate({ expected: "JSON value" }),
2745
+ ),
2746
+ ],
2747
+ ).annotate({
2748
+ title: "TaxProductRegistrationsResourceCountryOptionsEurope",
2749
+ description: "",
2750
+ identifier:
2751
+ "Stripetax_product_registrations_resource_country_options_europe",
2752
+ }),
2753
+ );
2754
+ export const Stripetax_product_registrations_resource_country_options_spain =
2755
+ Schema.suspend(
2756
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_spain> =>
2757
+ Schema.StructWithRest(
2758
+ Schema.Struct({
2759
+ standard: Schema.optionalKey(
2760
+ Stripetax_product_registrations_resource_country_options_eu_standard,
2761
+ ),
2762
+ type: Schema.Literals([
2763
+ "ioss",
2764
+ "oss_non_union",
2765
+ "oss_union",
2766
+ "standard",
2767
+ ]).annotate({ description: "Type of registration in ES." }),
2768
+ }),
2769
+ [
2770
+ Schema.Record(
2771
+ Schema.String,
2772
+ Schema.Json.annotate({ expected: "JSON value" }),
2773
+ ),
2774
+ ],
2775
+ ).annotate({
2776
+ title: "TaxProductRegistrationsResourceCountryOptionsSpain",
2777
+ description: "",
2778
+ identifier:
2779
+ "Stripetax_product_registrations_resource_country_options_spain",
2780
+ }),
2781
+ );
2782
+ export const Stripetax_product_registrations_resource_country_options_canada =
2783
+ Schema.suspend(
2784
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_canada> =>
2785
+ Schema.StructWithRest(
2786
+ Schema.Struct({
2787
+ province_standard: Schema.optionalKey(
2788
+ Stripetax_product_registrations_resource_country_options_ca_province_standard,
2789
+ ),
2790
+ type: Schema.Literals([
2791
+ "province_standard",
2792
+ "simplified",
2793
+ "standard",
2794
+ ]).annotate({ description: "Type of registration in Canada." }),
2795
+ }),
2796
+ [
2797
+ Schema.Record(
2798
+ Schema.String,
2799
+ Schema.Json.annotate({ expected: "JSON value" }),
2800
+ ),
2801
+ ],
2802
+ ).annotate({
2803
+ title: "TaxProductRegistrationsResourceCountryOptionsCanada",
2804
+ description: "",
2805
+ identifier:
2806
+ "Stripetax_product_registrations_resource_country_options_canada",
2807
+ }),
2808
+ );
2809
+ export const Stripetax_product_registrations_resource_country_options_us_state_sales_tax =
2810
+ Schema.suspend(
2811
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_us_state_sales_tax> =>
2812
+ Schema.StructWithRest(
2813
+ Schema.Struct({
2814
+ elections: Schema.optionalKey(
2815
+ Schema.Array(
2816
+ Stripetax_product_registrations_resource_country_options_us_state_sales_tax_election,
2817
+ ).annotate({
2818
+ description: "Elections for the state sales tax registration.",
2819
+ }),
2820
+ ),
2821
+ }),
2822
+ [
2823
+ Schema.Record(
2824
+ Schema.String,
2825
+ Schema.Json.annotate({ expected: "JSON value" }),
2826
+ ),
2827
+ ],
2828
+ ).annotate({
2829
+ title: "TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax",
2830
+ description: "",
2831
+ identifier:
2832
+ "Stripetax_product_registrations_resource_country_options_us_state_sales_tax",
2833
+ }),
2834
+ );
2835
+ export const Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior =
2836
+ Schema.suspend(
2837
+ (): Schema.Codec<Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior> =>
2838
+ Schema.StructWithRest(
2839
+ Schema.Struct({
2840
+ transition: Schema.optionalKey(
2841
+ Stripeproduct_catalog_impl_endpoints_trial_offer_resource_transition,
2842
+ ),
2843
+ type: Schema.Literal("transition").annotate({
2844
+ description: "The type of behavior when the trial offer ends.",
2845
+ }),
2846
+ }),
2847
+ [
2848
+ Schema.Record(
2849
+ Schema.String,
2850
+ Schema.Json.annotate({ expected: "JSON value" }),
2851
+ ),
2852
+ ],
2853
+ ).annotate({
2854
+ title:
2855
+ "ProductCatalogImplEndpointsTrialOfferResourceTrialOfferEndBehavior",
2856
+ description: "",
2857
+ identifier:
2858
+ "Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior",
2859
+ }),
2860
+ );
2861
+ export const Stripetax_product_registrations_resource_country_options_united_states =
2862
+ Schema.suspend(
2863
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options_united_states> =>
2864
+ Schema.StructWithRest(
2865
+ Schema.Struct({
2866
+ admissions_tax: Schema.optionalKey(
2867
+ Stripetax_product_registrations_resource_country_options_us_admissions_tax,
2868
+ ),
2869
+ attendance_tax: Schema.optionalKey(
2870
+ Stripetax_product_registrations_resource_country_options_us_attendance_tax,
2871
+ ),
2872
+ entertainment_tax: Schema.optionalKey(
2873
+ Stripetax_product_registrations_resource_country_options_us_entertainment_tax,
2874
+ ),
2875
+ gross_receipts_tax: Schema.optionalKey(
2876
+ Stripetax_product_registrations_resource_country_options_us_gross_receipts_tax,
2877
+ ),
2878
+ hospitality_tax: Schema.optionalKey(
2879
+ Stripetax_product_registrations_resource_country_options_us_hospitality_tax,
2880
+ ),
2881
+ local_amusement_tax: Schema.optionalKey(
2882
+ Stripetax_product_registrations_resource_country_options_us_local_amusement_tax,
2883
+ ),
2884
+ local_lease_tax: Schema.optionalKey(
2885
+ Stripetax_product_registrations_resource_country_options_us_local_lease_tax,
2886
+ ),
2887
+ luxury_tax: Schema.optionalKey(
2888
+ Stripetax_product_registrations_resource_country_options_us_luxury_tax,
2889
+ ),
2890
+ mass_transit_parking_tax: Schema.optionalKey(
2891
+ Stripetax_product_registrations_resource_country_options_us_mass_transit_parking_tax,
2892
+ ),
2893
+ parking_tax: Schema.optionalKey(
2894
+ Stripetax_product_registrations_resource_country_options_us_parking_tax,
2895
+ ),
2896
+ resort_tax: Schema.optionalKey(
2897
+ Stripetax_product_registrations_resource_country_options_us_resort_tax,
2898
+ ),
2899
+ state: Schema.String.annotate({
2900
+ description:
2901
+ "Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).",
2902
+ }).check(
2903
+ Schema.isMaxCodePoints(5000).annotate({
2904
+ expected: "a string with at most 5000 code points",
2905
+ }),
2906
+ ),
2907
+ state_sales_tax: Schema.optionalKey(
2908
+ Stripetax_product_registrations_resource_country_options_us_state_sales_tax,
2909
+ ),
2910
+ tourism_tax: Schema.optionalKey(
2911
+ Stripetax_product_registrations_resource_country_options_us_tourism_tax,
2912
+ ),
2913
+ type: Schema.Literals([
2914
+ "admissions_tax",
2915
+ "attendance_tax",
2916
+ "digital_excise_tax",
2917
+ "entertainment_tax",
2918
+ "gross_receipts_tax",
2919
+ "hospitality_tax",
2920
+ "local_amusement_tax",
2921
+ "local_lease_tax",
2922
+ "luxury_tax",
2923
+ "mass_transit_parking_tax",
2924
+ "parking_tax",
2925
+ "resort_tax",
2926
+ "state_communications_tax",
2927
+ "state_retail_delivery_fee",
2928
+ "state_sales_tax",
2929
+ "tourism_tax",
2930
+ "utility_users_tax",
2931
+ ]).annotate({ description: "Type of registration in the US." }),
2932
+ utility_users_tax: Schema.optionalKey(
2933
+ Stripetax_product_registrations_resource_country_options_us_utility_users_tax,
2934
+ ),
2935
+ }),
2936
+ [
2937
+ Schema.Record(
2938
+ Schema.String,
2939
+ Schema.Json.annotate({ expected: "JSON value" }),
2940
+ ),
2941
+ ],
2942
+ ).annotate({
2943
+ title: "TaxProductRegistrationsResourceCountryOptionsUnitedStates",
2944
+ description: "",
2945
+ identifier:
2946
+ "Stripetax_product_registrations_resource_country_options_united_states",
2947
+ }),
2948
+ );
2949
+ export const Stripeproduct_catalog_trial_offer = Schema.suspend(
2950
+ (): Schema.Codec<Stripeproduct_catalog_trial_offer> =>
2951
+ Schema.StructWithRest(
2952
+ Schema.Struct({
2953
+ active: Schema.Boolean.annotate({
2954
+ description:
2955
+ "Whether the trial offer is active. Set to false to archive the trial offer.",
2956
+ }),
2957
+ duration:
2958
+ Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration,
2959
+ end_behavior:
2960
+ Stripeproduct_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior,
2961
+ id: Schema.String.annotate({
2962
+ description: "Unique identifier for the object.",
2963
+ }).check(
2964
+ Schema.isMaxCodePoints(5000).annotate({
2965
+ expected: "a string with at most 5000 code points",
2966
+ }),
2967
+ ),
2968
+ livemode: Schema.Boolean.annotate({
2969
+ description:
2970
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2971
+ }),
2972
+ nickname: Schema.optionalKey(
2973
+ Schema.Union([
2974
+ Schema.String.annotate({
2975
+ description:
2976
+ "A brief description of the trial offer, hidden from customers.",
2977
+ }).check(
2978
+ Schema.isMaxCodePoints(255).annotate({
2979
+ expected: "a string with at most 255 code points",
2980
+ }),
2981
+ ),
2982
+ Schema.Null,
2983
+ ]),
2984
+ ),
2985
+ object: Schema.Literal("product_catalog.trial_offer").annotate({
2986
+ description:
2987
+ "String representing the object's type. Objects of the same type share the same value.",
2988
+ }),
2989
+ price: Schema.Union([
2990
+ Schema.String.check(
2991
+ Schema.isMaxCodePoints(5000).annotate({
2992
+ expected: "a string with at most 5000 code points",
2993
+ }),
2994
+ ),
2995
+ Stripeprice,
2996
+ Stripedeleted_price,
2997
+ ]).annotate({ description: "The price during the trial offer." }),
2998
+ }),
2999
+ [
3000
+ Schema.Record(
3001
+ Schema.String,
3002
+ Schema.Json.annotate({ expected: "JSON value" }),
3003
+ ),
3004
+ ],
3005
+ ).annotate({
3006
+ title: "Trial Offer",
3007
+ description:
3008
+ "Trial offers let you define free or paid introductory pricing for a subscription item.\nA TrialOffer specifies the price to charge during the trial, how many billing intervals\nthe trial lasts, and what price the subscription item transitions to when the trial ends.\nYou attach a TrialOffer to a subscription item\nusing `items[current_trial][trial_offer]` when creating or updating a subscription.",
3009
+ identifier: "Stripeproduct_catalog.trial_offer",
3010
+ }),
3011
+ );
3012
+ export const Stripetax_product_registrations_resource_country_options =
3013
+ Schema.suspend(
3014
+ (): Schema.Codec<Stripetax_product_registrations_resource_country_options> =>
3015
+ Schema.StructWithRest(
3016
+ Schema.Struct({
3017
+ ae: Schema.optionalKey(
3018
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3019
+ ),
3020
+ al: Schema.optionalKey(
3021
+ Stripetax_product_registrations_resource_country_options_default,
3022
+ ),
3023
+ am: Schema.optionalKey(
3024
+ Stripetax_product_registrations_resource_country_options_simplified,
3025
+ ),
3026
+ ao: Schema.optionalKey(
3027
+ Stripetax_product_registrations_resource_country_options_default,
3028
+ ),
3029
+ at: Schema.optionalKey(
3030
+ Stripetax_product_registrations_resource_country_options_europe,
3031
+ ),
3032
+ au: Schema.optionalKey(
3033
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3034
+ ),
3035
+ aw: Schema.optionalKey(
3036
+ Stripetax_product_registrations_resource_country_options_default,
3037
+ ),
3038
+ az: Schema.optionalKey(
3039
+ Stripetax_product_registrations_resource_country_options_simplified,
3040
+ ),
3041
+ ba: Schema.optionalKey(
3042
+ Stripetax_product_registrations_resource_country_options_default,
3043
+ ),
3044
+ bb: Schema.optionalKey(
3045
+ Stripetax_product_registrations_resource_country_options_default,
3046
+ ),
3047
+ bd: Schema.optionalKey(
3048
+ Stripetax_product_registrations_resource_country_options_default,
3049
+ ),
3050
+ be: Schema.optionalKey(
3051
+ Stripetax_product_registrations_resource_country_options_europe,
3052
+ ),
3053
+ bf: Schema.optionalKey(
3054
+ Stripetax_product_registrations_resource_country_options_default,
3055
+ ),
3056
+ bg: Schema.optionalKey(
3057
+ Stripetax_product_registrations_resource_country_options_europe,
3058
+ ),
3059
+ bh: Schema.optionalKey(
3060
+ Stripetax_product_registrations_resource_country_options_default,
3061
+ ),
3062
+ bj: Schema.optionalKey(
3063
+ Stripetax_product_registrations_resource_country_options_simplified,
3064
+ ),
3065
+ bs: Schema.optionalKey(
3066
+ Stripetax_product_registrations_resource_country_options_default,
3067
+ ),
3068
+ bw: Schema.optionalKey(
3069
+ Stripetax_product_registrations_resource_country_options_simplified,
3070
+ ),
3071
+ by: Schema.optionalKey(
3072
+ Stripetax_product_registrations_resource_country_options_simplified,
3073
+ ),
3074
+ ca: Schema.optionalKey(
3075
+ Stripetax_product_registrations_resource_country_options_canada,
3076
+ ),
3077
+ cd: Schema.optionalKey(
3078
+ Stripetax_product_registrations_resource_country_options_default,
3079
+ ),
3080
+ ch: Schema.optionalKey(
3081
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3082
+ ),
3083
+ ci: Schema.optionalKey(
3084
+ Stripetax_product_registrations_resource_country_options_simplified,
3085
+ ),
3086
+ cl: Schema.optionalKey(
3087
+ Stripetax_product_registrations_resource_country_options_simplified,
3088
+ ),
3089
+ cm: Schema.optionalKey(
3090
+ Stripetax_product_registrations_resource_country_options_simplified,
3091
+ ),
3092
+ co: Schema.optionalKey(
3093
+ Stripetax_product_registrations_resource_country_options_simplified,
3094
+ ),
3095
+ cr: Schema.optionalKey(
3096
+ Stripetax_product_registrations_resource_country_options_simplified,
3097
+ ),
3098
+ cv: Schema.optionalKey(
3099
+ Stripetax_product_registrations_resource_country_options_simplified,
3100
+ ),
3101
+ cy: Schema.optionalKey(
3102
+ Stripetax_product_registrations_resource_country_options_europe,
3103
+ ),
3104
+ cz: Schema.optionalKey(
3105
+ Stripetax_product_registrations_resource_country_options_europe,
3106
+ ),
3107
+ de: Schema.optionalKey(
3108
+ Stripetax_product_registrations_resource_country_options_europe,
3109
+ ),
3110
+ dk: Schema.optionalKey(
3111
+ Stripetax_product_registrations_resource_country_options_europe,
3112
+ ),
3113
+ ec: Schema.optionalKey(
3114
+ Stripetax_product_registrations_resource_country_options_simplified,
3115
+ ),
3116
+ ee: Schema.optionalKey(
3117
+ Stripetax_product_registrations_resource_country_options_europe,
3118
+ ),
3119
+ eg: Schema.optionalKey(
3120
+ Stripetax_product_registrations_resource_country_options_simplified,
3121
+ ),
3122
+ es: Schema.optionalKey(
3123
+ Stripetax_product_registrations_resource_country_options_spain,
3124
+ ),
3125
+ et: Schema.optionalKey(
3126
+ Stripetax_product_registrations_resource_country_options_default,
3127
+ ),
3128
+ fi: Schema.optionalKey(
3129
+ Stripetax_product_registrations_resource_country_options_europe,
3130
+ ),
3131
+ fr: Schema.optionalKey(
3132
+ Stripetax_product_registrations_resource_country_options_europe,
3133
+ ),
3134
+ gb: Schema.optionalKey(
3135
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3136
+ ),
3137
+ ge: Schema.optionalKey(
3138
+ Stripetax_product_registrations_resource_country_options_simplified,
3139
+ ),
3140
+ gh: Schema.optionalKey(
3141
+ Stripetax_product_registrations_resource_country_options_simplified,
3142
+ ),
3143
+ gn: Schema.optionalKey(
3144
+ Stripetax_product_registrations_resource_country_options_default,
3145
+ ),
3146
+ gr: Schema.optionalKey(
3147
+ Stripetax_product_registrations_resource_country_options_europe,
3148
+ ),
3149
+ hr: Schema.optionalKey(
3150
+ Stripetax_product_registrations_resource_country_options_europe,
3151
+ ),
3152
+ hu: Schema.optionalKey(
3153
+ Stripetax_product_registrations_resource_country_options_europe,
3154
+ ),
3155
+ id: Schema.optionalKey(
3156
+ Stripetax_product_registrations_resource_country_options_simplified,
3157
+ ),
3158
+ ie: Schema.optionalKey(
3159
+ Stripetax_product_registrations_resource_country_options_europe,
3160
+ ),
3161
+ in: Schema.optionalKey(
3162
+ Stripetax_product_registrations_resource_country_options_simplified,
3163
+ ),
3164
+ is: Schema.optionalKey(
3165
+ Stripetax_product_registrations_resource_country_options_default,
3166
+ ),
3167
+ it: Schema.optionalKey(
3168
+ Stripetax_product_registrations_resource_country_options_europe,
3169
+ ),
3170
+ jp: Schema.optionalKey(
3171
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3172
+ ),
3173
+ ke: Schema.optionalKey(
3174
+ Stripetax_product_registrations_resource_country_options_simplified,
3175
+ ),
3176
+ kg: Schema.optionalKey(
3177
+ Stripetax_product_registrations_resource_country_options_simplified,
3178
+ ),
3179
+ kh: Schema.optionalKey(
3180
+ Stripetax_product_registrations_resource_country_options_simplified,
3181
+ ),
3182
+ kr: Schema.optionalKey(
3183
+ Stripetax_product_registrations_resource_country_options_simplified,
3184
+ ),
3185
+ kz: Schema.optionalKey(
3186
+ Stripetax_product_registrations_resource_country_options_simplified,
3187
+ ),
3188
+ la: Schema.optionalKey(
3189
+ Stripetax_product_registrations_resource_country_options_simplified,
3190
+ ),
3191
+ lk: Schema.optionalKey(
3192
+ Stripetax_product_registrations_resource_country_options_simplified,
3193
+ ),
3194
+ lt: Schema.optionalKey(
3195
+ Stripetax_product_registrations_resource_country_options_europe,
3196
+ ),
3197
+ lu: Schema.optionalKey(
3198
+ Stripetax_product_registrations_resource_country_options_europe,
3199
+ ),
3200
+ lv: Schema.optionalKey(
3201
+ Stripetax_product_registrations_resource_country_options_europe,
3202
+ ),
3203
+ ma: Schema.optionalKey(
3204
+ Stripetax_product_registrations_resource_country_options_simplified,
3205
+ ),
3206
+ md: Schema.optionalKey(
3207
+ Stripetax_product_registrations_resource_country_options_simplified,
3208
+ ),
3209
+ me: Schema.optionalKey(
3210
+ Stripetax_product_registrations_resource_country_options_default,
3211
+ ),
3212
+ mk: Schema.optionalKey(
3213
+ Stripetax_product_registrations_resource_country_options_default,
3214
+ ),
3215
+ mr: Schema.optionalKey(
3216
+ Stripetax_product_registrations_resource_country_options_default,
3217
+ ),
3218
+ mt: Schema.optionalKey(
3219
+ Stripetax_product_registrations_resource_country_options_europe,
3220
+ ),
3221
+ mu: Schema.optionalKey(
3222
+ Stripetax_product_registrations_resource_country_options_simplified,
3223
+ ),
3224
+ mx: Schema.optionalKey(
3225
+ Stripetax_product_registrations_resource_country_options_simplified,
3226
+ ),
3227
+ my: Schema.optionalKey(
3228
+ Stripetax_product_registrations_resource_country_options_simplified,
3229
+ ),
3230
+ ng: Schema.optionalKey(
3231
+ Stripetax_product_registrations_resource_country_options_simplified,
3232
+ ),
3233
+ nl: Schema.optionalKey(
3234
+ Stripetax_product_registrations_resource_country_options_europe,
3235
+ ),
3236
+ no: Schema.optionalKey(
3237
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3238
+ ),
3239
+ np: Schema.optionalKey(
3240
+ Stripetax_product_registrations_resource_country_options_simplified,
3241
+ ),
3242
+ nz: Schema.optionalKey(
3243
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3244
+ ),
3245
+ om: Schema.optionalKey(
3246
+ Stripetax_product_registrations_resource_country_options_default,
3247
+ ),
3248
+ pe: Schema.optionalKey(
3249
+ Stripetax_product_registrations_resource_country_options_simplified,
3250
+ ),
3251
+ ph: Schema.optionalKey(
3252
+ Stripetax_product_registrations_resource_country_options_simplified,
3253
+ ),
3254
+ pl: Schema.optionalKey(
3255
+ Stripetax_product_registrations_resource_country_options_europe,
3256
+ ),
3257
+ pt: Schema.optionalKey(
3258
+ Stripetax_product_registrations_resource_country_options_europe,
3259
+ ),
3260
+ ro: Schema.optionalKey(
3261
+ Stripetax_product_registrations_resource_country_options_europe,
3262
+ ),
3263
+ rs: Schema.optionalKey(
3264
+ Stripetax_product_registrations_resource_country_options_default,
3265
+ ),
3266
+ ru: Schema.optionalKey(
3267
+ Stripetax_product_registrations_resource_country_options_simplified,
3268
+ ),
3269
+ sa: Schema.optionalKey(
3270
+ Stripetax_product_registrations_resource_country_options_simplified,
3271
+ ),
3272
+ se: Schema.optionalKey(
3273
+ Stripetax_product_registrations_resource_country_options_europe,
3274
+ ),
3275
+ sg: Schema.optionalKey(
3276
+ Stripetax_product_registrations_resource_country_options_default_inbound_goods,
3277
+ ),
3278
+ si: Schema.optionalKey(
3279
+ Stripetax_product_registrations_resource_country_options_europe,
3280
+ ),
3281
+ sk: Schema.optionalKey(
3282
+ Stripetax_product_registrations_resource_country_options_europe,
3283
+ ),
3284
+ sn: Schema.optionalKey(
3285
+ Stripetax_product_registrations_resource_country_options_simplified,
3286
+ ),
3287
+ sr: Schema.optionalKey(
3288
+ Stripetax_product_registrations_resource_country_options_default,
3289
+ ),
3290
+ th: Schema.optionalKey(
3291
+ Stripetax_product_registrations_resource_country_options_thailand,
3292
+ ),
3293
+ tj: Schema.optionalKey(
3294
+ Stripetax_product_registrations_resource_country_options_simplified,
3295
+ ),
3296
+ tr: Schema.optionalKey(
3297
+ Stripetax_product_registrations_resource_country_options_simplified,
3298
+ ),
3299
+ tw: Schema.optionalKey(
3300
+ Stripetax_product_registrations_resource_country_options_simplified,
3301
+ ),
3302
+ tz: Schema.optionalKey(
3303
+ Stripetax_product_registrations_resource_country_options_simplified,
3304
+ ),
3305
+ ua: Schema.optionalKey(
3306
+ Stripetax_product_registrations_resource_country_options_simplified,
3307
+ ),
3308
+ ug: Schema.optionalKey(
3309
+ Stripetax_product_registrations_resource_country_options_simplified,
3310
+ ),
3311
+ us: Schema.optionalKey(
3312
+ Stripetax_product_registrations_resource_country_options_united_states,
3313
+ ),
3314
+ uy: Schema.optionalKey(
3315
+ Stripetax_product_registrations_resource_country_options_default,
3316
+ ),
3317
+ uz: Schema.optionalKey(
3318
+ Stripetax_product_registrations_resource_country_options_simplified,
3319
+ ),
3320
+ vn: Schema.optionalKey(
3321
+ Stripetax_product_registrations_resource_country_options_simplified,
3322
+ ),
3323
+ za: Schema.optionalKey(
3324
+ Stripetax_product_registrations_resource_country_options_default,
3325
+ ),
3326
+ zm: Schema.optionalKey(
3327
+ Stripetax_product_registrations_resource_country_options_simplified,
3328
+ ),
3329
+ zw: Schema.optionalKey(
3330
+ Stripetax_product_registrations_resource_country_options_default,
3331
+ ),
3332
+ }),
3333
+ [
3334
+ Schema.Record(
3335
+ Schema.String,
3336
+ Schema.Json.annotate({ expected: "JSON value" }),
3337
+ ),
3338
+ ],
3339
+ ).annotate({
3340
+ title: "TaxProductRegistrationsResourceCountryOptions",
3341
+ description: "",
3342
+ identifier: "Stripetax_product_registrations_resource_country_options",
3343
+ }),
3344
+ );
3345
+ export const Stripetax_registration = Schema.suspend(
3346
+ (): Schema.Codec<Stripetax_registration> =>
3347
+ Schema.StructWithRest(
3348
+ Schema.Struct({
3349
+ active_from: Schema.Number.annotate({
3350
+ description:
3351
+ "Time at which the registration becomes active. Measured in seconds since the Unix epoch.",
3352
+ format: "unix-time",
3353
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3354
+ country: Schema.String.annotate({
3355
+ description:
3356
+ "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).",
3357
+ }).check(
3358
+ Schema.isMaxCodePoints(5000).annotate({
3359
+ expected: "a string with at most 5000 code points",
3360
+ }),
3361
+ ),
3362
+ country_options:
3363
+ Stripetax_product_registrations_resource_country_options,
3364
+ created: Schema.Number.annotate({
3365
+ description:
3366
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
3367
+ format: "unix-time",
3368
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3369
+ expires_at: Schema.optionalKey(
3370
+ Schema.Union([
3371
+ Schema.Number.annotate({
3372
+ description:
3373
+ "If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch.",
3374
+ format: "unix-time",
3375
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
3376
+ Schema.Null,
3377
+ ]),
3378
+ ),
3379
+ id: Schema.String.annotate({
3380
+ description: "Unique identifier for the object.",
3381
+ }).check(
3382
+ Schema.isMaxCodePoints(5000).annotate({
3383
+ expected: "a string with at most 5000 code points",
3384
+ }),
3385
+ ),
3386
+ livemode: Schema.Boolean.annotate({
3387
+ description:
3388
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
3389
+ }),
3390
+ object: Schema.Literal("tax.registration").annotate({
3391
+ description:
3392
+ "String representing the object's type. Objects of the same type share the same value.",
3393
+ }),
3394
+ status: Schema.Literals(["active", "expired", "scheduled"]).annotate({
3395
+ description:
3396
+ "The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`.",
3397
+ }),
3398
+ }),
3399
+ [
3400
+ Schema.Record(
3401
+ Schema.String,
3402
+ Schema.Json.annotate({ expected: "JSON value" }),
3403
+ ),
3404
+ ],
3405
+ ).annotate({
3406
+ title: "Tax Registration",
3407
+ description:
3408
+ "A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://docs.stripe.com/tax).\n\nStripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://docs.stripe.com/tax/registering).\n\nRelated guide: [Using the Registrations API](https://docs.stripe.com/tax/registrations-api)",
3409
+ identifier: "Stripetax.registration",
3410
+ }),
3411
+ );