nomoss 0.0.1 → 0.0.3
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.
- package/LICENSE +1 -1
- package/README.md +62 -26
- package/ROADMAP.md +17 -0
- package/docs/README.md +19 -0
- package/docs/application/aws-resource-lifecycle-management.md +57 -0
- package/docs/application/cli-workflow.md +111 -0
- package/docs/application/engine-design.md +43 -0
- package/docs/application/generation-architecture.md +320 -0
- package/docs/application/resource-command-policy-stage.md +37 -0
- package/docs/application/resource-graph.md +45 -0
- package/docs/application/resource-lifecycle-tracker.md +51 -0
- package/docs/application/resource-mapping.md +117 -0
- package/docs/application/resource-operations.md +39 -0
- package/docs/application/resource-outputs.md +66 -0
- package/docs/application/tracing.md +31 -0
- package/docs/development/code-documentation.md +52 -0
- package/docs/development/commit-message-spec.md +9 -0
- package/docs/development/effect-native-development.md +45 -0
- package/docs/development/linting.md +39 -0
- package/docs/development/resource-graph-testing-approach.md +9 -0
- package/docs/development/review-code.md +57 -0
- package/docs/development/review-docs.md +27 -0
- package/docs/development/review-remediation-spec.md +49 -0
- package/docs/development/spec-writing.md +35 -0
- package/docs/development/testing.md +111 -0
- package/docs/development/unslop.md +55 -0
- package/docs/operations/observability-sop.md +38 -0
- package/docs/operations/releasing.md +5 -0
- package/examples/README.md +34 -0
- package/examples/cli.ts +15 -0
- package/examples/commands.ts +66 -0
- package/examples/http-echo/application.ts +87 -0
- package/examples/http-echo/index.ts +54 -0
- package/examples/queue/application.ts +31 -0
- package/examples/state-machine/application.ts +55 -0
- package/examples/stripe-billing/application.ts +56 -0
- package/media/nomoss-http-demo.gif +0 -0
- package/package.json +63 -18
- package/src/cli.ts +31 -13
- package/src/cliCommand.ts +207 -170
- package/src/cliDiagnostics.ts +104 -0
- package/src/core/asset.ts +350 -0
- package/src/core/index.ts +61 -17
- package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
- package/src/core/resource/model.ts +1168 -0
- package/src/core/resource/resourceCommandPolicy.ts +68 -0
- package/src/core/resource/resourceGraphBuilder.ts +319 -0
- package/src/core/resource/resourceGraphStore.ts +373 -0
- package/src/core/resource/resourceOutputBinding.ts +113 -0
- package/src/core/resource/resourceOutputResolver.ts +365 -0
- package/src/core/resource/resourceRequest.ts +186 -0
- package/src/core/runtime/stackRuntimeLayer.ts +16 -0
- package/src/core/runtime/tracing.ts +43 -0
- package/src/core/stack/planner.ts +654 -0
- package/src/core/stack/resourceDisplay.ts +213 -0
- package/src/core/stack/resourceStackDefinition.ts +32 -0
- package/src/core/stack/resourceStackLifecycle.ts +1196 -0
- package/src/core/stack/resourceStackOperations.ts +642 -0
- package/src/core/stack/resourceStackProgress.ts +169 -0
- package/src/core/stack/stackWorkflowRenderer.ts +756 -0
- package/src/core/state/localState.ts +18 -0
- package/src/core/state/resourceState.ts +75 -0
- package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
- package/src/core/state/stateStore.ts +553 -0
- package/src/providers/aws/client/awsClient.ts +418 -0
- package/src/providers/aws/client/awsClientConfig.ts +133 -0
- package/src/providers/aws/client/awsClientModel.ts +119 -0
- package/src/providers/aws/client/awsHttpOperation.ts +153 -0
- package/src/providers/aws/client/awsQueryOperation.ts +149 -0
- package/src/providers/aws/client/awsRequestSigner.ts +115 -0
- package/src/providers/aws/client/awsResponseDecoder.ts +135 -0
- package/src/providers/aws/client/awsRetryPolicy.ts +62 -0
- package/src/providers/aws/client/generated/apiGatewayV2.ts +3025 -0
- package/src/providers/aws/client/generated/cloudControl.ts +5746 -0
- package/src/providers/aws/client/generated/iam.ts +10892 -0
- package/src/providers/aws/client/generated/lambda.ts +5403 -0
- package/src/providers/aws/client/generated/sqs.ts +3769 -0
- package/src/providers/aws/client/generated/stepFunctions.ts +1726 -0
- package/src/providers/aws/client/openapi/cloudControl/CancelResourceRequest.json +579 -0
- package/src/providers/aws/client/openapi/cloudControl/CreateResource.json +1019 -0
- package/src/providers/aws/client/openapi/cloudControl/DeleteResource.json +1018 -0
- package/src/providers/aws/client/openapi/cloudControl/GetResource.json +883 -0
- package/src/providers/aws/client/openapi/cloudControl/GetResourceRequestStatus.json +655 -0
- package/src/providers/aws/client/openapi/cloudControl/ListResourceRequests.json +566 -0
- package/src/providers/aws/client/openapi/cloudControl/ListResources.json +913 -0
- package/src/providers/aws/client/openapi/cloudControl/UpdateResource.json +1027 -0
- package/src/providers/aws/cloudControl/client.ts +69 -0
- package/src/providers/aws/cloudControl/requestTracker.ts +138 -0
- package/src/providers/aws/cloudControl/resourceCommandPolicyLayer.ts +63 -0
- package/src/providers/aws/cloudControl/resourceLifecycle.ts +479 -0
- package/src/providers/aws/cloudControl/resources/generated/certificatemanager/certificate/index.ts +179 -0
- package/src/providers/aws/cloudControl/resources/generated/kms/key/index.ts +362 -0
- package/src/providers/aws/cloudControl/resources/generated/s3/bucket/index.ts +2364 -0
- package/src/providers/aws/cloudControl/resources/generated/sns/topic/index.ts +326 -0
- package/src/providers/aws/cloudControl/resources/generated/sqs/queue/index.ts +307 -0
- package/src/providers/aws/cloudControl/resources/generated/sqs/queueinlinepolicy/index.ts +108 -0
- package/src/providers/aws/cloudControl/runtime.ts +127 -0
- package/src/providers/aws/management/resourceConfiguration.ts +121 -0
- package/src/providers/aws/management/resourceMapping.ts +343 -0
- package/src/providers/aws/management/resourceOperation.ts +57 -0
- package/src/providers/aws/management/resourcePolicy.ts +549 -0
- package/src/providers/aws/management/resourceRegistration.ts +294 -0
- package/src/providers/aws/resources/apiGatewayV2/httpApi.ts +327 -0
- package/src/providers/aws/resources/generated/native/apigatewayv2/api/index.ts +565 -0
- package/src/providers/aws/resources/generated/native/apigatewayv2/integration/index.ts +583 -0
- package/src/providers/aws/resources/generated/native/apigatewayv2/route/index.ts +438 -0
- package/src/providers/aws/resources/generated/native/apigatewayv2/stage/index.ts +391 -0
- package/src/providers/aws/resources/generated/native/iam/group/index.ts +319 -0
- package/src/providers/aws/resources/generated/native/iam/grouppolicy/index.ts +274 -0
- package/src/providers/aws/resources/generated/native/iam/instanceprofile/index.ts +277 -0
- package/src/providers/aws/resources/generated/native/iam/managedpolicy/index.ts +600 -0
- package/src/providers/aws/resources/generated/native/iam/policy/index.ts +279 -0
- package/src/providers/aws/resources/generated/native/iam/role/index.ts +478 -0
- package/src/providers/aws/resources/generated/native/iam/rolepolicy/index.ts +272 -0
- package/src/providers/aws/resources/generated/native/iam/user/index.ts +460 -0
- package/src/providers/aws/resources/generated/native/iam/userpolicy/index.ts +272 -0
- package/src/providers/aws/resources/generated/native/iam/usertogroupaddition/index.ts +226 -0
- package/src/providers/aws/resources/generated/native/kms/key/index.ts +580 -0
- package/src/providers/aws/resources/generated/native/lambda/function/index.ts +1974 -0
- package/src/providers/aws/resources/generated/native/lambda/permission/index.ts +955 -0
- package/src/providers/aws/resources/generated/native/resourceCommands.ts +152 -0
- package/src/providers/aws/resources/generated/native/s3/bucket/index.ts +3415 -0
- package/src/providers/aws/resources/generated/native/sns/topic/index.ts +551 -0
- package/src/providers/aws/resources/generated/native/sqs/queue/index.ts +500 -0
- package/src/providers/aws/resources/generated/native/stepfunctions/statemachine/index.ts +763 -0
- package/src/providers/aws/resources/iam/grant.ts +150 -0
- package/src/providers/aws/resources/iam/grantCommands.ts +283 -0
- package/src/providers/aws/resources/iam/policyDocument.ts +30 -0
- package/src/providers/aws/resources/iam/policyStatement.ts +59 -0
- package/src/providers/aws/resources/iam/role.ts +426 -0
- package/src/providers/aws/resources/iam/roleDeclaration.ts +105 -0
- package/src/providers/aws/resources/lambda/function.ts +403 -0
- package/src/providers/aws/resources/lambda/functionDeclaration.ts +234 -0
- package/src/providers/aws/resources/lambda/permission.ts +363 -0
- package/src/providers/aws/resources/stepFunctions/stateMachine.ts +95 -0
- package/src/providers/aws/runtime.ts +70 -0
- package/src/providers/file/jsonFile.ts +94 -0
- package/src/providers/file/model.ts +29 -0
- package/src/providers/file/resourcePolicy.ts +270 -0
- package/src/providers/index.ts +0 -2
- package/src/providers/providerRuntimeLayer.ts +24 -113
- package/src/providers/resourceCommandPolicyLayer.ts +77 -206
- package/src/providers/stripe/client/generated/LICENSE +21 -0
- package/src/providers/stripe/client/generated/accounts.ts +14360 -0
- package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
- package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
- package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
- package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
- package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
- package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
- package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
- package/src/providers/stripe/client/generated/catalog.ts +18881 -0
- package/src/providers/stripe/client/generated/charges.ts +2637 -0
- package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
- package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
- package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
- package/src/providers/stripe/client/generated/configuration.ts +3 -0
- package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
- package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
- package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
- package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
- package/src/providers/stripe/client/generated/coupons.ts +562 -0
- package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
- package/src/providers/stripe/client/generated/customers.ts +10712 -0
- package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
- package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
- package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
- package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
- package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
- package/src/providers/stripe/client/generated/index.ts +330 -0
- package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
- package/src/providers/stripe/client/generated/invoices.ts +8412 -0
- package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
- package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
- package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
- package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
- package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
- package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
- package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
- package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
- package/src/providers/stripe/client/generated/models/common.ts +25024 -0
- package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
- package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
- package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
- package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
- package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
- package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
- package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
- package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
- package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
- package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
- package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
- package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
- package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
- package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
- package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
- package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
- package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
- package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
- package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
- package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
- package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
- package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
- package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
- package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
- package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
- package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
- package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
- package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
- package/src/providers/stripe/client/generated/payouts.ts +589 -0
- package/src/providers/stripe/client/generated/plans.ts +712 -0
- package/src/providers/stripe/client/generated/prices.ts +1045 -0
- package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
- package/src/providers/stripe/client/generated/products.ts +1370 -0
- package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
- package/src/providers/stripe/client/generated/quotes.ts +1874 -0
- package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
- package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
- package/src/providers/stripe/client/generated/refunds.ts +493 -0
- package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
- package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
- package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
- package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
- package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
- package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
- package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
- package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
- package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
- package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
- package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
- package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
- package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
- package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
- package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
- package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
- package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
- package/src/providers/stripe/client/generated/sources.ts +1482 -0
- package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
- package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
- package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
- package/src/providers/stripe/client/generated/taxIds.ts +644 -0
- package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
- package/src/providers/stripe/client/generated/taxRates.ts +620 -0
- package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
- package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
- package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
- package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
- package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
- package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
- package/src/providers/stripe/client/generated/tokens.ts +2498 -0
- package/src/providers/stripe/client/generated/topups.ts +556 -0
- package/src/providers/stripe/client/generated/transfers.ts +786 -0
- package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
- package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
- package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
- package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
- package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
- package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
- package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
- package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
- package/src/providers/stripe/client/stripeClient.ts +212 -0
- package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
- package/src/providers/stripe/client/stripeClientModel.ts +40 -0
- package/src/providers/stripe/index.ts +8 -15
- package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
- package/src/providers/stripe/management/resourcePolicy.ts +489 -0
- package/src/providers/stripe/management/resources.ts +36 -0
- package/src/providers/stripe/runtime.ts +74 -0
- package/bin/nomoss +0 -13
- package/docs/code-documentation.md +0 -36
- package/docs/effect-native-development.md +0 -55
- package/docs/engine-design.md +0 -93
- package/docs/linting.md +0 -88
- package/docs/releasing.md +0 -13
- package/docs/resource-command-policy-stage.md +0 -71
- package/docs/resource-graph-mvp.md +0 -31
- package/docs/resource-graph-testing-approach.md +0 -11
- package/docs/resource-lifecycle-tracker.md +0 -93
- package/docs/testing.md +0 -86
- package/examples/upload-events/README.md +0 -41
- package/src/cliRuntimeLayer.ts +0 -49
- package/src/core/model.ts +0 -229
- package/src/core/physicalNameStore.ts +0 -226
- package/src/core/planner.ts +0 -645
- package/src/core/resourceCommandPolicy.ts +0 -79
- package/src/core/resourceGraphBuilder.ts +0 -167
- package/src/core/resourceGraphStore.ts +0 -288
- package/src/core/resourceOutputResolver.ts +0 -185
- package/src/core/resourcePolicy.ts +0 -77
- package/src/core/resourceStackDefinition.ts +0 -17
- package/src/core/resourceStackLifecycle.ts +0 -456
- package/src/core/resourceStackOperations.ts +0 -129
- package/src/core/runtimeLayer.ts +0 -73
- package/src/core/stackWorkflowRenderer.ts +0 -239
- package/src/core/stateStore.ts +0 -652
- package/src/core/tracing.ts +0 -26
- package/src/providers/aws/awsApply.ts +0 -132
- package/src/providers/aws/awsBucket.ts +0 -329
- package/src/providers/aws/awsBucketNotification.ts +0 -351
- package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
- package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
- package/src/providers/aws/awsProviderLayer.ts +0 -274
- package/src/providers/aws/awsQueue.ts +0 -346
- package/src/providers/aws/awsQueuePolicy.ts +0 -419
- package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
- package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
- package/src/providers/aws/awsReconciliation.ts +0 -92
- package/src/providers/aws/awsRefresh.ts +0 -50
- package/src/providers/aws/awsResourceLifecycle.ts +0 -118
- package/src/providers/aws/awsResourcePolicy.ts +0 -83
- package/src/providers/aws/awsResources.ts +0 -274
- package/src/providers/aws/awsRuntimeLayer.ts +0 -21
- package/src/providers/aws/awsSqsTransport.ts +0 -33
- package/src/providers/aws/awsStackLifecycle.ts +0 -272
- package/src/providers/aws/awsTagging.ts +0 -186
- package/src/providers/aws/constants.ts +0 -3
- package/src/providers/aws/index.ts +0 -22
- package/src/providers/aws/sampleStack.ts +0 -65
- package/src/providers/aws/stackWorkflow.ts +0 -443
- package/src/providers/stripe/stripeAccount.ts +0 -139
- package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
- package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
- package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
- package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
- package/src/providers/stripe/stripeCustomer.ts +0 -148
- package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
- package/src/providers/stripe/stripePrice.ts +0 -218
- package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
- package/src/providers/stripe/stripeProduct.ts +0 -171
- package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
- package/src/providers/stripe/stripeResources.ts +0 -454
- package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
- package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
- package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
|
@@ -0,0 +1,3145 @@
|
|
|
1
|
+
// This schema module comes from the selected resource contracts. Do not edit.
|
|
2
|
+
|
|
3
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
|
|
4
|
+
import { Effect, Schema } from "effect";
|
|
5
|
+
import { StripeClient } from "../stripeClient.js";
|
|
6
|
+
import type { StripeOperation } from "../stripeClientModel.js";
|
|
7
|
+
import { stripeApiBaseUrl, stripeApiVersion } from "./configuration.js";
|
|
8
|
+
import { Stripeerror } from "./models/common.js";
|
|
9
|
+
import { Stripesubscription_schedule } from "./models/subscriptions.js";
|
|
10
|
+
|
|
11
|
+
export type GetSubscriptionSchedulesInput = {
|
|
12
|
+
readonly canceled_at?:
|
|
13
|
+
| ({
|
|
14
|
+
readonly gt?: number;
|
|
15
|
+
readonly gte?: number;
|
|
16
|
+
readonly lt?: number;
|
|
17
|
+
readonly lte?: number;
|
|
18
|
+
} & { readonly [x: string]: Schema.Json })
|
|
19
|
+
| number;
|
|
20
|
+
readonly completed_at?:
|
|
21
|
+
| ({
|
|
22
|
+
readonly gt?: number;
|
|
23
|
+
readonly gte?: number;
|
|
24
|
+
readonly lt?: number;
|
|
25
|
+
readonly lte?: number;
|
|
26
|
+
} & { readonly [x: string]: Schema.Json })
|
|
27
|
+
| number;
|
|
28
|
+
readonly created?:
|
|
29
|
+
| ({
|
|
30
|
+
readonly gt?: number;
|
|
31
|
+
readonly gte?: number;
|
|
32
|
+
readonly lt?: number;
|
|
33
|
+
readonly lte?: number;
|
|
34
|
+
} & { readonly [x: string]: Schema.Json })
|
|
35
|
+
| number;
|
|
36
|
+
readonly customer?: string;
|
|
37
|
+
readonly customer_account?: string;
|
|
38
|
+
readonly ending_before?: string;
|
|
39
|
+
readonly expand?: ReadonlyArray<string>;
|
|
40
|
+
readonly limit?: number;
|
|
41
|
+
readonly released_at?:
|
|
42
|
+
| ({
|
|
43
|
+
readonly gt?: number;
|
|
44
|
+
readonly gte?: number;
|
|
45
|
+
readonly lt?: number;
|
|
46
|
+
readonly lte?: number;
|
|
47
|
+
} & { readonly [x: string]: Schema.Json })
|
|
48
|
+
| number;
|
|
49
|
+
readonly scheduled?: boolean;
|
|
50
|
+
readonly starting_after?: string;
|
|
51
|
+
};
|
|
52
|
+
export type GetSubscriptionSchedulesOutput = {
|
|
53
|
+
readonly data: ReadonlyArray<Stripesubscription_schedule>;
|
|
54
|
+
readonly has_more: boolean;
|
|
55
|
+
readonly object: "list";
|
|
56
|
+
readonly url: string;
|
|
57
|
+
} & { readonly [x: string]: Schema.Json };
|
|
58
|
+
export type GetSubscriptionSchedulesError = Stripeerror;
|
|
59
|
+
export type PostSubscriptionSchedulesInput = {
|
|
60
|
+
readonly billing_mode?: {
|
|
61
|
+
readonly flexible?: {
|
|
62
|
+
readonly proration_discounts?: "included" | "itemized";
|
|
63
|
+
} & { readonly [x: string]: Schema.Json };
|
|
64
|
+
readonly type: "classic" | "flexible";
|
|
65
|
+
} & { readonly [x: string]: Schema.Json };
|
|
66
|
+
readonly customer?: string;
|
|
67
|
+
readonly customer_account?: string;
|
|
68
|
+
readonly default_settings?: {
|
|
69
|
+
readonly application_fee_percent?: number;
|
|
70
|
+
readonly automatic_tax?: {
|
|
71
|
+
readonly enabled: boolean;
|
|
72
|
+
readonly liability?: {
|
|
73
|
+
readonly account?: string;
|
|
74
|
+
readonly type: "account" | "self";
|
|
75
|
+
} & { readonly [x: string]: Schema.Json };
|
|
76
|
+
} & { readonly [x: string]: Schema.Json };
|
|
77
|
+
readonly billing_cycle_anchor?: "automatic" | "phase_start";
|
|
78
|
+
readonly billing_thresholds?:
|
|
79
|
+
| ({
|
|
80
|
+
readonly amount_gte?: number;
|
|
81
|
+
readonly reset_billing_cycle_anchor?: boolean;
|
|
82
|
+
} & { readonly [x: string]: Schema.Json })
|
|
83
|
+
| "";
|
|
84
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
85
|
+
readonly default_payment_method?: string;
|
|
86
|
+
readonly description?: string | "";
|
|
87
|
+
readonly invoice_settings?: {
|
|
88
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
89
|
+
readonly custom_fields?:
|
|
90
|
+
| ReadonlyArray<
|
|
91
|
+
{ readonly name: string; readonly value: string } & {
|
|
92
|
+
readonly [x: string]: Schema.Json;
|
|
93
|
+
}
|
|
94
|
+
>
|
|
95
|
+
| "";
|
|
96
|
+
readonly days_until_due?: number;
|
|
97
|
+
readonly description?: string | "";
|
|
98
|
+
readonly footer?: string | "";
|
|
99
|
+
readonly issuer?: {
|
|
100
|
+
readonly account?: string;
|
|
101
|
+
readonly type: "account" | "self";
|
|
102
|
+
} & { readonly [x: string]: Schema.Json };
|
|
103
|
+
} & { readonly [x: string]: Schema.Json };
|
|
104
|
+
readonly on_behalf_of?: string | "";
|
|
105
|
+
readonly transfer_data?:
|
|
106
|
+
| ({ readonly amount_percent?: number; readonly destination: string } & {
|
|
107
|
+
readonly [x: string]: Schema.Json;
|
|
108
|
+
})
|
|
109
|
+
| "";
|
|
110
|
+
} & { readonly [x: string]: Schema.Json };
|
|
111
|
+
readonly end_behavior?: "cancel" | "none" | "release" | "renew";
|
|
112
|
+
readonly expand?: ReadonlyArray<string>;
|
|
113
|
+
readonly from_subscription?: string;
|
|
114
|
+
readonly metadata?: { readonly [x: string]: string } | "";
|
|
115
|
+
readonly pause_schedules?: ReadonlyArray<
|
|
116
|
+
{
|
|
117
|
+
readonly key?: string;
|
|
118
|
+
readonly pause?: {
|
|
119
|
+
readonly pause_at: {
|
|
120
|
+
readonly timestamp?: number;
|
|
121
|
+
readonly type: "now" | "timestamp";
|
|
122
|
+
} & { readonly [x: string]: Schema.Json };
|
|
123
|
+
readonly settings?: {
|
|
124
|
+
readonly bill_for?: {
|
|
125
|
+
readonly outstanding_usage_through?: {
|
|
126
|
+
readonly type?: "none" | "pause_at";
|
|
127
|
+
} & { readonly [x: string]: Schema.Json };
|
|
128
|
+
readonly unused_time_from?: {
|
|
129
|
+
readonly type?: "item_current_period_start" | "none" | "pause_at";
|
|
130
|
+
} & { readonly [x: string]: Schema.Json };
|
|
131
|
+
} & { readonly [x: string]: Schema.Json };
|
|
132
|
+
readonly invoicing_behavior?: "invoice" | "pending_invoice_item";
|
|
133
|
+
readonly type?: "subscription";
|
|
134
|
+
} & { readonly [x: string]: Schema.Json };
|
|
135
|
+
} & { readonly [x: string]: Schema.Json };
|
|
136
|
+
readonly resume?: {
|
|
137
|
+
readonly resume_at: {
|
|
138
|
+
readonly duration?: {
|
|
139
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
140
|
+
readonly interval_count?: number;
|
|
141
|
+
} & { readonly [x: string]: Schema.Json };
|
|
142
|
+
readonly timestamp?: number;
|
|
143
|
+
readonly type: "duration" | "now" | "timestamp";
|
|
144
|
+
} & { readonly [x: string]: Schema.Json };
|
|
145
|
+
readonly settings?: {
|
|
146
|
+
readonly billing_cycle_anchor?: "resume_at" | "unchanged";
|
|
147
|
+
readonly payment_behavior?:
|
|
148
|
+
| "resume_on_payment_attempt"
|
|
149
|
+
| "resume_on_payment_success";
|
|
150
|
+
readonly proration_behavior?:
|
|
151
|
+
| "always_invoice"
|
|
152
|
+
| "create_prorations"
|
|
153
|
+
| "none";
|
|
154
|
+
} & { readonly [x: string]: Schema.Json };
|
|
155
|
+
} & { readonly [x: string]: Schema.Json };
|
|
156
|
+
} & { readonly [x: string]: Schema.Json }
|
|
157
|
+
>;
|
|
158
|
+
readonly phases?: ReadonlyArray<
|
|
159
|
+
{
|
|
160
|
+
readonly add_invoice_items?: ReadonlyArray<
|
|
161
|
+
{
|
|
162
|
+
readonly discountable?: boolean;
|
|
163
|
+
readonly discounts?: ReadonlyArray<
|
|
164
|
+
{
|
|
165
|
+
readonly coupon?: string;
|
|
166
|
+
readonly discount?: string;
|
|
167
|
+
readonly promotion_code?: string;
|
|
168
|
+
} & { readonly [x: string]: Schema.Json }
|
|
169
|
+
>;
|
|
170
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
171
|
+
readonly period?: {
|
|
172
|
+
readonly end: {
|
|
173
|
+
readonly timestamp?: number;
|
|
174
|
+
readonly type: "min_item_period_end" | "phase_end" | "timestamp";
|
|
175
|
+
} & { readonly [x: string]: Schema.Json };
|
|
176
|
+
readonly start: {
|
|
177
|
+
readonly timestamp?: number;
|
|
178
|
+
readonly type:
|
|
179
|
+
| "max_item_period_start"
|
|
180
|
+
| "phase_start"
|
|
181
|
+
| "timestamp";
|
|
182
|
+
} & { readonly [x: string]: Schema.Json };
|
|
183
|
+
} & { readonly [x: string]: Schema.Json };
|
|
184
|
+
readonly price?: string;
|
|
185
|
+
readonly price_data?: {
|
|
186
|
+
readonly currency: string;
|
|
187
|
+
readonly product: string;
|
|
188
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
189
|
+
readonly unit_amount?: number;
|
|
190
|
+
readonly unit_amount_decimal?: string;
|
|
191
|
+
} & { readonly [x: string]: Schema.Json };
|
|
192
|
+
readonly quantity?: number;
|
|
193
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
194
|
+
} & { readonly [x: string]: Schema.Json }
|
|
195
|
+
>;
|
|
196
|
+
readonly application_fee_percent?: number;
|
|
197
|
+
readonly automatic_tax?: {
|
|
198
|
+
readonly enabled: boolean;
|
|
199
|
+
readonly liability?: {
|
|
200
|
+
readonly account?: string;
|
|
201
|
+
readonly type: "account" | "self";
|
|
202
|
+
} & { readonly [x: string]: Schema.Json };
|
|
203
|
+
} & { readonly [x: string]: Schema.Json };
|
|
204
|
+
readonly billing_cycle_anchor?: "automatic" | "phase_start";
|
|
205
|
+
readonly billing_thresholds?:
|
|
206
|
+
| ({
|
|
207
|
+
readonly amount_gte?: number;
|
|
208
|
+
readonly reset_billing_cycle_anchor?: boolean;
|
|
209
|
+
} & { readonly [x: string]: Schema.Json })
|
|
210
|
+
| "";
|
|
211
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
212
|
+
readonly currency?: string;
|
|
213
|
+
readonly default_payment_method?: string;
|
|
214
|
+
readonly default_tax_rates?: ReadonlyArray<string> | "";
|
|
215
|
+
readonly description?: string | "";
|
|
216
|
+
readonly discounts?:
|
|
217
|
+
| ReadonlyArray<
|
|
218
|
+
{
|
|
219
|
+
readonly coupon?: string;
|
|
220
|
+
readonly discount?: string;
|
|
221
|
+
readonly promotion_code?: string;
|
|
222
|
+
} & { readonly [x: string]: Schema.Json }
|
|
223
|
+
>
|
|
224
|
+
| "";
|
|
225
|
+
readonly duration?: {
|
|
226
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
227
|
+
readonly interval_count?: number;
|
|
228
|
+
} & { readonly [x: string]: Schema.Json };
|
|
229
|
+
readonly end_date?: number;
|
|
230
|
+
readonly invoice_settings?: {
|
|
231
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
232
|
+
readonly custom_fields?:
|
|
233
|
+
| ReadonlyArray<
|
|
234
|
+
{ readonly name: string; readonly value: string } & {
|
|
235
|
+
readonly [x: string]: Schema.Json;
|
|
236
|
+
}
|
|
237
|
+
>
|
|
238
|
+
| "";
|
|
239
|
+
readonly days_until_due?: number;
|
|
240
|
+
readonly description?: string | "";
|
|
241
|
+
readonly footer?: string | "";
|
|
242
|
+
readonly issuer?: {
|
|
243
|
+
readonly account?: string;
|
|
244
|
+
readonly type: "account" | "self";
|
|
245
|
+
} & { readonly [x: string]: Schema.Json };
|
|
246
|
+
} & { readonly [x: string]: Schema.Json };
|
|
247
|
+
readonly items: ReadonlyArray<
|
|
248
|
+
{
|
|
249
|
+
readonly billing_thresholds?:
|
|
250
|
+
| ({ readonly usage_gte: number } & {
|
|
251
|
+
readonly [x: string]: Schema.Json;
|
|
252
|
+
})
|
|
253
|
+
| "";
|
|
254
|
+
readonly discounts?:
|
|
255
|
+
| ReadonlyArray<
|
|
256
|
+
{
|
|
257
|
+
readonly coupon?: string;
|
|
258
|
+
readonly discount?: string;
|
|
259
|
+
readonly promotion_code?: string;
|
|
260
|
+
} & { readonly [x: string]: Schema.Json }
|
|
261
|
+
>
|
|
262
|
+
| "";
|
|
263
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
264
|
+
readonly price?: string;
|
|
265
|
+
readonly price_data?: {
|
|
266
|
+
readonly currency: string;
|
|
267
|
+
readonly product: string;
|
|
268
|
+
readonly recurring: {
|
|
269
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
270
|
+
readonly interval_count?: number;
|
|
271
|
+
} & { readonly [x: string]: Schema.Json };
|
|
272
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
273
|
+
readonly unit_amount?: number;
|
|
274
|
+
readonly unit_amount_decimal?: string;
|
|
275
|
+
} & { readonly [x: string]: Schema.Json };
|
|
276
|
+
readonly quantity?: number;
|
|
277
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
278
|
+
} & { readonly [x: string]: Schema.Json }
|
|
279
|
+
>;
|
|
280
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
281
|
+
readonly on_behalf_of?: string;
|
|
282
|
+
readonly proration_behavior?:
|
|
283
|
+
| "always_invoice"
|
|
284
|
+
| "create_prorations"
|
|
285
|
+
| "none";
|
|
286
|
+
readonly transfer_data?: {
|
|
287
|
+
readonly amount_percent?: number;
|
|
288
|
+
readonly destination: string;
|
|
289
|
+
} & { readonly [x: string]: Schema.Json };
|
|
290
|
+
readonly trial?: boolean;
|
|
291
|
+
readonly trial_end?: number;
|
|
292
|
+
} & { readonly [x: string]: Schema.Json }
|
|
293
|
+
>;
|
|
294
|
+
readonly start_date?: number | "now";
|
|
295
|
+
};
|
|
296
|
+
export type PostSubscriptionSchedulesOutput = Stripesubscription_schedule;
|
|
297
|
+
export type PostSubscriptionSchedulesError = Stripeerror;
|
|
298
|
+
export type GetSubscriptionSchedulesScheduleInput = {
|
|
299
|
+
readonly expand?: ReadonlyArray<string>;
|
|
300
|
+
readonly schedule: string;
|
|
301
|
+
};
|
|
302
|
+
export type GetSubscriptionSchedulesScheduleOutput =
|
|
303
|
+
Stripesubscription_schedule;
|
|
304
|
+
export type GetSubscriptionSchedulesScheduleError = Stripeerror;
|
|
305
|
+
export type PostSubscriptionSchedulesScheduleInput = {
|
|
306
|
+
readonly default_settings?: {
|
|
307
|
+
readonly application_fee_percent?: number;
|
|
308
|
+
readonly automatic_tax?: {
|
|
309
|
+
readonly enabled: boolean;
|
|
310
|
+
readonly liability?: {
|
|
311
|
+
readonly account?: string;
|
|
312
|
+
readonly type: "account" | "self";
|
|
313
|
+
} & { readonly [x: string]: Schema.Json };
|
|
314
|
+
} & { readonly [x: string]: Schema.Json };
|
|
315
|
+
readonly billing_cycle_anchor?: "automatic" | "phase_start";
|
|
316
|
+
readonly billing_thresholds?:
|
|
317
|
+
| ({
|
|
318
|
+
readonly amount_gte?: number;
|
|
319
|
+
readonly reset_billing_cycle_anchor?: boolean;
|
|
320
|
+
} & { readonly [x: string]: Schema.Json })
|
|
321
|
+
| "";
|
|
322
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
323
|
+
readonly default_payment_method?: string;
|
|
324
|
+
readonly description?: string | "";
|
|
325
|
+
readonly invoice_settings?: {
|
|
326
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
327
|
+
readonly custom_fields?:
|
|
328
|
+
| ReadonlyArray<
|
|
329
|
+
{ readonly name: string; readonly value: string } & {
|
|
330
|
+
readonly [x: string]: Schema.Json;
|
|
331
|
+
}
|
|
332
|
+
>
|
|
333
|
+
| "";
|
|
334
|
+
readonly days_until_due?: number;
|
|
335
|
+
readonly description?: string | "";
|
|
336
|
+
readonly footer?: string | "";
|
|
337
|
+
readonly issuer?: {
|
|
338
|
+
readonly account?: string;
|
|
339
|
+
readonly type: "account" | "self";
|
|
340
|
+
} & { readonly [x: string]: Schema.Json };
|
|
341
|
+
} & { readonly [x: string]: Schema.Json };
|
|
342
|
+
readonly on_behalf_of?: string | "";
|
|
343
|
+
readonly transfer_data?:
|
|
344
|
+
| ({ readonly amount_percent?: number; readonly destination: string } & {
|
|
345
|
+
readonly [x: string]: Schema.Json;
|
|
346
|
+
})
|
|
347
|
+
| "";
|
|
348
|
+
} & { readonly [x: string]: Schema.Json };
|
|
349
|
+
readonly end_behavior?: "cancel" | "none" | "release" | "renew";
|
|
350
|
+
readonly expand?: ReadonlyArray<string>;
|
|
351
|
+
readonly metadata?: { readonly [x: string]: string } | "";
|
|
352
|
+
readonly pause_schedules?:
|
|
353
|
+
| ReadonlyArray<
|
|
354
|
+
{
|
|
355
|
+
readonly key?: string;
|
|
356
|
+
readonly pause?: {
|
|
357
|
+
readonly pause_at?: {
|
|
358
|
+
readonly timestamp?: number;
|
|
359
|
+
readonly type: "now" | "timestamp";
|
|
360
|
+
} & { readonly [x: string]: Schema.Json };
|
|
361
|
+
readonly settings?: {
|
|
362
|
+
readonly bill_for?: {
|
|
363
|
+
readonly outstanding_usage_through?: {
|
|
364
|
+
readonly type?: "none" | "pause_at";
|
|
365
|
+
} & { readonly [x: string]: Schema.Json };
|
|
366
|
+
readonly unused_time_from?: {
|
|
367
|
+
readonly type?:
|
|
368
|
+
| "item_current_period_start"
|
|
369
|
+
| "none"
|
|
370
|
+
| "pause_at";
|
|
371
|
+
} & { readonly [x: string]: Schema.Json };
|
|
372
|
+
} & { readonly [x: string]: Schema.Json };
|
|
373
|
+
readonly invoicing_behavior?: "invoice" | "pending_invoice_item";
|
|
374
|
+
readonly type?: "subscription";
|
|
375
|
+
} & { readonly [x: string]: Schema.Json };
|
|
376
|
+
} & { readonly [x: string]: Schema.Json };
|
|
377
|
+
readonly resume?:
|
|
378
|
+
| ({
|
|
379
|
+
readonly resume_at?: {
|
|
380
|
+
readonly duration?: {
|
|
381
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
382
|
+
readonly interval_count?: number;
|
|
383
|
+
} & { readonly [x: string]: Schema.Json };
|
|
384
|
+
readonly timestamp?: number;
|
|
385
|
+
readonly type: "duration" | "now" | "timestamp";
|
|
386
|
+
} & { readonly [x: string]: Schema.Json };
|
|
387
|
+
readonly settings?: {
|
|
388
|
+
readonly billing_cycle_anchor?: "resume_at" | "unchanged";
|
|
389
|
+
readonly payment_behavior?:
|
|
390
|
+
| "resume_on_payment_attempt"
|
|
391
|
+
| "resume_on_payment_success";
|
|
392
|
+
readonly proration_behavior?:
|
|
393
|
+
| "always_invoice"
|
|
394
|
+
| "create_prorations"
|
|
395
|
+
| "none";
|
|
396
|
+
} & { readonly [x: string]: Schema.Json };
|
|
397
|
+
} & { readonly [x: string]: Schema.Json })
|
|
398
|
+
| "";
|
|
399
|
+
} & { readonly [x: string]: Schema.Json }
|
|
400
|
+
>
|
|
401
|
+
| "";
|
|
402
|
+
readonly phases?: ReadonlyArray<
|
|
403
|
+
{
|
|
404
|
+
readonly add_invoice_items?: ReadonlyArray<
|
|
405
|
+
{
|
|
406
|
+
readonly discountable?: boolean;
|
|
407
|
+
readonly discounts?: ReadonlyArray<
|
|
408
|
+
{
|
|
409
|
+
readonly coupon?: string;
|
|
410
|
+
readonly discount?: string;
|
|
411
|
+
readonly promotion_code?: string;
|
|
412
|
+
} & { readonly [x: string]: Schema.Json }
|
|
413
|
+
>;
|
|
414
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
415
|
+
readonly period?: {
|
|
416
|
+
readonly end: {
|
|
417
|
+
readonly timestamp?: number;
|
|
418
|
+
readonly type: "min_item_period_end" | "phase_end" | "timestamp";
|
|
419
|
+
} & { readonly [x: string]: Schema.Json };
|
|
420
|
+
readonly start: {
|
|
421
|
+
readonly timestamp?: number;
|
|
422
|
+
readonly type:
|
|
423
|
+
| "max_item_period_start"
|
|
424
|
+
| "phase_start"
|
|
425
|
+
| "timestamp";
|
|
426
|
+
} & { readonly [x: string]: Schema.Json };
|
|
427
|
+
} & { readonly [x: string]: Schema.Json };
|
|
428
|
+
readonly price?: string;
|
|
429
|
+
readonly price_data?: {
|
|
430
|
+
readonly currency: string;
|
|
431
|
+
readonly product: string;
|
|
432
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
433
|
+
readonly unit_amount?: number;
|
|
434
|
+
readonly unit_amount_decimal?: string;
|
|
435
|
+
} & { readonly [x: string]: Schema.Json };
|
|
436
|
+
readonly quantity?: number;
|
|
437
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
438
|
+
} & { readonly [x: string]: Schema.Json }
|
|
439
|
+
>;
|
|
440
|
+
readonly application_fee_percent?: number;
|
|
441
|
+
readonly automatic_tax?: {
|
|
442
|
+
readonly enabled: boolean;
|
|
443
|
+
readonly liability?: {
|
|
444
|
+
readonly account?: string;
|
|
445
|
+
readonly type: "account" | "self";
|
|
446
|
+
} & { readonly [x: string]: Schema.Json };
|
|
447
|
+
} & { readonly [x: string]: Schema.Json };
|
|
448
|
+
readonly billing_cycle_anchor?: "automatic" | "phase_start";
|
|
449
|
+
readonly billing_thresholds?:
|
|
450
|
+
| ({
|
|
451
|
+
readonly amount_gte?: number;
|
|
452
|
+
readonly reset_billing_cycle_anchor?: boolean;
|
|
453
|
+
} & { readonly [x: string]: Schema.Json })
|
|
454
|
+
| "";
|
|
455
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
456
|
+
readonly default_payment_method?: string;
|
|
457
|
+
readonly default_tax_rates?: ReadonlyArray<string> | "";
|
|
458
|
+
readonly description?: string | "";
|
|
459
|
+
readonly discounts?:
|
|
460
|
+
| ReadonlyArray<
|
|
461
|
+
{
|
|
462
|
+
readonly coupon?: string;
|
|
463
|
+
readonly discount?: string;
|
|
464
|
+
readonly promotion_code?: string;
|
|
465
|
+
} & { readonly [x: string]: Schema.Json }
|
|
466
|
+
>
|
|
467
|
+
| "";
|
|
468
|
+
readonly duration?: {
|
|
469
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
470
|
+
readonly interval_count?: number;
|
|
471
|
+
} & { readonly [x: string]: Schema.Json };
|
|
472
|
+
readonly end_date?: number | "now";
|
|
473
|
+
readonly invoice_settings?: {
|
|
474
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
475
|
+
readonly custom_fields?:
|
|
476
|
+
| ReadonlyArray<
|
|
477
|
+
{ readonly name: string; readonly value: string } & {
|
|
478
|
+
readonly [x: string]: Schema.Json;
|
|
479
|
+
}
|
|
480
|
+
>
|
|
481
|
+
| "";
|
|
482
|
+
readonly days_until_due?: number;
|
|
483
|
+
readonly description?: string | "";
|
|
484
|
+
readonly footer?: string | "";
|
|
485
|
+
readonly issuer?: {
|
|
486
|
+
readonly account?: string;
|
|
487
|
+
readonly type: "account" | "self";
|
|
488
|
+
} & { readonly [x: string]: Schema.Json };
|
|
489
|
+
} & { readonly [x: string]: Schema.Json };
|
|
490
|
+
readonly items: ReadonlyArray<
|
|
491
|
+
{
|
|
492
|
+
readonly billing_thresholds?:
|
|
493
|
+
| ({ readonly usage_gte: number } & {
|
|
494
|
+
readonly [x: string]: Schema.Json;
|
|
495
|
+
})
|
|
496
|
+
| "";
|
|
497
|
+
readonly discounts?:
|
|
498
|
+
| ReadonlyArray<
|
|
499
|
+
{
|
|
500
|
+
readonly coupon?: string;
|
|
501
|
+
readonly discount?: string;
|
|
502
|
+
readonly promotion_code?: string;
|
|
503
|
+
} & { readonly [x: string]: Schema.Json }
|
|
504
|
+
>
|
|
505
|
+
| "";
|
|
506
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
507
|
+
readonly price?: string;
|
|
508
|
+
readonly price_data?: {
|
|
509
|
+
readonly currency: string;
|
|
510
|
+
readonly product: string;
|
|
511
|
+
readonly recurring: {
|
|
512
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
513
|
+
readonly interval_count?: number;
|
|
514
|
+
} & { readonly [x: string]: Schema.Json };
|
|
515
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
516
|
+
readonly unit_amount?: number;
|
|
517
|
+
readonly unit_amount_decimal?: string;
|
|
518
|
+
} & { readonly [x: string]: Schema.Json };
|
|
519
|
+
readonly quantity?: number;
|
|
520
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
521
|
+
} & { readonly [x: string]: Schema.Json }
|
|
522
|
+
>;
|
|
523
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
524
|
+
readonly on_behalf_of?: string;
|
|
525
|
+
readonly proration_behavior?:
|
|
526
|
+
| "always_invoice"
|
|
527
|
+
| "create_prorations"
|
|
528
|
+
| "none";
|
|
529
|
+
readonly start_date?: number | "now";
|
|
530
|
+
readonly transfer_data?: {
|
|
531
|
+
readonly amount_percent?: number;
|
|
532
|
+
readonly destination: string;
|
|
533
|
+
} & { readonly [x: string]: Schema.Json };
|
|
534
|
+
readonly trial?: boolean;
|
|
535
|
+
readonly trial_end?: number | "now";
|
|
536
|
+
} & { readonly [x: string]: Schema.Json }
|
|
537
|
+
>;
|
|
538
|
+
readonly proration_behavior?: "always_invoice" | "create_prorations" | "none";
|
|
539
|
+
readonly schedule: string;
|
|
540
|
+
};
|
|
541
|
+
export type PostSubscriptionSchedulesScheduleOutput =
|
|
542
|
+
Stripesubscription_schedule;
|
|
543
|
+
export type PostSubscriptionSchedulesScheduleError = Stripeerror;
|
|
544
|
+
export type PostSubscriptionSchedulesScheduleCancelInput = {
|
|
545
|
+
readonly expand?: ReadonlyArray<string>;
|
|
546
|
+
readonly invoice_now?: boolean;
|
|
547
|
+
readonly prorate?: boolean;
|
|
548
|
+
readonly schedule: string;
|
|
549
|
+
};
|
|
550
|
+
export type PostSubscriptionSchedulesScheduleCancelOutput =
|
|
551
|
+
Stripesubscription_schedule;
|
|
552
|
+
export type PostSubscriptionSchedulesScheduleCancelError = Stripeerror;
|
|
553
|
+
export type PostSubscriptionSchedulesScheduleReleaseInput = {
|
|
554
|
+
readonly expand?: ReadonlyArray<string>;
|
|
555
|
+
readonly preserve_cancel_date?: boolean;
|
|
556
|
+
readonly schedule: string;
|
|
557
|
+
};
|
|
558
|
+
export type PostSubscriptionSchedulesScheduleReleaseOutput =
|
|
559
|
+
Stripesubscription_schedule;
|
|
560
|
+
export type PostSubscriptionSchedulesScheduleReleaseError = Stripeerror;
|
|
561
|
+
|
|
562
|
+
export const GetSubscriptionSchedulesInput = Schema.Struct({
|
|
563
|
+
canceled_at: Schema.optionalKey(
|
|
564
|
+
Schema.Union([
|
|
565
|
+
Schema.StructWithRest(
|
|
566
|
+
Schema.Struct({
|
|
567
|
+
gt: Schema.optionalKey(Schema.Int),
|
|
568
|
+
gte: Schema.optionalKey(Schema.Int),
|
|
569
|
+
lt: Schema.optionalKey(Schema.Int),
|
|
570
|
+
lte: Schema.optionalKey(Schema.Int),
|
|
571
|
+
}),
|
|
572
|
+
[
|
|
573
|
+
Schema.Record(
|
|
574
|
+
Schema.String,
|
|
575
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
576
|
+
),
|
|
577
|
+
],
|
|
578
|
+
).annotate({ title: "range_query_specs" }),
|
|
579
|
+
Schema.Int,
|
|
580
|
+
]),
|
|
581
|
+
),
|
|
582
|
+
completed_at: Schema.optionalKey(
|
|
583
|
+
Schema.Union([
|
|
584
|
+
Schema.StructWithRest(
|
|
585
|
+
Schema.Struct({
|
|
586
|
+
gt: Schema.optionalKey(Schema.Int),
|
|
587
|
+
gte: Schema.optionalKey(Schema.Int),
|
|
588
|
+
lt: Schema.optionalKey(Schema.Int),
|
|
589
|
+
lte: Schema.optionalKey(Schema.Int),
|
|
590
|
+
}),
|
|
591
|
+
[
|
|
592
|
+
Schema.Record(
|
|
593
|
+
Schema.String,
|
|
594
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
595
|
+
),
|
|
596
|
+
],
|
|
597
|
+
).annotate({ title: "range_query_specs" }),
|
|
598
|
+
Schema.Int,
|
|
599
|
+
]),
|
|
600
|
+
),
|
|
601
|
+
created: Schema.optionalKey(
|
|
602
|
+
Schema.Union([
|
|
603
|
+
Schema.StructWithRest(
|
|
604
|
+
Schema.Struct({
|
|
605
|
+
gt: Schema.optionalKey(Schema.Int),
|
|
606
|
+
gte: Schema.optionalKey(Schema.Int),
|
|
607
|
+
lt: Schema.optionalKey(Schema.Int),
|
|
608
|
+
lte: Schema.optionalKey(Schema.Int),
|
|
609
|
+
}),
|
|
610
|
+
[
|
|
611
|
+
Schema.Record(
|
|
612
|
+
Schema.String,
|
|
613
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
614
|
+
),
|
|
615
|
+
],
|
|
616
|
+
).annotate({ title: "range_query_specs" }),
|
|
617
|
+
Schema.Int,
|
|
618
|
+
]),
|
|
619
|
+
),
|
|
620
|
+
customer: Schema.optionalKey(
|
|
621
|
+
Schema.String.check(
|
|
622
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
623
|
+
expected: "a string with at most 5000 code points",
|
|
624
|
+
}),
|
|
625
|
+
),
|
|
626
|
+
),
|
|
627
|
+
customer_account: Schema.optionalKey(
|
|
628
|
+
Schema.String.check(
|
|
629
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
630
|
+
expected: "a string with at most 5000 code points",
|
|
631
|
+
}),
|
|
632
|
+
),
|
|
633
|
+
),
|
|
634
|
+
ending_before: Schema.optionalKey(
|
|
635
|
+
Schema.String.check(
|
|
636
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
637
|
+
expected: "a string with at most 5000 code points",
|
|
638
|
+
}),
|
|
639
|
+
),
|
|
640
|
+
),
|
|
641
|
+
expand: Schema.optionalKey(
|
|
642
|
+
Schema.Array(
|
|
643
|
+
Schema.String.check(
|
|
644
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
645
|
+
expected: "a string with at most 5000 code points",
|
|
646
|
+
}),
|
|
647
|
+
),
|
|
648
|
+
),
|
|
649
|
+
),
|
|
650
|
+
limit: Schema.optionalKey(Schema.Int),
|
|
651
|
+
released_at: Schema.optionalKey(
|
|
652
|
+
Schema.Union([
|
|
653
|
+
Schema.StructWithRest(
|
|
654
|
+
Schema.Struct({
|
|
655
|
+
gt: Schema.optionalKey(Schema.Int),
|
|
656
|
+
gte: Schema.optionalKey(Schema.Int),
|
|
657
|
+
lt: Schema.optionalKey(Schema.Int),
|
|
658
|
+
lte: Schema.optionalKey(Schema.Int),
|
|
659
|
+
}),
|
|
660
|
+
[
|
|
661
|
+
Schema.Record(
|
|
662
|
+
Schema.String,
|
|
663
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
664
|
+
),
|
|
665
|
+
],
|
|
666
|
+
).annotate({ title: "range_query_specs" }),
|
|
667
|
+
Schema.Int,
|
|
668
|
+
]),
|
|
669
|
+
),
|
|
670
|
+
scheduled: Schema.optionalKey(Schema.Boolean),
|
|
671
|
+
starting_after: Schema.optionalKey(
|
|
672
|
+
Schema.String.check(
|
|
673
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
674
|
+
expected: "a string with at most 5000 code points",
|
|
675
|
+
}),
|
|
676
|
+
),
|
|
677
|
+
),
|
|
678
|
+
});
|
|
679
|
+
export const GetSubscriptionSchedulesOutput = Schema.StructWithRest(
|
|
680
|
+
Schema.Struct({
|
|
681
|
+
data: Schema.Array(Stripesubscription_schedule),
|
|
682
|
+
has_more: Schema.Boolean.annotate({
|
|
683
|
+
description:
|
|
684
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
685
|
+
}),
|
|
686
|
+
object: Schema.Literal("list").annotate({
|
|
687
|
+
description:
|
|
688
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
689
|
+
}),
|
|
690
|
+
url: Schema.String.annotate({
|
|
691
|
+
description: "The URL where this list can be accessed.",
|
|
692
|
+
})
|
|
693
|
+
.check(
|
|
694
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
695
|
+
expected: "a string with at most 5000 code points",
|
|
696
|
+
}),
|
|
697
|
+
)
|
|
698
|
+
.check(
|
|
699
|
+
Schema.isPattern(
|
|
700
|
+
new globalThis.RegExp("^\\/v1\\/subscription_schedules", "u"),
|
|
701
|
+
).annotate({
|
|
702
|
+
expected:
|
|
703
|
+
"a string matching the RegExp ^\\/v1\\/subscription_schedules",
|
|
704
|
+
}),
|
|
705
|
+
),
|
|
706
|
+
}),
|
|
707
|
+
[
|
|
708
|
+
Schema.Record(
|
|
709
|
+
Schema.String,
|
|
710
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
711
|
+
),
|
|
712
|
+
],
|
|
713
|
+
).annotate({
|
|
714
|
+
title: "SubscriptionSchedulesResourceScheduleList",
|
|
715
|
+
description: "",
|
|
716
|
+
});
|
|
717
|
+
export const GetSubscriptionSchedulesError = Stripeerror;
|
|
718
|
+
export const PostSubscriptionSchedulesInput = Schema.Struct({
|
|
719
|
+
billing_mode: Schema.optionalKey(
|
|
720
|
+
Schema.StructWithRest(
|
|
721
|
+
Schema.Struct({
|
|
722
|
+
flexible: Schema.optionalKey(
|
|
723
|
+
Schema.StructWithRest(
|
|
724
|
+
Schema.Struct({
|
|
725
|
+
proration_discounts: Schema.optionalKey(
|
|
726
|
+
Schema.Literals(["included", "itemized"]),
|
|
727
|
+
),
|
|
728
|
+
}),
|
|
729
|
+
[
|
|
730
|
+
Schema.Record(
|
|
731
|
+
Schema.String,
|
|
732
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
733
|
+
),
|
|
734
|
+
],
|
|
735
|
+
).annotate({ title: "flexible_params" }),
|
|
736
|
+
),
|
|
737
|
+
type: Schema.Literals(["classic", "flexible"]),
|
|
738
|
+
}),
|
|
739
|
+
[
|
|
740
|
+
Schema.Record(
|
|
741
|
+
Schema.String,
|
|
742
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
743
|
+
),
|
|
744
|
+
],
|
|
745
|
+
).annotate({
|
|
746
|
+
title: "billing_mode",
|
|
747
|
+
description:
|
|
748
|
+
"Controls how prorations and invoices for subscriptions are calculated and orchestrated.",
|
|
749
|
+
}),
|
|
750
|
+
),
|
|
751
|
+
customer: Schema.optionalKey(
|
|
752
|
+
Schema.String.annotate({
|
|
753
|
+
description:
|
|
754
|
+
"The identifier of the customer to create the subscription schedule for.",
|
|
755
|
+
}).check(
|
|
756
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
757
|
+
expected: "a string with at most 5000 code points",
|
|
758
|
+
}),
|
|
759
|
+
),
|
|
760
|
+
),
|
|
761
|
+
customer_account: Schema.optionalKey(
|
|
762
|
+
Schema.String.annotate({
|
|
763
|
+
description:
|
|
764
|
+
"The identifier of the account to create the subscription schedule for.",
|
|
765
|
+
}).check(
|
|
766
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
767
|
+
expected: "a string with at most 5000 code points",
|
|
768
|
+
}),
|
|
769
|
+
),
|
|
770
|
+
),
|
|
771
|
+
default_settings: Schema.optionalKey(
|
|
772
|
+
Schema.StructWithRest(
|
|
773
|
+
Schema.Struct({
|
|
774
|
+
application_fee_percent: Schema.optionalKey(Schema.Finite),
|
|
775
|
+
automatic_tax: Schema.optionalKey(
|
|
776
|
+
Schema.StructWithRest(
|
|
777
|
+
Schema.Struct({
|
|
778
|
+
enabled: Schema.Boolean,
|
|
779
|
+
liability: Schema.optionalKey(
|
|
780
|
+
Schema.StructWithRest(
|
|
781
|
+
Schema.Struct({
|
|
782
|
+
account: Schema.optionalKey(Schema.String),
|
|
783
|
+
type: Schema.Literals(["account", "self"]),
|
|
784
|
+
}),
|
|
785
|
+
[
|
|
786
|
+
Schema.Record(
|
|
787
|
+
Schema.String,
|
|
788
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
789
|
+
),
|
|
790
|
+
],
|
|
791
|
+
).annotate({ title: "param" }),
|
|
792
|
+
),
|
|
793
|
+
}),
|
|
794
|
+
[
|
|
795
|
+
Schema.Record(
|
|
796
|
+
Schema.String,
|
|
797
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
798
|
+
),
|
|
799
|
+
],
|
|
800
|
+
).annotate({ title: "automatic_tax_config" }),
|
|
801
|
+
),
|
|
802
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
803
|
+
Schema.Literals(["automatic", "phase_start"]),
|
|
804
|
+
),
|
|
805
|
+
billing_thresholds: Schema.optionalKey(
|
|
806
|
+
Schema.Union([
|
|
807
|
+
Schema.StructWithRest(
|
|
808
|
+
Schema.Struct({
|
|
809
|
+
amount_gte: Schema.optionalKey(Schema.Int),
|
|
810
|
+
reset_billing_cycle_anchor: Schema.optionalKey(Schema.Boolean),
|
|
811
|
+
}),
|
|
812
|
+
[
|
|
813
|
+
Schema.Record(
|
|
814
|
+
Schema.String,
|
|
815
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
816
|
+
),
|
|
817
|
+
],
|
|
818
|
+
).annotate({ title: "billing_thresholds_param" }),
|
|
819
|
+
Schema.Literal(""),
|
|
820
|
+
]),
|
|
821
|
+
),
|
|
822
|
+
collection_method: Schema.optionalKey(
|
|
823
|
+
Schema.Literals(["charge_automatically", "send_invoice"]),
|
|
824
|
+
),
|
|
825
|
+
default_payment_method: Schema.optionalKey(
|
|
826
|
+
Schema.String.check(
|
|
827
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
828
|
+
expected: "a string with at most 5000 code points",
|
|
829
|
+
}),
|
|
830
|
+
),
|
|
831
|
+
),
|
|
832
|
+
description: Schema.optionalKey(
|
|
833
|
+
Schema.Union([
|
|
834
|
+
Schema.String.check(
|
|
835
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
836
|
+
expected: "a string with at most 500 code points",
|
|
837
|
+
}),
|
|
838
|
+
),
|
|
839
|
+
Schema.Literal(""),
|
|
840
|
+
]),
|
|
841
|
+
),
|
|
842
|
+
invoice_settings: Schema.optionalKey(
|
|
843
|
+
Schema.StructWithRest(
|
|
844
|
+
Schema.Struct({
|
|
845
|
+
account_tax_ids: Schema.optionalKey(
|
|
846
|
+
Schema.Union([
|
|
847
|
+
Schema.Array(
|
|
848
|
+
Schema.String.check(
|
|
849
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
850
|
+
expected: "a string with at most 5000 code points",
|
|
851
|
+
}),
|
|
852
|
+
),
|
|
853
|
+
),
|
|
854
|
+
Schema.Literal(""),
|
|
855
|
+
]),
|
|
856
|
+
),
|
|
857
|
+
custom_fields: Schema.optionalKey(
|
|
858
|
+
Schema.Union([
|
|
859
|
+
Schema.Array(
|
|
860
|
+
Schema.StructWithRest(
|
|
861
|
+
Schema.Struct({
|
|
862
|
+
name: Schema.String.check(
|
|
863
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
864
|
+
expected: "a string with at most 40 code points",
|
|
865
|
+
}),
|
|
866
|
+
),
|
|
867
|
+
value: Schema.String.check(
|
|
868
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
869
|
+
expected: "a string with at most 140 code points",
|
|
870
|
+
}),
|
|
871
|
+
),
|
|
872
|
+
}),
|
|
873
|
+
[
|
|
874
|
+
Schema.Record(
|
|
875
|
+
Schema.String,
|
|
876
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
877
|
+
),
|
|
878
|
+
],
|
|
879
|
+
).annotate({ title: "custom_field_params" }),
|
|
880
|
+
),
|
|
881
|
+
Schema.Literal(""),
|
|
882
|
+
]),
|
|
883
|
+
),
|
|
884
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
885
|
+
description: Schema.optionalKey(
|
|
886
|
+
Schema.Union([
|
|
887
|
+
Schema.String.check(
|
|
888
|
+
Schema.isMaxCodePoints(1500).annotate({
|
|
889
|
+
expected: "a string with at most 1500 code points",
|
|
890
|
+
}),
|
|
891
|
+
),
|
|
892
|
+
Schema.Literal(""),
|
|
893
|
+
]),
|
|
894
|
+
),
|
|
895
|
+
footer: Schema.optionalKey(
|
|
896
|
+
Schema.Union([
|
|
897
|
+
Schema.String.check(
|
|
898
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
899
|
+
expected: "a string with at most 5000 code points",
|
|
900
|
+
}),
|
|
901
|
+
),
|
|
902
|
+
Schema.Literal(""),
|
|
903
|
+
]),
|
|
904
|
+
),
|
|
905
|
+
issuer: Schema.optionalKey(
|
|
906
|
+
Schema.StructWithRest(
|
|
907
|
+
Schema.Struct({
|
|
908
|
+
account: Schema.optionalKey(Schema.String),
|
|
909
|
+
type: Schema.Literals(["account", "self"]),
|
|
910
|
+
}),
|
|
911
|
+
[
|
|
912
|
+
Schema.Record(
|
|
913
|
+
Schema.String,
|
|
914
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
915
|
+
),
|
|
916
|
+
],
|
|
917
|
+
).annotate({ title: "param" }),
|
|
918
|
+
),
|
|
919
|
+
}),
|
|
920
|
+
[
|
|
921
|
+
Schema.Record(
|
|
922
|
+
Schema.String,
|
|
923
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
924
|
+
),
|
|
925
|
+
],
|
|
926
|
+
).annotate({ title: "subscription_schedule_default_settings_param" }),
|
|
927
|
+
),
|
|
928
|
+
on_behalf_of: Schema.optionalKey(
|
|
929
|
+
Schema.Union([Schema.String, Schema.Literal("")]),
|
|
930
|
+
),
|
|
931
|
+
transfer_data: Schema.optionalKey(
|
|
932
|
+
Schema.Union([
|
|
933
|
+
Schema.StructWithRest(
|
|
934
|
+
Schema.Struct({
|
|
935
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
936
|
+
destination: Schema.String,
|
|
937
|
+
}),
|
|
938
|
+
[
|
|
939
|
+
Schema.Record(
|
|
940
|
+
Schema.String,
|
|
941
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
942
|
+
),
|
|
943
|
+
],
|
|
944
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
945
|
+
Schema.Literal(""),
|
|
946
|
+
]),
|
|
947
|
+
),
|
|
948
|
+
}),
|
|
949
|
+
[
|
|
950
|
+
Schema.Record(
|
|
951
|
+
Schema.String,
|
|
952
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
953
|
+
),
|
|
954
|
+
],
|
|
955
|
+
).annotate({
|
|
956
|
+
title: "default_settings_params",
|
|
957
|
+
description:
|
|
958
|
+
"Object representing the subscription schedule's default settings.",
|
|
959
|
+
}),
|
|
960
|
+
),
|
|
961
|
+
end_behavior: Schema.optionalKey(
|
|
962
|
+
Schema.Literals(["cancel", "none", "release", "renew"]).annotate({
|
|
963
|
+
description:
|
|
964
|
+
"Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.",
|
|
965
|
+
}),
|
|
966
|
+
),
|
|
967
|
+
expand: Schema.optionalKey(
|
|
968
|
+
Schema.Array(
|
|
969
|
+
Schema.String.check(
|
|
970
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
971
|
+
expected: "a string with at most 5000 code points",
|
|
972
|
+
}),
|
|
973
|
+
),
|
|
974
|
+
).annotate({
|
|
975
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
976
|
+
}),
|
|
977
|
+
),
|
|
978
|
+
from_subscription: Schema.optionalKey(
|
|
979
|
+
Schema.String.annotate({
|
|
980
|
+
description:
|
|
981
|
+
"Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.",
|
|
982
|
+
}).check(
|
|
983
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
984
|
+
expected: "a string with at most 5000 code points",
|
|
985
|
+
}),
|
|
986
|
+
),
|
|
987
|
+
),
|
|
988
|
+
metadata: Schema.optionalKey(
|
|
989
|
+
Schema.Union([
|
|
990
|
+
Schema.Record(Schema.String, Schema.String),
|
|
991
|
+
Schema.Literal(""),
|
|
992
|
+
]).annotate({
|
|
993
|
+
description:
|
|
994
|
+
"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
|
|
995
|
+
}),
|
|
996
|
+
),
|
|
997
|
+
pause_schedules: Schema.optionalKey(
|
|
998
|
+
Schema.Array(
|
|
999
|
+
Schema.StructWithRest(
|
|
1000
|
+
Schema.Struct({
|
|
1001
|
+
key: Schema.optionalKey(
|
|
1002
|
+
Schema.String.check(
|
|
1003
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
1004
|
+
expected: "a string with at most 40 code points",
|
|
1005
|
+
}),
|
|
1006
|
+
),
|
|
1007
|
+
),
|
|
1008
|
+
pause: Schema.optionalKey(
|
|
1009
|
+
Schema.StructWithRest(
|
|
1010
|
+
Schema.Struct({
|
|
1011
|
+
pause_at: Schema.StructWithRest(
|
|
1012
|
+
Schema.Struct({
|
|
1013
|
+
timestamp: Schema.optionalKey(
|
|
1014
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1015
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1016
|
+
),
|
|
1017
|
+
),
|
|
1018
|
+
type: Schema.Literals(["now", "timestamp"]),
|
|
1019
|
+
}),
|
|
1020
|
+
[
|
|
1021
|
+
Schema.Record(
|
|
1022
|
+
Schema.String,
|
|
1023
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1024
|
+
),
|
|
1025
|
+
],
|
|
1026
|
+
).annotate({ title: "pause_at_params" }),
|
|
1027
|
+
settings: Schema.optionalKey(
|
|
1028
|
+
Schema.StructWithRest(
|
|
1029
|
+
Schema.Struct({
|
|
1030
|
+
bill_for: Schema.optionalKey(
|
|
1031
|
+
Schema.StructWithRest(
|
|
1032
|
+
Schema.Struct({
|
|
1033
|
+
outstanding_usage_through: Schema.optionalKey(
|
|
1034
|
+
Schema.StructWithRest(
|
|
1035
|
+
Schema.Struct({
|
|
1036
|
+
type: Schema.optionalKey(
|
|
1037
|
+
Schema.Literals(["none", "pause_at"]),
|
|
1038
|
+
),
|
|
1039
|
+
}),
|
|
1040
|
+
[
|
|
1041
|
+
Schema.Record(
|
|
1042
|
+
Schema.String,
|
|
1043
|
+
Schema.Json.annotate({
|
|
1044
|
+
expected: "JSON value",
|
|
1045
|
+
}),
|
|
1046
|
+
),
|
|
1047
|
+
],
|
|
1048
|
+
).annotate({
|
|
1049
|
+
title:
|
|
1050
|
+
"pause_settings_bill_for_outstanding_usage_through_params",
|
|
1051
|
+
}),
|
|
1052
|
+
),
|
|
1053
|
+
unused_time_from: Schema.optionalKey(
|
|
1054
|
+
Schema.StructWithRest(
|
|
1055
|
+
Schema.Struct({
|
|
1056
|
+
type: Schema.optionalKey(
|
|
1057
|
+
Schema.Literals([
|
|
1058
|
+
"item_current_period_start",
|
|
1059
|
+
"none",
|
|
1060
|
+
"pause_at",
|
|
1061
|
+
]),
|
|
1062
|
+
),
|
|
1063
|
+
}),
|
|
1064
|
+
[
|
|
1065
|
+
Schema.Record(
|
|
1066
|
+
Schema.String,
|
|
1067
|
+
Schema.Json.annotate({
|
|
1068
|
+
expected: "JSON value",
|
|
1069
|
+
}),
|
|
1070
|
+
),
|
|
1071
|
+
],
|
|
1072
|
+
).annotate({
|
|
1073
|
+
title:
|
|
1074
|
+
"pause_settings_bill_for_unused_time_from_params",
|
|
1075
|
+
}),
|
|
1076
|
+
),
|
|
1077
|
+
}),
|
|
1078
|
+
[
|
|
1079
|
+
Schema.Record(
|
|
1080
|
+
Schema.String,
|
|
1081
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1082
|
+
),
|
|
1083
|
+
],
|
|
1084
|
+
).annotate({ title: "pause_settings_bill_for_params" }),
|
|
1085
|
+
),
|
|
1086
|
+
invoicing_behavior: Schema.optionalKey(
|
|
1087
|
+
Schema.Literals(["invoice", "pending_invoice_item"]),
|
|
1088
|
+
),
|
|
1089
|
+
type: Schema.optionalKey(Schema.Literal("subscription")),
|
|
1090
|
+
}),
|
|
1091
|
+
[
|
|
1092
|
+
Schema.Record(
|
|
1093
|
+
Schema.String,
|
|
1094
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1095
|
+
),
|
|
1096
|
+
],
|
|
1097
|
+
).annotate({ title: "pause_settings_params" }),
|
|
1098
|
+
),
|
|
1099
|
+
}),
|
|
1100
|
+
[
|
|
1101
|
+
Schema.Record(
|
|
1102
|
+
Schema.String,
|
|
1103
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1104
|
+
),
|
|
1105
|
+
],
|
|
1106
|
+
).annotate({ title: "pause_schedule_create_pause_params" }),
|
|
1107
|
+
),
|
|
1108
|
+
resume: Schema.optionalKey(
|
|
1109
|
+
Schema.StructWithRest(
|
|
1110
|
+
Schema.Struct({
|
|
1111
|
+
resume_at: Schema.StructWithRest(
|
|
1112
|
+
Schema.Struct({
|
|
1113
|
+
duration: Schema.optionalKey(
|
|
1114
|
+
Schema.StructWithRest(
|
|
1115
|
+
Schema.Struct({
|
|
1116
|
+
interval: Schema.Literals([
|
|
1117
|
+
"day",
|
|
1118
|
+
"month",
|
|
1119
|
+
"week",
|
|
1120
|
+
"year",
|
|
1121
|
+
]),
|
|
1122
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
1123
|
+
}),
|
|
1124
|
+
[
|
|
1125
|
+
Schema.Record(
|
|
1126
|
+
Schema.String,
|
|
1127
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1128
|
+
),
|
|
1129
|
+
],
|
|
1130
|
+
).annotate({ title: "resume_at_duration_params" }),
|
|
1131
|
+
),
|
|
1132
|
+
timestamp: Schema.optionalKey(
|
|
1133
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1134
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1135
|
+
),
|
|
1136
|
+
),
|
|
1137
|
+
type: Schema.Literals(["duration", "now", "timestamp"]),
|
|
1138
|
+
}),
|
|
1139
|
+
[
|
|
1140
|
+
Schema.Record(
|
|
1141
|
+
Schema.String,
|
|
1142
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1143
|
+
),
|
|
1144
|
+
],
|
|
1145
|
+
).annotate({ title: "resume_at_params" }),
|
|
1146
|
+
settings: Schema.optionalKey(
|
|
1147
|
+
Schema.StructWithRest(
|
|
1148
|
+
Schema.Struct({
|
|
1149
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
1150
|
+
Schema.Literals(["resume_at", "unchanged"]),
|
|
1151
|
+
),
|
|
1152
|
+
payment_behavior: Schema.optionalKey(
|
|
1153
|
+
Schema.Literals([
|
|
1154
|
+
"resume_on_payment_attempt",
|
|
1155
|
+
"resume_on_payment_success",
|
|
1156
|
+
]),
|
|
1157
|
+
),
|
|
1158
|
+
proration_behavior: Schema.optionalKey(
|
|
1159
|
+
Schema.Literals([
|
|
1160
|
+
"always_invoice",
|
|
1161
|
+
"create_prorations",
|
|
1162
|
+
"none",
|
|
1163
|
+
]),
|
|
1164
|
+
),
|
|
1165
|
+
}),
|
|
1166
|
+
[
|
|
1167
|
+
Schema.Record(
|
|
1168
|
+
Schema.String,
|
|
1169
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1170
|
+
),
|
|
1171
|
+
],
|
|
1172
|
+
).annotate({ title: "resume_settings_params" }),
|
|
1173
|
+
),
|
|
1174
|
+
}),
|
|
1175
|
+
[
|
|
1176
|
+
Schema.Record(
|
|
1177
|
+
Schema.String,
|
|
1178
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1179
|
+
),
|
|
1180
|
+
],
|
|
1181
|
+
).annotate({ title: "pause_schedule_create_resume_params" }),
|
|
1182
|
+
),
|
|
1183
|
+
}),
|
|
1184
|
+
[
|
|
1185
|
+
Schema.Record(
|
|
1186
|
+
Schema.String,
|
|
1187
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1188
|
+
),
|
|
1189
|
+
],
|
|
1190
|
+
).annotate({ title: "pause_schedules_create_params" }),
|
|
1191
|
+
).annotate({
|
|
1192
|
+
description:
|
|
1193
|
+
"Configures the subscription's pause behavior and, optionally, its resume behavior. Only one entry is supported.",
|
|
1194
|
+
}),
|
|
1195
|
+
),
|
|
1196
|
+
phases: Schema.optionalKey(
|
|
1197
|
+
Schema.Array(
|
|
1198
|
+
Schema.StructWithRest(
|
|
1199
|
+
Schema.Struct({
|
|
1200
|
+
add_invoice_items: Schema.optionalKey(
|
|
1201
|
+
Schema.Array(
|
|
1202
|
+
Schema.StructWithRest(
|
|
1203
|
+
Schema.Struct({
|
|
1204
|
+
discountable: Schema.optionalKey(Schema.Boolean),
|
|
1205
|
+
discounts: Schema.optionalKey(
|
|
1206
|
+
Schema.Array(
|
|
1207
|
+
Schema.StructWithRest(
|
|
1208
|
+
Schema.Struct({
|
|
1209
|
+
coupon: Schema.optionalKey(
|
|
1210
|
+
Schema.String.check(
|
|
1211
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1212
|
+
expected:
|
|
1213
|
+
"a string with at most 5000 code points",
|
|
1214
|
+
}),
|
|
1215
|
+
),
|
|
1216
|
+
),
|
|
1217
|
+
discount: Schema.optionalKey(
|
|
1218
|
+
Schema.String.check(
|
|
1219
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1220
|
+
expected:
|
|
1221
|
+
"a string with at most 5000 code points",
|
|
1222
|
+
}),
|
|
1223
|
+
),
|
|
1224
|
+
),
|
|
1225
|
+
promotion_code: Schema.optionalKey(
|
|
1226
|
+
Schema.String.check(
|
|
1227
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1228
|
+
expected:
|
|
1229
|
+
"a string with at most 5000 code points",
|
|
1230
|
+
}),
|
|
1231
|
+
),
|
|
1232
|
+
),
|
|
1233
|
+
}),
|
|
1234
|
+
[
|
|
1235
|
+
Schema.Record(
|
|
1236
|
+
Schema.String,
|
|
1237
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1238
|
+
),
|
|
1239
|
+
],
|
|
1240
|
+
).annotate({ title: "discounts_data_param" }),
|
|
1241
|
+
),
|
|
1242
|
+
),
|
|
1243
|
+
metadata: Schema.optionalKey(
|
|
1244
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1245
|
+
),
|
|
1246
|
+
period: Schema.optionalKey(
|
|
1247
|
+
Schema.StructWithRest(
|
|
1248
|
+
Schema.Struct({
|
|
1249
|
+
end: Schema.StructWithRest(
|
|
1250
|
+
Schema.Struct({
|
|
1251
|
+
timestamp: Schema.optionalKey(
|
|
1252
|
+
Schema.Number.annotate({
|
|
1253
|
+
format: "unix-time",
|
|
1254
|
+
}).check(
|
|
1255
|
+
Schema.isInt().annotate({
|
|
1256
|
+
expected: "an integer",
|
|
1257
|
+
}),
|
|
1258
|
+
),
|
|
1259
|
+
),
|
|
1260
|
+
type: Schema.Literals([
|
|
1261
|
+
"min_item_period_end",
|
|
1262
|
+
"phase_end",
|
|
1263
|
+
"timestamp",
|
|
1264
|
+
]),
|
|
1265
|
+
}),
|
|
1266
|
+
[
|
|
1267
|
+
Schema.Record(
|
|
1268
|
+
Schema.String,
|
|
1269
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1270
|
+
),
|
|
1271
|
+
],
|
|
1272
|
+
).annotate({ title: "invoice_item_period_end" }),
|
|
1273
|
+
start: Schema.StructWithRest(
|
|
1274
|
+
Schema.Struct({
|
|
1275
|
+
timestamp: Schema.optionalKey(
|
|
1276
|
+
Schema.Number.annotate({
|
|
1277
|
+
format: "unix-time",
|
|
1278
|
+
}).check(
|
|
1279
|
+
Schema.isInt().annotate({
|
|
1280
|
+
expected: "an integer",
|
|
1281
|
+
}),
|
|
1282
|
+
),
|
|
1283
|
+
),
|
|
1284
|
+
type: Schema.Literals([
|
|
1285
|
+
"max_item_period_start",
|
|
1286
|
+
"phase_start",
|
|
1287
|
+
"timestamp",
|
|
1288
|
+
]),
|
|
1289
|
+
}),
|
|
1290
|
+
[
|
|
1291
|
+
Schema.Record(
|
|
1292
|
+
Schema.String,
|
|
1293
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1294
|
+
),
|
|
1295
|
+
],
|
|
1296
|
+
).annotate({ title: "invoice_item_period_start" }),
|
|
1297
|
+
}),
|
|
1298
|
+
[
|
|
1299
|
+
Schema.Record(
|
|
1300
|
+
Schema.String,
|
|
1301
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1302
|
+
),
|
|
1303
|
+
],
|
|
1304
|
+
).annotate({ title: "invoice_item_period" }),
|
|
1305
|
+
),
|
|
1306
|
+
price: Schema.optionalKey(
|
|
1307
|
+
Schema.String.check(
|
|
1308
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1309
|
+
expected: "a string with at most 5000 code points",
|
|
1310
|
+
}),
|
|
1311
|
+
),
|
|
1312
|
+
),
|
|
1313
|
+
price_data: Schema.optionalKey(
|
|
1314
|
+
Schema.StructWithRest(
|
|
1315
|
+
Schema.Struct({
|
|
1316
|
+
currency: Schema.String.annotate({
|
|
1317
|
+
format: "currency",
|
|
1318
|
+
}),
|
|
1319
|
+
product: Schema.String.check(
|
|
1320
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1321
|
+
expected: "a string with at most 5000 code points",
|
|
1322
|
+
}),
|
|
1323
|
+
),
|
|
1324
|
+
tax_behavior: Schema.optionalKey(
|
|
1325
|
+
Schema.Literals([
|
|
1326
|
+
"exclusive",
|
|
1327
|
+
"inclusive",
|
|
1328
|
+
"unspecified",
|
|
1329
|
+
]),
|
|
1330
|
+
),
|
|
1331
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
1332
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
1333
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
1334
|
+
),
|
|
1335
|
+
}),
|
|
1336
|
+
[
|
|
1337
|
+
Schema.Record(
|
|
1338
|
+
Schema.String,
|
|
1339
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1340
|
+
),
|
|
1341
|
+
],
|
|
1342
|
+
).annotate({
|
|
1343
|
+
title: "one_time_price_data_with_negative_amounts",
|
|
1344
|
+
}),
|
|
1345
|
+
),
|
|
1346
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
1347
|
+
tax_rates: Schema.optionalKey(
|
|
1348
|
+
Schema.Union([
|
|
1349
|
+
Schema.Array(
|
|
1350
|
+
Schema.String.check(
|
|
1351
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1352
|
+
expected: "a string with at most 5000 code points",
|
|
1353
|
+
}),
|
|
1354
|
+
),
|
|
1355
|
+
),
|
|
1356
|
+
Schema.Literal(""),
|
|
1357
|
+
]),
|
|
1358
|
+
),
|
|
1359
|
+
}),
|
|
1360
|
+
[
|
|
1361
|
+
Schema.Record(
|
|
1362
|
+
Schema.String,
|
|
1363
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1364
|
+
),
|
|
1365
|
+
],
|
|
1366
|
+
).annotate({ title: "add_invoice_item_entry" }),
|
|
1367
|
+
),
|
|
1368
|
+
),
|
|
1369
|
+
application_fee_percent: Schema.optionalKey(Schema.Finite),
|
|
1370
|
+
automatic_tax: Schema.optionalKey(
|
|
1371
|
+
Schema.StructWithRest(
|
|
1372
|
+
Schema.Struct({
|
|
1373
|
+
enabled: Schema.Boolean,
|
|
1374
|
+
liability: Schema.optionalKey(
|
|
1375
|
+
Schema.StructWithRest(
|
|
1376
|
+
Schema.Struct({
|
|
1377
|
+
account: Schema.optionalKey(Schema.String),
|
|
1378
|
+
type: Schema.Literals(["account", "self"]),
|
|
1379
|
+
}),
|
|
1380
|
+
[
|
|
1381
|
+
Schema.Record(
|
|
1382
|
+
Schema.String,
|
|
1383
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1384
|
+
),
|
|
1385
|
+
],
|
|
1386
|
+
).annotate({ title: "param" }),
|
|
1387
|
+
),
|
|
1388
|
+
}),
|
|
1389
|
+
[
|
|
1390
|
+
Schema.Record(
|
|
1391
|
+
Schema.String,
|
|
1392
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1393
|
+
),
|
|
1394
|
+
],
|
|
1395
|
+
).annotate({ title: "automatic_tax_config" }),
|
|
1396
|
+
),
|
|
1397
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
1398
|
+
Schema.Literals(["automatic", "phase_start"]),
|
|
1399
|
+
),
|
|
1400
|
+
billing_thresholds: Schema.optionalKey(
|
|
1401
|
+
Schema.Union([
|
|
1402
|
+
Schema.StructWithRest(
|
|
1403
|
+
Schema.Struct({
|
|
1404
|
+
amount_gte: Schema.optionalKey(Schema.Int),
|
|
1405
|
+
reset_billing_cycle_anchor: Schema.optionalKey(
|
|
1406
|
+
Schema.Boolean,
|
|
1407
|
+
),
|
|
1408
|
+
}),
|
|
1409
|
+
[
|
|
1410
|
+
Schema.Record(
|
|
1411
|
+
Schema.String,
|
|
1412
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1413
|
+
),
|
|
1414
|
+
],
|
|
1415
|
+
).annotate({ title: "billing_thresholds_param" }),
|
|
1416
|
+
Schema.Literal(""),
|
|
1417
|
+
]),
|
|
1418
|
+
),
|
|
1419
|
+
collection_method: Schema.optionalKey(
|
|
1420
|
+
Schema.Literals(["charge_automatically", "send_invoice"]),
|
|
1421
|
+
),
|
|
1422
|
+
currency: Schema.optionalKey(
|
|
1423
|
+
Schema.String.annotate({ format: "currency" }),
|
|
1424
|
+
),
|
|
1425
|
+
default_payment_method: Schema.optionalKey(
|
|
1426
|
+
Schema.String.check(
|
|
1427
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1428
|
+
expected: "a string with at most 5000 code points",
|
|
1429
|
+
}),
|
|
1430
|
+
),
|
|
1431
|
+
),
|
|
1432
|
+
default_tax_rates: Schema.optionalKey(
|
|
1433
|
+
Schema.Union([
|
|
1434
|
+
Schema.Array(
|
|
1435
|
+
Schema.String.check(
|
|
1436
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1437
|
+
expected: "a string with at most 5000 code points",
|
|
1438
|
+
}),
|
|
1439
|
+
),
|
|
1440
|
+
),
|
|
1441
|
+
Schema.Literal(""),
|
|
1442
|
+
]),
|
|
1443
|
+
),
|
|
1444
|
+
description: Schema.optionalKey(
|
|
1445
|
+
Schema.Union([
|
|
1446
|
+
Schema.String.check(
|
|
1447
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1448
|
+
expected: "a string with at most 500 code points",
|
|
1449
|
+
}),
|
|
1450
|
+
),
|
|
1451
|
+
Schema.Literal(""),
|
|
1452
|
+
]),
|
|
1453
|
+
),
|
|
1454
|
+
discounts: Schema.optionalKey(
|
|
1455
|
+
Schema.Union([
|
|
1456
|
+
Schema.Array(
|
|
1457
|
+
Schema.StructWithRest(
|
|
1458
|
+
Schema.Struct({
|
|
1459
|
+
coupon: Schema.optionalKey(
|
|
1460
|
+
Schema.String.check(
|
|
1461
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1462
|
+
expected: "a string with at most 5000 code points",
|
|
1463
|
+
}),
|
|
1464
|
+
),
|
|
1465
|
+
),
|
|
1466
|
+
discount: Schema.optionalKey(
|
|
1467
|
+
Schema.String.check(
|
|
1468
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1469
|
+
expected: "a string with at most 5000 code points",
|
|
1470
|
+
}),
|
|
1471
|
+
),
|
|
1472
|
+
),
|
|
1473
|
+
promotion_code: Schema.optionalKey(
|
|
1474
|
+
Schema.String.check(
|
|
1475
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1476
|
+
expected: "a string with at most 5000 code points",
|
|
1477
|
+
}),
|
|
1478
|
+
),
|
|
1479
|
+
),
|
|
1480
|
+
}),
|
|
1481
|
+
[
|
|
1482
|
+
Schema.Record(
|
|
1483
|
+
Schema.String,
|
|
1484
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1485
|
+
),
|
|
1486
|
+
],
|
|
1487
|
+
).annotate({ title: "schedule_discounts_data_param" }),
|
|
1488
|
+
),
|
|
1489
|
+
Schema.Literal(""),
|
|
1490
|
+
]),
|
|
1491
|
+
),
|
|
1492
|
+
duration: Schema.optionalKey(
|
|
1493
|
+
Schema.StructWithRest(
|
|
1494
|
+
Schema.Struct({
|
|
1495
|
+
interval: Schema.Literals(["day", "month", "week", "year"]),
|
|
1496
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
1497
|
+
}),
|
|
1498
|
+
[
|
|
1499
|
+
Schema.Record(
|
|
1500
|
+
Schema.String,
|
|
1501
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1502
|
+
),
|
|
1503
|
+
],
|
|
1504
|
+
).annotate({ title: "duration_params" }),
|
|
1505
|
+
),
|
|
1506
|
+
end_date: Schema.optionalKey(
|
|
1507
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1508
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1509
|
+
),
|
|
1510
|
+
),
|
|
1511
|
+
invoice_settings: Schema.optionalKey(
|
|
1512
|
+
Schema.StructWithRest(
|
|
1513
|
+
Schema.Struct({
|
|
1514
|
+
account_tax_ids: Schema.optionalKey(
|
|
1515
|
+
Schema.Union([
|
|
1516
|
+
Schema.Array(
|
|
1517
|
+
Schema.String.check(
|
|
1518
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1519
|
+
expected: "a string with at most 5000 code points",
|
|
1520
|
+
}),
|
|
1521
|
+
),
|
|
1522
|
+
),
|
|
1523
|
+
Schema.Literal(""),
|
|
1524
|
+
]),
|
|
1525
|
+
),
|
|
1526
|
+
custom_fields: Schema.optionalKey(
|
|
1527
|
+
Schema.Union([
|
|
1528
|
+
Schema.Array(
|
|
1529
|
+
Schema.StructWithRest(
|
|
1530
|
+
Schema.Struct({
|
|
1531
|
+
name: Schema.String.check(
|
|
1532
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
1533
|
+
expected: "a string with at most 40 code points",
|
|
1534
|
+
}),
|
|
1535
|
+
),
|
|
1536
|
+
value: Schema.String.check(
|
|
1537
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
1538
|
+
expected: "a string with at most 140 code points",
|
|
1539
|
+
}),
|
|
1540
|
+
),
|
|
1541
|
+
}),
|
|
1542
|
+
[
|
|
1543
|
+
Schema.Record(
|
|
1544
|
+
Schema.String,
|
|
1545
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1546
|
+
),
|
|
1547
|
+
],
|
|
1548
|
+
).annotate({ title: "custom_field_params" }),
|
|
1549
|
+
),
|
|
1550
|
+
Schema.Literal(""),
|
|
1551
|
+
]),
|
|
1552
|
+
),
|
|
1553
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
1554
|
+
description: Schema.optionalKey(
|
|
1555
|
+
Schema.Union([
|
|
1556
|
+
Schema.String.check(
|
|
1557
|
+
Schema.isMaxCodePoints(1500).annotate({
|
|
1558
|
+
expected: "a string with at most 1500 code points",
|
|
1559
|
+
}),
|
|
1560
|
+
),
|
|
1561
|
+
Schema.Literal(""),
|
|
1562
|
+
]),
|
|
1563
|
+
),
|
|
1564
|
+
footer: Schema.optionalKey(
|
|
1565
|
+
Schema.Union([
|
|
1566
|
+
Schema.String.check(
|
|
1567
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1568
|
+
expected: "a string with at most 5000 code points",
|
|
1569
|
+
}),
|
|
1570
|
+
),
|
|
1571
|
+
Schema.Literal(""),
|
|
1572
|
+
]),
|
|
1573
|
+
),
|
|
1574
|
+
issuer: Schema.optionalKey(
|
|
1575
|
+
Schema.StructWithRest(
|
|
1576
|
+
Schema.Struct({
|
|
1577
|
+
account: Schema.optionalKey(Schema.String),
|
|
1578
|
+
type: Schema.Literals(["account", "self"]),
|
|
1579
|
+
}),
|
|
1580
|
+
[
|
|
1581
|
+
Schema.Record(
|
|
1582
|
+
Schema.String,
|
|
1583
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1584
|
+
),
|
|
1585
|
+
],
|
|
1586
|
+
).annotate({ title: "param" }),
|
|
1587
|
+
),
|
|
1588
|
+
}),
|
|
1589
|
+
[
|
|
1590
|
+
Schema.Record(
|
|
1591
|
+
Schema.String,
|
|
1592
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1593
|
+
),
|
|
1594
|
+
],
|
|
1595
|
+
).annotate({ title: "schedule_phase_invoice_settings" }),
|
|
1596
|
+
),
|
|
1597
|
+
items: Schema.Array(
|
|
1598
|
+
Schema.StructWithRest(
|
|
1599
|
+
Schema.Struct({
|
|
1600
|
+
billing_thresholds: Schema.optionalKey(
|
|
1601
|
+
Schema.Union([
|
|
1602
|
+
Schema.StructWithRest(
|
|
1603
|
+
Schema.Struct({ usage_gte: Schema.Int }),
|
|
1604
|
+
[
|
|
1605
|
+
Schema.Record(
|
|
1606
|
+
Schema.String,
|
|
1607
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1608
|
+
),
|
|
1609
|
+
],
|
|
1610
|
+
).annotate({ title: "item_billing_thresholds_param" }),
|
|
1611
|
+
Schema.Literal(""),
|
|
1612
|
+
]),
|
|
1613
|
+
),
|
|
1614
|
+
discounts: Schema.optionalKey(
|
|
1615
|
+
Schema.Union([
|
|
1616
|
+
Schema.Array(
|
|
1617
|
+
Schema.StructWithRest(
|
|
1618
|
+
Schema.Struct({
|
|
1619
|
+
coupon: Schema.optionalKey(
|
|
1620
|
+
Schema.String.check(
|
|
1621
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1622
|
+
expected:
|
|
1623
|
+
"a string with at most 5000 code points",
|
|
1624
|
+
}),
|
|
1625
|
+
),
|
|
1626
|
+
),
|
|
1627
|
+
discount: Schema.optionalKey(
|
|
1628
|
+
Schema.String.check(
|
|
1629
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1630
|
+
expected:
|
|
1631
|
+
"a string with at most 5000 code points",
|
|
1632
|
+
}),
|
|
1633
|
+
),
|
|
1634
|
+
),
|
|
1635
|
+
promotion_code: Schema.optionalKey(
|
|
1636
|
+
Schema.String.check(
|
|
1637
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1638
|
+
expected:
|
|
1639
|
+
"a string with at most 5000 code points",
|
|
1640
|
+
}),
|
|
1641
|
+
),
|
|
1642
|
+
),
|
|
1643
|
+
}),
|
|
1644
|
+
[
|
|
1645
|
+
Schema.Record(
|
|
1646
|
+
Schema.String,
|
|
1647
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1648
|
+
),
|
|
1649
|
+
],
|
|
1650
|
+
).annotate({ title: "schedule_discounts_data_param" }),
|
|
1651
|
+
),
|
|
1652
|
+
Schema.Literal(""),
|
|
1653
|
+
]),
|
|
1654
|
+
),
|
|
1655
|
+
metadata: Schema.optionalKey(
|
|
1656
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1657
|
+
),
|
|
1658
|
+
price: Schema.optionalKey(
|
|
1659
|
+
Schema.String.check(
|
|
1660
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1661
|
+
expected: "a string with at most 5000 code points",
|
|
1662
|
+
}),
|
|
1663
|
+
),
|
|
1664
|
+
),
|
|
1665
|
+
price_data: Schema.optionalKey(
|
|
1666
|
+
Schema.StructWithRest(
|
|
1667
|
+
Schema.Struct({
|
|
1668
|
+
currency: Schema.String.annotate({ format: "currency" }),
|
|
1669
|
+
product: Schema.String.check(
|
|
1670
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1671
|
+
expected: "a string with at most 5000 code points",
|
|
1672
|
+
}),
|
|
1673
|
+
),
|
|
1674
|
+
recurring: Schema.StructWithRest(
|
|
1675
|
+
Schema.Struct({
|
|
1676
|
+
interval: Schema.Literals([
|
|
1677
|
+
"day",
|
|
1678
|
+
"month",
|
|
1679
|
+
"week",
|
|
1680
|
+
"year",
|
|
1681
|
+
]),
|
|
1682
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
1683
|
+
}),
|
|
1684
|
+
[
|
|
1685
|
+
Schema.Record(
|
|
1686
|
+
Schema.String,
|
|
1687
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1688
|
+
),
|
|
1689
|
+
],
|
|
1690
|
+
).annotate({ title: "recurring_adhoc" }),
|
|
1691
|
+
tax_behavior: Schema.optionalKey(
|
|
1692
|
+
Schema.Literals([
|
|
1693
|
+
"exclusive",
|
|
1694
|
+
"inclusive",
|
|
1695
|
+
"unspecified",
|
|
1696
|
+
]),
|
|
1697
|
+
),
|
|
1698
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
1699
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
1700
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
1701
|
+
),
|
|
1702
|
+
}),
|
|
1703
|
+
[
|
|
1704
|
+
Schema.Record(
|
|
1705
|
+
Schema.String,
|
|
1706
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1707
|
+
),
|
|
1708
|
+
],
|
|
1709
|
+
).annotate({ title: "recurring_price_data" }),
|
|
1710
|
+
),
|
|
1711
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
1712
|
+
tax_rates: Schema.optionalKey(
|
|
1713
|
+
Schema.Union([
|
|
1714
|
+
Schema.Array(
|
|
1715
|
+
Schema.String.check(
|
|
1716
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1717
|
+
expected: "a string with at most 5000 code points",
|
|
1718
|
+
}),
|
|
1719
|
+
),
|
|
1720
|
+
),
|
|
1721
|
+
Schema.Literal(""),
|
|
1722
|
+
]),
|
|
1723
|
+
),
|
|
1724
|
+
}),
|
|
1725
|
+
[
|
|
1726
|
+
Schema.Record(
|
|
1727
|
+
Schema.String,
|
|
1728
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1729
|
+
),
|
|
1730
|
+
],
|
|
1731
|
+
).annotate({ title: "configuration_item_params" }),
|
|
1732
|
+
),
|
|
1733
|
+
metadata: Schema.optionalKey(
|
|
1734
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1735
|
+
),
|
|
1736
|
+
on_behalf_of: Schema.optionalKey(Schema.String),
|
|
1737
|
+
proration_behavior: Schema.optionalKey(
|
|
1738
|
+
Schema.Literals(["always_invoice", "create_prorations", "none"]),
|
|
1739
|
+
),
|
|
1740
|
+
transfer_data: Schema.optionalKey(
|
|
1741
|
+
Schema.StructWithRest(
|
|
1742
|
+
Schema.Struct({
|
|
1743
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
1744
|
+
destination: Schema.String,
|
|
1745
|
+
}),
|
|
1746
|
+
[
|
|
1747
|
+
Schema.Record(
|
|
1748
|
+
Schema.String,
|
|
1749
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1750
|
+
),
|
|
1751
|
+
],
|
|
1752
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
1753
|
+
),
|
|
1754
|
+
trial: Schema.optionalKey(Schema.Boolean),
|
|
1755
|
+
trial_end: Schema.optionalKey(
|
|
1756
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1757
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1758
|
+
),
|
|
1759
|
+
),
|
|
1760
|
+
}),
|
|
1761
|
+
[
|
|
1762
|
+
Schema.Record(
|
|
1763
|
+
Schema.String,
|
|
1764
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1765
|
+
),
|
|
1766
|
+
],
|
|
1767
|
+
).annotate({ title: "phase_configuration_params" }),
|
|
1768
|
+
).annotate({
|
|
1769
|
+
description:
|
|
1770
|
+
"List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.",
|
|
1771
|
+
}),
|
|
1772
|
+
),
|
|
1773
|
+
start_date: Schema.optionalKey(
|
|
1774
|
+
Schema.Union([
|
|
1775
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1776
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1777
|
+
),
|
|
1778
|
+
Schema.Literal("now"),
|
|
1779
|
+
]).annotate({
|
|
1780
|
+
description:
|
|
1781
|
+
"When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately, and to avoid unexpected behavior due to request delays or clock skew resulting in a slightly backdated or postdated start. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.",
|
|
1782
|
+
}),
|
|
1783
|
+
),
|
|
1784
|
+
});
|
|
1785
|
+
export const PostSubscriptionSchedulesOutput = Stripesubscription_schedule;
|
|
1786
|
+
export const PostSubscriptionSchedulesError = Stripeerror;
|
|
1787
|
+
export const GetSubscriptionSchedulesScheduleInput = Schema.Struct({
|
|
1788
|
+
expand: Schema.optionalKey(
|
|
1789
|
+
Schema.Array(
|
|
1790
|
+
Schema.String.check(
|
|
1791
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1792
|
+
expected: "a string with at most 5000 code points",
|
|
1793
|
+
}),
|
|
1794
|
+
),
|
|
1795
|
+
),
|
|
1796
|
+
),
|
|
1797
|
+
schedule: Schema.String.check(
|
|
1798
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1799
|
+
expected: "a string with at most 5000 code points",
|
|
1800
|
+
}),
|
|
1801
|
+
),
|
|
1802
|
+
});
|
|
1803
|
+
export const GetSubscriptionSchedulesScheduleOutput =
|
|
1804
|
+
Stripesubscription_schedule;
|
|
1805
|
+
export const GetSubscriptionSchedulesScheduleError = Stripeerror;
|
|
1806
|
+
export const PostSubscriptionSchedulesScheduleInput = Schema.Struct({
|
|
1807
|
+
default_settings: Schema.optionalKey(
|
|
1808
|
+
Schema.StructWithRest(
|
|
1809
|
+
Schema.Struct({
|
|
1810
|
+
application_fee_percent: Schema.optionalKey(Schema.Finite),
|
|
1811
|
+
automatic_tax: Schema.optionalKey(
|
|
1812
|
+
Schema.StructWithRest(
|
|
1813
|
+
Schema.Struct({
|
|
1814
|
+
enabled: Schema.Boolean,
|
|
1815
|
+
liability: Schema.optionalKey(
|
|
1816
|
+
Schema.StructWithRest(
|
|
1817
|
+
Schema.Struct({
|
|
1818
|
+
account: Schema.optionalKey(Schema.String),
|
|
1819
|
+
type: Schema.Literals(["account", "self"]),
|
|
1820
|
+
}),
|
|
1821
|
+
[
|
|
1822
|
+
Schema.Record(
|
|
1823
|
+
Schema.String,
|
|
1824
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1825
|
+
),
|
|
1826
|
+
],
|
|
1827
|
+
).annotate({ title: "param" }),
|
|
1828
|
+
),
|
|
1829
|
+
}),
|
|
1830
|
+
[
|
|
1831
|
+
Schema.Record(
|
|
1832
|
+
Schema.String,
|
|
1833
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1834
|
+
),
|
|
1835
|
+
],
|
|
1836
|
+
).annotate({ title: "automatic_tax_config" }),
|
|
1837
|
+
),
|
|
1838
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
1839
|
+
Schema.Literals(["automatic", "phase_start"]),
|
|
1840
|
+
),
|
|
1841
|
+
billing_thresholds: Schema.optionalKey(
|
|
1842
|
+
Schema.Union([
|
|
1843
|
+
Schema.StructWithRest(
|
|
1844
|
+
Schema.Struct({
|
|
1845
|
+
amount_gte: Schema.optionalKey(Schema.Int),
|
|
1846
|
+
reset_billing_cycle_anchor: Schema.optionalKey(Schema.Boolean),
|
|
1847
|
+
}),
|
|
1848
|
+
[
|
|
1849
|
+
Schema.Record(
|
|
1850
|
+
Schema.String,
|
|
1851
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1852
|
+
),
|
|
1853
|
+
],
|
|
1854
|
+
).annotate({ title: "billing_thresholds_param" }),
|
|
1855
|
+
Schema.Literal(""),
|
|
1856
|
+
]),
|
|
1857
|
+
),
|
|
1858
|
+
collection_method: Schema.optionalKey(
|
|
1859
|
+
Schema.Literals(["charge_automatically", "send_invoice"]),
|
|
1860
|
+
),
|
|
1861
|
+
default_payment_method: Schema.optionalKey(
|
|
1862
|
+
Schema.String.check(
|
|
1863
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1864
|
+
expected: "a string with at most 5000 code points",
|
|
1865
|
+
}),
|
|
1866
|
+
),
|
|
1867
|
+
),
|
|
1868
|
+
description: Schema.optionalKey(
|
|
1869
|
+
Schema.Union([
|
|
1870
|
+
Schema.String.check(
|
|
1871
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1872
|
+
expected: "a string with at most 500 code points",
|
|
1873
|
+
}),
|
|
1874
|
+
),
|
|
1875
|
+
Schema.Literal(""),
|
|
1876
|
+
]),
|
|
1877
|
+
),
|
|
1878
|
+
invoice_settings: Schema.optionalKey(
|
|
1879
|
+
Schema.StructWithRest(
|
|
1880
|
+
Schema.Struct({
|
|
1881
|
+
account_tax_ids: Schema.optionalKey(
|
|
1882
|
+
Schema.Union([
|
|
1883
|
+
Schema.Array(
|
|
1884
|
+
Schema.String.check(
|
|
1885
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1886
|
+
expected: "a string with at most 5000 code points",
|
|
1887
|
+
}),
|
|
1888
|
+
),
|
|
1889
|
+
),
|
|
1890
|
+
Schema.Literal(""),
|
|
1891
|
+
]),
|
|
1892
|
+
),
|
|
1893
|
+
custom_fields: Schema.optionalKey(
|
|
1894
|
+
Schema.Union([
|
|
1895
|
+
Schema.Array(
|
|
1896
|
+
Schema.StructWithRest(
|
|
1897
|
+
Schema.Struct({
|
|
1898
|
+
name: Schema.String.check(
|
|
1899
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
1900
|
+
expected: "a string with at most 40 code points",
|
|
1901
|
+
}),
|
|
1902
|
+
),
|
|
1903
|
+
value: Schema.String.check(
|
|
1904
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
1905
|
+
expected: "a string with at most 140 code points",
|
|
1906
|
+
}),
|
|
1907
|
+
),
|
|
1908
|
+
}),
|
|
1909
|
+
[
|
|
1910
|
+
Schema.Record(
|
|
1911
|
+
Schema.String,
|
|
1912
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1913
|
+
),
|
|
1914
|
+
],
|
|
1915
|
+
).annotate({ title: "custom_field_params" }),
|
|
1916
|
+
),
|
|
1917
|
+
Schema.Literal(""),
|
|
1918
|
+
]),
|
|
1919
|
+
),
|
|
1920
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
1921
|
+
description: Schema.optionalKey(
|
|
1922
|
+
Schema.Union([
|
|
1923
|
+
Schema.String.check(
|
|
1924
|
+
Schema.isMaxCodePoints(1500).annotate({
|
|
1925
|
+
expected: "a string with at most 1500 code points",
|
|
1926
|
+
}),
|
|
1927
|
+
),
|
|
1928
|
+
Schema.Literal(""),
|
|
1929
|
+
]),
|
|
1930
|
+
),
|
|
1931
|
+
footer: Schema.optionalKey(
|
|
1932
|
+
Schema.Union([
|
|
1933
|
+
Schema.String.check(
|
|
1934
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1935
|
+
expected: "a string with at most 5000 code points",
|
|
1936
|
+
}),
|
|
1937
|
+
),
|
|
1938
|
+
Schema.Literal(""),
|
|
1939
|
+
]),
|
|
1940
|
+
),
|
|
1941
|
+
issuer: Schema.optionalKey(
|
|
1942
|
+
Schema.StructWithRest(
|
|
1943
|
+
Schema.Struct({
|
|
1944
|
+
account: Schema.optionalKey(Schema.String),
|
|
1945
|
+
type: Schema.Literals(["account", "self"]),
|
|
1946
|
+
}),
|
|
1947
|
+
[
|
|
1948
|
+
Schema.Record(
|
|
1949
|
+
Schema.String,
|
|
1950
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1951
|
+
),
|
|
1952
|
+
],
|
|
1953
|
+
).annotate({ title: "param" }),
|
|
1954
|
+
),
|
|
1955
|
+
}),
|
|
1956
|
+
[
|
|
1957
|
+
Schema.Record(
|
|
1958
|
+
Schema.String,
|
|
1959
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1960
|
+
),
|
|
1961
|
+
],
|
|
1962
|
+
).annotate({ title: "subscription_schedule_default_settings_param" }),
|
|
1963
|
+
),
|
|
1964
|
+
on_behalf_of: Schema.optionalKey(
|
|
1965
|
+
Schema.Union([Schema.String, Schema.Literal("")]),
|
|
1966
|
+
),
|
|
1967
|
+
transfer_data: Schema.optionalKey(
|
|
1968
|
+
Schema.Union([
|
|
1969
|
+
Schema.StructWithRest(
|
|
1970
|
+
Schema.Struct({
|
|
1971
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
1972
|
+
destination: Schema.String,
|
|
1973
|
+
}),
|
|
1974
|
+
[
|
|
1975
|
+
Schema.Record(
|
|
1976
|
+
Schema.String,
|
|
1977
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1978
|
+
),
|
|
1979
|
+
],
|
|
1980
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
1981
|
+
Schema.Literal(""),
|
|
1982
|
+
]),
|
|
1983
|
+
),
|
|
1984
|
+
}),
|
|
1985
|
+
[
|
|
1986
|
+
Schema.Record(
|
|
1987
|
+
Schema.String,
|
|
1988
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1989
|
+
),
|
|
1990
|
+
],
|
|
1991
|
+
).annotate({
|
|
1992
|
+
title: "default_settings_params",
|
|
1993
|
+
description:
|
|
1994
|
+
"Object representing the subscription schedule's default settings.",
|
|
1995
|
+
}),
|
|
1996
|
+
),
|
|
1997
|
+
end_behavior: Schema.optionalKey(
|
|
1998
|
+
Schema.Literals(["cancel", "none", "release", "renew"]).annotate({
|
|
1999
|
+
description:
|
|
2000
|
+
"Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.",
|
|
2001
|
+
}),
|
|
2002
|
+
),
|
|
2003
|
+
expand: Schema.optionalKey(
|
|
2004
|
+
Schema.Array(
|
|
2005
|
+
Schema.String.check(
|
|
2006
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2007
|
+
expected: "a string with at most 5000 code points",
|
|
2008
|
+
}),
|
|
2009
|
+
),
|
|
2010
|
+
).annotate({
|
|
2011
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
2012
|
+
}),
|
|
2013
|
+
),
|
|
2014
|
+
metadata: Schema.optionalKey(
|
|
2015
|
+
Schema.Union([
|
|
2016
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2017
|
+
Schema.Literal(""),
|
|
2018
|
+
]).annotate({
|
|
2019
|
+
description:
|
|
2020
|
+
"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
|
|
2021
|
+
}),
|
|
2022
|
+
),
|
|
2023
|
+
pause_schedules: Schema.optionalKey(
|
|
2024
|
+
Schema.Union([
|
|
2025
|
+
Schema.Array(
|
|
2026
|
+
Schema.StructWithRest(
|
|
2027
|
+
Schema.Struct({
|
|
2028
|
+
key: Schema.optionalKey(
|
|
2029
|
+
Schema.String.check(
|
|
2030
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
2031
|
+
expected: "a string with at most 40 code points",
|
|
2032
|
+
}),
|
|
2033
|
+
),
|
|
2034
|
+
),
|
|
2035
|
+
pause: Schema.optionalKey(
|
|
2036
|
+
Schema.StructWithRest(
|
|
2037
|
+
Schema.Struct({
|
|
2038
|
+
pause_at: Schema.optionalKey(
|
|
2039
|
+
Schema.StructWithRest(
|
|
2040
|
+
Schema.Struct({
|
|
2041
|
+
timestamp: Schema.optionalKey(
|
|
2042
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
2043
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
2044
|
+
),
|
|
2045
|
+
),
|
|
2046
|
+
type: Schema.Literals(["now", "timestamp"]),
|
|
2047
|
+
}),
|
|
2048
|
+
[
|
|
2049
|
+
Schema.Record(
|
|
2050
|
+
Schema.String,
|
|
2051
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2052
|
+
),
|
|
2053
|
+
],
|
|
2054
|
+
).annotate({ title: "pause_at_params" }),
|
|
2055
|
+
),
|
|
2056
|
+
settings: Schema.optionalKey(
|
|
2057
|
+
Schema.StructWithRest(
|
|
2058
|
+
Schema.Struct({
|
|
2059
|
+
bill_for: Schema.optionalKey(
|
|
2060
|
+
Schema.StructWithRest(
|
|
2061
|
+
Schema.Struct({
|
|
2062
|
+
outstanding_usage_through: Schema.optionalKey(
|
|
2063
|
+
Schema.StructWithRest(
|
|
2064
|
+
Schema.Struct({
|
|
2065
|
+
type: Schema.optionalKey(
|
|
2066
|
+
Schema.Literals(["none", "pause_at"]),
|
|
2067
|
+
),
|
|
2068
|
+
}),
|
|
2069
|
+
[
|
|
2070
|
+
Schema.Record(
|
|
2071
|
+
Schema.String,
|
|
2072
|
+
Schema.Json.annotate({
|
|
2073
|
+
expected: "JSON value",
|
|
2074
|
+
}),
|
|
2075
|
+
),
|
|
2076
|
+
],
|
|
2077
|
+
).annotate({
|
|
2078
|
+
title:
|
|
2079
|
+
"pause_settings_bill_for_outstanding_usage_through_params",
|
|
2080
|
+
}),
|
|
2081
|
+
),
|
|
2082
|
+
unused_time_from: Schema.optionalKey(
|
|
2083
|
+
Schema.StructWithRest(
|
|
2084
|
+
Schema.Struct({
|
|
2085
|
+
type: Schema.optionalKey(
|
|
2086
|
+
Schema.Literals([
|
|
2087
|
+
"item_current_period_start",
|
|
2088
|
+
"none",
|
|
2089
|
+
"pause_at",
|
|
2090
|
+
]),
|
|
2091
|
+
),
|
|
2092
|
+
}),
|
|
2093
|
+
[
|
|
2094
|
+
Schema.Record(
|
|
2095
|
+
Schema.String,
|
|
2096
|
+
Schema.Json.annotate({
|
|
2097
|
+
expected: "JSON value",
|
|
2098
|
+
}),
|
|
2099
|
+
),
|
|
2100
|
+
],
|
|
2101
|
+
).annotate({
|
|
2102
|
+
title:
|
|
2103
|
+
"pause_settings_bill_for_unused_time_from_params",
|
|
2104
|
+
}),
|
|
2105
|
+
),
|
|
2106
|
+
}),
|
|
2107
|
+
[
|
|
2108
|
+
Schema.Record(
|
|
2109
|
+
Schema.String,
|
|
2110
|
+
Schema.Json.annotate({
|
|
2111
|
+
expected: "JSON value",
|
|
2112
|
+
}),
|
|
2113
|
+
),
|
|
2114
|
+
],
|
|
2115
|
+
).annotate({
|
|
2116
|
+
title: "pause_settings_bill_for_params",
|
|
2117
|
+
}),
|
|
2118
|
+
),
|
|
2119
|
+
invoicing_behavior: Schema.optionalKey(
|
|
2120
|
+
Schema.Literals(["invoice", "pending_invoice_item"]),
|
|
2121
|
+
),
|
|
2122
|
+
type: Schema.optionalKey(
|
|
2123
|
+
Schema.Literal("subscription"),
|
|
2124
|
+
),
|
|
2125
|
+
}),
|
|
2126
|
+
[
|
|
2127
|
+
Schema.Record(
|
|
2128
|
+
Schema.String,
|
|
2129
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2130
|
+
),
|
|
2131
|
+
],
|
|
2132
|
+
).annotate({ title: "pause_settings_params" }),
|
|
2133
|
+
),
|
|
2134
|
+
}),
|
|
2135
|
+
[
|
|
2136
|
+
Schema.Record(
|
|
2137
|
+
Schema.String,
|
|
2138
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2139
|
+
),
|
|
2140
|
+
],
|
|
2141
|
+
).annotate({ title: "pause_schedule_update_pause_params" }),
|
|
2142
|
+
),
|
|
2143
|
+
resume: Schema.optionalKey(
|
|
2144
|
+
Schema.Union([
|
|
2145
|
+
Schema.StructWithRest(
|
|
2146
|
+
Schema.Struct({
|
|
2147
|
+
resume_at: Schema.optionalKey(
|
|
2148
|
+
Schema.StructWithRest(
|
|
2149
|
+
Schema.Struct({
|
|
2150
|
+
duration: Schema.optionalKey(
|
|
2151
|
+
Schema.StructWithRest(
|
|
2152
|
+
Schema.Struct({
|
|
2153
|
+
interval: Schema.Literals([
|
|
2154
|
+
"day",
|
|
2155
|
+
"month",
|
|
2156
|
+
"week",
|
|
2157
|
+
"year",
|
|
2158
|
+
]),
|
|
2159
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
2160
|
+
}),
|
|
2161
|
+
[
|
|
2162
|
+
Schema.Record(
|
|
2163
|
+
Schema.String,
|
|
2164
|
+
Schema.Json.annotate({
|
|
2165
|
+
expected: "JSON value",
|
|
2166
|
+
}),
|
|
2167
|
+
),
|
|
2168
|
+
],
|
|
2169
|
+
).annotate({ title: "resume_at_duration_params" }),
|
|
2170
|
+
),
|
|
2171
|
+
timestamp: Schema.optionalKey(
|
|
2172
|
+
Schema.Number.annotate({
|
|
2173
|
+
format: "unix-time",
|
|
2174
|
+
}).check(
|
|
2175
|
+
Schema.isInt().annotate({
|
|
2176
|
+
expected: "an integer",
|
|
2177
|
+
}),
|
|
2178
|
+
),
|
|
2179
|
+
),
|
|
2180
|
+
type: Schema.Literals([
|
|
2181
|
+
"duration",
|
|
2182
|
+
"now",
|
|
2183
|
+
"timestamp",
|
|
2184
|
+
]),
|
|
2185
|
+
}),
|
|
2186
|
+
[
|
|
2187
|
+
Schema.Record(
|
|
2188
|
+
Schema.String,
|
|
2189
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2190
|
+
),
|
|
2191
|
+
],
|
|
2192
|
+
).annotate({ title: "resume_at_params" }),
|
|
2193
|
+
),
|
|
2194
|
+
settings: Schema.optionalKey(
|
|
2195
|
+
Schema.StructWithRest(
|
|
2196
|
+
Schema.Struct({
|
|
2197
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
2198
|
+
Schema.Literals(["resume_at", "unchanged"]),
|
|
2199
|
+
),
|
|
2200
|
+
payment_behavior: Schema.optionalKey(
|
|
2201
|
+
Schema.Literals([
|
|
2202
|
+
"resume_on_payment_attempt",
|
|
2203
|
+
"resume_on_payment_success",
|
|
2204
|
+
]),
|
|
2205
|
+
),
|
|
2206
|
+
proration_behavior: Schema.optionalKey(
|
|
2207
|
+
Schema.Literals([
|
|
2208
|
+
"always_invoice",
|
|
2209
|
+
"create_prorations",
|
|
2210
|
+
"none",
|
|
2211
|
+
]),
|
|
2212
|
+
),
|
|
2213
|
+
}),
|
|
2214
|
+
[
|
|
2215
|
+
Schema.Record(
|
|
2216
|
+
Schema.String,
|
|
2217
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2218
|
+
),
|
|
2219
|
+
],
|
|
2220
|
+
).annotate({ title: "resume_settings_params" }),
|
|
2221
|
+
),
|
|
2222
|
+
}),
|
|
2223
|
+
[
|
|
2224
|
+
Schema.Record(
|
|
2225
|
+
Schema.String,
|
|
2226
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2227
|
+
),
|
|
2228
|
+
],
|
|
2229
|
+
).annotate({ title: "pause_schedule_update_resume_params" }),
|
|
2230
|
+
Schema.Literal(""),
|
|
2231
|
+
]),
|
|
2232
|
+
),
|
|
2233
|
+
}),
|
|
2234
|
+
[
|
|
2235
|
+
Schema.Record(
|
|
2236
|
+
Schema.String,
|
|
2237
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2238
|
+
),
|
|
2239
|
+
],
|
|
2240
|
+
).annotate({ title: "pause_schedules_update_params" }),
|
|
2241
|
+
),
|
|
2242
|
+
Schema.Literal(""),
|
|
2243
|
+
]).annotate({
|
|
2244
|
+
description:
|
|
2245
|
+
'The subscription\'s pause behavior and optional resume behavior. You can provide one entry. Include its `key` to update an existing pause schedule. Omit `pause_schedules` to leave the existing schedule unchanged, or pass an empty string (`""`) to clear it.',
|
|
2246
|
+
}),
|
|
2247
|
+
),
|
|
2248
|
+
phases: Schema.optionalKey(
|
|
2249
|
+
Schema.Array(
|
|
2250
|
+
Schema.StructWithRest(
|
|
2251
|
+
Schema.Struct({
|
|
2252
|
+
add_invoice_items: Schema.optionalKey(
|
|
2253
|
+
Schema.Array(
|
|
2254
|
+
Schema.StructWithRest(
|
|
2255
|
+
Schema.Struct({
|
|
2256
|
+
discountable: Schema.optionalKey(Schema.Boolean),
|
|
2257
|
+
discounts: Schema.optionalKey(
|
|
2258
|
+
Schema.Array(
|
|
2259
|
+
Schema.StructWithRest(
|
|
2260
|
+
Schema.Struct({
|
|
2261
|
+
coupon: Schema.optionalKey(
|
|
2262
|
+
Schema.String.check(
|
|
2263
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2264
|
+
expected:
|
|
2265
|
+
"a string with at most 5000 code points",
|
|
2266
|
+
}),
|
|
2267
|
+
),
|
|
2268
|
+
),
|
|
2269
|
+
discount: Schema.optionalKey(
|
|
2270
|
+
Schema.String.check(
|
|
2271
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2272
|
+
expected:
|
|
2273
|
+
"a string with at most 5000 code points",
|
|
2274
|
+
}),
|
|
2275
|
+
),
|
|
2276
|
+
),
|
|
2277
|
+
promotion_code: Schema.optionalKey(
|
|
2278
|
+
Schema.String.check(
|
|
2279
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2280
|
+
expected:
|
|
2281
|
+
"a string with at most 5000 code points",
|
|
2282
|
+
}),
|
|
2283
|
+
),
|
|
2284
|
+
),
|
|
2285
|
+
}),
|
|
2286
|
+
[
|
|
2287
|
+
Schema.Record(
|
|
2288
|
+
Schema.String,
|
|
2289
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2290
|
+
),
|
|
2291
|
+
],
|
|
2292
|
+
).annotate({ title: "discounts_data_param" }),
|
|
2293
|
+
),
|
|
2294
|
+
),
|
|
2295
|
+
metadata: Schema.optionalKey(
|
|
2296
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2297
|
+
),
|
|
2298
|
+
period: Schema.optionalKey(
|
|
2299
|
+
Schema.StructWithRest(
|
|
2300
|
+
Schema.Struct({
|
|
2301
|
+
end: Schema.StructWithRest(
|
|
2302
|
+
Schema.Struct({
|
|
2303
|
+
timestamp: Schema.optionalKey(
|
|
2304
|
+
Schema.Number.annotate({
|
|
2305
|
+
format: "unix-time",
|
|
2306
|
+
}).check(
|
|
2307
|
+
Schema.isInt().annotate({
|
|
2308
|
+
expected: "an integer",
|
|
2309
|
+
}),
|
|
2310
|
+
),
|
|
2311
|
+
),
|
|
2312
|
+
type: Schema.Literals([
|
|
2313
|
+
"min_item_period_end",
|
|
2314
|
+
"phase_end",
|
|
2315
|
+
"timestamp",
|
|
2316
|
+
]),
|
|
2317
|
+
}),
|
|
2318
|
+
[
|
|
2319
|
+
Schema.Record(
|
|
2320
|
+
Schema.String,
|
|
2321
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2322
|
+
),
|
|
2323
|
+
],
|
|
2324
|
+
).annotate({ title: "invoice_item_period_end" }),
|
|
2325
|
+
start: Schema.StructWithRest(
|
|
2326
|
+
Schema.Struct({
|
|
2327
|
+
timestamp: Schema.optionalKey(
|
|
2328
|
+
Schema.Number.annotate({
|
|
2329
|
+
format: "unix-time",
|
|
2330
|
+
}).check(
|
|
2331
|
+
Schema.isInt().annotate({
|
|
2332
|
+
expected: "an integer",
|
|
2333
|
+
}),
|
|
2334
|
+
),
|
|
2335
|
+
),
|
|
2336
|
+
type: Schema.Literals([
|
|
2337
|
+
"max_item_period_start",
|
|
2338
|
+
"phase_start",
|
|
2339
|
+
"timestamp",
|
|
2340
|
+
]),
|
|
2341
|
+
}),
|
|
2342
|
+
[
|
|
2343
|
+
Schema.Record(
|
|
2344
|
+
Schema.String,
|
|
2345
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2346
|
+
),
|
|
2347
|
+
],
|
|
2348
|
+
).annotate({ title: "invoice_item_period_start" }),
|
|
2349
|
+
}),
|
|
2350
|
+
[
|
|
2351
|
+
Schema.Record(
|
|
2352
|
+
Schema.String,
|
|
2353
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2354
|
+
),
|
|
2355
|
+
],
|
|
2356
|
+
).annotate({ title: "invoice_item_period" }),
|
|
2357
|
+
),
|
|
2358
|
+
price: Schema.optionalKey(
|
|
2359
|
+
Schema.String.check(
|
|
2360
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2361
|
+
expected: "a string with at most 5000 code points",
|
|
2362
|
+
}),
|
|
2363
|
+
),
|
|
2364
|
+
),
|
|
2365
|
+
price_data: Schema.optionalKey(
|
|
2366
|
+
Schema.StructWithRest(
|
|
2367
|
+
Schema.Struct({
|
|
2368
|
+
currency: Schema.String.annotate({
|
|
2369
|
+
format: "currency",
|
|
2370
|
+
}),
|
|
2371
|
+
product: Schema.String.check(
|
|
2372
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2373
|
+
expected: "a string with at most 5000 code points",
|
|
2374
|
+
}),
|
|
2375
|
+
),
|
|
2376
|
+
tax_behavior: Schema.optionalKey(
|
|
2377
|
+
Schema.Literals([
|
|
2378
|
+
"exclusive",
|
|
2379
|
+
"inclusive",
|
|
2380
|
+
"unspecified",
|
|
2381
|
+
]),
|
|
2382
|
+
),
|
|
2383
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
2384
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
2385
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
2386
|
+
),
|
|
2387
|
+
}),
|
|
2388
|
+
[
|
|
2389
|
+
Schema.Record(
|
|
2390
|
+
Schema.String,
|
|
2391
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2392
|
+
),
|
|
2393
|
+
],
|
|
2394
|
+
).annotate({
|
|
2395
|
+
title: "one_time_price_data_with_negative_amounts",
|
|
2396
|
+
}),
|
|
2397
|
+
),
|
|
2398
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
2399
|
+
tax_rates: Schema.optionalKey(
|
|
2400
|
+
Schema.Union([
|
|
2401
|
+
Schema.Array(
|
|
2402
|
+
Schema.String.check(
|
|
2403
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2404
|
+
expected: "a string with at most 5000 code points",
|
|
2405
|
+
}),
|
|
2406
|
+
),
|
|
2407
|
+
),
|
|
2408
|
+
Schema.Literal(""),
|
|
2409
|
+
]),
|
|
2410
|
+
),
|
|
2411
|
+
}),
|
|
2412
|
+
[
|
|
2413
|
+
Schema.Record(
|
|
2414
|
+
Schema.String,
|
|
2415
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2416
|
+
),
|
|
2417
|
+
],
|
|
2418
|
+
).annotate({ title: "add_invoice_item_entry" }),
|
|
2419
|
+
),
|
|
2420
|
+
),
|
|
2421
|
+
application_fee_percent: Schema.optionalKey(Schema.Finite),
|
|
2422
|
+
automatic_tax: Schema.optionalKey(
|
|
2423
|
+
Schema.StructWithRest(
|
|
2424
|
+
Schema.Struct({
|
|
2425
|
+
enabled: Schema.Boolean,
|
|
2426
|
+
liability: Schema.optionalKey(
|
|
2427
|
+
Schema.StructWithRest(
|
|
2428
|
+
Schema.Struct({
|
|
2429
|
+
account: Schema.optionalKey(Schema.String),
|
|
2430
|
+
type: Schema.Literals(["account", "self"]),
|
|
2431
|
+
}),
|
|
2432
|
+
[
|
|
2433
|
+
Schema.Record(
|
|
2434
|
+
Schema.String,
|
|
2435
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2436
|
+
),
|
|
2437
|
+
],
|
|
2438
|
+
).annotate({ title: "param" }),
|
|
2439
|
+
),
|
|
2440
|
+
}),
|
|
2441
|
+
[
|
|
2442
|
+
Schema.Record(
|
|
2443
|
+
Schema.String,
|
|
2444
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2445
|
+
),
|
|
2446
|
+
],
|
|
2447
|
+
).annotate({ title: "automatic_tax_config" }),
|
|
2448
|
+
),
|
|
2449
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
2450
|
+
Schema.Literals(["automatic", "phase_start"]),
|
|
2451
|
+
),
|
|
2452
|
+
billing_thresholds: Schema.optionalKey(
|
|
2453
|
+
Schema.Union([
|
|
2454
|
+
Schema.StructWithRest(
|
|
2455
|
+
Schema.Struct({
|
|
2456
|
+
amount_gte: Schema.optionalKey(Schema.Int),
|
|
2457
|
+
reset_billing_cycle_anchor: Schema.optionalKey(
|
|
2458
|
+
Schema.Boolean,
|
|
2459
|
+
),
|
|
2460
|
+
}),
|
|
2461
|
+
[
|
|
2462
|
+
Schema.Record(
|
|
2463
|
+
Schema.String,
|
|
2464
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2465
|
+
),
|
|
2466
|
+
],
|
|
2467
|
+
).annotate({ title: "billing_thresholds_param" }),
|
|
2468
|
+
Schema.Literal(""),
|
|
2469
|
+
]),
|
|
2470
|
+
),
|
|
2471
|
+
collection_method: Schema.optionalKey(
|
|
2472
|
+
Schema.Literals(["charge_automatically", "send_invoice"]),
|
|
2473
|
+
),
|
|
2474
|
+
default_payment_method: Schema.optionalKey(
|
|
2475
|
+
Schema.String.check(
|
|
2476
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2477
|
+
expected: "a string with at most 5000 code points",
|
|
2478
|
+
}),
|
|
2479
|
+
),
|
|
2480
|
+
),
|
|
2481
|
+
default_tax_rates: Schema.optionalKey(
|
|
2482
|
+
Schema.Union([
|
|
2483
|
+
Schema.Array(
|
|
2484
|
+
Schema.String.check(
|
|
2485
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2486
|
+
expected: "a string with at most 5000 code points",
|
|
2487
|
+
}),
|
|
2488
|
+
),
|
|
2489
|
+
),
|
|
2490
|
+
Schema.Literal(""),
|
|
2491
|
+
]),
|
|
2492
|
+
),
|
|
2493
|
+
description: Schema.optionalKey(
|
|
2494
|
+
Schema.Union([
|
|
2495
|
+
Schema.String.check(
|
|
2496
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
2497
|
+
expected: "a string with at most 500 code points",
|
|
2498
|
+
}),
|
|
2499
|
+
),
|
|
2500
|
+
Schema.Literal(""),
|
|
2501
|
+
]),
|
|
2502
|
+
),
|
|
2503
|
+
discounts: Schema.optionalKey(
|
|
2504
|
+
Schema.Union([
|
|
2505
|
+
Schema.Array(
|
|
2506
|
+
Schema.StructWithRest(
|
|
2507
|
+
Schema.Struct({
|
|
2508
|
+
coupon: Schema.optionalKey(
|
|
2509
|
+
Schema.String.check(
|
|
2510
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2511
|
+
expected: "a string with at most 5000 code points",
|
|
2512
|
+
}),
|
|
2513
|
+
),
|
|
2514
|
+
),
|
|
2515
|
+
discount: Schema.optionalKey(
|
|
2516
|
+
Schema.String.check(
|
|
2517
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2518
|
+
expected: "a string with at most 5000 code points",
|
|
2519
|
+
}),
|
|
2520
|
+
),
|
|
2521
|
+
),
|
|
2522
|
+
promotion_code: Schema.optionalKey(
|
|
2523
|
+
Schema.String.check(
|
|
2524
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2525
|
+
expected: "a string with at most 5000 code points",
|
|
2526
|
+
}),
|
|
2527
|
+
),
|
|
2528
|
+
),
|
|
2529
|
+
}),
|
|
2530
|
+
[
|
|
2531
|
+
Schema.Record(
|
|
2532
|
+
Schema.String,
|
|
2533
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2534
|
+
),
|
|
2535
|
+
],
|
|
2536
|
+
).annotate({ title: "schedule_discounts_data_param" }),
|
|
2537
|
+
),
|
|
2538
|
+
Schema.Literal(""),
|
|
2539
|
+
]),
|
|
2540
|
+
),
|
|
2541
|
+
duration: Schema.optionalKey(
|
|
2542
|
+
Schema.StructWithRest(
|
|
2543
|
+
Schema.Struct({
|
|
2544
|
+
interval: Schema.Literals(["day", "month", "week", "year"]),
|
|
2545
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
2546
|
+
}),
|
|
2547
|
+
[
|
|
2548
|
+
Schema.Record(
|
|
2549
|
+
Schema.String,
|
|
2550
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2551
|
+
),
|
|
2552
|
+
],
|
|
2553
|
+
).annotate({ title: "duration_params" }),
|
|
2554
|
+
),
|
|
2555
|
+
end_date: Schema.optionalKey(
|
|
2556
|
+
Schema.Union([
|
|
2557
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
2558
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
2559
|
+
),
|
|
2560
|
+
Schema.Literal("now"),
|
|
2561
|
+
]),
|
|
2562
|
+
),
|
|
2563
|
+
invoice_settings: Schema.optionalKey(
|
|
2564
|
+
Schema.StructWithRest(
|
|
2565
|
+
Schema.Struct({
|
|
2566
|
+
account_tax_ids: Schema.optionalKey(
|
|
2567
|
+
Schema.Union([
|
|
2568
|
+
Schema.Array(
|
|
2569
|
+
Schema.String.check(
|
|
2570
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2571
|
+
expected: "a string with at most 5000 code points",
|
|
2572
|
+
}),
|
|
2573
|
+
),
|
|
2574
|
+
),
|
|
2575
|
+
Schema.Literal(""),
|
|
2576
|
+
]),
|
|
2577
|
+
),
|
|
2578
|
+
custom_fields: Schema.optionalKey(
|
|
2579
|
+
Schema.Union([
|
|
2580
|
+
Schema.Array(
|
|
2581
|
+
Schema.StructWithRest(
|
|
2582
|
+
Schema.Struct({
|
|
2583
|
+
name: Schema.String.check(
|
|
2584
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
2585
|
+
expected: "a string with at most 40 code points",
|
|
2586
|
+
}),
|
|
2587
|
+
),
|
|
2588
|
+
value: Schema.String.check(
|
|
2589
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
2590
|
+
expected: "a string with at most 140 code points",
|
|
2591
|
+
}),
|
|
2592
|
+
),
|
|
2593
|
+
}),
|
|
2594
|
+
[
|
|
2595
|
+
Schema.Record(
|
|
2596
|
+
Schema.String,
|
|
2597
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2598
|
+
),
|
|
2599
|
+
],
|
|
2600
|
+
).annotate({ title: "custom_field_params" }),
|
|
2601
|
+
),
|
|
2602
|
+
Schema.Literal(""),
|
|
2603
|
+
]),
|
|
2604
|
+
),
|
|
2605
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
2606
|
+
description: Schema.optionalKey(
|
|
2607
|
+
Schema.Union([
|
|
2608
|
+
Schema.String.check(
|
|
2609
|
+
Schema.isMaxCodePoints(1500).annotate({
|
|
2610
|
+
expected: "a string with at most 1500 code points",
|
|
2611
|
+
}),
|
|
2612
|
+
),
|
|
2613
|
+
Schema.Literal(""),
|
|
2614
|
+
]),
|
|
2615
|
+
),
|
|
2616
|
+
footer: Schema.optionalKey(
|
|
2617
|
+
Schema.Union([
|
|
2618
|
+
Schema.String.check(
|
|
2619
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2620
|
+
expected: "a string with at most 5000 code points",
|
|
2621
|
+
}),
|
|
2622
|
+
),
|
|
2623
|
+
Schema.Literal(""),
|
|
2624
|
+
]),
|
|
2625
|
+
),
|
|
2626
|
+
issuer: Schema.optionalKey(
|
|
2627
|
+
Schema.StructWithRest(
|
|
2628
|
+
Schema.Struct({
|
|
2629
|
+
account: Schema.optionalKey(Schema.String),
|
|
2630
|
+
type: Schema.Literals(["account", "self"]),
|
|
2631
|
+
}),
|
|
2632
|
+
[
|
|
2633
|
+
Schema.Record(
|
|
2634
|
+
Schema.String,
|
|
2635
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2636
|
+
),
|
|
2637
|
+
],
|
|
2638
|
+
).annotate({ title: "param" }),
|
|
2639
|
+
),
|
|
2640
|
+
}),
|
|
2641
|
+
[
|
|
2642
|
+
Schema.Record(
|
|
2643
|
+
Schema.String,
|
|
2644
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2645
|
+
),
|
|
2646
|
+
],
|
|
2647
|
+
).annotate({ title: "schedule_phase_invoice_settings" }),
|
|
2648
|
+
),
|
|
2649
|
+
items: Schema.Array(
|
|
2650
|
+
Schema.StructWithRest(
|
|
2651
|
+
Schema.Struct({
|
|
2652
|
+
billing_thresholds: Schema.optionalKey(
|
|
2653
|
+
Schema.Union([
|
|
2654
|
+
Schema.StructWithRest(
|
|
2655
|
+
Schema.Struct({ usage_gte: Schema.Int }),
|
|
2656
|
+
[
|
|
2657
|
+
Schema.Record(
|
|
2658
|
+
Schema.String,
|
|
2659
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2660
|
+
),
|
|
2661
|
+
],
|
|
2662
|
+
).annotate({ title: "item_billing_thresholds_param" }),
|
|
2663
|
+
Schema.Literal(""),
|
|
2664
|
+
]),
|
|
2665
|
+
),
|
|
2666
|
+
discounts: Schema.optionalKey(
|
|
2667
|
+
Schema.Union([
|
|
2668
|
+
Schema.Array(
|
|
2669
|
+
Schema.StructWithRest(
|
|
2670
|
+
Schema.Struct({
|
|
2671
|
+
coupon: Schema.optionalKey(
|
|
2672
|
+
Schema.String.check(
|
|
2673
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2674
|
+
expected:
|
|
2675
|
+
"a string with at most 5000 code points",
|
|
2676
|
+
}),
|
|
2677
|
+
),
|
|
2678
|
+
),
|
|
2679
|
+
discount: Schema.optionalKey(
|
|
2680
|
+
Schema.String.check(
|
|
2681
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2682
|
+
expected:
|
|
2683
|
+
"a string with at most 5000 code points",
|
|
2684
|
+
}),
|
|
2685
|
+
),
|
|
2686
|
+
),
|
|
2687
|
+
promotion_code: Schema.optionalKey(
|
|
2688
|
+
Schema.String.check(
|
|
2689
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2690
|
+
expected:
|
|
2691
|
+
"a string with at most 5000 code points",
|
|
2692
|
+
}),
|
|
2693
|
+
),
|
|
2694
|
+
),
|
|
2695
|
+
}),
|
|
2696
|
+
[
|
|
2697
|
+
Schema.Record(
|
|
2698
|
+
Schema.String,
|
|
2699
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2700
|
+
),
|
|
2701
|
+
],
|
|
2702
|
+
).annotate({ title: "schedule_discounts_data_param" }),
|
|
2703
|
+
),
|
|
2704
|
+
Schema.Literal(""),
|
|
2705
|
+
]),
|
|
2706
|
+
),
|
|
2707
|
+
metadata: Schema.optionalKey(
|
|
2708
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2709
|
+
),
|
|
2710
|
+
price: Schema.optionalKey(
|
|
2711
|
+
Schema.String.check(
|
|
2712
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2713
|
+
expected: "a string with at most 5000 code points",
|
|
2714
|
+
}),
|
|
2715
|
+
),
|
|
2716
|
+
),
|
|
2717
|
+
price_data: Schema.optionalKey(
|
|
2718
|
+
Schema.StructWithRest(
|
|
2719
|
+
Schema.Struct({
|
|
2720
|
+
currency: Schema.String.annotate({ format: "currency" }),
|
|
2721
|
+
product: Schema.String.check(
|
|
2722
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2723
|
+
expected: "a string with at most 5000 code points",
|
|
2724
|
+
}),
|
|
2725
|
+
),
|
|
2726
|
+
recurring: Schema.StructWithRest(
|
|
2727
|
+
Schema.Struct({
|
|
2728
|
+
interval: Schema.Literals([
|
|
2729
|
+
"day",
|
|
2730
|
+
"month",
|
|
2731
|
+
"week",
|
|
2732
|
+
"year",
|
|
2733
|
+
]),
|
|
2734
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
2735
|
+
}),
|
|
2736
|
+
[
|
|
2737
|
+
Schema.Record(
|
|
2738
|
+
Schema.String,
|
|
2739
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2740
|
+
),
|
|
2741
|
+
],
|
|
2742
|
+
).annotate({ title: "recurring_adhoc" }),
|
|
2743
|
+
tax_behavior: Schema.optionalKey(
|
|
2744
|
+
Schema.Literals([
|
|
2745
|
+
"exclusive",
|
|
2746
|
+
"inclusive",
|
|
2747
|
+
"unspecified",
|
|
2748
|
+
]),
|
|
2749
|
+
),
|
|
2750
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
2751
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
2752
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
2753
|
+
),
|
|
2754
|
+
}),
|
|
2755
|
+
[
|
|
2756
|
+
Schema.Record(
|
|
2757
|
+
Schema.String,
|
|
2758
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2759
|
+
),
|
|
2760
|
+
],
|
|
2761
|
+
).annotate({ title: "recurring_price_data" }),
|
|
2762
|
+
),
|
|
2763
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
2764
|
+
tax_rates: Schema.optionalKey(
|
|
2765
|
+
Schema.Union([
|
|
2766
|
+
Schema.Array(
|
|
2767
|
+
Schema.String.check(
|
|
2768
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2769
|
+
expected: "a string with at most 5000 code points",
|
|
2770
|
+
}),
|
|
2771
|
+
),
|
|
2772
|
+
),
|
|
2773
|
+
Schema.Literal(""),
|
|
2774
|
+
]),
|
|
2775
|
+
),
|
|
2776
|
+
}),
|
|
2777
|
+
[
|
|
2778
|
+
Schema.Record(
|
|
2779
|
+
Schema.String,
|
|
2780
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2781
|
+
),
|
|
2782
|
+
],
|
|
2783
|
+
).annotate({ title: "configuration_item_params" }),
|
|
2784
|
+
),
|
|
2785
|
+
metadata: Schema.optionalKey(
|
|
2786
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2787
|
+
),
|
|
2788
|
+
on_behalf_of: Schema.optionalKey(Schema.String),
|
|
2789
|
+
proration_behavior: Schema.optionalKey(
|
|
2790
|
+
Schema.Literals(["always_invoice", "create_prorations", "none"]),
|
|
2791
|
+
),
|
|
2792
|
+
start_date: Schema.optionalKey(
|
|
2793
|
+
Schema.Union([
|
|
2794
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
2795
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
2796
|
+
),
|
|
2797
|
+
Schema.Literal("now"),
|
|
2798
|
+
]),
|
|
2799
|
+
),
|
|
2800
|
+
transfer_data: Schema.optionalKey(
|
|
2801
|
+
Schema.StructWithRest(
|
|
2802
|
+
Schema.Struct({
|
|
2803
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
2804
|
+
destination: Schema.String,
|
|
2805
|
+
}),
|
|
2806
|
+
[
|
|
2807
|
+
Schema.Record(
|
|
2808
|
+
Schema.String,
|
|
2809
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2810
|
+
),
|
|
2811
|
+
],
|
|
2812
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
2813
|
+
),
|
|
2814
|
+
trial: Schema.optionalKey(Schema.Boolean),
|
|
2815
|
+
trial_end: Schema.optionalKey(
|
|
2816
|
+
Schema.Union([
|
|
2817
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
2818
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
2819
|
+
),
|
|
2820
|
+
Schema.Literal("now"),
|
|
2821
|
+
]),
|
|
2822
|
+
),
|
|
2823
|
+
}),
|
|
2824
|
+
[
|
|
2825
|
+
Schema.Record(
|
|
2826
|
+
Schema.String,
|
|
2827
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2828
|
+
),
|
|
2829
|
+
],
|
|
2830
|
+
).annotate({ title: "phase_configuration_params" }),
|
|
2831
|
+
).annotate({
|
|
2832
|
+
description:
|
|
2833
|
+
"List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.",
|
|
2834
|
+
}),
|
|
2835
|
+
),
|
|
2836
|
+
proration_behavior: Schema.optionalKey(
|
|
2837
|
+
Schema.Literals(["always_invoice", "create_prorations", "none"]).annotate({
|
|
2838
|
+
description:
|
|
2839
|
+
"If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.",
|
|
2840
|
+
}),
|
|
2841
|
+
),
|
|
2842
|
+
schedule: Schema.String.check(
|
|
2843
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2844
|
+
expected: "a string with at most 5000 code points",
|
|
2845
|
+
}),
|
|
2846
|
+
),
|
|
2847
|
+
});
|
|
2848
|
+
export const PostSubscriptionSchedulesScheduleOutput =
|
|
2849
|
+
Stripesubscription_schedule;
|
|
2850
|
+
export const PostSubscriptionSchedulesScheduleError = Stripeerror;
|
|
2851
|
+
export const PostSubscriptionSchedulesScheduleCancelInput = Schema.Struct({
|
|
2852
|
+
expand: Schema.optionalKey(
|
|
2853
|
+
Schema.Array(
|
|
2854
|
+
Schema.String.check(
|
|
2855
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2856
|
+
expected: "a string with at most 5000 code points",
|
|
2857
|
+
}),
|
|
2858
|
+
),
|
|
2859
|
+
).annotate({
|
|
2860
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
2861
|
+
}),
|
|
2862
|
+
),
|
|
2863
|
+
invoice_now: Schema.optionalKey(
|
|
2864
|
+
Schema.Boolean.annotate({
|
|
2865
|
+
description:
|
|
2866
|
+
"If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`.",
|
|
2867
|
+
}),
|
|
2868
|
+
),
|
|
2869
|
+
prorate: Schema.optionalKey(
|
|
2870
|
+
Schema.Boolean.annotate({
|
|
2871
|
+
description:
|
|
2872
|
+
"If the subscription schedule is `active`, indicates if the cancellation should be prorated. Defaults to `true`.",
|
|
2873
|
+
}),
|
|
2874
|
+
),
|
|
2875
|
+
schedule: Schema.String.check(
|
|
2876
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2877
|
+
expected: "a string with at most 5000 code points",
|
|
2878
|
+
}),
|
|
2879
|
+
),
|
|
2880
|
+
});
|
|
2881
|
+
export const PostSubscriptionSchedulesScheduleCancelOutput =
|
|
2882
|
+
Stripesubscription_schedule;
|
|
2883
|
+
export const PostSubscriptionSchedulesScheduleCancelError = Stripeerror;
|
|
2884
|
+
export const PostSubscriptionSchedulesScheduleReleaseInput = Schema.Struct({
|
|
2885
|
+
expand: Schema.optionalKey(
|
|
2886
|
+
Schema.Array(
|
|
2887
|
+
Schema.String.check(
|
|
2888
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2889
|
+
expected: "a string with at most 5000 code points",
|
|
2890
|
+
}),
|
|
2891
|
+
),
|
|
2892
|
+
).annotate({
|
|
2893
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
2894
|
+
}),
|
|
2895
|
+
),
|
|
2896
|
+
preserve_cancel_date: Schema.optionalKey(
|
|
2897
|
+
Schema.Boolean.annotate({
|
|
2898
|
+
description:
|
|
2899
|
+
"Keep any cancellation on the subscription that the schedule has set",
|
|
2900
|
+
}),
|
|
2901
|
+
),
|
|
2902
|
+
schedule: Schema.String.check(
|
|
2903
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2904
|
+
expected: "a string with at most 5000 code points",
|
|
2905
|
+
}),
|
|
2906
|
+
),
|
|
2907
|
+
});
|
|
2908
|
+
export const PostSubscriptionSchedulesScheduleReleaseOutput =
|
|
2909
|
+
Stripesubscription_schedule;
|
|
2910
|
+
export const PostSubscriptionSchedulesScheduleReleaseError = Stripeerror;
|
|
2911
|
+
/**
|
|
2912
|
+
* The GetSubscriptionSchedulesOperation value selects the schemas
|
|
2913
|
+
* that validate requests and decode responses for this API version.
|
|
2914
|
+
*/
|
|
2915
|
+
export const GetSubscriptionSchedulesOperation: StripeOperation & {
|
|
2916
|
+
readonly input: typeof GetSubscriptionSchedulesInput;
|
|
2917
|
+
readonly output: typeof GetSubscriptionSchedulesOutput;
|
|
2918
|
+
readonly error: typeof GetSubscriptionSchedulesError;
|
|
2919
|
+
} = {
|
|
2920
|
+
name: "GetSubscriptionSchedules",
|
|
2921
|
+
method: "GET",
|
|
2922
|
+
path: "/v1/subscription_schedules",
|
|
2923
|
+
pathParameters: [],
|
|
2924
|
+
queryParameters: [
|
|
2925
|
+
"canceled_at",
|
|
2926
|
+
"completed_at",
|
|
2927
|
+
"created",
|
|
2928
|
+
"customer",
|
|
2929
|
+
"customer_account",
|
|
2930
|
+
"ending_before",
|
|
2931
|
+
"expand",
|
|
2932
|
+
"limit",
|
|
2933
|
+
"released_at",
|
|
2934
|
+
"scheduled",
|
|
2935
|
+
"starting_after",
|
|
2936
|
+
],
|
|
2937
|
+
contentType: "application/x-www-form-urlencoded",
|
|
2938
|
+
apiVersion: stripeApiVersion,
|
|
2939
|
+
baseUrl: stripeApiBaseUrl,
|
|
2940
|
+
input: GetSubscriptionSchedulesInput,
|
|
2941
|
+
output: GetSubscriptionSchedulesOutput,
|
|
2942
|
+
error: GetSubscriptionSchedulesError,
|
|
2943
|
+
};
|
|
2944
|
+
/**
|
|
2945
|
+
* The PostSubscriptionSchedulesOperation value selects the schemas
|
|
2946
|
+
* that validate requests and decode responses for this API version.
|
|
2947
|
+
*/
|
|
2948
|
+
export const PostSubscriptionSchedulesOperation: StripeOperation & {
|
|
2949
|
+
readonly input: typeof PostSubscriptionSchedulesInput;
|
|
2950
|
+
readonly output: typeof PostSubscriptionSchedulesOutput;
|
|
2951
|
+
readonly error: typeof PostSubscriptionSchedulesError;
|
|
2952
|
+
} = {
|
|
2953
|
+
name: "PostSubscriptionSchedules",
|
|
2954
|
+
method: "POST",
|
|
2955
|
+
path: "/v1/subscription_schedules",
|
|
2956
|
+
pathParameters: [],
|
|
2957
|
+
queryParameters: [],
|
|
2958
|
+
contentType: "application/x-www-form-urlencoded",
|
|
2959
|
+
apiVersion: stripeApiVersion,
|
|
2960
|
+
baseUrl: stripeApiBaseUrl,
|
|
2961
|
+
input: PostSubscriptionSchedulesInput,
|
|
2962
|
+
output: PostSubscriptionSchedulesOutput,
|
|
2963
|
+
error: PostSubscriptionSchedulesError,
|
|
2964
|
+
};
|
|
2965
|
+
/**
|
|
2966
|
+
* The GetSubscriptionSchedulesScheduleOperation value selects the schemas
|
|
2967
|
+
* that validate requests and decode responses for this API version.
|
|
2968
|
+
*/
|
|
2969
|
+
export const GetSubscriptionSchedulesScheduleOperation: StripeOperation & {
|
|
2970
|
+
readonly input: typeof GetSubscriptionSchedulesScheduleInput;
|
|
2971
|
+
readonly output: typeof GetSubscriptionSchedulesScheduleOutput;
|
|
2972
|
+
readonly error: typeof GetSubscriptionSchedulesScheduleError;
|
|
2973
|
+
} = {
|
|
2974
|
+
name: "GetSubscriptionSchedulesSchedule",
|
|
2975
|
+
method: "GET",
|
|
2976
|
+
path: "/v1/subscription_schedules/{schedule}",
|
|
2977
|
+
pathParameters: ["schedule"],
|
|
2978
|
+
queryParameters: ["expand"],
|
|
2979
|
+
contentType: "application/x-www-form-urlencoded",
|
|
2980
|
+
apiVersion: stripeApiVersion,
|
|
2981
|
+
baseUrl: stripeApiBaseUrl,
|
|
2982
|
+
input: GetSubscriptionSchedulesScheduleInput,
|
|
2983
|
+
output: GetSubscriptionSchedulesScheduleOutput,
|
|
2984
|
+
error: GetSubscriptionSchedulesScheduleError,
|
|
2985
|
+
};
|
|
2986
|
+
/**
|
|
2987
|
+
* The PostSubscriptionSchedulesScheduleOperation value selects the schemas
|
|
2988
|
+
* that validate requests and decode responses for this API version.
|
|
2989
|
+
*/
|
|
2990
|
+
export const PostSubscriptionSchedulesScheduleOperation: StripeOperation & {
|
|
2991
|
+
readonly input: typeof PostSubscriptionSchedulesScheduleInput;
|
|
2992
|
+
readonly output: typeof PostSubscriptionSchedulesScheduleOutput;
|
|
2993
|
+
readonly error: typeof PostSubscriptionSchedulesScheduleError;
|
|
2994
|
+
} = {
|
|
2995
|
+
name: "PostSubscriptionSchedulesSchedule",
|
|
2996
|
+
method: "POST",
|
|
2997
|
+
path: "/v1/subscription_schedules/{schedule}",
|
|
2998
|
+
pathParameters: ["schedule"],
|
|
2999
|
+
queryParameters: [],
|
|
3000
|
+
contentType: "application/x-www-form-urlencoded",
|
|
3001
|
+
apiVersion: stripeApiVersion,
|
|
3002
|
+
baseUrl: stripeApiBaseUrl,
|
|
3003
|
+
input: PostSubscriptionSchedulesScheduleInput,
|
|
3004
|
+
output: PostSubscriptionSchedulesScheduleOutput,
|
|
3005
|
+
error: PostSubscriptionSchedulesScheduleError,
|
|
3006
|
+
};
|
|
3007
|
+
/**
|
|
3008
|
+
* The PostSubscriptionSchedulesScheduleCancelOperation value selects the schemas
|
|
3009
|
+
* that validate requests and decode responses for this API version.
|
|
3010
|
+
*/
|
|
3011
|
+
export const PostSubscriptionSchedulesScheduleCancelOperation: StripeOperation & {
|
|
3012
|
+
readonly input: typeof PostSubscriptionSchedulesScheduleCancelInput;
|
|
3013
|
+
readonly output: typeof PostSubscriptionSchedulesScheduleCancelOutput;
|
|
3014
|
+
readonly error: typeof PostSubscriptionSchedulesScheduleCancelError;
|
|
3015
|
+
} = {
|
|
3016
|
+
name: "PostSubscriptionSchedulesScheduleCancel",
|
|
3017
|
+
method: "POST",
|
|
3018
|
+
path: "/v1/subscription_schedules/{schedule}/cancel",
|
|
3019
|
+
pathParameters: ["schedule"],
|
|
3020
|
+
queryParameters: [],
|
|
3021
|
+
contentType: "application/x-www-form-urlencoded",
|
|
3022
|
+
apiVersion: stripeApiVersion,
|
|
3023
|
+
baseUrl: stripeApiBaseUrl,
|
|
3024
|
+
input: PostSubscriptionSchedulesScheduleCancelInput,
|
|
3025
|
+
output: PostSubscriptionSchedulesScheduleCancelOutput,
|
|
3026
|
+
error: PostSubscriptionSchedulesScheduleCancelError,
|
|
3027
|
+
};
|
|
3028
|
+
/**
|
|
3029
|
+
* The PostSubscriptionSchedulesScheduleReleaseOperation value selects the schemas
|
|
3030
|
+
* that validate requests and decode responses for this API version.
|
|
3031
|
+
*/
|
|
3032
|
+
export const PostSubscriptionSchedulesScheduleReleaseOperation: StripeOperation & {
|
|
3033
|
+
readonly input: typeof PostSubscriptionSchedulesScheduleReleaseInput;
|
|
3034
|
+
readonly output: typeof PostSubscriptionSchedulesScheduleReleaseOutput;
|
|
3035
|
+
readonly error: typeof PostSubscriptionSchedulesScheduleReleaseError;
|
|
3036
|
+
} = {
|
|
3037
|
+
name: "PostSubscriptionSchedulesScheduleRelease",
|
|
3038
|
+
method: "POST",
|
|
3039
|
+
path: "/v1/subscription_schedules/{schedule}/release",
|
|
3040
|
+
pathParameters: ["schedule"],
|
|
3041
|
+
queryParameters: [],
|
|
3042
|
+
contentType: "application/x-www-form-urlencoded",
|
|
3043
|
+
apiVersion: stripeApiVersion,
|
|
3044
|
+
baseUrl: stripeApiBaseUrl,
|
|
3045
|
+
input: PostSubscriptionSchedulesScheduleReleaseInput,
|
|
3046
|
+
output: PostSubscriptionSchedulesScheduleReleaseOutput,
|
|
3047
|
+
error: PostSubscriptionSchedulesScheduleReleaseError,
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* The makeSubscriptionSchedulesClient Effect obtains the application's StripeClient service.
|
|
3051
|
+
* Its result exposes functions with the contracts fixed by this specification.
|
|
3052
|
+
*/
|
|
3053
|
+
export const makeSubscriptionSchedulesClient = Effect.gen(function* () {
|
|
3054
|
+
const client = yield* StripeClient;
|
|
3055
|
+
/**
|
|
3056
|
+
* The GetSubscriptionSchedules function validates its request before it invokes Stripe.
|
|
3057
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3058
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3059
|
+
*/
|
|
3060
|
+
const GetSubscriptionSchedules = Effect.fn(
|
|
3061
|
+
"subscriptionSchedules.GetSubscriptionSchedules",
|
|
3062
|
+
)(function* (input: GetSubscriptionSchedulesInput) {
|
|
3063
|
+
const response: GetSubscriptionSchedulesOutput = yield* client.invoke(
|
|
3064
|
+
GetSubscriptionSchedulesOperation,
|
|
3065
|
+
input,
|
|
3066
|
+
);
|
|
3067
|
+
return response;
|
|
3068
|
+
});
|
|
3069
|
+
/**
|
|
3070
|
+
* The PostSubscriptionSchedules function validates its request before it invokes Stripe.
|
|
3071
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3072
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3073
|
+
*/
|
|
3074
|
+
const PostSubscriptionSchedules = Effect.fn(
|
|
3075
|
+
"subscriptionSchedules.PostSubscriptionSchedules",
|
|
3076
|
+
)(function* (input: PostSubscriptionSchedulesInput) {
|
|
3077
|
+
const response: PostSubscriptionSchedulesOutput = yield* client.invoke(
|
|
3078
|
+
PostSubscriptionSchedulesOperation,
|
|
3079
|
+
input,
|
|
3080
|
+
);
|
|
3081
|
+
return response;
|
|
3082
|
+
});
|
|
3083
|
+
/**
|
|
3084
|
+
* The GetSubscriptionSchedulesSchedule function validates its request before it invokes Stripe.
|
|
3085
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3086
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3087
|
+
*/
|
|
3088
|
+
const GetSubscriptionSchedulesSchedule = Effect.fn(
|
|
3089
|
+
"subscriptionSchedules.GetSubscriptionSchedulesSchedule",
|
|
3090
|
+
)(function* (input: GetSubscriptionSchedulesScheduleInput) {
|
|
3091
|
+
const response: GetSubscriptionSchedulesScheduleOutput =
|
|
3092
|
+
yield* client.invoke(GetSubscriptionSchedulesScheduleOperation, input);
|
|
3093
|
+
return response;
|
|
3094
|
+
});
|
|
3095
|
+
/**
|
|
3096
|
+
* The PostSubscriptionSchedulesSchedule function validates its request before it invokes Stripe.
|
|
3097
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3098
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3099
|
+
*/
|
|
3100
|
+
const PostSubscriptionSchedulesSchedule = Effect.fn(
|
|
3101
|
+
"subscriptionSchedules.PostSubscriptionSchedulesSchedule",
|
|
3102
|
+
)(function* (input: PostSubscriptionSchedulesScheduleInput) {
|
|
3103
|
+
const response: PostSubscriptionSchedulesScheduleOutput =
|
|
3104
|
+
yield* client.invoke(PostSubscriptionSchedulesScheduleOperation, input);
|
|
3105
|
+
return response;
|
|
3106
|
+
});
|
|
3107
|
+
/**
|
|
3108
|
+
* The PostSubscriptionSchedulesScheduleCancel function validates its request before it invokes Stripe.
|
|
3109
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3110
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3111
|
+
*/
|
|
3112
|
+
const PostSubscriptionSchedulesScheduleCancel = Effect.fn(
|
|
3113
|
+
"subscriptionSchedules.PostSubscriptionSchedulesScheduleCancel",
|
|
3114
|
+
)(function* (input: PostSubscriptionSchedulesScheduleCancelInput) {
|
|
3115
|
+
const response: PostSubscriptionSchedulesScheduleCancelOutput =
|
|
3116
|
+
yield* client.invoke(
|
|
3117
|
+
PostSubscriptionSchedulesScheduleCancelOperation,
|
|
3118
|
+
input,
|
|
3119
|
+
);
|
|
3120
|
+
return response;
|
|
3121
|
+
});
|
|
3122
|
+
/**
|
|
3123
|
+
* The PostSubscriptionSchedulesScheduleRelease function validates its request before it invokes Stripe.
|
|
3124
|
+
* The result is the decoded response. Failures in transport or validation
|
|
3125
|
+
* and modeled Stripe errors propagate to the caller.
|
|
3126
|
+
*/
|
|
3127
|
+
const PostSubscriptionSchedulesScheduleRelease = Effect.fn(
|
|
3128
|
+
"subscriptionSchedules.PostSubscriptionSchedulesScheduleRelease",
|
|
3129
|
+
)(function* (input: PostSubscriptionSchedulesScheduleReleaseInput) {
|
|
3130
|
+
const response: PostSubscriptionSchedulesScheduleReleaseOutput =
|
|
3131
|
+
yield* client.invoke(
|
|
3132
|
+
PostSubscriptionSchedulesScheduleReleaseOperation,
|
|
3133
|
+
input,
|
|
3134
|
+
);
|
|
3135
|
+
return response;
|
|
3136
|
+
});
|
|
3137
|
+
return {
|
|
3138
|
+
GetSubscriptionSchedules,
|
|
3139
|
+
PostSubscriptionSchedules,
|
|
3140
|
+
GetSubscriptionSchedulesSchedule,
|
|
3141
|
+
PostSubscriptionSchedulesSchedule,
|
|
3142
|
+
PostSubscriptionSchedulesScheduleCancel,
|
|
3143
|
+
PostSubscriptionSchedulesScheduleRelease,
|
|
3144
|
+
};
|
|
3145
|
+
});
|