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,2527 @@
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 { Stripeprice, Stripetax_rate } from "./catalog.js";
6
+ import {
7
+ Stripeaddress,
8
+ Stripeapplication,
9
+ Stripedeleted_application,
10
+ Stripefeedback_options_status_transitions,
11
+ Stripetest_helpers_test_clock,
12
+ Stripethresholds_resource_usage_threshold_config,
13
+ } from "./common.js";
14
+ import { Stripecustomer, Stripedeleted_customer } from "./customers.js";
15
+ import { Stripeinvoice } from "./invoices.js";
16
+ import { Stripesubscription } from "./subscriptions.js";
17
+
18
+ export type Stripebilling_credit_balance_transaction = {
19
+ readonly created: number;
20
+ readonly credit?: Stripebilling_credit_grants_resource_balance_credit | null;
21
+ readonly credit_grant: string | Stripebilling_credit_grant;
22
+ readonly debit?: Stripebilling_credit_grants_resource_balance_debit | null;
23
+ readonly effective_at: number;
24
+ readonly id: string;
25
+ readonly livemode: boolean;
26
+ readonly object: "billing.credit_balance_transaction";
27
+ readonly test_clock?: string | Stripetest_helpers_test_clock | null;
28
+ readonly type?: "credit" | "debit" | null;
29
+ } & { readonly [x: string]: Schema.Json };
30
+ export type Stripebilling_credit_grants_resource_balance_debit = {
31
+ readonly amount: Stripebilling_credit_grants_resource_amount;
32
+ readonly credits_applied?: Stripebilling_credit_grants_resource_balance_credits_applied | null;
33
+ readonly type: "credits_applied" | "credits_expired" | "credits_voided";
34
+ } & { readonly [x: string]: Schema.Json };
35
+ export type Stripebilling_credit_grants_resource_balance_credits_applied = {
36
+ readonly invoice: string | Stripeinvoice;
37
+ readonly invoice_line_item: string;
38
+ } & { readonly [x: string]: Schema.Json };
39
+ export type Stripebilling_credit_grant = {
40
+ readonly amount: Stripebilling_credit_grants_resource_amount;
41
+ readonly applicability_config: Stripebilling_credit_grants_resource_applicability_config;
42
+ readonly category: "paid" | "promotional";
43
+ readonly created: number;
44
+ readonly customer: string | Stripecustomer | Stripedeleted_customer;
45
+ readonly customer_account?: string | null;
46
+ readonly effective_at?: number | null;
47
+ readonly expires_at?: number | null;
48
+ readonly id: string;
49
+ readonly livemode: boolean;
50
+ readonly metadata: { readonly [x: string]: string };
51
+ readonly name?: string | null;
52
+ readonly object: "billing.credit_grant";
53
+ readonly priority?: number | null;
54
+ readonly test_clock?: string | Stripetest_helpers_test_clock | null;
55
+ readonly updated: number;
56
+ readonly voided_at?: number | null;
57
+ } & { readonly [x: string]: Schema.Json };
58
+ export type Stripebilling_credit_grants_resource_balance_credit = {
59
+ readonly amount: Stripebilling_credit_grants_resource_amount;
60
+ readonly credits_application_invoice_voided?: Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided | null;
61
+ readonly type: "credits_application_invoice_voided" | "credits_granted";
62
+ } & { readonly [x: string]: Schema.Json };
63
+ export type Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided =
64
+ {
65
+ readonly invoice: string | Stripeinvoice;
66
+ readonly invoice_line_item: string;
67
+ } & { readonly [x: string]: Schema.Json };
68
+ export type Stripebilling_bill_resource_invoicing_parents_invoice_parent = {
69
+ readonly quote_details?: Stripebilling_bill_resource_invoicing_parents_invoice_quote_parent | null;
70
+ readonly subscription_details?: Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent | null;
71
+ readonly type: "quote_details" | "subscription_details";
72
+ } & { readonly [x: string]: Schema.Json };
73
+ export type Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent =
74
+ {
75
+ readonly metadata?: { readonly [x: string]: string } | null;
76
+ readonly subscription: string | Stripesubscription;
77
+ readonly subscription_proration_date?: number;
78
+ } & { readonly [x: string]: Schema.Json };
79
+ export type Stripebilling_bill_resource_invoicing_lines_common_credited_items =
80
+ {
81
+ readonly invoice: string;
82
+ readonly invoice_line_items: ReadonlyArray<string>;
83
+ } & { readonly [x: string]: Schema.Json };
84
+ export type Stripebilling_credit_grants_resource_monetary_amount = {
85
+ readonly currency: string;
86
+ readonly value: number;
87
+ } & { readonly [x: string]: Schema.Json };
88
+ export type Stripebilling_credit_grants_resource_applicable_price = {
89
+ readonly id?: string | null;
90
+ } & { readonly [x: string]: Schema.Json };
91
+ export type Stripebilling_clocks_resource_status_details_advancing_status_details =
92
+ { readonly target_frozen_time: number } & {
93
+ readonly [x: string]: Schema.Json;
94
+ };
95
+ export type Stripebilling_bill_resource_invoicing_pricing_pricing_price_details =
96
+ { readonly price: string | Stripeprice; readonly product: string } & {
97
+ readonly [x: string]: Schema.Json;
98
+ };
99
+ export type Stripebilling_bill_resource_invoicing_parents_invoice_quote_parent =
100
+ { readonly quote: string } & { readonly [x: string]: Schema.Json };
101
+ export type Stripebilling_meter_resource_customer_mapping_settings = {
102
+ readonly event_payload_key: string;
103
+ readonly type: "by_id";
104
+ } & { readonly [x: string]: Schema.Json };
105
+ export type Stripebilling_meter_resource_aggregation_settings = {
106
+ readonly formula: "count" | "last" | "sum";
107
+ } & { readonly [x: string]: Schema.Json };
108
+ export type Stripebilling_meter_resource_billing_meter_status_transitions = {
109
+ readonly deactivated_at?: number | null;
110
+ } & { readonly [x: string]: Schema.Json };
111
+ export type Stripebilling_meter_resource_billing_meter_value = {
112
+ readonly event_payload_key: string;
113
+ } & { readonly [x: string]: Schema.Json };
114
+ export type Stripebilling_meter_event_summary = {
115
+ readonly aggregated_value: number;
116
+ readonly end_time: number;
117
+ readonly id: string;
118
+ readonly livemode: boolean;
119
+ readonly meter: string;
120
+ readonly object: "billing.meter_event_summary";
121
+ readonly start_time: number;
122
+ } & { readonly [x: string]: Schema.Json };
123
+ export type Stripeportal_business_profile = {
124
+ readonly headline?: string | null;
125
+ readonly privacy_policy_url?: string | null;
126
+ readonly terms_of_service_url?: string | null;
127
+ } & { readonly [x: string]: Schema.Json };
128
+ export type Stripeportal_customer_update = {
129
+ readonly allowed_updates: ReadonlyArray<
130
+ "address" | "email" | "name" | "phone" | "shipping" | "tax_id"
131
+ >;
132
+ readonly enabled: boolean;
133
+ } & { readonly [x: string]: Schema.Json };
134
+ export type Stripeportal_invoice_list = { readonly enabled: boolean } & {
135
+ readonly [x: string]: Schema.Json;
136
+ };
137
+ export type Stripeportal_payment_method_update = {
138
+ readonly enabled: boolean;
139
+ readonly payment_method_configuration?: string | null;
140
+ } & { readonly [x: string]: Schema.Json };
141
+ export type Stripeportal_subscription_pause_interval_option = {
142
+ readonly interval: "day" | "month" | "week" | "year";
143
+ readonly interval_count: number;
144
+ } & { readonly [x: string]: Schema.Json };
145
+ export type Stripeportal_subscription_update_product_adjustable_quantity = {
146
+ readonly enabled: boolean;
147
+ readonly maximum?: number | null;
148
+ readonly minimum: number;
149
+ } & { readonly [x: string]: Schema.Json };
150
+ export type Stripeportal_resource_schedule_update_at_period_end_condition = {
151
+ readonly type: "decreasing_item_amount" | "shortening_interval";
152
+ } & { readonly [x: string]: Schema.Json };
153
+ export type Stripeportal_login_page = {
154
+ readonly enabled: boolean;
155
+ readonly url?: string | null;
156
+ } & { readonly [x: string]: Schema.Json };
157
+ export type Stripebilling_bill_resource_invoice_item_parents_invoice_item_subscription_parent =
158
+ { readonly subscription: string; readonly subscription_item?: string } & {
159
+ readonly [x: string]: Schema.Json;
160
+ };
161
+ export type Stripebilling_details = {
162
+ readonly address?: Stripeaddress | null;
163
+ readonly email?: string | null;
164
+ readonly name?: string | null;
165
+ readonly phone?: string | null;
166
+ readonly tax_id?: string | null;
167
+ } & { readonly [x: string]: Schema.Json };
168
+ export type Stripebilling_feedback_option = {
169
+ readonly description: string;
170
+ readonly id: string;
171
+ readonly livemode: boolean;
172
+ readonly object: "billing.feedback_option";
173
+ readonly status: "active" | "inactive";
174
+ readonly status_transitions: Stripefeedback_options_status_transitions;
175
+ } & { readonly [x: string]: Schema.Json };
176
+ export type Stripebilling_bill_resource_invoicing_lines_common_proration_details =
177
+ {
178
+ readonly credited_items?: Stripebilling_bill_resource_invoicing_lines_common_credited_items | null;
179
+ } & { readonly [x: string]: Schema.Json };
180
+ export type Stripebilling_credit_grants_resource_amount = {
181
+ readonly monetary?: Stripebilling_credit_grants_resource_monetary_amount | null;
182
+ readonly type: "monetary";
183
+ } & { readonly [x: string]: Schema.Json };
184
+ export type Stripebilling_credit_grants_resource_scope = {
185
+ readonly price_type?: "metered";
186
+ readonly prices?: ReadonlyArray<Stripebilling_credit_grants_resource_applicable_price>;
187
+ } & { readonly [x: string]: Schema.Json };
188
+ export type Stripebilling_clocks_resource_status_details_status_details = {
189
+ readonly advancing?: Stripebilling_clocks_resource_status_details_advancing_status_details;
190
+ } & { readonly [x: string]: Schema.Json };
191
+ export type Stripebilling_bill_resource_invoicing_pricing_pricing = {
192
+ readonly price_details?: Stripebilling_bill_resource_invoicing_pricing_pricing_price_details;
193
+ readonly type: "price_details";
194
+ readonly unit_amount_decimal?: string | null;
195
+ } & { readonly [x: string]: Schema.Json };
196
+ export type Stripebilling_meter = {
197
+ readonly created: number;
198
+ readonly customer_mapping: Stripebilling_meter_resource_customer_mapping_settings;
199
+ readonly default_aggregation: Stripebilling_meter_resource_aggregation_settings;
200
+ readonly display_name: string;
201
+ readonly event_name: string;
202
+ readonly event_time_window?: "day" | "hour" | null;
203
+ readonly id: string;
204
+ readonly livemode: boolean;
205
+ readonly object: "billing.meter";
206
+ readonly status: "active" | "inactive";
207
+ readonly status_transitions: Stripebilling_meter_resource_billing_meter_status_transitions;
208
+ readonly updated: number;
209
+ readonly value_settings: Stripebilling_meter_resource_billing_meter_value;
210
+ } & { readonly [x: string]: Schema.Json };
211
+ export type Stripeportal_subscription_pause_duration = {
212
+ readonly interval_options: ReadonlyArray<Stripeportal_subscription_pause_interval_option>;
213
+ readonly type: "indefinite" | "interval_options";
214
+ } & { readonly [x: string]: Schema.Json };
215
+ export type Stripeportal_subscription_update_product = {
216
+ readonly adjustable_quantity: Stripeportal_subscription_update_product_adjustable_quantity;
217
+ readonly prices: ReadonlyArray<string>;
218
+ readonly product: string;
219
+ } & { readonly [x: string]: Schema.Json };
220
+ export type Stripeportal_resource_schedule_update_at_period_end = {
221
+ readonly conditions: ReadonlyArray<Stripeportal_resource_schedule_update_at_period_end_condition>;
222
+ } & { readonly [x: string]: Schema.Json };
223
+ export type Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent =
224
+ {
225
+ readonly subscription_details?: Stripebilling_bill_resource_invoice_item_parents_invoice_item_subscription_parent | null;
226
+ readonly type: "subscription_details";
227
+ } & { readonly [x: string]: Schema.Json };
228
+ export type Stripeportal_subscription_cancellation_reason = {
229
+ readonly enabled: boolean;
230
+ readonly feedback_options?: ReadonlyArray<
231
+ string | Stripebilling_feedback_option
232
+ > | null;
233
+ readonly options: ReadonlyArray<
234
+ | "customer_service"
235
+ | "low_quality"
236
+ | "missing_features"
237
+ | "other"
238
+ | "switched_service"
239
+ | "too_complex"
240
+ | "too_expensive"
241
+ | "unused"
242
+ >;
243
+ } & { readonly [x: string]: Schema.Json };
244
+ export type Stripebilling_bill_resource_invoicing_taxes_tax_rate_details = {
245
+ readonly tax_rate: string | Stripetax_rate;
246
+ } & { readonly [x: string]: Schema.Json };
247
+ export type Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent =
248
+ {
249
+ readonly invoice_item: string;
250
+ readonly proration: boolean;
251
+ readonly proration_details?: Stripebilling_bill_resource_invoicing_lines_common_proration_details | null;
252
+ readonly subscription?: string | null;
253
+ } & { readonly [x: string]: Schema.Json };
254
+ export type Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent =
255
+ {
256
+ readonly invoice_item?: string | null;
257
+ readonly proration: boolean;
258
+ readonly proration_details?: Stripebilling_bill_resource_invoicing_lines_common_proration_details | null;
259
+ readonly subscription?: string | null;
260
+ readonly subscription_item: string;
261
+ } & { readonly [x: string]: Schema.Json };
262
+ export type Stripebilling_credit_grants_resource_applicability_config = {
263
+ readonly scope: Stripebilling_credit_grants_resource_scope;
264
+ } & { readonly [x: string]: Schema.Json };
265
+ export type Stripeportal_subscription_pause = {
266
+ readonly duration: Stripeportal_subscription_pause_duration;
267
+ readonly enabled: boolean;
268
+ } & { readonly [x: string]: Schema.Json };
269
+ export type Stripeportal_subscription_update = {
270
+ readonly billing_cycle_anchor?: "now" | "unchanged" | null;
271
+ readonly default_allowed_updates: ReadonlyArray<
272
+ "price" | "promotion_code" | "quantity"
273
+ >;
274
+ readonly enabled: boolean;
275
+ readonly products?: ReadonlyArray<Stripeportal_subscription_update_product> | null;
276
+ readonly proration_behavior: "always_invoice" | "create_prorations" | "none";
277
+ readonly schedule_at_period_end: Stripeportal_resource_schedule_update_at_period_end;
278
+ readonly trial_update_behavior: "continue_trial" | "end_trial";
279
+ } & { readonly [x: string]: Schema.Json };
280
+ export type Stripeportal_subscription_cancel = {
281
+ readonly cancellation_reason: Stripeportal_subscription_cancellation_reason;
282
+ readonly enabled: boolean;
283
+ readonly mode: "at_period_end" | "immediately";
284
+ readonly proration_behavior: "always_invoice" | "create_prorations" | "none";
285
+ } & { readonly [x: string]: Schema.Json };
286
+ export type Stripebilling_bill_resource_invoicing_taxes_tax = {
287
+ readonly amount: number;
288
+ readonly tax_behavior: "exclusive" | "inclusive";
289
+ readonly tax_rate_details?: Stripebilling_bill_resource_invoicing_taxes_tax_rate_details | null;
290
+ readonly taxability_reason:
291
+ | "customer_exempt"
292
+ | "not_available"
293
+ | "not_collecting"
294
+ | "not_subject_to_tax"
295
+ | "not_supported"
296
+ | "portion_product_exempt"
297
+ | "portion_reduced_rated"
298
+ | "portion_standard_rated"
299
+ | "product_exempt"
300
+ | "product_exempt_holiday"
301
+ | "proportionally_rated"
302
+ | "reduced_rated"
303
+ | "reverse_charge"
304
+ | "standard_rated"
305
+ | "taxable_basis_reduced"
306
+ | "zero_rated";
307
+ readonly taxable_amount?: number | null;
308
+ readonly type: "tax_rate_details";
309
+ } & { readonly [x: string]: Schema.Json };
310
+ export type Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_parent =
311
+ {
312
+ readonly invoice_item_details?: Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent | null;
313
+ readonly subscription_item_details?: Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent | null;
314
+ readonly type: "invoice_item_details" | "subscription_item_details";
315
+ } & { readonly [x: string]: Schema.Json };
316
+ export type Stripebilling_alert = {
317
+ readonly alert_type: "usage_threshold";
318
+ readonly id: string;
319
+ readonly livemode: boolean;
320
+ readonly object: "billing.alert";
321
+ readonly status?: "active" | "archived" | "inactive" | null;
322
+ readonly title: string;
323
+ readonly usage_threshold?: Stripethresholds_resource_usage_threshold_config | null;
324
+ } & { readonly [x: string]: Schema.Json };
325
+ export type Stripeportal_features = {
326
+ readonly customer_update: Stripeportal_customer_update;
327
+ readonly invoice_history: Stripeportal_invoice_list;
328
+ readonly payment_method_update: Stripeportal_payment_method_update;
329
+ readonly subscription_cancel: Stripeportal_subscription_cancel;
330
+ readonly subscription_pause: Stripeportal_subscription_pause;
331
+ readonly subscription_update: Stripeportal_subscription_update;
332
+ } & { readonly [x: string]: Schema.Json };
333
+ export type Stripebilling_portal_configuration = {
334
+ readonly active: boolean;
335
+ readonly application?:
336
+ | string
337
+ | Stripeapplication
338
+ | Stripedeleted_application
339
+ | null;
340
+ readonly business_profile: Stripeportal_business_profile;
341
+ readonly created: number;
342
+ readonly default_return_url?: string | null;
343
+ readonly features: Stripeportal_features;
344
+ readonly id: string;
345
+ readonly is_default: boolean;
346
+ readonly livemode: boolean;
347
+ readonly login_page: Stripeportal_login_page;
348
+ readonly metadata?: { readonly [x: string]: string } | null;
349
+ readonly name?: string | null;
350
+ readonly object: "billing_portal.configuration";
351
+ readonly updated: number;
352
+ } & { readonly [x: string]: Schema.Json };
353
+
354
+ export const Stripebilling_credit_balance_transaction = Schema.suspend(
355
+ (): Schema.Codec<Stripebilling_credit_balance_transaction> =>
356
+ Schema.StructWithRest(
357
+ Schema.Struct({
358
+ created: Schema.Number.annotate({
359
+ description:
360
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
361
+ format: "unix-time",
362
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
363
+ credit: Schema.optionalKey(
364
+ Schema.Union([
365
+ Schema.Union([
366
+ Schema.suspend(
367
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_credit> =>
368
+ Stripebilling_credit_grants_resource_balance_credit,
369
+ ),
370
+ ]).annotate({
371
+ description:
372
+ "Credit details for this credit balance transaction. Only present if type is `credit`.",
373
+ }),
374
+ Schema.Null,
375
+ ]),
376
+ ),
377
+ credit_grant: Schema.Union([
378
+ Schema.String.check(
379
+ Schema.isMaxCodePoints(5000).annotate({
380
+ expected: "a string with at most 5000 code points",
381
+ }),
382
+ ),
383
+ Schema.suspend(
384
+ (): Schema.Codec<Stripebilling_credit_grant> =>
385
+ Stripebilling_credit_grant,
386
+ ),
387
+ ]).annotate({
388
+ description:
389
+ "The credit grant associated with this credit balance transaction.",
390
+ }),
391
+ debit: Schema.optionalKey(
392
+ Schema.Union([
393
+ Schema.Union([
394
+ Schema.suspend(
395
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_debit> =>
396
+ Stripebilling_credit_grants_resource_balance_debit,
397
+ ),
398
+ ]).annotate({
399
+ description:
400
+ "Debit details for this credit balance transaction. Only present if type is `debit`.",
401
+ }),
402
+ Schema.Null,
403
+ ]),
404
+ ),
405
+ effective_at: Schema.Number.annotate({
406
+ description: "The effective time of this credit balance transaction.",
407
+ format: "unix-time",
408
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
409
+ id: Schema.String.annotate({
410
+ description: "Unique identifier for the object.",
411
+ }).check(
412
+ Schema.isMaxCodePoints(5000).annotate({
413
+ expected: "a string with at most 5000 code points",
414
+ }),
415
+ ),
416
+ livemode: Schema.Boolean.annotate({
417
+ description:
418
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
419
+ }),
420
+ object: Schema.Literal("billing.credit_balance_transaction").annotate({
421
+ description:
422
+ "String representing the object's type. Objects of the same type share the same value.",
423
+ }),
424
+ test_clock: Schema.optionalKey(
425
+ Schema.Union([
426
+ Schema.Union([
427
+ Schema.String.check(
428
+ Schema.isMaxCodePoints(5000).annotate({
429
+ expected: "a string with at most 5000 code points",
430
+ }),
431
+ ),
432
+ Stripetest_helpers_test_clock,
433
+ ]).annotate({
434
+ description:
435
+ "ID of the test clock this credit balance transaction belongs to.",
436
+ }),
437
+ Schema.Null,
438
+ ]),
439
+ ),
440
+ type: Schema.optionalKey(
441
+ Schema.Union([
442
+ Schema.Literals(["credit", "debit"]).annotate({
443
+ description:
444
+ "The type of credit balance transaction (credit or debit).",
445
+ }),
446
+ Schema.Null,
447
+ ]),
448
+ ),
449
+ }),
450
+ [
451
+ Schema.Record(
452
+ Schema.String,
453
+ Schema.Json.annotate({ expected: "JSON value" }),
454
+ ),
455
+ ],
456
+ ).annotate({
457
+ title: "Credit Balance Transaction",
458
+ description:
459
+ "A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant.",
460
+ identifier: "Stripebilling.credit_balance_transaction",
461
+ }),
462
+ );
463
+ export const Stripebilling_credit_grants_resource_balance_debit =
464
+ Schema.suspend(
465
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_debit> =>
466
+ Schema.StructWithRest(
467
+ Schema.Struct({
468
+ amount: Stripebilling_credit_grants_resource_amount,
469
+ credits_applied: Schema.optionalKey(
470
+ Schema.Union([
471
+ Schema.Union([
472
+ Schema.suspend(
473
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_credits_applied> =>
474
+ Stripebilling_credit_grants_resource_balance_credits_applied,
475
+ ),
476
+ ]).annotate({
477
+ description:
478
+ "Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`.",
479
+ }),
480
+ Schema.Null,
481
+ ]),
482
+ ),
483
+ type: Schema.Literals([
484
+ "credits_applied",
485
+ "credits_expired",
486
+ "credits_voided",
487
+ ]).annotate({ description: "The type of debit transaction." }),
488
+ }),
489
+ [
490
+ Schema.Record(
491
+ Schema.String,
492
+ Schema.Json.annotate({ expected: "JSON value" }),
493
+ ),
494
+ ],
495
+ ).annotate({
496
+ title: "BillingCreditGrantsResourceBalanceDebit",
497
+ description: "",
498
+ identifier: "Stripebilling_credit_grants_resource_balance_debit",
499
+ }),
500
+ );
501
+ export const Stripebilling_credit_grants_resource_balance_credits_applied =
502
+ Schema.StructWithRest(
503
+ Schema.Struct({
504
+ invoice: Schema.Union([
505
+ Schema.String.check(
506
+ Schema.isMaxCodePoints(5000).annotate({
507
+ expected: "a string with at most 5000 code points",
508
+ }),
509
+ ),
510
+ Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
511
+ ]).annotate({
512
+ description: "The invoice to which the billing credits were applied.",
513
+ }),
514
+ invoice_line_item: Schema.String.annotate({
515
+ description:
516
+ "The invoice line item to which the billing credits were applied.",
517
+ }).check(
518
+ Schema.isMaxCodePoints(5000).annotate({
519
+ expected: "a string with at most 5000 code points",
520
+ }),
521
+ ),
522
+ }),
523
+ [
524
+ Schema.Record(
525
+ Schema.String,
526
+ Schema.Json.annotate({ expected: "JSON value" }),
527
+ ),
528
+ ],
529
+ ).annotate({
530
+ title: "BillingCreditGrantsResourceBalanceCreditsApplied",
531
+ description: "",
532
+ identifier: "Stripebilling_credit_grants_resource_balance_credits_applied",
533
+ });
534
+ export const Stripebilling_credit_grant = Schema.suspend(
535
+ (): Schema.Codec<Stripebilling_credit_grant> =>
536
+ Schema.StructWithRest(
537
+ Schema.Struct({
538
+ amount: Stripebilling_credit_grants_resource_amount,
539
+ applicability_config:
540
+ Stripebilling_credit_grants_resource_applicability_config,
541
+ category: Schema.Literals(["paid", "promotional"]).annotate({
542
+ description:
543
+ "The category of this credit grant. This is for tracking purposes and isn't displayed to the customer.",
544
+ }),
545
+ created: Schema.Number.annotate({
546
+ description:
547
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
548
+ format: "unix-time",
549
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
550
+ customer: Schema.Union([
551
+ Schema.String.check(
552
+ Schema.isMaxCodePoints(5000).annotate({
553
+ expected: "a string with at most 5000 code points",
554
+ }),
555
+ ),
556
+ Schema.suspend((): Schema.Codec<Stripecustomer> => Stripecustomer),
557
+ Stripedeleted_customer,
558
+ ]).annotate({
559
+ description: "ID of the customer receiving the billing credits.",
560
+ }),
561
+ customer_account: Schema.optionalKey(
562
+ Schema.Union([
563
+ Schema.String.annotate({
564
+ description:
565
+ "ID of the account representing the customer receiving the billing credits",
566
+ }).check(
567
+ Schema.isMaxCodePoints(5000).annotate({
568
+ expected: "a string with at most 5000 code points",
569
+ }),
570
+ ),
571
+ Schema.Null,
572
+ ]),
573
+ ),
574
+ effective_at: Schema.optionalKey(
575
+ Schema.Union([
576
+ Schema.Number.annotate({
577
+ description:
578
+ "The time when the billing credits become effective-when they're eligible for use.",
579
+ format: "unix-time",
580
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
581
+ Schema.Null,
582
+ ]),
583
+ ),
584
+ expires_at: Schema.optionalKey(
585
+ Schema.Union([
586
+ Schema.Number.annotate({
587
+ description:
588
+ "The time when the billing credits expire. If not present, the billing credits don't expire.",
589
+ format: "unix-time",
590
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
591
+ Schema.Null,
592
+ ]),
593
+ ),
594
+ id: Schema.String.annotate({
595
+ description: "Unique identifier for the object.",
596
+ }).check(
597
+ Schema.isMaxCodePoints(5000).annotate({
598
+ expected: "a string with at most 5000 code points",
599
+ }),
600
+ ),
601
+ livemode: Schema.Boolean.annotate({
602
+ description:
603
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
604
+ }),
605
+ metadata: Schema.Record(
606
+ Schema.String,
607
+ Schema.String.check(
608
+ Schema.isMaxCodePoints(500).annotate({
609
+ expected: "a string with at most 500 code points",
610
+ }),
611
+ ),
612
+ ).annotate({
613
+ description:
614
+ "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.",
615
+ }),
616
+ name: Schema.optionalKey(
617
+ Schema.Union([
618
+ Schema.String.annotate({
619
+ description: "A descriptive name shown in dashboard.",
620
+ }).check(
621
+ Schema.isMaxCodePoints(5000).annotate({
622
+ expected: "a string with at most 5000 code points",
623
+ }),
624
+ ),
625
+ Schema.Null,
626
+ ]),
627
+ ),
628
+ object: Schema.Literal("billing.credit_grant").annotate({
629
+ description:
630
+ "String representing the object's type. Objects of the same type share the same value.",
631
+ }),
632
+ priority: Schema.optionalKey(
633
+ Schema.Union([
634
+ Schema.Number.annotate({
635
+ description:
636
+ "The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.",
637
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
638
+ Schema.Null,
639
+ ]),
640
+ ),
641
+ test_clock: Schema.optionalKey(
642
+ Schema.Union([
643
+ Schema.Union([
644
+ Schema.String.check(
645
+ Schema.isMaxCodePoints(5000).annotate({
646
+ expected: "a string with at most 5000 code points",
647
+ }),
648
+ ),
649
+ Stripetest_helpers_test_clock,
650
+ ]).annotate({
651
+ description: "ID of the test clock this credit grant belongs to.",
652
+ }),
653
+ Schema.Null,
654
+ ]),
655
+ ),
656
+ updated: Schema.Number.annotate({
657
+ description:
658
+ "Time at which the object was last updated. Measured in seconds since the Unix epoch.",
659
+ format: "unix-time",
660
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
661
+ voided_at: Schema.optionalKey(
662
+ Schema.Union([
663
+ Schema.Number.annotate({
664
+ description:
665
+ "The time when this credit grant was voided. If not present, the credit grant hasn't been voided.",
666
+ format: "unix-time",
667
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
668
+ Schema.Null,
669
+ ]),
670
+ ),
671
+ }),
672
+ [
673
+ Schema.Record(
674
+ Schema.String,
675
+ Schema.Json.annotate({ expected: "JSON value" }),
676
+ ),
677
+ ],
678
+ ).annotate({
679
+ title: "Credit Grant",
680
+ description:
681
+ "A credit grant is an API resource that documents the allocation of some billing credits to a customer.\n\nRelated guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits)",
682
+ identifier: "Stripebilling.credit_grant",
683
+ }),
684
+ );
685
+ export const Stripebilling_credit_grants_resource_balance_credit =
686
+ Schema.suspend(
687
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_credit> =>
688
+ Schema.StructWithRest(
689
+ Schema.Struct({
690
+ amount: Stripebilling_credit_grants_resource_amount,
691
+ credits_application_invoice_voided: Schema.optionalKey(
692
+ Schema.Union([
693
+ Schema.Union([
694
+ Schema.suspend(
695
+ (): Schema.Codec<Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided> =>
696
+ Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided,
697
+ ),
698
+ ]).annotate({
699
+ description:
700
+ "Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.",
701
+ }),
702
+ Schema.Null,
703
+ ]),
704
+ ),
705
+ type: Schema.Literals([
706
+ "credits_application_invoice_voided",
707
+ "credits_granted",
708
+ ]).annotate({ description: "The type of credit transaction." }),
709
+ }),
710
+ [
711
+ Schema.Record(
712
+ Schema.String,
713
+ Schema.Json.annotate({ expected: "JSON value" }),
714
+ ),
715
+ ],
716
+ ).annotate({
717
+ title: "BillingCreditGrantsResourceBalanceCredit",
718
+ description: "",
719
+ identifier: "Stripebilling_credit_grants_resource_balance_credit",
720
+ }),
721
+ );
722
+ export const Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided =
723
+ Schema.StructWithRest(
724
+ Schema.Struct({
725
+ invoice: Schema.Union([
726
+ Schema.String.check(
727
+ Schema.isMaxCodePoints(5000).annotate({
728
+ expected: "a string with at most 5000 code points",
729
+ }),
730
+ ),
731
+ Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
732
+ ]).annotate({
733
+ description:
734
+ "The invoice to which the reinstated billing credits were originally applied.",
735
+ }),
736
+ invoice_line_item: Schema.String.annotate({
737
+ description:
738
+ "The invoice line item to which the reinstated billing credits were originally applied.",
739
+ }).check(
740
+ Schema.isMaxCodePoints(5000).annotate({
741
+ expected: "a string with at most 5000 code points",
742
+ }),
743
+ ),
744
+ }),
745
+ [
746
+ Schema.Record(
747
+ Schema.String,
748
+ Schema.Json.annotate({ expected: "JSON value" }),
749
+ ),
750
+ ],
751
+ ).annotate({
752
+ title: "BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoided",
753
+ description: "",
754
+ identifier:
755
+ "Stripebilling_credit_grants_resource_balance_credits_application_invoice_voided",
756
+ });
757
+ export const Stripebilling_bill_resource_invoicing_parents_invoice_parent =
758
+ Schema.suspend(
759
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_parents_invoice_parent> =>
760
+ Schema.StructWithRest(
761
+ Schema.Struct({
762
+ quote_details: Schema.optionalKey(
763
+ Schema.Union([
764
+ Schema.Union([
765
+ Stripebilling_bill_resource_invoicing_parents_invoice_quote_parent,
766
+ ]).annotate({
767
+ description:
768
+ "Details about the quote that generated this invoice",
769
+ }),
770
+ Schema.Null,
771
+ ]),
772
+ ),
773
+ subscription_details: Schema.optionalKey(
774
+ Schema.Union([
775
+ Schema.Union([
776
+ Schema.suspend(
777
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent> =>
778
+ Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent,
779
+ ),
780
+ ]).annotate({
781
+ description:
782
+ "Details about the subscription that generated this invoice",
783
+ }),
784
+ Schema.Null,
785
+ ]),
786
+ ),
787
+ type: Schema.Literals([
788
+ "quote_details",
789
+ "subscription_details",
790
+ ]).annotate({
791
+ description: "The type of parent that generated this invoice",
792
+ }),
793
+ }),
794
+ [
795
+ Schema.Record(
796
+ Schema.String,
797
+ Schema.Json.annotate({ expected: "JSON value" }),
798
+ ),
799
+ ],
800
+ ).annotate({
801
+ title: "BillingBillResourceInvoicingParentsInvoiceParent",
802
+ description: "",
803
+ identifier:
804
+ "Stripebilling_bill_resource_invoicing_parents_invoice_parent",
805
+ }),
806
+ );
807
+ export const Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent =
808
+ Schema.StructWithRest(
809
+ Schema.Struct({
810
+ metadata: Schema.optionalKey(
811
+ Schema.Union([
812
+ Schema.Record(
813
+ Schema.String,
814
+ Schema.String.check(
815
+ Schema.isMaxCodePoints(500).annotate({
816
+ expected: "a string with at most 500 code points",
817
+ }),
818
+ ),
819
+ ).annotate({
820
+ description:
821
+ "Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.\n *Note: This attribute is populated only for invoices created on or after June 29, 2023.*",
822
+ }),
823
+ Schema.Null,
824
+ ]),
825
+ ),
826
+ subscription: Schema.Union([
827
+ Schema.String.check(
828
+ Schema.isMaxCodePoints(5000).annotate({
829
+ expected: "a string with at most 5000 code points",
830
+ }),
831
+ ),
832
+ Schema.suspend(
833
+ (): Schema.Codec<Stripesubscription> => Stripesubscription,
834
+ ),
835
+ ]).annotate({
836
+ description: "The subscription that generated this invoice",
837
+ }),
838
+ subscription_proration_date: Schema.optionalKey(
839
+ Schema.Number.annotate({
840
+ description:
841
+ "Only set for upcoming invoices that preview prorations. The time used to calculate prorations.",
842
+ format: "unix-time",
843
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
844
+ ),
845
+ }),
846
+ [
847
+ Schema.Record(
848
+ Schema.String,
849
+ Schema.Json.annotate({ expected: "JSON value" }),
850
+ ),
851
+ ],
852
+ ).annotate({
853
+ title: "BillingBillResourceInvoicingParentsInvoiceSubscriptionParent",
854
+ description: "",
855
+ identifier:
856
+ "Stripebilling_bill_resource_invoicing_parents_invoice_subscription_parent",
857
+ });
858
+ export const Stripebilling_bill_resource_invoicing_lines_common_credited_items =
859
+ Schema.StructWithRest(
860
+ Schema.Struct({
861
+ invoice: Schema.String.annotate({
862
+ description: "Invoice containing the credited invoice line items",
863
+ }).check(
864
+ Schema.isMaxCodePoints(5000).annotate({
865
+ expected: "a string with at most 5000 code points",
866
+ }),
867
+ ),
868
+ invoice_line_items: Schema.Array(
869
+ Schema.String.check(
870
+ Schema.isMaxCodePoints(5000).annotate({
871
+ expected: "a string with at most 5000 code points",
872
+ }),
873
+ ),
874
+ ).annotate({ description: "Credited invoice line items" }),
875
+ }),
876
+ [
877
+ Schema.Record(
878
+ Schema.String,
879
+ Schema.Json.annotate({ expected: "JSON value" }),
880
+ ),
881
+ ],
882
+ ).annotate({
883
+ title: "BillingBillResourceInvoicingLinesCommonCreditedItems",
884
+ description: "",
885
+ identifier:
886
+ "Stripebilling_bill_resource_invoicing_lines_common_credited_items",
887
+ });
888
+ export const Stripebilling_credit_grants_resource_monetary_amount =
889
+ Schema.StructWithRest(
890
+ Schema.Struct({
891
+ currency: Schema.String.annotate({
892
+ description:
893
+ "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).",
894
+ }).check(
895
+ Schema.isMaxCodePoints(5000).annotate({
896
+ expected: "a string with at most 5000 code points",
897
+ }),
898
+ ),
899
+ value: Schema.Number.annotate({
900
+ description: "A positive integer representing the amount.",
901
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
902
+ }),
903
+ [
904
+ Schema.Record(
905
+ Schema.String,
906
+ Schema.Json.annotate({ expected: "JSON value" }),
907
+ ),
908
+ ],
909
+ ).annotate({
910
+ title: "BillingCreditGrantsResourceMonetaryAmount",
911
+ description: "",
912
+ identifier: "Stripebilling_credit_grants_resource_monetary_amount",
913
+ });
914
+ export const Stripebilling_credit_grants_resource_applicable_price =
915
+ Schema.StructWithRest(
916
+ Schema.Struct({
917
+ id: Schema.optionalKey(
918
+ Schema.Union([
919
+ Schema.String.annotate({
920
+ description: "Unique identifier for the object.",
921
+ }).check(
922
+ Schema.isMaxCodePoints(5000).annotate({
923
+ expected: "a string with at most 5000 code points",
924
+ }),
925
+ ),
926
+ Schema.Null,
927
+ ]),
928
+ ),
929
+ }),
930
+ [
931
+ Schema.Record(
932
+ Schema.String,
933
+ Schema.Json.annotate({ expected: "JSON value" }),
934
+ ),
935
+ ],
936
+ ).annotate({
937
+ title: "BillingCreditGrantsResourceApplicablePrice",
938
+ description: "",
939
+ identifier: "Stripebilling_credit_grants_resource_applicable_price",
940
+ });
941
+ export const Stripebilling_clocks_resource_status_details_advancing_status_details =
942
+ Schema.StructWithRest(
943
+ Schema.Struct({
944
+ target_frozen_time: Schema.Number.annotate({
945
+ description:
946
+ "The `frozen_time` that the Test Clock is advancing towards.",
947
+ format: "unix-time",
948
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
949
+ }),
950
+ [
951
+ Schema.Record(
952
+ Schema.String,
953
+ Schema.Json.annotate({ expected: "JSON value" }),
954
+ ),
955
+ ],
956
+ ).annotate({
957
+ title: "BillingClocksResourceStatusDetailsAdvancingStatusDetails",
958
+ description: "",
959
+ identifier:
960
+ "Stripebilling_clocks_resource_status_details_advancing_status_details",
961
+ });
962
+ export const Stripebilling_bill_resource_invoicing_pricing_pricing_price_details =
963
+ Schema.suspend(
964
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_pricing_pricing_price_details> =>
965
+ Schema.StructWithRest(
966
+ Schema.Struct({
967
+ price: Schema.Union([
968
+ Schema.String.check(
969
+ Schema.isMaxCodePoints(5000).annotate({
970
+ expected: "a string with at most 5000 code points",
971
+ }),
972
+ ),
973
+ Stripeprice,
974
+ ]).annotate({
975
+ description: "The ID of the price this item is associated with.",
976
+ }),
977
+ product: Schema.String.annotate({
978
+ description: "The ID of the product this item is associated with.",
979
+ }).check(
980
+ Schema.isMaxCodePoints(5000).annotate({
981
+ expected: "a string with at most 5000 code points",
982
+ }),
983
+ ),
984
+ }),
985
+ [
986
+ Schema.Record(
987
+ Schema.String,
988
+ Schema.Json.annotate({ expected: "JSON value" }),
989
+ ),
990
+ ],
991
+ ).annotate({
992
+ title: "BillingBillResourceInvoicingPricingPricingPriceDetails",
993
+ description: "",
994
+ identifier:
995
+ "Stripebilling_bill_resource_invoicing_pricing_pricing_price_details",
996
+ }),
997
+ );
998
+ export const Stripebilling_bill_resource_invoicing_parents_invoice_quote_parent =
999
+ Schema.StructWithRest(
1000
+ Schema.Struct({
1001
+ quote: Schema.String.annotate({
1002
+ description: "The quote that generated this invoice",
1003
+ }).check(
1004
+ Schema.isMaxCodePoints(5000).annotate({
1005
+ expected: "a string with at most 5000 code points",
1006
+ }),
1007
+ ),
1008
+ }),
1009
+ [
1010
+ Schema.Record(
1011
+ Schema.String,
1012
+ Schema.Json.annotate({ expected: "JSON value" }),
1013
+ ),
1014
+ ],
1015
+ ).annotate({
1016
+ title: "BillingBillResourceInvoicingParentsInvoiceQuoteParent",
1017
+ description: "",
1018
+ identifier:
1019
+ "Stripebilling_bill_resource_invoicing_parents_invoice_quote_parent",
1020
+ });
1021
+ export const Stripebilling_meter_resource_customer_mapping_settings =
1022
+ Schema.StructWithRest(
1023
+ Schema.Struct({
1024
+ event_payload_key: Schema.String.annotate({
1025
+ description:
1026
+ "The key in the meter event payload to use for mapping the event to a customer.",
1027
+ }).check(
1028
+ Schema.isMaxCodePoints(5000).annotate({
1029
+ expected: "a string with at most 5000 code points",
1030
+ }),
1031
+ ),
1032
+ type: Schema.Literal("by_id").annotate({
1033
+ description: "The method for mapping a meter event to a customer.",
1034
+ }),
1035
+ }),
1036
+ [
1037
+ Schema.Record(
1038
+ Schema.String,
1039
+ Schema.Json.annotate({ expected: "JSON value" }),
1040
+ ),
1041
+ ],
1042
+ ).annotate({
1043
+ title: "BillingMeterResourceCustomerMappingSettings",
1044
+ description: "",
1045
+ identifier: "Stripebilling_meter_resource_customer_mapping_settings",
1046
+ });
1047
+ export const Stripebilling_meter_resource_aggregation_settings =
1048
+ Schema.StructWithRest(
1049
+ Schema.Struct({
1050
+ formula: Schema.Literals(["count", "last", "sum"]).annotate({
1051
+ description: "Specifies how events are aggregated.",
1052
+ }),
1053
+ }),
1054
+ [
1055
+ Schema.Record(
1056
+ Schema.String,
1057
+ Schema.Json.annotate({ expected: "JSON value" }),
1058
+ ),
1059
+ ],
1060
+ ).annotate({
1061
+ title: "BillingMeterResourceAggregationSettings",
1062
+ description: "",
1063
+ identifier: "Stripebilling_meter_resource_aggregation_settings",
1064
+ });
1065
+ export const Stripebilling_meter_resource_billing_meter_status_transitions =
1066
+ Schema.StructWithRest(
1067
+ Schema.Struct({
1068
+ deactivated_at: Schema.optionalKey(
1069
+ Schema.Union([
1070
+ Schema.Number.annotate({
1071
+ description:
1072
+ "The time the meter was deactivated, if any. Measured in seconds since Unix epoch.",
1073
+ format: "unix-time",
1074
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1075
+ Schema.Null,
1076
+ ]),
1077
+ ),
1078
+ }),
1079
+ [
1080
+ Schema.Record(
1081
+ Schema.String,
1082
+ Schema.Json.annotate({ expected: "JSON value" }),
1083
+ ),
1084
+ ],
1085
+ ).annotate({
1086
+ title: "BillingMeterResourceBillingMeterStatusTransitions",
1087
+ description: "",
1088
+ identifier: "Stripebilling_meter_resource_billing_meter_status_transitions",
1089
+ });
1090
+ export const Stripebilling_meter_resource_billing_meter_value =
1091
+ Schema.StructWithRest(
1092
+ Schema.Struct({
1093
+ event_payload_key: Schema.String.annotate({
1094
+ description:
1095
+ "The key in the meter event payload to use as the value for this meter.",
1096
+ }).check(
1097
+ Schema.isMaxCodePoints(5000).annotate({
1098
+ expected: "a string with at most 5000 code points",
1099
+ }),
1100
+ ),
1101
+ }),
1102
+ [
1103
+ Schema.Record(
1104
+ Schema.String,
1105
+ Schema.Json.annotate({ expected: "JSON value" }),
1106
+ ),
1107
+ ],
1108
+ ).annotate({
1109
+ title: "BillingMeterResourceBillingMeterValue",
1110
+ description: "",
1111
+ identifier: "Stripebilling_meter_resource_billing_meter_value",
1112
+ });
1113
+ export const Stripebilling_meter_event_summary = Schema.StructWithRest(
1114
+ Schema.Struct({
1115
+ aggregated_value: Schema.Number.annotate({
1116
+ description:
1117
+ "Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.",
1118
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1119
+ end_time: Schema.Number.annotate({
1120
+ description:
1121
+ "End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.",
1122
+ format: "unix-time",
1123
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1124
+ id: Schema.String.annotate({
1125
+ description: "Unique identifier for the object.",
1126
+ }).check(
1127
+ Schema.isMaxCodePoints(5000).annotate({
1128
+ expected: "a string with at most 5000 code points",
1129
+ }),
1130
+ ),
1131
+ livemode: Schema.Boolean.annotate({
1132
+ description:
1133
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1134
+ }),
1135
+ meter: Schema.String.annotate({
1136
+ description: "The meter associated with this event summary.",
1137
+ }).check(
1138
+ Schema.isMaxCodePoints(5000).annotate({
1139
+ expected: "a string with at most 5000 code points",
1140
+ }),
1141
+ ),
1142
+ object: Schema.Literal("billing.meter_event_summary").annotate({
1143
+ description:
1144
+ "String representing the object's type. Objects of the same type share the same value.",
1145
+ }),
1146
+ start_time: Schema.Number.annotate({
1147
+ description:
1148
+ "Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.",
1149
+ format: "unix-time",
1150
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1151
+ }),
1152
+ [
1153
+ Schema.Record(
1154
+ Schema.String,
1155
+ Schema.Json.annotate({ expected: "JSON value" }),
1156
+ ),
1157
+ ],
1158
+ ).annotate({
1159
+ title: "Billing Meter Event Summary",
1160
+ description:
1161
+ "A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much\nusage was accrued by a customer for that period.\n\nNote: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.",
1162
+ identifier: "Stripebilling.meter_event_summary",
1163
+ });
1164
+ export const Stripeportal_business_profile = Schema.StructWithRest(
1165
+ Schema.Struct({
1166
+ headline: Schema.optionalKey(
1167
+ Schema.Union([
1168
+ Schema.String.annotate({
1169
+ description: "The messaging shown to customers in the portal.",
1170
+ }).check(
1171
+ Schema.isMaxCodePoints(5000).annotate({
1172
+ expected: "a string with at most 5000 code points",
1173
+ }),
1174
+ ),
1175
+ Schema.Null,
1176
+ ]),
1177
+ ),
1178
+ privacy_policy_url: Schema.optionalKey(
1179
+ Schema.Union([
1180
+ Schema.String.annotate({
1181
+ description:
1182
+ "A link to the business’s publicly available privacy policy.",
1183
+ }).check(
1184
+ Schema.isMaxCodePoints(5000).annotate({
1185
+ expected: "a string with at most 5000 code points",
1186
+ }),
1187
+ ),
1188
+ Schema.Null,
1189
+ ]),
1190
+ ),
1191
+ terms_of_service_url: Schema.optionalKey(
1192
+ Schema.Union([
1193
+ Schema.String.annotate({
1194
+ description:
1195
+ "A link to the business’s publicly available terms of service.",
1196
+ }).check(
1197
+ Schema.isMaxCodePoints(5000).annotate({
1198
+ expected: "a string with at most 5000 code points",
1199
+ }),
1200
+ ),
1201
+ Schema.Null,
1202
+ ]),
1203
+ ),
1204
+ }),
1205
+ [
1206
+ Schema.Record(
1207
+ Schema.String,
1208
+ Schema.Json.annotate({ expected: "JSON value" }),
1209
+ ),
1210
+ ],
1211
+ ).annotate({
1212
+ title: "PortalBusinessProfile",
1213
+ description: "",
1214
+ identifier: "Stripeportal_business_profile",
1215
+ });
1216
+ export const Stripeportal_customer_update = Schema.StructWithRest(
1217
+ Schema.Struct({
1218
+ allowed_updates: Schema.Array(
1219
+ Schema.Literals([
1220
+ "address",
1221
+ "email",
1222
+ "name",
1223
+ "phone",
1224
+ "shipping",
1225
+ "tax_id",
1226
+ ]),
1227
+ ).annotate({
1228
+ description:
1229
+ "The types of customer updates that are supported. When empty, customers are not updateable.",
1230
+ }),
1231
+ enabled: Schema.Boolean.annotate({
1232
+ description: "Whether the feature is enabled.",
1233
+ }),
1234
+ }),
1235
+ [
1236
+ Schema.Record(
1237
+ Schema.String,
1238
+ Schema.Json.annotate({ expected: "JSON value" }),
1239
+ ),
1240
+ ],
1241
+ ).annotate({
1242
+ title: "PortalCustomerUpdate",
1243
+ description: "",
1244
+ identifier: "Stripeportal_customer_update",
1245
+ });
1246
+ export const Stripeportal_invoice_list = Schema.StructWithRest(
1247
+ Schema.Struct({
1248
+ enabled: Schema.Boolean.annotate({
1249
+ description: "Whether the feature is enabled.",
1250
+ }),
1251
+ }),
1252
+ [
1253
+ Schema.Record(
1254
+ Schema.String,
1255
+ Schema.Json.annotate({ expected: "JSON value" }),
1256
+ ),
1257
+ ],
1258
+ ).annotate({
1259
+ title: "PortalInvoiceList",
1260
+ description: "",
1261
+ identifier: "Stripeportal_invoice_list",
1262
+ });
1263
+ export const Stripeportal_payment_method_update = Schema.StructWithRest(
1264
+ Schema.Struct({
1265
+ enabled: Schema.Boolean.annotate({
1266
+ description: "Whether the feature is enabled.",
1267
+ }),
1268
+ payment_method_configuration: Schema.optionalKey(
1269
+ Schema.Union([
1270
+ Schema.String.annotate({
1271
+ description:
1272
+ "The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used.",
1273
+ }).check(
1274
+ Schema.isMaxCodePoints(5000).annotate({
1275
+ expected: "a string with at most 5000 code points",
1276
+ }),
1277
+ ),
1278
+ Schema.Null,
1279
+ ]),
1280
+ ),
1281
+ }),
1282
+ [
1283
+ Schema.Record(
1284
+ Schema.String,
1285
+ Schema.Json.annotate({ expected: "JSON value" }),
1286
+ ),
1287
+ ],
1288
+ ).annotate({
1289
+ title: "PortalPaymentMethodUpdate",
1290
+ description: "",
1291
+ identifier: "Stripeportal_payment_method_update",
1292
+ });
1293
+ export const Stripeportal_subscription_pause_interval_option =
1294
+ Schema.StructWithRest(
1295
+ Schema.Struct({
1296
+ interval: Schema.Literals(["day", "month", "week", "year"]).annotate({
1297
+ description:
1298
+ "Specifies the pause duration unit. Either `day`, `week`, `month`, or `year`.",
1299
+ }),
1300
+ interval_count: Schema.Number.annotate({
1301
+ description:
1302
+ "The number of intervals in the pause duration. The maximum duration is three years.",
1303
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1304
+ }),
1305
+ [
1306
+ Schema.Record(
1307
+ Schema.String,
1308
+ Schema.Json.annotate({ expected: "JSON value" }),
1309
+ ),
1310
+ ],
1311
+ ).annotate({
1312
+ title: "PortalSubscriptionPauseIntervalOption",
1313
+ description: "",
1314
+ identifier: "Stripeportal_subscription_pause_interval_option",
1315
+ });
1316
+ export const Stripeportal_subscription_update_product_adjustable_quantity =
1317
+ Schema.StructWithRest(
1318
+ Schema.Struct({
1319
+ enabled: Schema.Boolean.annotate({
1320
+ description:
1321
+ "If true, the quantity can be adjusted to any non-negative integer.",
1322
+ }),
1323
+ maximum: Schema.optionalKey(
1324
+ Schema.Union([
1325
+ Schema.Number.annotate({
1326
+ description:
1327
+ "The maximum quantity that can be set for the product.",
1328
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1329
+ Schema.Null,
1330
+ ]),
1331
+ ),
1332
+ minimum: Schema.Number.annotate({
1333
+ description: "The minimum quantity that can be set for the product.",
1334
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1335
+ }),
1336
+ [
1337
+ Schema.Record(
1338
+ Schema.String,
1339
+ Schema.Json.annotate({ expected: "JSON value" }),
1340
+ ),
1341
+ ],
1342
+ ).annotate({
1343
+ title: "PortalSubscriptionUpdateProductAdjustableQuantity",
1344
+ description: "",
1345
+ identifier: "Stripeportal_subscription_update_product_adjustable_quantity",
1346
+ });
1347
+ export const Stripeportal_resource_schedule_update_at_period_end_condition =
1348
+ Schema.StructWithRest(
1349
+ Schema.Struct({
1350
+ type: Schema.Literals([
1351
+ "decreasing_item_amount",
1352
+ "shortening_interval",
1353
+ ]).annotate({ description: "The type of condition." }),
1354
+ }),
1355
+ [
1356
+ Schema.Record(
1357
+ Schema.String,
1358
+ Schema.Json.annotate({ expected: "JSON value" }),
1359
+ ),
1360
+ ],
1361
+ ).annotate({
1362
+ title: "PortalResourceScheduleUpdateAtPeriodEndCondition",
1363
+ description: "",
1364
+ identifier: "Stripeportal_resource_schedule_update_at_period_end_condition",
1365
+ });
1366
+ export const Stripeportal_login_page = Schema.StructWithRest(
1367
+ Schema.Struct({
1368
+ enabled: Schema.Boolean.annotate({
1369
+ description:
1370
+ "If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal.\n\nIf `false`, the previously generated `url`, if any, will be deactivated.",
1371
+ }),
1372
+ url: Schema.optionalKey(
1373
+ Schema.Union([
1374
+ Schema.String.annotate({
1375
+ description:
1376
+ "A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://docs.stripe.com/api/customers/object#customer_object-email) and receive a link to their customer portal.",
1377
+ }).check(
1378
+ Schema.isMaxCodePoints(5000).annotate({
1379
+ expected: "a string with at most 5000 code points",
1380
+ }),
1381
+ ),
1382
+ Schema.Null,
1383
+ ]),
1384
+ ),
1385
+ }),
1386
+ [
1387
+ Schema.Record(
1388
+ Schema.String,
1389
+ Schema.Json.annotate({ expected: "JSON value" }),
1390
+ ),
1391
+ ],
1392
+ ).annotate({
1393
+ title: "PortalLoginPage",
1394
+ description: "",
1395
+ identifier: "Stripeportal_login_page",
1396
+ });
1397
+ export const Stripebilling_bill_resource_invoice_item_parents_invoice_item_subscription_parent =
1398
+ Schema.StructWithRest(
1399
+ Schema.Struct({
1400
+ subscription: Schema.String.annotate({
1401
+ description: "The subscription that generated this invoice item",
1402
+ }).check(
1403
+ Schema.isMaxCodePoints(5000).annotate({
1404
+ expected: "a string with at most 5000 code points",
1405
+ }),
1406
+ ),
1407
+ subscription_item: Schema.optionalKey(
1408
+ Schema.String.annotate({
1409
+ description: "The subscription item that generated this invoice item",
1410
+ }).check(
1411
+ Schema.isMaxCodePoints(5000).annotate({
1412
+ expected: "a string with at most 5000 code points",
1413
+ }),
1414
+ ),
1415
+ ),
1416
+ }),
1417
+ [
1418
+ Schema.Record(
1419
+ Schema.String,
1420
+ Schema.Json.annotate({ expected: "JSON value" }),
1421
+ ),
1422
+ ],
1423
+ ).annotate({
1424
+ title: "BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent",
1425
+ description: "",
1426
+ identifier:
1427
+ "Stripebilling_bill_resource_invoice_item_parents_invoice_item_subscription_parent",
1428
+ });
1429
+ export const Stripebilling_details = Schema.suspend(
1430
+ (): Schema.Codec<Stripebilling_details> =>
1431
+ Schema.StructWithRest(
1432
+ Schema.Struct({
1433
+ address: Schema.optionalKey(
1434
+ Schema.Union([
1435
+ Schema.Union([Stripeaddress]).annotate({
1436
+ description: "Billing address.",
1437
+ }),
1438
+ Schema.Null,
1439
+ ]),
1440
+ ),
1441
+ email: Schema.optionalKey(
1442
+ Schema.Union([
1443
+ Schema.String.annotate({ description: "Email address." }).check(
1444
+ Schema.isMaxCodePoints(5000).annotate({
1445
+ expected: "a string with at most 5000 code points",
1446
+ }),
1447
+ ),
1448
+ Schema.Null,
1449
+ ]),
1450
+ ),
1451
+ name: Schema.optionalKey(
1452
+ Schema.Union([
1453
+ Schema.String.annotate({ description: "Full name." }).check(
1454
+ Schema.isMaxCodePoints(5000).annotate({
1455
+ expected: "a string with at most 5000 code points",
1456
+ }),
1457
+ ),
1458
+ Schema.Null,
1459
+ ]),
1460
+ ),
1461
+ phone: Schema.optionalKey(
1462
+ Schema.Union([
1463
+ Schema.String.annotate({
1464
+ description: "Billing phone number (including extension).",
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_id: Schema.optionalKey(
1474
+ Schema.Union([
1475
+ Schema.String.annotate({
1476
+ description:
1477
+ "Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.",
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: "billing_details",
1495
+ description: "",
1496
+ identifier: "Stripebilling_details",
1497
+ }),
1498
+ );
1499
+ export const Stripebilling_feedback_option = Schema.suspend(
1500
+ (): Schema.Codec<Stripebilling_feedback_option> =>
1501
+ Schema.StructWithRest(
1502
+ Schema.Struct({
1503
+ description: Schema.String.annotate({
1504
+ description:
1505
+ "An arbitrary string attached to the object. Often useful for displaying to users.",
1506
+ }).check(
1507
+ Schema.isMaxCodePoints(5000).annotate({
1508
+ expected: "a string with at most 5000 code points",
1509
+ }),
1510
+ ),
1511
+ id: Schema.String.annotate({
1512
+ description: "Unique identifier for the object.",
1513
+ }).check(
1514
+ Schema.isMaxCodePoints(5000).annotate({
1515
+ expected: "a string with at most 5000 code points",
1516
+ }),
1517
+ ),
1518
+ livemode: Schema.Boolean.annotate({
1519
+ description:
1520
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1521
+ }),
1522
+ object: Schema.Literal("billing.feedback_option").annotate({
1523
+ description:
1524
+ "String representing the object's type. Objects of the same type share the same value.",
1525
+ }),
1526
+ status: Schema.Literals(["active", "inactive"]).annotate({
1527
+ description: "The feedback option's status.",
1528
+ }),
1529
+ status_transitions: Stripefeedback_options_status_transitions,
1530
+ }),
1531
+ [
1532
+ Schema.Record(
1533
+ Schema.String,
1534
+ Schema.Json.annotate({ expected: "JSON value" }),
1535
+ ),
1536
+ ],
1537
+ ).annotate({
1538
+ title: "Feedback Option",
1539
+ description:
1540
+ "A feedback option is a reason you can present to customers when they cancel a\nsubscription through the customer portal. Configure the set of options a customer\ncan choose from on a [portal configuration](/api/customer_portal/configuration).\n\nRelated guide: [Customer management](/customer-management)",
1541
+ identifier: "Stripebilling.feedback_option",
1542
+ }),
1543
+ );
1544
+ export const Stripebilling_bill_resource_invoicing_lines_common_proration_details =
1545
+ Schema.suspend(
1546
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_lines_common_proration_details> =>
1547
+ Schema.StructWithRest(
1548
+ Schema.Struct({
1549
+ credited_items: Schema.optionalKey(
1550
+ Schema.Union([
1551
+ Schema.Union([
1552
+ Stripebilling_bill_resource_invoicing_lines_common_credited_items,
1553
+ ]).annotate({
1554
+ description:
1555
+ "For a credit proration `line_item`, the original debit line_items to which the credit proration applies.",
1556
+ }),
1557
+ Schema.Null,
1558
+ ]),
1559
+ ),
1560
+ }),
1561
+ [
1562
+ Schema.Record(
1563
+ Schema.String,
1564
+ Schema.Json.annotate({ expected: "JSON value" }),
1565
+ ),
1566
+ ],
1567
+ ).annotate({
1568
+ title: "BillingBillResourceInvoicingLinesCommonProrationDetails",
1569
+ description: "",
1570
+ identifier:
1571
+ "Stripebilling_bill_resource_invoicing_lines_common_proration_details",
1572
+ }),
1573
+ );
1574
+ export const Stripebilling_credit_grants_resource_amount = Schema.suspend(
1575
+ (): Schema.Codec<Stripebilling_credit_grants_resource_amount> =>
1576
+ Schema.StructWithRest(
1577
+ Schema.Struct({
1578
+ monetary: Schema.optionalKey(
1579
+ Schema.Union([
1580
+ Schema.Union([
1581
+ Stripebilling_credit_grants_resource_monetary_amount,
1582
+ ]).annotate({ description: "The monetary amount." }),
1583
+ Schema.Null,
1584
+ ]),
1585
+ ),
1586
+ type: Schema.Literal("monetary").annotate({
1587
+ description:
1588
+ "The type of this amount. We currently only support `monetary` billing credits.",
1589
+ }),
1590
+ }),
1591
+ [
1592
+ Schema.Record(
1593
+ Schema.String,
1594
+ Schema.Json.annotate({ expected: "JSON value" }),
1595
+ ),
1596
+ ],
1597
+ ).annotate({
1598
+ title: "BillingCreditGrantsResourceAmount",
1599
+ description: "",
1600
+ identifier: "Stripebilling_credit_grants_resource_amount",
1601
+ }),
1602
+ );
1603
+ export const Stripebilling_credit_grants_resource_scope = Schema.suspend(
1604
+ (): Schema.Codec<Stripebilling_credit_grants_resource_scope> =>
1605
+ Schema.StructWithRest(
1606
+ Schema.Struct({
1607
+ price_type: Schema.optionalKey(
1608
+ Schema.Literal("metered").annotate({
1609
+ description:
1610
+ "The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.",
1611
+ }),
1612
+ ),
1613
+ prices: Schema.optionalKey(
1614
+ Schema.Array(
1615
+ Stripebilling_credit_grants_resource_applicable_price,
1616
+ ).annotate({
1617
+ description:
1618
+ "The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.",
1619
+ }),
1620
+ ),
1621
+ }),
1622
+ [
1623
+ Schema.Record(
1624
+ Schema.String,
1625
+ Schema.Json.annotate({ expected: "JSON value" }),
1626
+ ),
1627
+ ],
1628
+ ).annotate({
1629
+ title: "BillingCreditGrantsResourceScope",
1630
+ description: "",
1631
+ identifier: "Stripebilling_credit_grants_resource_scope",
1632
+ }),
1633
+ );
1634
+ export const Stripebilling_clocks_resource_status_details_status_details =
1635
+ Schema.suspend(
1636
+ (): Schema.Codec<Stripebilling_clocks_resource_status_details_status_details> =>
1637
+ Schema.StructWithRest(
1638
+ Schema.Struct({
1639
+ advancing: Schema.optionalKey(
1640
+ Stripebilling_clocks_resource_status_details_advancing_status_details,
1641
+ ),
1642
+ }),
1643
+ [
1644
+ Schema.Record(
1645
+ Schema.String,
1646
+ Schema.Json.annotate({ expected: "JSON value" }),
1647
+ ),
1648
+ ],
1649
+ ).annotate({
1650
+ title: "BillingClocksResourceStatusDetailsStatusDetails",
1651
+ description: "",
1652
+ identifier:
1653
+ "Stripebilling_clocks_resource_status_details_status_details",
1654
+ }),
1655
+ );
1656
+ export const Stripebilling_bill_resource_invoicing_pricing_pricing =
1657
+ Schema.suspend(
1658
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_pricing_pricing> =>
1659
+ Schema.StructWithRest(
1660
+ Schema.Struct({
1661
+ price_details: Schema.optionalKey(
1662
+ Stripebilling_bill_resource_invoicing_pricing_pricing_price_details,
1663
+ ),
1664
+ type: Schema.Literal("price_details").annotate({
1665
+ description: "The type of the pricing details.",
1666
+ }),
1667
+ unit_amount_decimal: Schema.optionalKey(
1668
+ Schema.Union([
1669
+ Schema.String.annotate({
1670
+ description:
1671
+ "The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.",
1672
+ format: "decimal",
1673
+ }),
1674
+ Schema.Null,
1675
+ ]),
1676
+ ),
1677
+ }),
1678
+ [
1679
+ Schema.Record(
1680
+ Schema.String,
1681
+ Schema.Json.annotate({ expected: "JSON value" }),
1682
+ ),
1683
+ ],
1684
+ ).annotate({
1685
+ title: "BillingBillResourceInvoicingPricingPricing",
1686
+ description: "",
1687
+ identifier: "Stripebilling_bill_resource_invoicing_pricing_pricing",
1688
+ }),
1689
+ );
1690
+ export const Stripebilling_meter = Schema.suspend(
1691
+ (): Schema.Codec<Stripebilling_meter> =>
1692
+ Schema.StructWithRest(
1693
+ Schema.Struct({
1694
+ created: Schema.Number.annotate({
1695
+ description:
1696
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
1697
+ format: "unix-time",
1698
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1699
+ customer_mapping:
1700
+ Stripebilling_meter_resource_customer_mapping_settings,
1701
+ default_aggregation: Stripebilling_meter_resource_aggregation_settings,
1702
+ display_name: Schema.String.annotate({
1703
+ description: "The meter's name.",
1704
+ }).check(
1705
+ Schema.isMaxCodePoints(5000).annotate({
1706
+ expected: "a string with at most 5000 code points",
1707
+ }),
1708
+ ),
1709
+ event_name: Schema.String.annotate({
1710
+ description:
1711
+ "The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.",
1712
+ }).check(
1713
+ Schema.isMaxCodePoints(5000).annotate({
1714
+ expected: "a string with at most 5000 code points",
1715
+ }),
1716
+ ),
1717
+ event_time_window: Schema.optionalKey(
1718
+ Schema.Union([
1719
+ Schema.Literals(["day", "hour"]).annotate({
1720
+ description:
1721
+ "The time window which meter events have been pre-aggregated for, if any.",
1722
+ }),
1723
+ Schema.Null,
1724
+ ]),
1725
+ ),
1726
+ id: Schema.String.annotate({
1727
+ description: "Unique identifier for the object.",
1728
+ }).check(
1729
+ Schema.isMaxCodePoints(5000).annotate({
1730
+ expected: "a string with at most 5000 code points",
1731
+ }),
1732
+ ),
1733
+ livemode: Schema.Boolean.annotate({
1734
+ description:
1735
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
1736
+ }),
1737
+ object: Schema.Literal("billing.meter").annotate({
1738
+ description:
1739
+ "String representing the object's type. Objects of the same type share the same value.",
1740
+ }),
1741
+ status: Schema.Literals(["active", "inactive"]).annotate({
1742
+ description: "The meter's status.",
1743
+ }),
1744
+ status_transitions:
1745
+ Stripebilling_meter_resource_billing_meter_status_transitions,
1746
+ updated: Schema.Number.annotate({
1747
+ description:
1748
+ "Time at which the object was last updated. Measured in seconds since the Unix epoch.",
1749
+ format: "unix-time",
1750
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1751
+ value_settings: Stripebilling_meter_resource_billing_meter_value,
1752
+ }),
1753
+ [
1754
+ Schema.Record(
1755
+ Schema.String,
1756
+ Schema.Json.annotate({ expected: "JSON value" }),
1757
+ ),
1758
+ ],
1759
+ ).annotate({
1760
+ title: "Billing Meter",
1761
+ description:
1762
+ "Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.\n\nRelated guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)",
1763
+ identifier: "Stripebilling.meter",
1764
+ }),
1765
+ );
1766
+ export const Stripeportal_subscription_pause_duration = Schema.suspend(
1767
+ (): Schema.Codec<Stripeportal_subscription_pause_duration> =>
1768
+ Schema.StructWithRest(
1769
+ Schema.Struct({
1770
+ interval_options: Schema.Array(
1771
+ Stripeportal_subscription_pause_interval_option,
1772
+ ).annotate({
1773
+ description: "The preset pause durations customers can choose from.",
1774
+ }),
1775
+ type: Schema.Literals(["indefinite", "interval_options"]).annotate({
1776
+ description:
1777
+ "Whether subscriptions can be paused indefinitely or for a preset duration.",
1778
+ }),
1779
+ }),
1780
+ [
1781
+ Schema.Record(
1782
+ Schema.String,
1783
+ Schema.Json.annotate({ expected: "JSON value" }),
1784
+ ),
1785
+ ],
1786
+ ).annotate({
1787
+ title: "PortalSubscriptionPauseDuration",
1788
+ description: "",
1789
+ identifier: "Stripeportal_subscription_pause_duration",
1790
+ }),
1791
+ );
1792
+ export const Stripeportal_subscription_update_product = Schema.suspend(
1793
+ (): Schema.Codec<Stripeportal_subscription_update_product> =>
1794
+ Schema.StructWithRest(
1795
+ Schema.Struct({
1796
+ adjustable_quantity:
1797
+ Stripeportal_subscription_update_product_adjustable_quantity,
1798
+ prices: Schema.Array(
1799
+ Schema.String.check(
1800
+ Schema.isMaxCodePoints(5000).annotate({
1801
+ expected: "a string with at most 5000 code points",
1802
+ }),
1803
+ ),
1804
+ ).annotate({
1805
+ description:
1806
+ "The list of price IDs which, when subscribed to, a subscription can be updated.",
1807
+ }),
1808
+ product: Schema.String.annotate({
1809
+ description: "The product ID.",
1810
+ }).check(
1811
+ Schema.isMaxCodePoints(5000).annotate({
1812
+ expected: "a string with at most 5000 code points",
1813
+ }),
1814
+ ),
1815
+ }),
1816
+ [
1817
+ Schema.Record(
1818
+ Schema.String,
1819
+ Schema.Json.annotate({ expected: "JSON value" }),
1820
+ ),
1821
+ ],
1822
+ ).annotate({
1823
+ title: "PortalSubscriptionUpdateProduct",
1824
+ description: "",
1825
+ identifier: "Stripeportal_subscription_update_product",
1826
+ }),
1827
+ );
1828
+ export const Stripeportal_resource_schedule_update_at_period_end =
1829
+ Schema.suspend(
1830
+ (): Schema.Codec<Stripeportal_resource_schedule_update_at_period_end> =>
1831
+ Schema.StructWithRest(
1832
+ Schema.Struct({
1833
+ conditions: Schema.Array(
1834
+ Stripeportal_resource_schedule_update_at_period_end_condition,
1835
+ ).annotate({
1836
+ description:
1837
+ "List of conditions. When any condition is true, an update will be scheduled at the end of the current period.",
1838
+ }),
1839
+ }),
1840
+ [
1841
+ Schema.Record(
1842
+ Schema.String,
1843
+ Schema.Json.annotate({ expected: "JSON value" }),
1844
+ ),
1845
+ ],
1846
+ ).annotate({
1847
+ title: "PortalResourceScheduleUpdateAtPeriodEnd",
1848
+ description: "",
1849
+ identifier: "Stripeportal_resource_schedule_update_at_period_end",
1850
+ }),
1851
+ );
1852
+ export const Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent =
1853
+ Schema.suspend(
1854
+ (): Schema.Codec<Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent> =>
1855
+ Schema.StructWithRest(
1856
+ Schema.Struct({
1857
+ subscription_details: Schema.optionalKey(
1858
+ Schema.Union([
1859
+ Schema.Union([
1860
+ Stripebilling_bill_resource_invoice_item_parents_invoice_item_subscription_parent,
1861
+ ]).annotate({
1862
+ description:
1863
+ "Details about the subscription that generated this invoice item",
1864
+ }),
1865
+ Schema.Null,
1866
+ ]),
1867
+ ),
1868
+ type: Schema.Literal("subscription_details").annotate({
1869
+ description: "The type of parent that generated this invoice item",
1870
+ }),
1871
+ }),
1872
+ [
1873
+ Schema.Record(
1874
+ Schema.String,
1875
+ Schema.Json.annotate({ expected: "JSON value" }),
1876
+ ),
1877
+ ],
1878
+ ).annotate({
1879
+ title: "BillingBillResourceInvoiceItemParentsInvoiceItemParent",
1880
+ description: "",
1881
+ identifier:
1882
+ "Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent",
1883
+ }),
1884
+ );
1885
+ export const Stripeportal_subscription_cancellation_reason = Schema.suspend(
1886
+ (): Schema.Codec<Stripeportal_subscription_cancellation_reason> =>
1887
+ Schema.StructWithRest(
1888
+ Schema.Struct({
1889
+ enabled: Schema.Boolean.annotate({
1890
+ description: "Whether the feature is enabled.",
1891
+ }),
1892
+ feedback_options: Schema.optionalKey(
1893
+ Schema.Union([
1894
+ Schema.Array(
1895
+ Schema.Union([
1896
+ Schema.String.check(
1897
+ Schema.isMaxCodePoints(5000).annotate({
1898
+ expected: "a string with at most 5000 code points",
1899
+ }),
1900
+ ),
1901
+ Stripebilling_feedback_option,
1902
+ ]),
1903
+ ).annotate({
1904
+ description:
1905
+ "The IDs of custom feedback options configured for this cancellation reason.",
1906
+ }),
1907
+ Schema.Null,
1908
+ ]),
1909
+ ),
1910
+ options: Schema.Array(
1911
+ Schema.Literals([
1912
+ "customer_service",
1913
+ "low_quality",
1914
+ "missing_features",
1915
+ "other",
1916
+ "switched_service",
1917
+ "too_complex",
1918
+ "too_expensive",
1919
+ "unused",
1920
+ ]),
1921
+ ).annotate({
1922
+ description:
1923
+ "Which cancellation reasons will be given as options to the customer.",
1924
+ }),
1925
+ }),
1926
+ [
1927
+ Schema.Record(
1928
+ Schema.String,
1929
+ Schema.Json.annotate({ expected: "JSON value" }),
1930
+ ),
1931
+ ],
1932
+ ).annotate({
1933
+ title: "PortalSubscriptionCancellationReason",
1934
+ description: "",
1935
+ identifier: "Stripeportal_subscription_cancellation_reason",
1936
+ }),
1937
+ );
1938
+ export const Stripebilling_bill_resource_invoicing_taxes_tax_rate_details =
1939
+ Schema.suspend(
1940
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_taxes_tax_rate_details> =>
1941
+ Schema.StructWithRest(
1942
+ Schema.Struct({
1943
+ tax_rate: Schema.Union([
1944
+ Schema.String.check(
1945
+ Schema.isMaxCodePoints(5000).annotate({
1946
+ expected: "a string with at most 5000 code points",
1947
+ }),
1948
+ ),
1949
+ Stripetax_rate,
1950
+ ]).annotate({ description: "ID of the tax rate" }),
1951
+ }),
1952
+ [
1953
+ Schema.Record(
1954
+ Schema.String,
1955
+ Schema.Json.annotate({ expected: "JSON value" }),
1956
+ ),
1957
+ ],
1958
+ ).annotate({
1959
+ title: "BillingBillResourceInvoicingTaxesTaxRateDetails",
1960
+ description: "",
1961
+ identifier:
1962
+ "Stripebilling_bill_resource_invoicing_taxes_tax_rate_details",
1963
+ }),
1964
+ );
1965
+ export const Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent =
1966
+ Schema.suspend(
1967
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent> =>
1968
+ Schema.StructWithRest(
1969
+ Schema.Struct({
1970
+ invoice_item: Schema.String.annotate({
1971
+ description: "The invoice item that generated this line item",
1972
+ }).check(
1973
+ Schema.isMaxCodePoints(5000).annotate({
1974
+ expected: "a string with at most 5000 code points",
1975
+ }),
1976
+ ),
1977
+ proration: Schema.Boolean.annotate({
1978
+ description: "Whether this is a proration",
1979
+ }),
1980
+ proration_details: Schema.optionalKey(
1981
+ Schema.Union([
1982
+ Schema.Union([
1983
+ Stripebilling_bill_resource_invoicing_lines_common_proration_details,
1984
+ ]).annotate({
1985
+ description: "Additional details for proration line items",
1986
+ }),
1987
+ Schema.Null,
1988
+ ]),
1989
+ ),
1990
+ subscription: Schema.optionalKey(
1991
+ Schema.Union([
1992
+ Schema.String.annotate({
1993
+ description:
1994
+ "The subscription that the invoice item belongs to",
1995
+ }).check(
1996
+ Schema.isMaxCodePoints(5000).annotate({
1997
+ expected: "a string with at most 5000 code points",
1998
+ }),
1999
+ ),
2000
+ Schema.Null,
2001
+ ]),
2002
+ ),
2003
+ }),
2004
+ [
2005
+ Schema.Record(
2006
+ Schema.String,
2007
+ Schema.Json.annotate({ expected: "JSON value" }),
2008
+ ),
2009
+ ],
2010
+ ).annotate({
2011
+ title:
2012
+ "BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent",
2013
+ description: "",
2014
+ identifier:
2015
+ "Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent",
2016
+ }),
2017
+ );
2018
+ export const Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent =
2019
+ Schema.suspend(
2020
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent> =>
2021
+ Schema.StructWithRest(
2022
+ Schema.Struct({
2023
+ invoice_item: Schema.optionalKey(
2024
+ Schema.Union([
2025
+ Schema.String.annotate({
2026
+ description: "The invoice item that generated this line item",
2027
+ }).check(
2028
+ Schema.isMaxCodePoints(5000).annotate({
2029
+ expected: "a string with at most 5000 code points",
2030
+ }),
2031
+ ),
2032
+ Schema.Null,
2033
+ ]),
2034
+ ),
2035
+ proration: Schema.Boolean.annotate({
2036
+ description: "Whether this is a proration",
2037
+ }),
2038
+ proration_details: Schema.optionalKey(
2039
+ Schema.Union([
2040
+ Schema.Union([
2041
+ Stripebilling_bill_resource_invoicing_lines_common_proration_details,
2042
+ ]).annotate({
2043
+ description: "Additional details for proration line items",
2044
+ }),
2045
+ Schema.Null,
2046
+ ]),
2047
+ ),
2048
+ subscription: Schema.optionalKey(
2049
+ Schema.Union([
2050
+ Schema.String.annotate({
2051
+ description:
2052
+ "The subscription that the subscription item belongs to",
2053
+ }).check(
2054
+ Schema.isMaxCodePoints(5000).annotate({
2055
+ expected: "a string with at most 5000 code points",
2056
+ }),
2057
+ ),
2058
+ Schema.Null,
2059
+ ]),
2060
+ ),
2061
+ subscription_item: Schema.String.annotate({
2062
+ description: "The subscription item that generated this line item",
2063
+ }).check(
2064
+ Schema.isMaxCodePoints(5000).annotate({
2065
+ expected: "a string with at most 5000 code points",
2066
+ }),
2067
+ ),
2068
+ }),
2069
+ [
2070
+ Schema.Record(
2071
+ Schema.String,
2072
+ Schema.Json.annotate({ expected: "JSON value" }),
2073
+ ),
2074
+ ],
2075
+ ).annotate({
2076
+ title:
2077
+ "BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent",
2078
+ description: "",
2079
+ identifier:
2080
+ "Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent",
2081
+ }),
2082
+ );
2083
+ export const Stripebilling_credit_grants_resource_applicability_config =
2084
+ Schema.suspend(
2085
+ (): Schema.Codec<Stripebilling_credit_grants_resource_applicability_config> =>
2086
+ Schema.StructWithRest(
2087
+ Schema.Struct({ scope: Stripebilling_credit_grants_resource_scope }),
2088
+ [
2089
+ Schema.Record(
2090
+ Schema.String,
2091
+ Schema.Json.annotate({ expected: "JSON value" }),
2092
+ ),
2093
+ ],
2094
+ ).annotate({
2095
+ title: "BillingCreditGrantsResourceApplicabilityConfig",
2096
+ description: "",
2097
+ identifier: "Stripebilling_credit_grants_resource_applicability_config",
2098
+ }),
2099
+ );
2100
+ export const Stripeportal_subscription_pause = Schema.suspend(
2101
+ (): Schema.Codec<Stripeportal_subscription_pause> =>
2102
+ Schema.StructWithRest(
2103
+ Schema.Struct({
2104
+ duration: Stripeportal_subscription_pause_duration,
2105
+ enabled: Schema.Boolean.annotate({
2106
+ description:
2107
+ "Whether the feature is enabled. Customers can only pause subscriptions in the [redesigned customer portal](/customer-management).",
2108
+ }),
2109
+ }),
2110
+ [
2111
+ Schema.Record(
2112
+ Schema.String,
2113
+ Schema.Json.annotate({ expected: "JSON value" }),
2114
+ ),
2115
+ ],
2116
+ ).annotate({
2117
+ title: "PortalSubscriptionPause",
2118
+ description: "",
2119
+ identifier: "Stripeportal_subscription_pause",
2120
+ }),
2121
+ );
2122
+ export const Stripeportal_subscription_update = Schema.suspend(
2123
+ (): Schema.Codec<Stripeportal_subscription_update> =>
2124
+ Schema.StructWithRest(
2125
+ Schema.Struct({
2126
+ billing_cycle_anchor: Schema.optionalKey(
2127
+ Schema.Union([
2128
+ Schema.Literals(["now", "unchanged"]).annotate({
2129
+ description:
2130
+ "Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).",
2131
+ }),
2132
+ Schema.Null,
2133
+ ]),
2134
+ ),
2135
+ default_allowed_updates: Schema.Array(
2136
+ Schema.Literals(["price", "promotion_code", "quantity"]),
2137
+ ).annotate({
2138
+ description:
2139
+ "The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.",
2140
+ }),
2141
+ enabled: Schema.Boolean.annotate({
2142
+ description: "Whether the feature is enabled.",
2143
+ }),
2144
+ products: Schema.optionalKey(
2145
+ Schema.Union([
2146
+ Schema.Array(Stripeportal_subscription_update_product).annotate({
2147
+ description:
2148
+ "The list of up to 10 products that support subscription updates.",
2149
+ }),
2150
+ Schema.Null,
2151
+ ]),
2152
+ ),
2153
+ proration_behavior: Schema.Literals([
2154
+ "always_invoice",
2155
+ "create_prorations",
2156
+ "none",
2157
+ ]).annotate({
2158
+ description:
2159
+ "Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation.",
2160
+ }),
2161
+ schedule_at_period_end:
2162
+ Stripeportal_resource_schedule_update_at_period_end,
2163
+ trial_update_behavior: Schema.Literals([
2164
+ "continue_trial",
2165
+ "end_trial",
2166
+ ]).annotate({
2167
+ description:
2168
+ "Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation.",
2169
+ }),
2170
+ }),
2171
+ [
2172
+ Schema.Record(
2173
+ Schema.String,
2174
+ Schema.Json.annotate({ expected: "JSON value" }),
2175
+ ),
2176
+ ],
2177
+ ).annotate({
2178
+ title: "PortalSubscriptionUpdate",
2179
+ description: "",
2180
+ identifier: "Stripeportal_subscription_update",
2181
+ }),
2182
+ );
2183
+ export const Stripeportal_subscription_cancel = Schema.suspend(
2184
+ (): Schema.Codec<Stripeportal_subscription_cancel> =>
2185
+ Schema.StructWithRest(
2186
+ Schema.Struct({
2187
+ cancellation_reason: Stripeportal_subscription_cancellation_reason,
2188
+ enabled: Schema.Boolean.annotate({
2189
+ description: "Whether the feature is enabled.",
2190
+ }),
2191
+ mode: Schema.Literals(["at_period_end", "immediately"]).annotate({
2192
+ description:
2193
+ "Whether to cancel subscriptions immediately or at the end of the billing period.",
2194
+ }),
2195
+ proration_behavior: Schema.Literals([
2196
+ "always_invoice",
2197
+ "create_prorations",
2198
+ "none",
2199
+ ]).annotate({
2200
+ description:
2201
+ "Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.",
2202
+ }),
2203
+ }),
2204
+ [
2205
+ Schema.Record(
2206
+ Schema.String,
2207
+ Schema.Json.annotate({ expected: "JSON value" }),
2208
+ ),
2209
+ ],
2210
+ ).annotate({
2211
+ title: "PortalSubscriptionCancel",
2212
+ description: "",
2213
+ identifier: "Stripeportal_subscription_cancel",
2214
+ }),
2215
+ );
2216
+ export const Stripebilling_bill_resource_invoicing_taxes_tax = Schema.suspend(
2217
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_taxes_tax> =>
2218
+ Schema.StructWithRest(
2219
+ Schema.Struct({
2220
+ amount: Schema.Number.annotate({
2221
+ description: "The amount of the tax, in cents (or local equivalent).",
2222
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2223
+ tax_behavior: Schema.Literals(["exclusive", "inclusive"]).annotate({
2224
+ description: "Whether this tax is inclusive or exclusive.",
2225
+ }),
2226
+ tax_rate_details: Schema.optionalKey(
2227
+ Schema.Union([
2228
+ Schema.Union([
2229
+ Stripebilling_bill_resource_invoicing_taxes_tax_rate_details,
2230
+ ]).annotate({
2231
+ description:
2232
+ "Additional details about the tax rate. Only present when `type` is `tax_rate_details`.",
2233
+ }),
2234
+ Schema.Null,
2235
+ ]),
2236
+ ),
2237
+ taxability_reason: Schema.Literals([
2238
+ "customer_exempt",
2239
+ "not_available",
2240
+ "not_collecting",
2241
+ "not_subject_to_tax",
2242
+ "not_supported",
2243
+ "portion_product_exempt",
2244
+ "portion_reduced_rated",
2245
+ "portion_standard_rated",
2246
+ "product_exempt",
2247
+ "product_exempt_holiday",
2248
+ "proportionally_rated",
2249
+ "reduced_rated",
2250
+ "reverse_charge",
2251
+ "standard_rated",
2252
+ "taxable_basis_reduced",
2253
+ "zero_rated",
2254
+ ]).annotate({
2255
+ description:
2256
+ "The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.",
2257
+ }),
2258
+ taxable_amount: Schema.optionalKey(
2259
+ Schema.Union([
2260
+ Schema.Number.annotate({
2261
+ description:
2262
+ "The amount on which tax is calculated, in cents (or local equivalent).",
2263
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2264
+ Schema.Null,
2265
+ ]),
2266
+ ),
2267
+ type: Schema.Literal("tax_rate_details").annotate({
2268
+ description: "The type of tax information.",
2269
+ }),
2270
+ }),
2271
+ [
2272
+ Schema.Record(
2273
+ Schema.String,
2274
+ Schema.Json.annotate({ expected: "JSON value" }),
2275
+ ),
2276
+ ],
2277
+ ).annotate({
2278
+ title: "BillingBillResourceInvoicingTaxesTax",
2279
+ description: "",
2280
+ identifier: "Stripebilling_bill_resource_invoicing_taxes_tax",
2281
+ }),
2282
+ );
2283
+ export const Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_parent =
2284
+ Schema.suspend(
2285
+ (): Schema.Codec<Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_parent> =>
2286
+ Schema.StructWithRest(
2287
+ Schema.Struct({
2288
+ invoice_item_details: Schema.optionalKey(
2289
+ Schema.Union([
2290
+ Schema.Union([
2291
+ Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_invoice_item_parent,
2292
+ ]).annotate({
2293
+ description:
2294
+ "Details about the invoice item that generated this line item",
2295
+ }),
2296
+ Schema.Null,
2297
+ ]),
2298
+ ),
2299
+ subscription_item_details: Schema.optionalKey(
2300
+ Schema.Union([
2301
+ Schema.Union([
2302
+ Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_subscription_item_parent,
2303
+ ]).annotate({
2304
+ description:
2305
+ "Details about the subscription item that generated this line item",
2306
+ }),
2307
+ Schema.Null,
2308
+ ]),
2309
+ ),
2310
+ type: Schema.Literals([
2311
+ "invoice_item_details",
2312
+ "subscription_item_details",
2313
+ ]).annotate({
2314
+ description: "The type of parent that generated this line item",
2315
+ }),
2316
+ }),
2317
+ [
2318
+ Schema.Record(
2319
+ Schema.String,
2320
+ Schema.Json.annotate({ expected: "JSON value" }),
2321
+ ),
2322
+ ],
2323
+ ).annotate({
2324
+ title: "BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent",
2325
+ description: "",
2326
+ identifier:
2327
+ "Stripebilling_bill_resource_invoicing_lines_parents_invoice_line_item_parent",
2328
+ }),
2329
+ );
2330
+ export const Stripebilling_alert = Schema.suspend(
2331
+ (): Schema.Codec<Stripebilling_alert> =>
2332
+ Schema.StructWithRest(
2333
+ Schema.Struct({
2334
+ alert_type: Schema.Literal("usage_threshold").annotate({
2335
+ description: "Defines the type of the alert.",
2336
+ }),
2337
+ id: Schema.String.annotate({
2338
+ description: "Unique identifier for the object.",
2339
+ }).check(
2340
+ Schema.isMaxCodePoints(5000).annotate({
2341
+ expected: "a string with at most 5000 code points",
2342
+ }),
2343
+ ),
2344
+ livemode: Schema.Boolean.annotate({
2345
+ description:
2346
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2347
+ }),
2348
+ object: Schema.Literal("billing.alert").annotate({
2349
+ description:
2350
+ "String representing the object's type. Objects of the same type share the same value.",
2351
+ }),
2352
+ status: Schema.optionalKey(
2353
+ Schema.Union([
2354
+ Schema.Literals(["active", "archived", "inactive"]).annotate({
2355
+ description:
2356
+ "Status of the alert. This can be active, inactive or archived.",
2357
+ }),
2358
+ Schema.Null,
2359
+ ]),
2360
+ ),
2361
+ title: Schema.String.annotate({
2362
+ description: "Title of the alert.",
2363
+ }).check(
2364
+ Schema.isMaxCodePoints(5000).annotate({
2365
+ expected: "a string with at most 5000 code points",
2366
+ }),
2367
+ ),
2368
+ usage_threshold: Schema.optionalKey(
2369
+ Schema.Union([
2370
+ Schema.Union([
2371
+ Stripethresholds_resource_usage_threshold_config,
2372
+ ]).annotate({
2373
+ description:
2374
+ "Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://docs.stripe.com/api/billing/meter).",
2375
+ }),
2376
+ Schema.Null,
2377
+ ]),
2378
+ ),
2379
+ }),
2380
+ [
2381
+ Schema.Record(
2382
+ Schema.String,
2383
+ Schema.Json.annotate({ expected: "JSON value" }),
2384
+ ),
2385
+ ],
2386
+ ).annotate({
2387
+ title: "Alert",
2388
+ description:
2389
+ "A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.",
2390
+ identifier: "Stripebilling.alert",
2391
+ }),
2392
+ );
2393
+ export const Stripeportal_features = Schema.suspend(
2394
+ (): Schema.Codec<Stripeportal_features> =>
2395
+ Schema.StructWithRest(
2396
+ Schema.Struct({
2397
+ customer_update: Stripeportal_customer_update,
2398
+ invoice_history: Stripeportal_invoice_list,
2399
+ payment_method_update: Stripeportal_payment_method_update,
2400
+ subscription_cancel: Stripeportal_subscription_cancel,
2401
+ subscription_pause: Stripeportal_subscription_pause,
2402
+ subscription_update: Stripeportal_subscription_update,
2403
+ }),
2404
+ [
2405
+ Schema.Record(
2406
+ Schema.String,
2407
+ Schema.Json.annotate({ expected: "JSON value" }),
2408
+ ),
2409
+ ],
2410
+ ).annotate({
2411
+ title: "PortalFeatures",
2412
+ description: "",
2413
+ identifier: "Stripeportal_features",
2414
+ }),
2415
+ );
2416
+ export const Stripebilling_portal_configuration = Schema.suspend(
2417
+ (): Schema.Codec<Stripebilling_portal_configuration> =>
2418
+ Schema.StructWithRest(
2419
+ Schema.Struct({
2420
+ active: Schema.Boolean.annotate({
2421
+ description:
2422
+ "Whether the configuration is active and can be used to create portal sessions.",
2423
+ }),
2424
+ application: Schema.optionalKey(
2425
+ Schema.Union([
2426
+ Schema.Union([
2427
+ Schema.String.check(
2428
+ Schema.isMaxCodePoints(5000).annotate({
2429
+ expected: "a string with at most 5000 code points",
2430
+ }),
2431
+ ),
2432
+ Stripeapplication,
2433
+ Stripedeleted_application,
2434
+ ]).annotate({
2435
+ description:
2436
+ "ID of the Connect Application that created the configuration.",
2437
+ }),
2438
+ Schema.Null,
2439
+ ]),
2440
+ ),
2441
+ business_profile: Stripeportal_business_profile,
2442
+ created: Schema.Number.annotate({
2443
+ description:
2444
+ "Time at which the object was created. Measured in seconds since the Unix epoch.",
2445
+ format: "unix-time",
2446
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2447
+ default_return_url: Schema.optionalKey(
2448
+ Schema.Union([
2449
+ Schema.String.annotate({
2450
+ description:
2451
+ "The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overridden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.",
2452
+ }).check(
2453
+ Schema.isMaxCodePoints(5000).annotate({
2454
+ expected: "a string with at most 5000 code points",
2455
+ }),
2456
+ ),
2457
+ Schema.Null,
2458
+ ]),
2459
+ ),
2460
+ features: Stripeportal_features,
2461
+ id: Schema.String.annotate({
2462
+ description: "Unique identifier for the object.",
2463
+ }).check(
2464
+ Schema.isMaxCodePoints(5000).annotate({
2465
+ expected: "a string with at most 5000 code points",
2466
+ }),
2467
+ ),
2468
+ is_default: Schema.Boolean.annotate({
2469
+ description:
2470
+ "Whether the configuration is the default. If `true`, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.",
2471
+ }),
2472
+ livemode: Schema.Boolean.annotate({
2473
+ description:
2474
+ "If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
2475
+ }),
2476
+ login_page: Stripeportal_login_page,
2477
+ metadata: Schema.optionalKey(
2478
+ Schema.Union([
2479
+ Schema.Record(
2480
+ Schema.String,
2481
+ Schema.String.check(
2482
+ Schema.isMaxCodePoints(500).annotate({
2483
+ expected: "a string with at most 500 code points",
2484
+ }),
2485
+ ),
2486
+ ).annotate({
2487
+ description:
2488
+ "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.",
2489
+ }),
2490
+ Schema.Null,
2491
+ ]),
2492
+ ),
2493
+ name: Schema.optionalKey(
2494
+ Schema.Union([
2495
+ Schema.String.annotate({
2496
+ description: "The name of the configuration.",
2497
+ }).check(
2498
+ Schema.isMaxCodePoints(5000).annotate({
2499
+ expected: "a string with at most 5000 code points",
2500
+ }),
2501
+ ),
2502
+ Schema.Null,
2503
+ ]),
2504
+ ),
2505
+ object: Schema.Literal("billing_portal.configuration").annotate({
2506
+ description:
2507
+ "String representing the object's type. Objects of the same type share the same value.",
2508
+ }),
2509
+ updated: Schema.Number.annotate({
2510
+ description:
2511
+ "Time at which the object was last updated. Measured in seconds since the Unix epoch.",
2512
+ format: "unix-time",
2513
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2514
+ }),
2515
+ [
2516
+ Schema.Record(
2517
+ Schema.String,
2518
+ Schema.Json.annotate({ expected: "JSON value" }),
2519
+ ),
2520
+ ],
2521
+ ).annotate({
2522
+ title: "Customer portal configuration",
2523
+ description:
2524
+ "A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](/customer-management/configure-portal).",
2525
+ identifier: "Stripebilling_portal.configuration",
2526
+ }),
2527
+ );