nomoss 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +1 -1
- package/README.md +52 -26
- package/ROADMAP.md +19 -0
- package/docs/README.md +19 -0
- package/docs/application/aws-resource-coverage.md +26 -0
- package/docs/application/aws-resource-lifecycle-management.md +47 -0
- package/docs/application/cli-workflow.md +111 -0
- package/docs/application/engine-design.md +43 -0
- package/docs/application/generation-architecture.md +285 -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 +43 -0
- package/docs/application/resource-mapping.md +112 -0
- package/docs/application/resource-operations.md +41 -0
- package/docs/application/resource-outputs.md +66 -0
- package/docs/application/tracing.md +27 -0
- package/docs/development/code-documentation.md +54 -0
- package/docs/development/commit-message-spec.md +9 -0
- package/docs/development/effect-native-development.md +89 -0
- package/docs/development/linting.md +39 -0
- package/docs/development/resource-graph-testing-approach.md +9 -0
- package/docs/development/review-code.md +73 -0
- package/docs/development/review-docs.md +27 -0
- package/docs/development/review-remediation-spec.md +40 -0
- package/docs/development/spec-writing.md +35 -0
- package/docs/development/testing.md +125 -0
- package/docs/development/unslop.md +55 -0
- package/docs/operations/observability-sop.md +32 -0
- package/docs/operations/releasing.md +7 -0
- package/examples/README.md +11 -0
- package/examples/cli.ts +15 -0
- package/examples/commands.ts +32 -0
- package/examples/http-echo/index.ts +54 -0
- package/examples/queue/application.ts +37 -0
- package/examples/state-machine/application.ts +57 -0
- package/examples/stripe-billing/application.ts +56 -0
- package/media/nomoss-http-demo.gif +0 -0
- package/package.json +63 -24
- package/providers/aws/README.md +21 -0
- package/providers/aws/awsEnvironment.ts +114 -0
- package/providers/aws/generated/managementRegistry.ts +136 -0
- package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
- package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
- package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
- package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
- package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
- package/providers/aws/generated/resources/iam/group.ts +294 -0
- package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
- package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
- package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
- package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
- package/providers/aws/generated/resources/iam/policy.ts +264 -0
- package/providers/aws/generated/resources/iam/role.ts +444 -0
- package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
- package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
- package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
- package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
- package/providers/aws/generated/resources/iam/user.ts +435 -0
- package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
- package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
- package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
- package/providers/aws/generated/resources/kms/key.ts +552 -0
- package/providers/aws/generated/resources/lambda/function.ts +1924 -0
- package/providers/aws/generated/resources/lambda/permission.ts +913 -0
- package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
- package/providers/aws/generated/resources/sns/topic.ts +536 -0
- package/providers/aws/generated/resources/sqs/queue.ts +476 -0
- package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
- package/providers/aws/management/mappings/iam/group.ts +63 -0
- package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
- package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
- package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
- package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
- package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
- package/providers/aws/management/mappings/iam/role.ts +74 -0
- package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
- package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
- package/providers/aws/management/mappings/iam/user.ts +61 -0
- package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
- package/providers/aws/management/operations/iam/accessKey.ts +206 -0
- package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
- package/providers/aws/management/operations/iam/policy.ts +476 -0
- package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
- package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
- package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
- package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
- package/providers/aws/management/resourceAssociations.ts +168 -0
- package/providers/aws/management/resourceConfiguration.ts +119 -0
- package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
- package/providers/aws/management/resourceManagementModule.ts +31 -0
- package/providers/aws/management/resourceManagementRegistry.ts +62 -0
- package/providers/aws/management/resourceMapping.ts +84 -0
- package/providers/aws/management/resourceOperation.ts +134 -0
- package/providers/aws/management/resourceTagOperations.ts +108 -0
- package/providers/aws/management/resourceTiming.ts +4 -0
- package/providers/aws/runtime.ts +52 -0
- 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 +88 -0
- package/src/core/resource/resourceGraphBuilder.ts +319 -0
- package/src/core/resource/resourceGraphStore.ts +373 -0
- package/src/core/resource/resourceLifecycle.ts +644 -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/resource/resourceStabilization.ts +120 -0
- package/src/core/resource/resourceVersions.ts +102 -0
- package/src/core/runtime/stackRuntimeLayer.ts +16 -0
- package/src/core/runtime/tracing.ts +43 -0
- package/src/core/stack/planner.ts +663 -0
- package/src/core/stack/resourceDisplay.ts +213 -0
- package/src/core/stack/resourceStackDefinition.ts +32 -0
- package/src/core/stack/resourceStackLifecycle.ts +1229 -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 +77 -0
- package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
- package/src/core/state/stateStore.ts +600 -0
- package/src/providers/file/jsonFile.ts +94 -0
- package/src/providers/file/model.ts +29 -0
- package/src/providers/file/resourcePolicy.ts +271 -0
- package/src/providers/index.ts +0 -2
- package/src/providers/providerRuntimeLayer.ts +27 -113
- package/src/providers/resourceCommandPolicyLayer.ts +151 -200
- 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 +500 -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
package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts
ADDED
|
@@ -0,0 +1,4601 @@
|
|
|
1
|
+
// This schema module comes from the selected resource contracts. Do not edit.
|
|
2
|
+
|
|
3
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
|
|
4
|
+
import { Schema } from "effect";
|
|
5
|
+
import {
|
|
6
|
+
annotateResourceSchema,
|
|
7
|
+
ResourceSchemaAnnotationSchema,
|
|
8
|
+
} from "../../../../../core/resource/model.js";
|
|
9
|
+
|
|
10
|
+
export type StripeCheckoutSessionProps = {
|
|
11
|
+
readonly adaptive_pricing?: { readonly enabled?: boolean } & {
|
|
12
|
+
readonly [x: string]: Schema.Json;
|
|
13
|
+
};
|
|
14
|
+
readonly after_expiration?: {
|
|
15
|
+
readonly recovery?: {
|
|
16
|
+
readonly allow_promotion_codes?: boolean;
|
|
17
|
+
readonly enabled: boolean;
|
|
18
|
+
} & { readonly [x: string]: Schema.Json };
|
|
19
|
+
} & { readonly [x: string]: Schema.Json };
|
|
20
|
+
readonly allow_promotion_codes?: boolean;
|
|
21
|
+
readonly allowed_payment_method_types?: ReadonlyArray<
|
|
22
|
+
| "acss_debit"
|
|
23
|
+
| "affirm"
|
|
24
|
+
| "afterpay_clearpay"
|
|
25
|
+
| "alipay"
|
|
26
|
+
| "alma"
|
|
27
|
+
| "amazon_pay"
|
|
28
|
+
| "au_becs_debit"
|
|
29
|
+
| "bacs_debit"
|
|
30
|
+
| "bancontact"
|
|
31
|
+
| "billie"
|
|
32
|
+
| "bizum"
|
|
33
|
+
| "blik"
|
|
34
|
+
| "boleto"
|
|
35
|
+
| "card"
|
|
36
|
+
| "cashapp"
|
|
37
|
+
| "crypto"
|
|
38
|
+
| "customer_balance"
|
|
39
|
+
| "eps"
|
|
40
|
+
| "fpx"
|
|
41
|
+
| "giropay"
|
|
42
|
+
| "grabpay"
|
|
43
|
+
| "ideal"
|
|
44
|
+
| "kakao_pay"
|
|
45
|
+
| "klarna"
|
|
46
|
+
| "konbini"
|
|
47
|
+
| "kr_card"
|
|
48
|
+
| "link"
|
|
49
|
+
| "mb_way"
|
|
50
|
+
| "mobilepay"
|
|
51
|
+
| "multibanco"
|
|
52
|
+
| "naver_pay"
|
|
53
|
+
| "nz_bank_account"
|
|
54
|
+
| "oxxo"
|
|
55
|
+
| "p24"
|
|
56
|
+
| "pay_by_bank"
|
|
57
|
+
| "payco"
|
|
58
|
+
| "paynow"
|
|
59
|
+
| "paypal"
|
|
60
|
+
| "paypay"
|
|
61
|
+
| "payto"
|
|
62
|
+
| "pix"
|
|
63
|
+
| "promptpay"
|
|
64
|
+
| "revolut_pay"
|
|
65
|
+
| "samsung_pay"
|
|
66
|
+
| "satispay"
|
|
67
|
+
| "scalapay"
|
|
68
|
+
| "sepa_debit"
|
|
69
|
+
| "sequra"
|
|
70
|
+
| "sofort"
|
|
71
|
+
| "sunbit"
|
|
72
|
+
| "swish"
|
|
73
|
+
| "twint"
|
|
74
|
+
| "upi"
|
|
75
|
+
| "us_bank_account"
|
|
76
|
+
| "wechat_pay"
|
|
77
|
+
| "zip"
|
|
78
|
+
>;
|
|
79
|
+
readonly automatic_tax?: {
|
|
80
|
+
readonly enabled: boolean;
|
|
81
|
+
readonly liability?: {
|
|
82
|
+
readonly account?: string;
|
|
83
|
+
readonly type: "account" | "self";
|
|
84
|
+
} & { readonly [x: string]: Schema.Json };
|
|
85
|
+
} & { readonly [x: string]: Schema.Json };
|
|
86
|
+
readonly billing_address_collection?: "auto" | "required";
|
|
87
|
+
readonly branding_settings?: {
|
|
88
|
+
readonly background_color?: string | "";
|
|
89
|
+
readonly border_style?: "" | "pill" | "rectangular" | "rounded";
|
|
90
|
+
readonly button_color?: string | "";
|
|
91
|
+
readonly display_name?: string;
|
|
92
|
+
readonly font_family?:
|
|
93
|
+
| ""
|
|
94
|
+
| "be_vietnam_pro"
|
|
95
|
+
| "bitter"
|
|
96
|
+
| "chakra_petch"
|
|
97
|
+
| "default"
|
|
98
|
+
| "hahmlet"
|
|
99
|
+
| "inconsolata"
|
|
100
|
+
| "inter"
|
|
101
|
+
| "lato"
|
|
102
|
+
| "lora"
|
|
103
|
+
| "m_plus_1_code"
|
|
104
|
+
| "montserrat"
|
|
105
|
+
| "noto_sans"
|
|
106
|
+
| "noto_sans_jp"
|
|
107
|
+
| "noto_serif"
|
|
108
|
+
| "nunito"
|
|
109
|
+
| "open_sans"
|
|
110
|
+
| "pridi"
|
|
111
|
+
| "pt_sans"
|
|
112
|
+
| "pt_serif"
|
|
113
|
+
| "raleway"
|
|
114
|
+
| "roboto"
|
|
115
|
+
| "roboto_slab"
|
|
116
|
+
| "source_sans_pro"
|
|
117
|
+
| "titillium_web"
|
|
118
|
+
| "ubuntu_mono"
|
|
119
|
+
| "zen_maru_gothic";
|
|
120
|
+
readonly icon?: {
|
|
121
|
+
readonly file?: string;
|
|
122
|
+
readonly type: "file" | "url";
|
|
123
|
+
readonly url?: string;
|
|
124
|
+
} & { readonly [x: string]: Schema.Json };
|
|
125
|
+
readonly logo?: {
|
|
126
|
+
readonly file?: string;
|
|
127
|
+
readonly type: "file" | "url";
|
|
128
|
+
readonly url?: string;
|
|
129
|
+
} & { readonly [x: string]: Schema.Json };
|
|
130
|
+
} & { readonly [x: string]: Schema.Json };
|
|
131
|
+
readonly cancel_url?: string;
|
|
132
|
+
readonly client_reference_id?: string;
|
|
133
|
+
readonly consent_collection?: {
|
|
134
|
+
readonly payment_method_reuse_agreement?: {
|
|
135
|
+
readonly position: "auto" | "hidden";
|
|
136
|
+
} & { readonly [x: string]: Schema.Json };
|
|
137
|
+
readonly promotions?: "auto" | "none";
|
|
138
|
+
readonly terms_of_service?: "none" | "required";
|
|
139
|
+
} & { readonly [x: string]: Schema.Json };
|
|
140
|
+
readonly currency?: string;
|
|
141
|
+
readonly custom_fields?: ReadonlyArray<
|
|
142
|
+
{
|
|
143
|
+
readonly dropdown?: {
|
|
144
|
+
readonly default_value?: string;
|
|
145
|
+
readonly options: ReadonlyArray<
|
|
146
|
+
{ readonly label: string; readonly value: string } & {
|
|
147
|
+
readonly [x: string]: Schema.Json;
|
|
148
|
+
}
|
|
149
|
+
>;
|
|
150
|
+
} & { readonly [x: string]: Schema.Json };
|
|
151
|
+
readonly key: string;
|
|
152
|
+
readonly label: { readonly custom: string; readonly type: "custom" } & {
|
|
153
|
+
readonly [x: string]: Schema.Json;
|
|
154
|
+
};
|
|
155
|
+
readonly numeric?: {
|
|
156
|
+
readonly default_value?: string;
|
|
157
|
+
readonly maximum_length?: number;
|
|
158
|
+
readonly minimum_length?: number;
|
|
159
|
+
} & { readonly [x: string]: Schema.Json };
|
|
160
|
+
readonly optional?: boolean;
|
|
161
|
+
readonly text?: {
|
|
162
|
+
readonly default_value?: string;
|
|
163
|
+
readonly maximum_length?: number;
|
|
164
|
+
readonly minimum_length?: number;
|
|
165
|
+
} & { readonly [x: string]: Schema.Json };
|
|
166
|
+
readonly type: "dropdown" | "numeric" | "text";
|
|
167
|
+
} & { readonly [x: string]: Schema.Json }
|
|
168
|
+
>;
|
|
169
|
+
readonly custom_text?: {
|
|
170
|
+
readonly after_submit?:
|
|
171
|
+
| ({ readonly message: string } & { readonly [x: string]: Schema.Json })
|
|
172
|
+
| "";
|
|
173
|
+
readonly shipping_address?:
|
|
174
|
+
| ({ readonly message: string } & { readonly [x: string]: Schema.Json })
|
|
175
|
+
| "";
|
|
176
|
+
readonly submit?:
|
|
177
|
+
| ({ readonly message: string } & { readonly [x: string]: Schema.Json })
|
|
178
|
+
| "";
|
|
179
|
+
readonly terms_of_service_acceptance?:
|
|
180
|
+
| ({ readonly message: string } & { readonly [x: string]: Schema.Json })
|
|
181
|
+
| "";
|
|
182
|
+
} & { readonly [x: string]: Schema.Json };
|
|
183
|
+
readonly customer?: string;
|
|
184
|
+
readonly customer_account?: string;
|
|
185
|
+
readonly customer_creation?: "always" | "if_required";
|
|
186
|
+
readonly customer_email?: string;
|
|
187
|
+
readonly customer_update?: {
|
|
188
|
+
readonly address?: "auto" | "never";
|
|
189
|
+
readonly name?: "auto" | "never";
|
|
190
|
+
readonly shipping?: "auto" | "never";
|
|
191
|
+
} & { readonly [x: string]: Schema.Json };
|
|
192
|
+
readonly discounts?: ReadonlyArray<
|
|
193
|
+
{ readonly coupon?: string; readonly promotion_code?: string } & {
|
|
194
|
+
readonly [x: string]: Schema.Json;
|
|
195
|
+
}
|
|
196
|
+
>;
|
|
197
|
+
readonly excluded_payment_method_types?: ReadonlyArray<
|
|
198
|
+
| "acss_debit"
|
|
199
|
+
| "affirm"
|
|
200
|
+
| "afterpay_clearpay"
|
|
201
|
+
| "alipay"
|
|
202
|
+
| "alma"
|
|
203
|
+
| "amazon_pay"
|
|
204
|
+
| "au_becs_debit"
|
|
205
|
+
| "bacs_debit"
|
|
206
|
+
| "bancontact"
|
|
207
|
+
| "billie"
|
|
208
|
+
| "bizum"
|
|
209
|
+
| "blik"
|
|
210
|
+
| "boleto"
|
|
211
|
+
| "card"
|
|
212
|
+
| "cashapp"
|
|
213
|
+
| "crypto"
|
|
214
|
+
| "customer_balance"
|
|
215
|
+
| "eps"
|
|
216
|
+
| "fpx"
|
|
217
|
+
| "giropay"
|
|
218
|
+
| "grabpay"
|
|
219
|
+
| "ideal"
|
|
220
|
+
| "kakao_pay"
|
|
221
|
+
| "klarna"
|
|
222
|
+
| "konbini"
|
|
223
|
+
| "kr_card"
|
|
224
|
+
| "mb_way"
|
|
225
|
+
| "mobilepay"
|
|
226
|
+
| "multibanco"
|
|
227
|
+
| "naver_pay"
|
|
228
|
+
| "nz_bank_account"
|
|
229
|
+
| "oxxo"
|
|
230
|
+
| "p24"
|
|
231
|
+
| "pay_by_bank"
|
|
232
|
+
| "payco"
|
|
233
|
+
| "paynow"
|
|
234
|
+
| "paypal"
|
|
235
|
+
| "paypay"
|
|
236
|
+
| "payto"
|
|
237
|
+
| "pix"
|
|
238
|
+
| "promptpay"
|
|
239
|
+
| "revolut_pay"
|
|
240
|
+
| "samsung_pay"
|
|
241
|
+
| "satispay"
|
|
242
|
+
| "scalapay"
|
|
243
|
+
| "sepa_debit"
|
|
244
|
+
| "sequra"
|
|
245
|
+
| "sofort"
|
|
246
|
+
| "sunbit"
|
|
247
|
+
| "swish"
|
|
248
|
+
| "twint"
|
|
249
|
+
| "upi"
|
|
250
|
+
| "us_bank_account"
|
|
251
|
+
| "wechat_pay"
|
|
252
|
+
| "zip"
|
|
253
|
+
>;
|
|
254
|
+
readonly expand?: ReadonlyArray<string>;
|
|
255
|
+
readonly expires_at?: number;
|
|
256
|
+
readonly integration_identifier?: string;
|
|
257
|
+
readonly invoice_creation?: {
|
|
258
|
+
readonly enabled: boolean;
|
|
259
|
+
readonly invoice_data?: {
|
|
260
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
261
|
+
readonly custom_fields?:
|
|
262
|
+
| ReadonlyArray<
|
|
263
|
+
{ readonly name: string; readonly value: string } & {
|
|
264
|
+
readonly [x: string]: Schema.Json;
|
|
265
|
+
}
|
|
266
|
+
>
|
|
267
|
+
| "";
|
|
268
|
+
readonly description?: string;
|
|
269
|
+
readonly footer?: string;
|
|
270
|
+
readonly issuer?: {
|
|
271
|
+
readonly account?: string;
|
|
272
|
+
readonly type: "account" | "self";
|
|
273
|
+
} & { readonly [x: string]: Schema.Json };
|
|
274
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
275
|
+
readonly rendering_options?:
|
|
276
|
+
| ({
|
|
277
|
+
readonly amount_tax_display?:
|
|
278
|
+
| ""
|
|
279
|
+
| "exclude_tax"
|
|
280
|
+
| "include_inclusive_tax";
|
|
281
|
+
readonly template?: string;
|
|
282
|
+
} & { readonly [x: string]: Schema.Json })
|
|
283
|
+
| "";
|
|
284
|
+
} & { readonly [x: string]: Schema.Json };
|
|
285
|
+
} & { readonly [x: string]: Schema.Json };
|
|
286
|
+
readonly line_items?: ReadonlyArray<
|
|
287
|
+
{
|
|
288
|
+
readonly adjustable_quantity?: {
|
|
289
|
+
readonly enabled: boolean;
|
|
290
|
+
readonly maximum?: number;
|
|
291
|
+
readonly minimum?: number;
|
|
292
|
+
} & { readonly [x: string]: Schema.Json };
|
|
293
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
294
|
+
readonly price?: string;
|
|
295
|
+
readonly price_data?: {
|
|
296
|
+
readonly currency: string;
|
|
297
|
+
readonly product?: string;
|
|
298
|
+
readonly product_data?: {
|
|
299
|
+
readonly description?: string;
|
|
300
|
+
readonly images?: ReadonlyArray<string>;
|
|
301
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
302
|
+
readonly name: string;
|
|
303
|
+
readonly tax_code?: string;
|
|
304
|
+
readonly tax_details?: {
|
|
305
|
+
readonly performance_location?: string;
|
|
306
|
+
readonly tax_code?: string | "";
|
|
307
|
+
} & { readonly [x: string]: Schema.Json };
|
|
308
|
+
readonly unit_label?: string;
|
|
309
|
+
} & { readonly [x: string]: Schema.Json };
|
|
310
|
+
readonly recurring?: {
|
|
311
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
312
|
+
readonly interval_count?: number;
|
|
313
|
+
} & { readonly [x: string]: Schema.Json };
|
|
314
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
315
|
+
readonly unit_amount?: number;
|
|
316
|
+
readonly unit_amount_decimal?: string;
|
|
317
|
+
} & { readonly [x: string]: Schema.Json };
|
|
318
|
+
readonly quantity?: number;
|
|
319
|
+
readonly tax_rates?: ReadonlyArray<string>;
|
|
320
|
+
} & { readonly [x: string]: Schema.Json }
|
|
321
|
+
>;
|
|
322
|
+
readonly locale?:
|
|
323
|
+
| "auto"
|
|
324
|
+
| "bg"
|
|
325
|
+
| "cs"
|
|
326
|
+
| "da"
|
|
327
|
+
| "de"
|
|
328
|
+
| "el"
|
|
329
|
+
| "en"
|
|
330
|
+
| "en-GB"
|
|
331
|
+
| "es"
|
|
332
|
+
| "es-419"
|
|
333
|
+
| "et"
|
|
334
|
+
| "fi"
|
|
335
|
+
| "fil"
|
|
336
|
+
| "fr"
|
|
337
|
+
| "fr-CA"
|
|
338
|
+
| "hi-IN"
|
|
339
|
+
| "hr"
|
|
340
|
+
| "hu"
|
|
341
|
+
| "id"
|
|
342
|
+
| "it"
|
|
343
|
+
| "ja"
|
|
344
|
+
| "ko"
|
|
345
|
+
| "lt"
|
|
346
|
+
| "lv"
|
|
347
|
+
| "ms"
|
|
348
|
+
| "mt"
|
|
349
|
+
| "nb"
|
|
350
|
+
| "nl"
|
|
351
|
+
| "pl"
|
|
352
|
+
| "pt"
|
|
353
|
+
| "pt-BR"
|
|
354
|
+
| "ro"
|
|
355
|
+
| "ru"
|
|
356
|
+
| "sk"
|
|
357
|
+
| "sl"
|
|
358
|
+
| "sv"
|
|
359
|
+
| "th"
|
|
360
|
+
| "tr"
|
|
361
|
+
| "vi"
|
|
362
|
+
| "zh"
|
|
363
|
+
| "zh-HK"
|
|
364
|
+
| "zh-TW";
|
|
365
|
+
readonly managed_payments?: { readonly enabled?: boolean } & {
|
|
366
|
+
readonly [x: string]: Schema.Json;
|
|
367
|
+
};
|
|
368
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
369
|
+
readonly mode?: "payment" | "setup" | "subscription";
|
|
370
|
+
readonly name_collection?: {
|
|
371
|
+
readonly business?: {
|
|
372
|
+
readonly enabled: boolean;
|
|
373
|
+
readonly optional?: boolean;
|
|
374
|
+
} & { readonly [x: string]: Schema.Json };
|
|
375
|
+
readonly individual?: {
|
|
376
|
+
readonly enabled: boolean;
|
|
377
|
+
readonly optional?: boolean;
|
|
378
|
+
} & { readonly [x: string]: Schema.Json };
|
|
379
|
+
} & { readonly [x: string]: Schema.Json };
|
|
380
|
+
readonly optional_items?: ReadonlyArray<
|
|
381
|
+
{
|
|
382
|
+
readonly adjustable_quantity?: {
|
|
383
|
+
readonly enabled: boolean;
|
|
384
|
+
readonly maximum?: number;
|
|
385
|
+
readonly minimum?: number;
|
|
386
|
+
} & { readonly [x: string]: Schema.Json };
|
|
387
|
+
readonly price: string;
|
|
388
|
+
readonly quantity: number;
|
|
389
|
+
} & { readonly [x: string]: Schema.Json }
|
|
390
|
+
>;
|
|
391
|
+
readonly origin_context?: "mobile_app" | "web";
|
|
392
|
+
readonly payment_intent_data?: {
|
|
393
|
+
readonly application_fee_amount?: number;
|
|
394
|
+
readonly capture_method?: "automatic" | "automatic_async" | "manual";
|
|
395
|
+
readonly description?: string;
|
|
396
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
397
|
+
readonly on_behalf_of?: string;
|
|
398
|
+
readonly receipt_email?: string;
|
|
399
|
+
readonly setup_future_usage?: "off_session" | "on_session";
|
|
400
|
+
readonly shipping?: {
|
|
401
|
+
readonly address: {
|
|
402
|
+
readonly city?: string;
|
|
403
|
+
readonly country?: string;
|
|
404
|
+
readonly line1: string;
|
|
405
|
+
readonly line2?: string;
|
|
406
|
+
readonly postal_code?: string;
|
|
407
|
+
readonly state?: string;
|
|
408
|
+
} & { readonly [x: string]: Schema.Json };
|
|
409
|
+
readonly carrier?: string;
|
|
410
|
+
readonly name: string;
|
|
411
|
+
readonly phone?: string;
|
|
412
|
+
readonly tracking_number?: string;
|
|
413
|
+
} & { readonly [x: string]: Schema.Json };
|
|
414
|
+
readonly statement_descriptor?: string;
|
|
415
|
+
readonly statement_descriptor_suffix?: string;
|
|
416
|
+
readonly transfer_data?: {
|
|
417
|
+
readonly amount?: number;
|
|
418
|
+
readonly destination: string;
|
|
419
|
+
} & { readonly [x: string]: Schema.Json };
|
|
420
|
+
readonly transfer_group?: string;
|
|
421
|
+
} & { readonly [x: string]: Schema.Json };
|
|
422
|
+
readonly payment_method_collection?: "always" | "if_required";
|
|
423
|
+
readonly payment_method_configuration?: string;
|
|
424
|
+
readonly payment_method_data?: {
|
|
425
|
+
readonly allow_redisplay?: "always" | "limited" | "unspecified";
|
|
426
|
+
} & { readonly [x: string]: Schema.Json };
|
|
427
|
+
readonly payment_method_options?: {
|
|
428
|
+
readonly acss_debit?: {
|
|
429
|
+
readonly currency?: "cad" | "usd";
|
|
430
|
+
readonly mandate_options?: {
|
|
431
|
+
readonly custom_mandate_url?: string | "";
|
|
432
|
+
readonly default_for?: ReadonlyArray<"invoice" | "subscription">;
|
|
433
|
+
readonly interval_description?: string;
|
|
434
|
+
readonly payment_schedule?: "combined" | "interval" | "sporadic";
|
|
435
|
+
readonly transaction_type?: "business" | "personal";
|
|
436
|
+
} & { readonly [x: string]: Schema.Json };
|
|
437
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
438
|
+
readonly target_date?: string;
|
|
439
|
+
readonly verification_method?: "automatic" | "instant" | "microdeposits";
|
|
440
|
+
} & { readonly [x: string]: Schema.Json };
|
|
441
|
+
readonly affirm?: {
|
|
442
|
+
readonly capture_method?: "manual";
|
|
443
|
+
readonly setup_future_usage?: "none";
|
|
444
|
+
} & { readonly [x: string]: Schema.Json };
|
|
445
|
+
readonly afterpay_clearpay?: {
|
|
446
|
+
readonly capture_method?: "manual";
|
|
447
|
+
readonly setup_future_usage?: "none";
|
|
448
|
+
} & { readonly [x: string]: Schema.Json };
|
|
449
|
+
readonly alipay?: { readonly setup_future_usage?: "none" } & {
|
|
450
|
+
readonly [x: string]: Schema.Json;
|
|
451
|
+
};
|
|
452
|
+
readonly alma?: { readonly capture_method?: "manual" } & {
|
|
453
|
+
readonly [x: string]: Schema.Json;
|
|
454
|
+
};
|
|
455
|
+
readonly amazon_pay?: {
|
|
456
|
+
readonly capture_method?: "manual";
|
|
457
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
458
|
+
} & { readonly [x: string]: Schema.Json };
|
|
459
|
+
readonly au_becs_debit?: {
|
|
460
|
+
readonly setup_future_usage?: "none";
|
|
461
|
+
readonly target_date?: string;
|
|
462
|
+
} & { readonly [x: string]: Schema.Json };
|
|
463
|
+
readonly bacs_debit?: {
|
|
464
|
+
readonly mandate_options?: { readonly reference_prefix?: string | "" } & {
|
|
465
|
+
readonly [x: string]: Schema.Json;
|
|
466
|
+
};
|
|
467
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
468
|
+
readonly target_date?: string;
|
|
469
|
+
} & { readonly [x: string]: Schema.Json };
|
|
470
|
+
readonly bancontact?: {
|
|
471
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
472
|
+
} & { readonly [x: string]: Schema.Json };
|
|
473
|
+
readonly billie?: { readonly capture_method?: "manual" } & {
|
|
474
|
+
readonly [x: string]: Schema.Json;
|
|
475
|
+
};
|
|
476
|
+
readonly blik?: {
|
|
477
|
+
readonly mandate_options?: { readonly expires_at?: number } & {
|
|
478
|
+
readonly [x: string]: Schema.Json;
|
|
479
|
+
};
|
|
480
|
+
readonly setup_future_usage?: "" | "none" | "off_session";
|
|
481
|
+
} & { readonly [x: string]: Schema.Json };
|
|
482
|
+
readonly boleto?: {
|
|
483
|
+
readonly expires_after_days?: number;
|
|
484
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
485
|
+
} & { readonly [x: string]: Schema.Json };
|
|
486
|
+
readonly card?: {
|
|
487
|
+
readonly capture_method?: "manual";
|
|
488
|
+
readonly installments?: { readonly enabled?: boolean } & {
|
|
489
|
+
readonly [x: string]: Schema.Json;
|
|
490
|
+
};
|
|
491
|
+
readonly request_extended_authorization?: "if_available" | "never";
|
|
492
|
+
readonly request_incremental_authorization?: "if_available" | "never";
|
|
493
|
+
readonly request_multicapture?: "if_available" | "never";
|
|
494
|
+
readonly request_overcapture?: "if_available" | "never";
|
|
495
|
+
readonly request_three_d_secure?: "any" | "automatic" | "challenge";
|
|
496
|
+
readonly restrictions?: {
|
|
497
|
+
readonly brands_blocked?: ReadonlyArray<
|
|
498
|
+
"american_express" | "discover_global_network" | "mastercard" | "visa"
|
|
499
|
+
>;
|
|
500
|
+
readonly funding_types_blocked?: ReadonlyArray<
|
|
501
|
+
"credit" | "debit" | "prepaid"
|
|
502
|
+
>;
|
|
503
|
+
} & { readonly [x: string]: Schema.Json };
|
|
504
|
+
readonly setup_future_usage?: "off_session" | "on_session";
|
|
505
|
+
readonly statement_descriptor_suffix_kana?: string;
|
|
506
|
+
readonly statement_descriptor_suffix_kanji?: string;
|
|
507
|
+
} & { readonly [x: string]: Schema.Json };
|
|
508
|
+
readonly cashapp?: {
|
|
509
|
+
readonly capture_method?: "manual";
|
|
510
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
511
|
+
} & { readonly [x: string]: Schema.Json };
|
|
512
|
+
readonly crypto?: { readonly setup_future_usage?: "none" } & {
|
|
513
|
+
readonly [x: string]: Schema.Json;
|
|
514
|
+
};
|
|
515
|
+
readonly customer_balance?: {
|
|
516
|
+
readonly bank_transfer?: {
|
|
517
|
+
readonly eu_bank_transfer?: { readonly country: string } & {
|
|
518
|
+
readonly [x: string]: Schema.Json;
|
|
519
|
+
};
|
|
520
|
+
readonly requested_address_types?: ReadonlyArray<
|
|
521
|
+
"aba" | "iban" | "sepa" | "sort_code" | "spei" | "swift" | "zengin"
|
|
522
|
+
>;
|
|
523
|
+
readonly type:
|
|
524
|
+
| "eu_bank_transfer"
|
|
525
|
+
| "gb_bank_transfer"
|
|
526
|
+
| "jp_bank_transfer"
|
|
527
|
+
| "mx_bank_transfer"
|
|
528
|
+
| "us_bank_transfer";
|
|
529
|
+
} & { readonly [x: string]: Schema.Json };
|
|
530
|
+
readonly funding_type?: "bank_transfer";
|
|
531
|
+
readonly setup_future_usage?: "none";
|
|
532
|
+
} & { readonly [x: string]: Schema.Json };
|
|
533
|
+
readonly demo_pay?: {
|
|
534
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
535
|
+
} & { readonly [x: string]: Schema.Json };
|
|
536
|
+
readonly eps?: { readonly setup_future_usage?: "none" } & {
|
|
537
|
+
readonly [x: string]: Schema.Json;
|
|
538
|
+
};
|
|
539
|
+
readonly fpx?: { readonly setup_future_usage?: "none" } & {
|
|
540
|
+
readonly [x: string]: Schema.Json;
|
|
541
|
+
};
|
|
542
|
+
readonly giropay?: { readonly setup_future_usage?: "none" } & {
|
|
543
|
+
readonly [x: string]: Schema.Json;
|
|
544
|
+
};
|
|
545
|
+
readonly grabpay?: { readonly setup_future_usage?: "none" } & {
|
|
546
|
+
readonly [x: string]: Schema.Json;
|
|
547
|
+
};
|
|
548
|
+
readonly ideal?: { readonly setup_future_usage?: "none" } & {
|
|
549
|
+
readonly [x: string]: Schema.Json;
|
|
550
|
+
};
|
|
551
|
+
readonly kakao_pay?: {
|
|
552
|
+
readonly capture_method?: "manual";
|
|
553
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
554
|
+
} & { readonly [x: string]: Schema.Json };
|
|
555
|
+
readonly klarna?: {
|
|
556
|
+
readonly capture_method?: "manual";
|
|
557
|
+
readonly setup_future_usage?: "none";
|
|
558
|
+
readonly subscriptions?:
|
|
559
|
+
| ReadonlyArray<
|
|
560
|
+
{
|
|
561
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
562
|
+
readonly interval_count?: number;
|
|
563
|
+
readonly name?: string;
|
|
564
|
+
readonly next_billing: {
|
|
565
|
+
readonly amount: number;
|
|
566
|
+
readonly date: string;
|
|
567
|
+
} & { readonly [x: string]: Schema.Json };
|
|
568
|
+
readonly reference: string;
|
|
569
|
+
} & { readonly [x: string]: Schema.Json }
|
|
570
|
+
>
|
|
571
|
+
| "";
|
|
572
|
+
} & { readonly [x: string]: Schema.Json };
|
|
573
|
+
readonly konbini?: {
|
|
574
|
+
readonly expires_after_days?: number;
|
|
575
|
+
readonly setup_future_usage?: "none";
|
|
576
|
+
} & { readonly [x: string]: Schema.Json };
|
|
577
|
+
readonly kr_card?: {
|
|
578
|
+
readonly capture_method?: "manual";
|
|
579
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
580
|
+
} & { readonly [x: string]: Schema.Json };
|
|
581
|
+
readonly link?: {
|
|
582
|
+
readonly capture_method?: "manual";
|
|
583
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
584
|
+
} & { readonly [x: string]: Schema.Json };
|
|
585
|
+
readonly mobilepay?: {
|
|
586
|
+
readonly capture_method?: "manual";
|
|
587
|
+
readonly setup_future_usage?: "none";
|
|
588
|
+
} & { readonly [x: string]: Schema.Json };
|
|
589
|
+
readonly multibanco?: { readonly setup_future_usage?: "none" } & {
|
|
590
|
+
readonly [x: string]: Schema.Json;
|
|
591
|
+
};
|
|
592
|
+
readonly naver_pay?: {
|
|
593
|
+
readonly capture_method?: "manual";
|
|
594
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
595
|
+
} & { readonly [x: string]: Schema.Json };
|
|
596
|
+
readonly oxxo?: {
|
|
597
|
+
readonly expires_after_days?: number;
|
|
598
|
+
readonly setup_future_usage?: "none";
|
|
599
|
+
} & { readonly [x: string]: Schema.Json };
|
|
600
|
+
readonly p24?: {
|
|
601
|
+
readonly setup_future_usage?: "none";
|
|
602
|
+
readonly tos_shown_and_accepted?: boolean;
|
|
603
|
+
} & { readonly [x: string]: Schema.Json };
|
|
604
|
+
readonly pay_by_bank?: { readonly [x: string]: Schema.Json };
|
|
605
|
+
readonly payco?: {
|
|
606
|
+
readonly capture_method?: "manual";
|
|
607
|
+
readonly setup_future_usage?: "none";
|
|
608
|
+
} & { readonly [x: string]: Schema.Json };
|
|
609
|
+
readonly paynow?: { readonly setup_future_usage?: "none" } & {
|
|
610
|
+
readonly [x: string]: Schema.Json;
|
|
611
|
+
};
|
|
612
|
+
readonly paypal?: {
|
|
613
|
+
readonly capture_method?: "" | "manual";
|
|
614
|
+
readonly preferred_locale?:
|
|
615
|
+
| "cs-CZ"
|
|
616
|
+
| "da-DK"
|
|
617
|
+
| "de-AT"
|
|
618
|
+
| "de-DE"
|
|
619
|
+
| "de-LU"
|
|
620
|
+
| "el-GR"
|
|
621
|
+
| "en-GB"
|
|
622
|
+
| "en-US"
|
|
623
|
+
| "es-ES"
|
|
624
|
+
| "fi-FI"
|
|
625
|
+
| "fr-BE"
|
|
626
|
+
| "fr-FR"
|
|
627
|
+
| "fr-LU"
|
|
628
|
+
| "hu-HU"
|
|
629
|
+
| "it-IT"
|
|
630
|
+
| "nl-BE"
|
|
631
|
+
| "nl-NL"
|
|
632
|
+
| "pl-PL"
|
|
633
|
+
| "pt-PT"
|
|
634
|
+
| "sk-SK"
|
|
635
|
+
| "sv-SE";
|
|
636
|
+
readonly reference?: string;
|
|
637
|
+
readonly risk_correlation_id?: string;
|
|
638
|
+
readonly setup_future_usage?: "" | "none" | "off_session";
|
|
639
|
+
} & { readonly [x: string]: Schema.Json };
|
|
640
|
+
readonly payto?: {
|
|
641
|
+
readonly mandate_options?: {
|
|
642
|
+
readonly amount?: number | "";
|
|
643
|
+
readonly amount_type?: "" | "fixed" | "maximum";
|
|
644
|
+
readonly end_date?: string | "";
|
|
645
|
+
readonly payment_schedule?:
|
|
646
|
+
| ""
|
|
647
|
+
| "adhoc"
|
|
648
|
+
| "annual"
|
|
649
|
+
| "daily"
|
|
650
|
+
| "fortnightly"
|
|
651
|
+
| "monthly"
|
|
652
|
+
| "quarterly"
|
|
653
|
+
| "semi_annual"
|
|
654
|
+
| "weekly";
|
|
655
|
+
readonly payments_per_period?: number | "";
|
|
656
|
+
readonly purpose?:
|
|
657
|
+
| ""
|
|
658
|
+
| "dependant_support"
|
|
659
|
+
| "government"
|
|
660
|
+
| "loan"
|
|
661
|
+
| "mortgage"
|
|
662
|
+
| "other"
|
|
663
|
+
| "pension"
|
|
664
|
+
| "personal"
|
|
665
|
+
| "retail"
|
|
666
|
+
| "salary"
|
|
667
|
+
| "tax"
|
|
668
|
+
| "utility";
|
|
669
|
+
readonly start_date?: string | "";
|
|
670
|
+
} & { readonly [x: string]: Schema.Json };
|
|
671
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
672
|
+
} & { readonly [x: string]: Schema.Json };
|
|
673
|
+
readonly pix?: {
|
|
674
|
+
readonly amount_includes_iof?: "always" | "never";
|
|
675
|
+
readonly expires_after_seconds?: number;
|
|
676
|
+
readonly mandate_options?: {
|
|
677
|
+
readonly amount?: number;
|
|
678
|
+
readonly amount_includes_iof?: "always" | "never";
|
|
679
|
+
readonly amount_type?: "fixed" | "maximum";
|
|
680
|
+
readonly currency?: string;
|
|
681
|
+
readonly end_date?: string;
|
|
682
|
+
readonly payment_schedule?:
|
|
683
|
+
| "halfyearly"
|
|
684
|
+
| "monthly"
|
|
685
|
+
| "quarterly"
|
|
686
|
+
| "weekly"
|
|
687
|
+
| "yearly";
|
|
688
|
+
readonly reference?: string;
|
|
689
|
+
readonly start_date?: string;
|
|
690
|
+
} & { readonly [x: string]: Schema.Json };
|
|
691
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
692
|
+
} & { readonly [x: string]: Schema.Json };
|
|
693
|
+
readonly revolut_pay?: {
|
|
694
|
+
readonly capture_method?: "manual";
|
|
695
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
696
|
+
} & { readonly [x: string]: Schema.Json };
|
|
697
|
+
readonly samsung_pay?: {
|
|
698
|
+
readonly capture_method?: "manual";
|
|
699
|
+
readonly setup_future_usage?: "none";
|
|
700
|
+
} & { readonly [x: string]: Schema.Json };
|
|
701
|
+
readonly satispay?: { readonly capture_method?: "manual" } & {
|
|
702
|
+
readonly [x: string]: Schema.Json;
|
|
703
|
+
};
|
|
704
|
+
readonly scalapay?: { readonly capture_method?: "manual" } & {
|
|
705
|
+
readonly [x: string]: Schema.Json;
|
|
706
|
+
};
|
|
707
|
+
readonly sepa_debit?: {
|
|
708
|
+
readonly mandate_options?: { readonly reference_prefix?: string | "" } & {
|
|
709
|
+
readonly [x: string]: Schema.Json;
|
|
710
|
+
};
|
|
711
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
712
|
+
readonly target_date?: string;
|
|
713
|
+
} & { readonly [x: string]: Schema.Json };
|
|
714
|
+
readonly sequra?: { readonly capture_method?: "manual" } & {
|
|
715
|
+
readonly [x: string]: Schema.Json;
|
|
716
|
+
};
|
|
717
|
+
readonly sofort?: { readonly setup_future_usage?: "none" } & {
|
|
718
|
+
readonly [x: string]: Schema.Json;
|
|
719
|
+
};
|
|
720
|
+
readonly sunbit?: {
|
|
721
|
+
readonly capture_method?: "manual";
|
|
722
|
+
readonly setup_future_usage?: "none";
|
|
723
|
+
} & { readonly [x: string]: Schema.Json };
|
|
724
|
+
readonly swish?: { readonly reference?: string } & {
|
|
725
|
+
readonly [x: string]: Schema.Json;
|
|
726
|
+
};
|
|
727
|
+
readonly twint?: {
|
|
728
|
+
readonly setup_future_usage?: "none" | "off_session";
|
|
729
|
+
} & { readonly [x: string]: Schema.Json };
|
|
730
|
+
readonly upi?: {
|
|
731
|
+
readonly mandate_options?: {
|
|
732
|
+
readonly amount?: number;
|
|
733
|
+
readonly amount_type?: "fixed" | "maximum";
|
|
734
|
+
readonly description?: string;
|
|
735
|
+
readonly end_date?: number;
|
|
736
|
+
} & { readonly [x: string]: Schema.Json };
|
|
737
|
+
readonly setup_future_usage?: "" | "none" | "off_session" | "on_session";
|
|
738
|
+
} & { readonly [x: string]: Schema.Json };
|
|
739
|
+
readonly us_bank_account?: {
|
|
740
|
+
readonly financial_connections?: {
|
|
741
|
+
readonly permissions?: ReadonlyArray<
|
|
742
|
+
"balances" | "ownership" | "payment_method" | "transactions"
|
|
743
|
+
>;
|
|
744
|
+
readonly prefetch?: ReadonlyArray<
|
|
745
|
+
"balances" | "ownership" | "transactions"
|
|
746
|
+
>;
|
|
747
|
+
} & { readonly [x: string]: Schema.Json };
|
|
748
|
+
readonly setup_future_usage?: "none" | "off_session" | "on_session";
|
|
749
|
+
readonly target_date?: string;
|
|
750
|
+
readonly verification_method?: "automatic" | "instant";
|
|
751
|
+
} & { readonly [x: string]: Schema.Json };
|
|
752
|
+
readonly wechat_pay?: {
|
|
753
|
+
readonly app_id?: string;
|
|
754
|
+
readonly client: "android" | "ios" | "web";
|
|
755
|
+
readonly setup_future_usage?: "none";
|
|
756
|
+
} & { readonly [x: string]: Schema.Json };
|
|
757
|
+
} & { readonly [x: string]: Schema.Json };
|
|
758
|
+
readonly permissions?: {
|
|
759
|
+
readonly update_shipping_details?: "client_only" | "server_only";
|
|
760
|
+
} & { readonly [x: string]: Schema.Json };
|
|
761
|
+
readonly phone_number_collection?: { readonly enabled: boolean } & {
|
|
762
|
+
readonly [x: string]: Schema.Json;
|
|
763
|
+
};
|
|
764
|
+
readonly redirect_on_completion?: "always" | "if_required" | "never";
|
|
765
|
+
readonly return_url?: string;
|
|
766
|
+
readonly saved_payment_method_options?: {
|
|
767
|
+
readonly allow_redisplay_filters?: ReadonlyArray<
|
|
768
|
+
"always" | "limited" | "unspecified"
|
|
769
|
+
>;
|
|
770
|
+
readonly payment_method_remove?: "disabled" | "enabled";
|
|
771
|
+
readonly payment_method_save?: "disabled" | "enabled";
|
|
772
|
+
} & { readonly [x: string]: Schema.Json };
|
|
773
|
+
readonly setup_intent_data?: {
|
|
774
|
+
readonly description?: string;
|
|
775
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
776
|
+
readonly on_behalf_of?: string;
|
|
777
|
+
} & { readonly [x: string]: Schema.Json };
|
|
778
|
+
readonly shipping_address_collection?: {
|
|
779
|
+
readonly allowed_countries: ReadonlyArray<
|
|
780
|
+
| "AC"
|
|
781
|
+
| "AD"
|
|
782
|
+
| "AE"
|
|
783
|
+
| "AF"
|
|
784
|
+
| "AG"
|
|
785
|
+
| "AI"
|
|
786
|
+
| "AL"
|
|
787
|
+
| "AM"
|
|
788
|
+
| "AO"
|
|
789
|
+
| "AQ"
|
|
790
|
+
| "AR"
|
|
791
|
+
| "AT"
|
|
792
|
+
| "AU"
|
|
793
|
+
| "AW"
|
|
794
|
+
| "AX"
|
|
795
|
+
| "AZ"
|
|
796
|
+
| "BA"
|
|
797
|
+
| "BB"
|
|
798
|
+
| "BD"
|
|
799
|
+
| "BE"
|
|
800
|
+
| "BF"
|
|
801
|
+
| "BG"
|
|
802
|
+
| "BH"
|
|
803
|
+
| "BI"
|
|
804
|
+
| "BJ"
|
|
805
|
+
| "BL"
|
|
806
|
+
| "BM"
|
|
807
|
+
| "BN"
|
|
808
|
+
| "BO"
|
|
809
|
+
| "BQ"
|
|
810
|
+
| "BR"
|
|
811
|
+
| "BS"
|
|
812
|
+
| "BT"
|
|
813
|
+
| "BV"
|
|
814
|
+
| "BW"
|
|
815
|
+
| "BY"
|
|
816
|
+
| "BZ"
|
|
817
|
+
| "CA"
|
|
818
|
+
| "CD"
|
|
819
|
+
| "CF"
|
|
820
|
+
| "CG"
|
|
821
|
+
| "CH"
|
|
822
|
+
| "CI"
|
|
823
|
+
| "CK"
|
|
824
|
+
| "CL"
|
|
825
|
+
| "CM"
|
|
826
|
+
| "CN"
|
|
827
|
+
| "CO"
|
|
828
|
+
| "CR"
|
|
829
|
+
| "CV"
|
|
830
|
+
| "CW"
|
|
831
|
+
| "CY"
|
|
832
|
+
| "CZ"
|
|
833
|
+
| "DE"
|
|
834
|
+
| "DJ"
|
|
835
|
+
| "DK"
|
|
836
|
+
| "DM"
|
|
837
|
+
| "DO"
|
|
838
|
+
| "DZ"
|
|
839
|
+
| "EC"
|
|
840
|
+
| "EE"
|
|
841
|
+
| "EG"
|
|
842
|
+
| "EH"
|
|
843
|
+
| "ER"
|
|
844
|
+
| "ES"
|
|
845
|
+
| "ET"
|
|
846
|
+
| "FI"
|
|
847
|
+
| "FJ"
|
|
848
|
+
| "FK"
|
|
849
|
+
| "FO"
|
|
850
|
+
| "FR"
|
|
851
|
+
| "GA"
|
|
852
|
+
| "GB"
|
|
853
|
+
| "GD"
|
|
854
|
+
| "GE"
|
|
855
|
+
| "GF"
|
|
856
|
+
| "GG"
|
|
857
|
+
| "GH"
|
|
858
|
+
| "GI"
|
|
859
|
+
| "GL"
|
|
860
|
+
| "GM"
|
|
861
|
+
| "GN"
|
|
862
|
+
| "GP"
|
|
863
|
+
| "GQ"
|
|
864
|
+
| "GR"
|
|
865
|
+
| "GS"
|
|
866
|
+
| "GT"
|
|
867
|
+
| "GU"
|
|
868
|
+
| "GW"
|
|
869
|
+
| "GY"
|
|
870
|
+
| "HK"
|
|
871
|
+
| "HN"
|
|
872
|
+
| "HR"
|
|
873
|
+
| "HT"
|
|
874
|
+
| "HU"
|
|
875
|
+
| "ID"
|
|
876
|
+
| "IE"
|
|
877
|
+
| "IL"
|
|
878
|
+
| "IM"
|
|
879
|
+
| "IN"
|
|
880
|
+
| "IO"
|
|
881
|
+
| "IQ"
|
|
882
|
+
| "IS"
|
|
883
|
+
| "IT"
|
|
884
|
+
| "JE"
|
|
885
|
+
| "JM"
|
|
886
|
+
| "JO"
|
|
887
|
+
| "JP"
|
|
888
|
+
| "KE"
|
|
889
|
+
| "KG"
|
|
890
|
+
| "KH"
|
|
891
|
+
| "KI"
|
|
892
|
+
| "KM"
|
|
893
|
+
| "KN"
|
|
894
|
+
| "KR"
|
|
895
|
+
| "KW"
|
|
896
|
+
| "KY"
|
|
897
|
+
| "KZ"
|
|
898
|
+
| "LA"
|
|
899
|
+
| "LB"
|
|
900
|
+
| "LC"
|
|
901
|
+
| "LI"
|
|
902
|
+
| "LK"
|
|
903
|
+
| "LR"
|
|
904
|
+
| "LS"
|
|
905
|
+
| "LT"
|
|
906
|
+
| "LU"
|
|
907
|
+
| "LV"
|
|
908
|
+
| "LY"
|
|
909
|
+
| "MA"
|
|
910
|
+
| "MC"
|
|
911
|
+
| "MD"
|
|
912
|
+
| "ME"
|
|
913
|
+
| "MF"
|
|
914
|
+
| "MG"
|
|
915
|
+
| "MK"
|
|
916
|
+
| "ML"
|
|
917
|
+
| "MM"
|
|
918
|
+
| "MN"
|
|
919
|
+
| "MO"
|
|
920
|
+
| "MQ"
|
|
921
|
+
| "MR"
|
|
922
|
+
| "MS"
|
|
923
|
+
| "MT"
|
|
924
|
+
| "MU"
|
|
925
|
+
| "MV"
|
|
926
|
+
| "MW"
|
|
927
|
+
| "MX"
|
|
928
|
+
| "MY"
|
|
929
|
+
| "MZ"
|
|
930
|
+
| "NA"
|
|
931
|
+
| "NC"
|
|
932
|
+
| "NE"
|
|
933
|
+
| "NG"
|
|
934
|
+
| "NI"
|
|
935
|
+
| "NL"
|
|
936
|
+
| "NO"
|
|
937
|
+
| "NP"
|
|
938
|
+
| "NR"
|
|
939
|
+
| "NU"
|
|
940
|
+
| "NZ"
|
|
941
|
+
| "OM"
|
|
942
|
+
| "PA"
|
|
943
|
+
| "PE"
|
|
944
|
+
| "PF"
|
|
945
|
+
| "PG"
|
|
946
|
+
| "PH"
|
|
947
|
+
| "PK"
|
|
948
|
+
| "PL"
|
|
949
|
+
| "PM"
|
|
950
|
+
| "PN"
|
|
951
|
+
| "PR"
|
|
952
|
+
| "PS"
|
|
953
|
+
| "PT"
|
|
954
|
+
| "PY"
|
|
955
|
+
| "QA"
|
|
956
|
+
| "RE"
|
|
957
|
+
| "RO"
|
|
958
|
+
| "RS"
|
|
959
|
+
| "RU"
|
|
960
|
+
| "RW"
|
|
961
|
+
| "SA"
|
|
962
|
+
| "SB"
|
|
963
|
+
| "SC"
|
|
964
|
+
| "SD"
|
|
965
|
+
| "SE"
|
|
966
|
+
| "SG"
|
|
967
|
+
| "SH"
|
|
968
|
+
| "SI"
|
|
969
|
+
| "SJ"
|
|
970
|
+
| "SK"
|
|
971
|
+
| "SL"
|
|
972
|
+
| "SM"
|
|
973
|
+
| "SN"
|
|
974
|
+
| "SO"
|
|
975
|
+
| "SR"
|
|
976
|
+
| "SS"
|
|
977
|
+
| "ST"
|
|
978
|
+
| "SV"
|
|
979
|
+
| "SX"
|
|
980
|
+
| "SZ"
|
|
981
|
+
| "TA"
|
|
982
|
+
| "TC"
|
|
983
|
+
| "TD"
|
|
984
|
+
| "TF"
|
|
985
|
+
| "TG"
|
|
986
|
+
| "TH"
|
|
987
|
+
| "TJ"
|
|
988
|
+
| "TK"
|
|
989
|
+
| "TL"
|
|
990
|
+
| "TM"
|
|
991
|
+
| "TN"
|
|
992
|
+
| "TO"
|
|
993
|
+
| "TR"
|
|
994
|
+
| "TT"
|
|
995
|
+
| "TV"
|
|
996
|
+
| "TW"
|
|
997
|
+
| "TZ"
|
|
998
|
+
| "UA"
|
|
999
|
+
| "UG"
|
|
1000
|
+
| "US"
|
|
1001
|
+
| "UY"
|
|
1002
|
+
| "UZ"
|
|
1003
|
+
| "VA"
|
|
1004
|
+
| "VC"
|
|
1005
|
+
| "VE"
|
|
1006
|
+
| "VG"
|
|
1007
|
+
| "VN"
|
|
1008
|
+
| "VU"
|
|
1009
|
+
| "WF"
|
|
1010
|
+
| "WS"
|
|
1011
|
+
| "XK"
|
|
1012
|
+
| "YE"
|
|
1013
|
+
| "YT"
|
|
1014
|
+
| "ZA"
|
|
1015
|
+
| "ZM"
|
|
1016
|
+
| "ZW"
|
|
1017
|
+
| "ZZ"
|
|
1018
|
+
>;
|
|
1019
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1020
|
+
readonly shipping_options?: ReadonlyArray<
|
|
1021
|
+
{
|
|
1022
|
+
readonly shipping_rate?: string;
|
|
1023
|
+
readonly shipping_rate_data?: {
|
|
1024
|
+
readonly delivery_estimate?: {
|
|
1025
|
+
readonly maximum?: {
|
|
1026
|
+
readonly unit: "business_day" | "day" | "hour" | "month" | "week";
|
|
1027
|
+
readonly value: number;
|
|
1028
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1029
|
+
readonly minimum?: {
|
|
1030
|
+
readonly unit: "business_day" | "day" | "hour" | "month" | "week";
|
|
1031
|
+
readonly value: number;
|
|
1032
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1033
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1034
|
+
readonly display_name: string;
|
|
1035
|
+
readonly fixed_amount?: {
|
|
1036
|
+
readonly amount: number;
|
|
1037
|
+
readonly currency: string;
|
|
1038
|
+
readonly currency_options?: {
|
|
1039
|
+
readonly [x: string]: {
|
|
1040
|
+
readonly amount: number;
|
|
1041
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
1042
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1043
|
+
};
|
|
1044
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1045
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
1046
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
1047
|
+
readonly tax_code?: string;
|
|
1048
|
+
readonly type?: "fixed_amount";
|
|
1049
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1050
|
+
} & { readonly [x: string]: Schema.Json }
|
|
1051
|
+
>;
|
|
1052
|
+
readonly submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe";
|
|
1053
|
+
readonly subscription_data?: {
|
|
1054
|
+
readonly application_fee_percent?: number;
|
|
1055
|
+
readonly billing_cycle_anchor?: number;
|
|
1056
|
+
readonly billing_cycle_anchor_config?: {
|
|
1057
|
+
readonly day_of_month: number;
|
|
1058
|
+
readonly hour?: number;
|
|
1059
|
+
readonly minute?: number;
|
|
1060
|
+
readonly month?: number;
|
|
1061
|
+
readonly second?: number;
|
|
1062
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1063
|
+
readonly billing_mode?: {
|
|
1064
|
+
readonly flexible?: {
|
|
1065
|
+
readonly proration_discounts?: "included" | "itemized";
|
|
1066
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1067
|
+
readonly type: "classic" | "flexible";
|
|
1068
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1069
|
+
readonly default_tax_rates?: ReadonlyArray<string>;
|
|
1070
|
+
readonly description?: string;
|
|
1071
|
+
readonly invoice_settings?: {
|
|
1072
|
+
readonly account_tax_ids?: ReadonlyArray<string> | "";
|
|
1073
|
+
readonly custom_fields?:
|
|
1074
|
+
| ReadonlyArray<
|
|
1075
|
+
{ readonly name: string; readonly value: string } & {
|
|
1076
|
+
readonly [x: string]: Schema.Json;
|
|
1077
|
+
}
|
|
1078
|
+
>
|
|
1079
|
+
| "";
|
|
1080
|
+
readonly description?: string;
|
|
1081
|
+
readonly footer?: string;
|
|
1082
|
+
readonly issuer?: {
|
|
1083
|
+
readonly account?: string;
|
|
1084
|
+
readonly type: "account" | "self";
|
|
1085
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1086
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1087
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
1088
|
+
readonly on_behalf_of?: string;
|
|
1089
|
+
readonly pending_invoice_item_interval?: {
|
|
1090
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
1091
|
+
readonly interval_count?: number;
|
|
1092
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1093
|
+
readonly proration_behavior?: "create_prorations" | "none";
|
|
1094
|
+
readonly transfer_data?: {
|
|
1095
|
+
readonly amount_percent?: number;
|
|
1096
|
+
readonly destination: string;
|
|
1097
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1098
|
+
readonly trial_end?: number;
|
|
1099
|
+
readonly trial_period_days?: number;
|
|
1100
|
+
readonly trial_settings?: {
|
|
1101
|
+
readonly end_behavior: {
|
|
1102
|
+
readonly missing_payment_method: "cancel" | "create_invoice" | "pause";
|
|
1103
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1104
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1105
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1106
|
+
readonly success_url?: string;
|
|
1107
|
+
readonly tax_id_collection?: {
|
|
1108
|
+
readonly enabled: boolean;
|
|
1109
|
+
readonly required?: "if_supported" | "never";
|
|
1110
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1111
|
+
readonly ui_mode?: "elements" | "embedded_page" | "form" | "hosted_page";
|
|
1112
|
+
readonly wallet_options?: {
|
|
1113
|
+
readonly link?: { readonly display?: "auto" | "never" } & {
|
|
1114
|
+
readonly [x: string]: Schema.Json;
|
|
1115
|
+
};
|
|
1116
|
+
} & { readonly [x: string]: Schema.Json };
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
export const StripeCheckoutSessionResourceSchema =
|
|
1120
|
+
ResourceSchemaAnnotationSchema.make({
|
|
1121
|
+
provider: "stripe",
|
|
1122
|
+
service: "billing",
|
|
1123
|
+
resource: "checkout-session",
|
|
1124
|
+
operation: "create",
|
|
1125
|
+
stateSecretOutputKeys: [],
|
|
1126
|
+
primaryIdentifier: ["/properties/CheckoutSessionId"],
|
|
1127
|
+
});
|
|
1128
|
+
export const StripeCheckoutSessionPropsSchema = annotateResourceSchema(
|
|
1129
|
+
Schema.Struct({
|
|
1130
|
+
adaptive_pricing: Schema.optionalKey(
|
|
1131
|
+
Schema.StructWithRest(
|
|
1132
|
+
Schema.Struct({ enabled: Schema.optionalKey(Schema.Boolean) }),
|
|
1133
|
+
[
|
|
1134
|
+
Schema.Record(
|
|
1135
|
+
Schema.String,
|
|
1136
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1137
|
+
),
|
|
1138
|
+
],
|
|
1139
|
+
).annotate({
|
|
1140
|
+
title: "adaptive_pricing_params",
|
|
1141
|
+
description:
|
|
1142
|
+
"Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).",
|
|
1143
|
+
}),
|
|
1144
|
+
),
|
|
1145
|
+
after_expiration: Schema.optionalKey(
|
|
1146
|
+
Schema.StructWithRest(
|
|
1147
|
+
Schema.Struct({
|
|
1148
|
+
recovery: Schema.optionalKey(
|
|
1149
|
+
Schema.StructWithRest(
|
|
1150
|
+
Schema.Struct({
|
|
1151
|
+
allow_promotion_codes: Schema.optionalKey(Schema.Boolean),
|
|
1152
|
+
enabled: Schema.Boolean,
|
|
1153
|
+
}),
|
|
1154
|
+
[
|
|
1155
|
+
Schema.Record(
|
|
1156
|
+
Schema.String,
|
|
1157
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1158
|
+
),
|
|
1159
|
+
],
|
|
1160
|
+
).annotate({ title: "recovery_params" }),
|
|
1161
|
+
),
|
|
1162
|
+
}),
|
|
1163
|
+
[
|
|
1164
|
+
Schema.Record(
|
|
1165
|
+
Schema.String,
|
|
1166
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1167
|
+
),
|
|
1168
|
+
],
|
|
1169
|
+
).annotate({
|
|
1170
|
+
title: "after_expiration_params",
|
|
1171
|
+
description:
|
|
1172
|
+
"Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`.",
|
|
1173
|
+
}),
|
|
1174
|
+
),
|
|
1175
|
+
allow_promotion_codes: Schema.optionalKey(
|
|
1176
|
+
Schema.Boolean.annotate({
|
|
1177
|
+
description: "Enables user redeemable promotion codes.",
|
|
1178
|
+
}),
|
|
1179
|
+
),
|
|
1180
|
+
allowed_payment_method_types: Schema.optionalKey(
|
|
1181
|
+
Schema.Array(
|
|
1182
|
+
Schema.Literals([
|
|
1183
|
+
"acss_debit",
|
|
1184
|
+
"affirm",
|
|
1185
|
+
"afterpay_clearpay",
|
|
1186
|
+
"alipay",
|
|
1187
|
+
"alma",
|
|
1188
|
+
"amazon_pay",
|
|
1189
|
+
"au_becs_debit",
|
|
1190
|
+
"bacs_debit",
|
|
1191
|
+
"bancontact",
|
|
1192
|
+
"billie",
|
|
1193
|
+
"bizum",
|
|
1194
|
+
"blik",
|
|
1195
|
+
"boleto",
|
|
1196
|
+
"card",
|
|
1197
|
+
"cashapp",
|
|
1198
|
+
"crypto",
|
|
1199
|
+
"customer_balance",
|
|
1200
|
+
"eps",
|
|
1201
|
+
"fpx",
|
|
1202
|
+
"giropay",
|
|
1203
|
+
"grabpay",
|
|
1204
|
+
"ideal",
|
|
1205
|
+
"kakao_pay",
|
|
1206
|
+
"klarna",
|
|
1207
|
+
"konbini",
|
|
1208
|
+
"kr_card",
|
|
1209
|
+
"link",
|
|
1210
|
+
"mb_way",
|
|
1211
|
+
"mobilepay",
|
|
1212
|
+
"multibanco",
|
|
1213
|
+
"naver_pay",
|
|
1214
|
+
"nz_bank_account",
|
|
1215
|
+
"oxxo",
|
|
1216
|
+
"p24",
|
|
1217
|
+
"pay_by_bank",
|
|
1218
|
+
"payco",
|
|
1219
|
+
"paynow",
|
|
1220
|
+
"paypal",
|
|
1221
|
+
"paypay",
|
|
1222
|
+
"payto",
|
|
1223
|
+
"pix",
|
|
1224
|
+
"promptpay",
|
|
1225
|
+
"revolut_pay",
|
|
1226
|
+
"samsung_pay",
|
|
1227
|
+
"satispay",
|
|
1228
|
+
"scalapay",
|
|
1229
|
+
"sepa_debit",
|
|
1230
|
+
"sequra",
|
|
1231
|
+
"sofort",
|
|
1232
|
+
"sunbit",
|
|
1233
|
+
"swish",
|
|
1234
|
+
"twint",
|
|
1235
|
+
"upi",
|
|
1236
|
+
"us_bank_account",
|
|
1237
|
+
"wechat_pay",
|
|
1238
|
+
"zip",
|
|
1239
|
+
]),
|
|
1240
|
+
).annotate({
|
|
1241
|
+
description:
|
|
1242
|
+
"A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.\n\nUnlike `payment_method_types`, this acts as a filter on the dynamically computed set of\neligible payment methods rather than an explicit static list. Only payment methods that\nare both dynamically eligible and present in this list will be offered to the customer.",
|
|
1243
|
+
}),
|
|
1244
|
+
),
|
|
1245
|
+
automatic_tax: Schema.optionalKey(
|
|
1246
|
+
Schema.StructWithRest(
|
|
1247
|
+
Schema.Struct({
|
|
1248
|
+
enabled: Schema.Boolean,
|
|
1249
|
+
liability: Schema.optionalKey(
|
|
1250
|
+
Schema.StructWithRest(
|
|
1251
|
+
Schema.Struct({
|
|
1252
|
+
account: Schema.optionalKey(Schema.String),
|
|
1253
|
+
type: Schema.Literals(["account", "self"]),
|
|
1254
|
+
}),
|
|
1255
|
+
[
|
|
1256
|
+
Schema.Record(
|
|
1257
|
+
Schema.String,
|
|
1258
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1259
|
+
),
|
|
1260
|
+
],
|
|
1261
|
+
).annotate({ title: "param" }),
|
|
1262
|
+
),
|
|
1263
|
+
}),
|
|
1264
|
+
[
|
|
1265
|
+
Schema.Record(
|
|
1266
|
+
Schema.String,
|
|
1267
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1268
|
+
),
|
|
1269
|
+
],
|
|
1270
|
+
).annotate({
|
|
1271
|
+
title: "automatic_tax_params",
|
|
1272
|
+
description:
|
|
1273
|
+
"Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.",
|
|
1274
|
+
}),
|
|
1275
|
+
),
|
|
1276
|
+
billing_address_collection: Schema.optionalKey(
|
|
1277
|
+
Schema.Literals(["auto", "required"]).annotate({
|
|
1278
|
+
description:
|
|
1279
|
+
"Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.",
|
|
1280
|
+
}),
|
|
1281
|
+
),
|
|
1282
|
+
branding_settings: Schema.optionalKey(
|
|
1283
|
+
Schema.StructWithRest(
|
|
1284
|
+
Schema.Struct({
|
|
1285
|
+
background_color: Schema.optionalKey(
|
|
1286
|
+
Schema.Union([
|
|
1287
|
+
Schema.String.check(
|
|
1288
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1289
|
+
expected: "a string with at most 5000 code points",
|
|
1290
|
+
}),
|
|
1291
|
+
),
|
|
1292
|
+
Schema.Literal(""),
|
|
1293
|
+
]),
|
|
1294
|
+
),
|
|
1295
|
+
border_style: Schema.optionalKey(
|
|
1296
|
+
Schema.Literals(["", "pill", "rectangular", "rounded"]),
|
|
1297
|
+
),
|
|
1298
|
+
button_color: Schema.optionalKey(
|
|
1299
|
+
Schema.Union([
|
|
1300
|
+
Schema.String.check(
|
|
1301
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1302
|
+
expected: "a string with at most 5000 code points",
|
|
1303
|
+
}),
|
|
1304
|
+
),
|
|
1305
|
+
Schema.Literal(""),
|
|
1306
|
+
]),
|
|
1307
|
+
),
|
|
1308
|
+
display_name: Schema.optionalKey(
|
|
1309
|
+
Schema.String.check(
|
|
1310
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1311
|
+
expected: "a string with at most 5000 code points",
|
|
1312
|
+
}),
|
|
1313
|
+
),
|
|
1314
|
+
),
|
|
1315
|
+
font_family: Schema.optionalKey(
|
|
1316
|
+
Schema.Literals([
|
|
1317
|
+
"",
|
|
1318
|
+
"be_vietnam_pro",
|
|
1319
|
+
"bitter",
|
|
1320
|
+
"chakra_petch",
|
|
1321
|
+
"default",
|
|
1322
|
+
"hahmlet",
|
|
1323
|
+
"inconsolata",
|
|
1324
|
+
"inter",
|
|
1325
|
+
"lato",
|
|
1326
|
+
"lora",
|
|
1327
|
+
"m_plus_1_code",
|
|
1328
|
+
"montserrat",
|
|
1329
|
+
"noto_sans",
|
|
1330
|
+
"noto_sans_jp",
|
|
1331
|
+
"noto_serif",
|
|
1332
|
+
"nunito",
|
|
1333
|
+
"open_sans",
|
|
1334
|
+
"pridi",
|
|
1335
|
+
"pt_sans",
|
|
1336
|
+
"pt_serif",
|
|
1337
|
+
"raleway",
|
|
1338
|
+
"roboto",
|
|
1339
|
+
"roboto_slab",
|
|
1340
|
+
"source_sans_pro",
|
|
1341
|
+
"titillium_web",
|
|
1342
|
+
"ubuntu_mono",
|
|
1343
|
+
"zen_maru_gothic",
|
|
1344
|
+
]),
|
|
1345
|
+
),
|
|
1346
|
+
icon: Schema.optionalKey(
|
|
1347
|
+
Schema.StructWithRest(
|
|
1348
|
+
Schema.Struct({
|
|
1349
|
+
file: Schema.optionalKey(Schema.String),
|
|
1350
|
+
type: Schema.Literals(["file", "url"]),
|
|
1351
|
+
url: Schema.optionalKey(Schema.String),
|
|
1352
|
+
}),
|
|
1353
|
+
[
|
|
1354
|
+
Schema.Record(
|
|
1355
|
+
Schema.String,
|
|
1356
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1357
|
+
),
|
|
1358
|
+
],
|
|
1359
|
+
).annotate({ title: "icon_params" }),
|
|
1360
|
+
),
|
|
1361
|
+
logo: Schema.optionalKey(
|
|
1362
|
+
Schema.StructWithRest(
|
|
1363
|
+
Schema.Struct({
|
|
1364
|
+
file: Schema.optionalKey(Schema.String),
|
|
1365
|
+
type: Schema.Literals(["file", "url"]),
|
|
1366
|
+
url: Schema.optionalKey(Schema.String),
|
|
1367
|
+
}),
|
|
1368
|
+
[
|
|
1369
|
+
Schema.Record(
|
|
1370
|
+
Schema.String,
|
|
1371
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1372
|
+
),
|
|
1373
|
+
],
|
|
1374
|
+
).annotate({ title: "logo_params" }),
|
|
1375
|
+
),
|
|
1376
|
+
}),
|
|
1377
|
+
[
|
|
1378
|
+
Schema.Record(
|
|
1379
|
+
Schema.String,
|
|
1380
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1381
|
+
),
|
|
1382
|
+
],
|
|
1383
|
+
).annotate({
|
|
1384
|
+
title: "branding_settings_params",
|
|
1385
|
+
description:
|
|
1386
|
+
"The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`.",
|
|
1387
|
+
}),
|
|
1388
|
+
),
|
|
1389
|
+
cancel_url: Schema.optionalKey(
|
|
1390
|
+
Schema.String.annotate({
|
|
1391
|
+
description:
|
|
1392
|
+
"If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`.",
|
|
1393
|
+
}),
|
|
1394
|
+
),
|
|
1395
|
+
client_reference_id: Schema.optionalKey(
|
|
1396
|
+
Schema.String.annotate({
|
|
1397
|
+
description:
|
|
1398
|
+
"A unique string to reference the Checkout Session. This can be a\ncustomer ID, a cart ID, or similar, and can be used to reconcile the\nsession with your internal systems.",
|
|
1399
|
+
}).check(
|
|
1400
|
+
Schema.isMaxCodePoints(200).annotate({
|
|
1401
|
+
expected: "a string with at most 200 code points",
|
|
1402
|
+
}),
|
|
1403
|
+
),
|
|
1404
|
+
),
|
|
1405
|
+
consent_collection: Schema.optionalKey(
|
|
1406
|
+
Schema.StructWithRest(
|
|
1407
|
+
Schema.Struct({
|
|
1408
|
+
payment_method_reuse_agreement: Schema.optionalKey(
|
|
1409
|
+
Schema.StructWithRest(
|
|
1410
|
+
Schema.Struct({ position: Schema.Literals(["auto", "hidden"]) }),
|
|
1411
|
+
[
|
|
1412
|
+
Schema.Record(
|
|
1413
|
+
Schema.String,
|
|
1414
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1415
|
+
),
|
|
1416
|
+
],
|
|
1417
|
+
).annotate({ title: "payment_method_reuse_agreement_params" }),
|
|
1418
|
+
),
|
|
1419
|
+
promotions: Schema.optionalKey(Schema.Literals(["auto", "none"])),
|
|
1420
|
+
terms_of_service: Schema.optionalKey(
|
|
1421
|
+
Schema.Literals(["none", "required"]),
|
|
1422
|
+
),
|
|
1423
|
+
}),
|
|
1424
|
+
[
|
|
1425
|
+
Schema.Record(
|
|
1426
|
+
Schema.String,
|
|
1427
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1428
|
+
),
|
|
1429
|
+
],
|
|
1430
|
+
).annotate({
|
|
1431
|
+
title: "consent_collection_params",
|
|
1432
|
+
description:
|
|
1433
|
+
"Configure fields for the Checkout Session to gather active consent from customers.",
|
|
1434
|
+
}),
|
|
1435
|
+
),
|
|
1436
|
+
currency: Schema.optionalKey(
|
|
1437
|
+
Schema.String.annotate({
|
|
1438
|
+
description:
|
|
1439
|
+
"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `allowed_payment_method_types` is not set.",
|
|
1440
|
+
format: "currency",
|
|
1441
|
+
}),
|
|
1442
|
+
),
|
|
1443
|
+
custom_fields: Schema.optionalKey(
|
|
1444
|
+
Schema.Array(
|
|
1445
|
+
Schema.StructWithRest(
|
|
1446
|
+
Schema.Struct({
|
|
1447
|
+
dropdown: Schema.optionalKey(
|
|
1448
|
+
Schema.StructWithRest(
|
|
1449
|
+
Schema.Struct({
|
|
1450
|
+
default_value: Schema.optionalKey(
|
|
1451
|
+
Schema.String.check(
|
|
1452
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1453
|
+
expected: "a string with at most 100 code points",
|
|
1454
|
+
}),
|
|
1455
|
+
),
|
|
1456
|
+
),
|
|
1457
|
+
options: Schema.Array(
|
|
1458
|
+
Schema.StructWithRest(
|
|
1459
|
+
Schema.Struct({
|
|
1460
|
+
label: Schema.String.check(
|
|
1461
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1462
|
+
expected: "a string with at most 100 code points",
|
|
1463
|
+
}),
|
|
1464
|
+
),
|
|
1465
|
+
value: Schema.String.check(
|
|
1466
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1467
|
+
expected: "a string with at most 100 code points",
|
|
1468
|
+
}),
|
|
1469
|
+
),
|
|
1470
|
+
}),
|
|
1471
|
+
[
|
|
1472
|
+
Schema.Record(
|
|
1473
|
+
Schema.String,
|
|
1474
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1475
|
+
),
|
|
1476
|
+
],
|
|
1477
|
+
).annotate({ title: "custom_field_option_param" }),
|
|
1478
|
+
),
|
|
1479
|
+
}),
|
|
1480
|
+
[
|
|
1481
|
+
Schema.Record(
|
|
1482
|
+
Schema.String,
|
|
1483
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1484
|
+
),
|
|
1485
|
+
],
|
|
1486
|
+
).annotate({ title: "custom_field_dropdown_param" }),
|
|
1487
|
+
),
|
|
1488
|
+
key: Schema.String.check(
|
|
1489
|
+
Schema.isMaxCodePoints(200).annotate({
|
|
1490
|
+
expected: "a string with at most 200 code points",
|
|
1491
|
+
}),
|
|
1492
|
+
),
|
|
1493
|
+
label: Schema.StructWithRest(
|
|
1494
|
+
Schema.Struct({
|
|
1495
|
+
custom: Schema.String.check(
|
|
1496
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1497
|
+
expected: "a string with at most 100 code points",
|
|
1498
|
+
}),
|
|
1499
|
+
),
|
|
1500
|
+
type: Schema.Literal("custom"),
|
|
1501
|
+
}),
|
|
1502
|
+
[
|
|
1503
|
+
Schema.Record(
|
|
1504
|
+
Schema.String,
|
|
1505
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1506
|
+
),
|
|
1507
|
+
],
|
|
1508
|
+
).annotate({ title: "custom_field_label_param" }),
|
|
1509
|
+
numeric: Schema.optionalKey(
|
|
1510
|
+
Schema.StructWithRest(
|
|
1511
|
+
Schema.Struct({
|
|
1512
|
+
default_value: Schema.optionalKey(
|
|
1513
|
+
Schema.String.check(
|
|
1514
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
1515
|
+
expected: "a string with at most 255 code points",
|
|
1516
|
+
}),
|
|
1517
|
+
),
|
|
1518
|
+
),
|
|
1519
|
+
maximum_length: Schema.optionalKey(Schema.Int),
|
|
1520
|
+
minimum_length: Schema.optionalKey(Schema.Int),
|
|
1521
|
+
}),
|
|
1522
|
+
[
|
|
1523
|
+
Schema.Record(
|
|
1524
|
+
Schema.String,
|
|
1525
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1526
|
+
),
|
|
1527
|
+
],
|
|
1528
|
+
).annotate({ title: "custom_field_numeric_param" }),
|
|
1529
|
+
),
|
|
1530
|
+
optional: Schema.optionalKey(Schema.Boolean),
|
|
1531
|
+
text: Schema.optionalKey(
|
|
1532
|
+
Schema.StructWithRest(
|
|
1533
|
+
Schema.Struct({
|
|
1534
|
+
default_value: Schema.optionalKey(
|
|
1535
|
+
Schema.String.check(
|
|
1536
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
1537
|
+
expected: "a string with at most 255 code points",
|
|
1538
|
+
}),
|
|
1539
|
+
),
|
|
1540
|
+
),
|
|
1541
|
+
maximum_length: Schema.optionalKey(Schema.Int),
|
|
1542
|
+
minimum_length: Schema.optionalKey(Schema.Int),
|
|
1543
|
+
}),
|
|
1544
|
+
[
|
|
1545
|
+
Schema.Record(
|
|
1546
|
+
Schema.String,
|
|
1547
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1548
|
+
),
|
|
1549
|
+
],
|
|
1550
|
+
).annotate({ title: "custom_field_text_param" }),
|
|
1551
|
+
),
|
|
1552
|
+
type: Schema.Literals(["dropdown", "numeric", "text"]),
|
|
1553
|
+
}),
|
|
1554
|
+
[
|
|
1555
|
+
Schema.Record(
|
|
1556
|
+
Schema.String,
|
|
1557
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1558
|
+
),
|
|
1559
|
+
],
|
|
1560
|
+
).annotate({ title: "custom_field_param" }),
|
|
1561
|
+
).annotate({
|
|
1562
|
+
description:
|
|
1563
|
+
"Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `elements`.",
|
|
1564
|
+
}),
|
|
1565
|
+
),
|
|
1566
|
+
custom_text: Schema.optionalKey(
|
|
1567
|
+
Schema.StructWithRest(
|
|
1568
|
+
Schema.Struct({
|
|
1569
|
+
after_submit: Schema.optionalKey(
|
|
1570
|
+
Schema.Union([
|
|
1571
|
+
Schema.StructWithRest(
|
|
1572
|
+
Schema.Struct({
|
|
1573
|
+
message: Schema.String.check(
|
|
1574
|
+
Schema.isMaxCodePoints(1200).annotate({
|
|
1575
|
+
expected: "a string with at most 1200 code points",
|
|
1576
|
+
}),
|
|
1577
|
+
),
|
|
1578
|
+
}),
|
|
1579
|
+
[
|
|
1580
|
+
Schema.Record(
|
|
1581
|
+
Schema.String,
|
|
1582
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1583
|
+
),
|
|
1584
|
+
],
|
|
1585
|
+
).annotate({ title: "custom_text_position_param" }),
|
|
1586
|
+
Schema.Literal(""),
|
|
1587
|
+
]),
|
|
1588
|
+
),
|
|
1589
|
+
shipping_address: Schema.optionalKey(
|
|
1590
|
+
Schema.Union([
|
|
1591
|
+
Schema.StructWithRest(
|
|
1592
|
+
Schema.Struct({
|
|
1593
|
+
message: Schema.String.check(
|
|
1594
|
+
Schema.isMaxCodePoints(1200).annotate({
|
|
1595
|
+
expected: "a string with at most 1200 code points",
|
|
1596
|
+
}),
|
|
1597
|
+
),
|
|
1598
|
+
}),
|
|
1599
|
+
[
|
|
1600
|
+
Schema.Record(
|
|
1601
|
+
Schema.String,
|
|
1602
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1603
|
+
),
|
|
1604
|
+
],
|
|
1605
|
+
).annotate({ title: "custom_text_position_param" }),
|
|
1606
|
+
Schema.Literal(""),
|
|
1607
|
+
]),
|
|
1608
|
+
),
|
|
1609
|
+
submit: Schema.optionalKey(
|
|
1610
|
+
Schema.Union([
|
|
1611
|
+
Schema.StructWithRest(
|
|
1612
|
+
Schema.Struct({
|
|
1613
|
+
message: Schema.String.check(
|
|
1614
|
+
Schema.isMaxCodePoints(1200).annotate({
|
|
1615
|
+
expected: "a string with at most 1200 code points",
|
|
1616
|
+
}),
|
|
1617
|
+
),
|
|
1618
|
+
}),
|
|
1619
|
+
[
|
|
1620
|
+
Schema.Record(
|
|
1621
|
+
Schema.String,
|
|
1622
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1623
|
+
),
|
|
1624
|
+
],
|
|
1625
|
+
).annotate({ title: "custom_text_position_param" }),
|
|
1626
|
+
Schema.Literal(""),
|
|
1627
|
+
]),
|
|
1628
|
+
),
|
|
1629
|
+
terms_of_service_acceptance: Schema.optionalKey(
|
|
1630
|
+
Schema.Union([
|
|
1631
|
+
Schema.StructWithRest(
|
|
1632
|
+
Schema.Struct({
|
|
1633
|
+
message: Schema.String.check(
|
|
1634
|
+
Schema.isMaxCodePoints(1200).annotate({
|
|
1635
|
+
expected: "a string with at most 1200 code points",
|
|
1636
|
+
}),
|
|
1637
|
+
),
|
|
1638
|
+
}),
|
|
1639
|
+
[
|
|
1640
|
+
Schema.Record(
|
|
1641
|
+
Schema.String,
|
|
1642
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1643
|
+
),
|
|
1644
|
+
],
|
|
1645
|
+
).annotate({ title: "custom_text_position_param" }),
|
|
1646
|
+
Schema.Literal(""),
|
|
1647
|
+
]),
|
|
1648
|
+
),
|
|
1649
|
+
}),
|
|
1650
|
+
[
|
|
1651
|
+
Schema.Record(
|
|
1652
|
+
Schema.String,
|
|
1653
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1654
|
+
),
|
|
1655
|
+
],
|
|
1656
|
+
).annotate({
|
|
1657
|
+
title: "custom_text_param",
|
|
1658
|
+
description:
|
|
1659
|
+
"Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `elements`.",
|
|
1660
|
+
}),
|
|
1661
|
+
),
|
|
1662
|
+
customer: Schema.optionalKey(
|
|
1663
|
+
Schema.String.annotate({
|
|
1664
|
+
description:
|
|
1665
|
+
"ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card\npayment method will be used to prefill the email, name, card details, and billing address\non the Checkout page. In `subscription` mode, the customer’s [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)\nwill be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.\n\nIf the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.\nIf the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.\n\nIf blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.\n\nYou can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.",
|
|
1666
|
+
}).check(
|
|
1667
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1668
|
+
expected: "a string with at most 5000 code points",
|
|
1669
|
+
}),
|
|
1670
|
+
),
|
|
1671
|
+
),
|
|
1672
|
+
customer_account: Schema.optionalKey(
|
|
1673
|
+
Schema.String.annotate({
|
|
1674
|
+
description:
|
|
1675
|
+
"ID of an existing Account, if one exists. Has the same behavior as `customer`.",
|
|
1676
|
+
}).check(
|
|
1677
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1678
|
+
expected: "a string with at most 5000 code points",
|
|
1679
|
+
}),
|
|
1680
|
+
),
|
|
1681
|
+
),
|
|
1682
|
+
customer_creation: Schema.optionalKey(
|
|
1683
|
+
Schema.Literals(["always", "if_required"]).annotate({
|
|
1684
|
+
description:
|
|
1685
|
+
"Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.\n\nWhen a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout\nwith [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).\n\nSessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)\nin the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.\n\nCan only be set in `payment` and `setup` mode.",
|
|
1686
|
+
}),
|
|
1687
|
+
),
|
|
1688
|
+
customer_email: Schema.optionalKey(
|
|
1689
|
+
Schema.String.annotate({
|
|
1690
|
+
description:
|
|
1691
|
+
"If provided, this value will be used when the Customer object is created.\nIf not provided, customers will be asked to enter their email address.\nUse this parameter to prefill customer data if you already have an email\non file. To access information about the customer once a session is\ncomplete, use the `customer` field.",
|
|
1692
|
+
}).check(
|
|
1693
|
+
Schema.isMaxCodePoints(800).annotate({
|
|
1694
|
+
expected: "a string with at most 800 code points",
|
|
1695
|
+
}),
|
|
1696
|
+
),
|
|
1697
|
+
),
|
|
1698
|
+
customer_update: Schema.optionalKey(
|
|
1699
|
+
Schema.StructWithRest(
|
|
1700
|
+
Schema.Struct({
|
|
1701
|
+
address: Schema.optionalKey(Schema.Literals(["auto", "never"])),
|
|
1702
|
+
name: Schema.optionalKey(Schema.Literals(["auto", "never"])),
|
|
1703
|
+
shipping: Schema.optionalKey(Schema.Literals(["auto", "never"])),
|
|
1704
|
+
}),
|
|
1705
|
+
[
|
|
1706
|
+
Schema.Record(
|
|
1707
|
+
Schema.String,
|
|
1708
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1709
|
+
),
|
|
1710
|
+
],
|
|
1711
|
+
).annotate({
|
|
1712
|
+
title: "customer_update_params",
|
|
1713
|
+
description:
|
|
1714
|
+
"Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.",
|
|
1715
|
+
}),
|
|
1716
|
+
),
|
|
1717
|
+
discounts: Schema.optionalKey(
|
|
1718
|
+
Schema.Array(
|
|
1719
|
+
Schema.StructWithRest(
|
|
1720
|
+
Schema.Struct({
|
|
1721
|
+
coupon: Schema.optionalKey(
|
|
1722
|
+
Schema.String.check(
|
|
1723
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1724
|
+
expected: "a string with at most 5000 code points",
|
|
1725
|
+
}),
|
|
1726
|
+
),
|
|
1727
|
+
),
|
|
1728
|
+
promotion_code: Schema.optionalKey(
|
|
1729
|
+
Schema.String.check(
|
|
1730
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1731
|
+
expected: "a string with at most 5000 code points",
|
|
1732
|
+
}),
|
|
1733
|
+
),
|
|
1734
|
+
),
|
|
1735
|
+
}),
|
|
1736
|
+
[
|
|
1737
|
+
Schema.Record(
|
|
1738
|
+
Schema.String,
|
|
1739
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1740
|
+
),
|
|
1741
|
+
],
|
|
1742
|
+
).annotate({ title: "discount_params" }),
|
|
1743
|
+
).annotate({
|
|
1744
|
+
description:
|
|
1745
|
+
"The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.",
|
|
1746
|
+
}),
|
|
1747
|
+
),
|
|
1748
|
+
excluded_payment_method_types: Schema.optionalKey(
|
|
1749
|
+
Schema.Array(
|
|
1750
|
+
Schema.Literals([
|
|
1751
|
+
"acss_debit",
|
|
1752
|
+
"affirm",
|
|
1753
|
+
"afterpay_clearpay",
|
|
1754
|
+
"alipay",
|
|
1755
|
+
"alma",
|
|
1756
|
+
"amazon_pay",
|
|
1757
|
+
"au_becs_debit",
|
|
1758
|
+
"bacs_debit",
|
|
1759
|
+
"bancontact",
|
|
1760
|
+
"billie",
|
|
1761
|
+
"bizum",
|
|
1762
|
+
"blik",
|
|
1763
|
+
"boleto",
|
|
1764
|
+
"card",
|
|
1765
|
+
"cashapp",
|
|
1766
|
+
"crypto",
|
|
1767
|
+
"customer_balance",
|
|
1768
|
+
"eps",
|
|
1769
|
+
"fpx",
|
|
1770
|
+
"giropay",
|
|
1771
|
+
"grabpay",
|
|
1772
|
+
"ideal",
|
|
1773
|
+
"kakao_pay",
|
|
1774
|
+
"klarna",
|
|
1775
|
+
"konbini",
|
|
1776
|
+
"kr_card",
|
|
1777
|
+
"mb_way",
|
|
1778
|
+
"mobilepay",
|
|
1779
|
+
"multibanco",
|
|
1780
|
+
"naver_pay",
|
|
1781
|
+
"nz_bank_account",
|
|
1782
|
+
"oxxo",
|
|
1783
|
+
"p24",
|
|
1784
|
+
"pay_by_bank",
|
|
1785
|
+
"payco",
|
|
1786
|
+
"paynow",
|
|
1787
|
+
"paypal",
|
|
1788
|
+
"paypay",
|
|
1789
|
+
"payto",
|
|
1790
|
+
"pix",
|
|
1791
|
+
"promptpay",
|
|
1792
|
+
"revolut_pay",
|
|
1793
|
+
"samsung_pay",
|
|
1794
|
+
"satispay",
|
|
1795
|
+
"scalapay",
|
|
1796
|
+
"sepa_debit",
|
|
1797
|
+
"sequra",
|
|
1798
|
+
"sofort",
|
|
1799
|
+
"sunbit",
|
|
1800
|
+
"swish",
|
|
1801
|
+
"twint",
|
|
1802
|
+
"upi",
|
|
1803
|
+
"us_bank_account",
|
|
1804
|
+
"wechat_pay",
|
|
1805
|
+
"zip",
|
|
1806
|
+
]),
|
|
1807
|
+
).annotate({
|
|
1808
|
+
description:
|
|
1809
|
+
"A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).",
|
|
1810
|
+
}),
|
|
1811
|
+
),
|
|
1812
|
+
expand: Schema.optionalKey(
|
|
1813
|
+
Schema.Array(
|
|
1814
|
+
Schema.String.check(
|
|
1815
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1816
|
+
expected: "a string with at most 5000 code points",
|
|
1817
|
+
}),
|
|
1818
|
+
),
|
|
1819
|
+
).annotate({
|
|
1820
|
+
description:
|
|
1821
|
+
"Specifies which fields in the response should be expanded.",
|
|
1822
|
+
}),
|
|
1823
|
+
),
|
|
1824
|
+
expires_at: Schema.optionalKey(
|
|
1825
|
+
Schema.Number.annotate({
|
|
1826
|
+
description:
|
|
1827
|
+
"The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.",
|
|
1828
|
+
format: "unix-time",
|
|
1829
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1830
|
+
),
|
|
1831
|
+
integration_identifier: Schema.optionalKey(
|
|
1832
|
+
Schema.String.annotate({
|
|
1833
|
+
description:
|
|
1834
|
+
"The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.",
|
|
1835
|
+
}).check(
|
|
1836
|
+
Schema.isMaxCodePoints(200).annotate({
|
|
1837
|
+
expected: "a string with at most 200 code points",
|
|
1838
|
+
}),
|
|
1839
|
+
),
|
|
1840
|
+
),
|
|
1841
|
+
invoice_creation: Schema.optionalKey(
|
|
1842
|
+
Schema.StructWithRest(
|
|
1843
|
+
Schema.Struct({
|
|
1844
|
+
enabled: Schema.Boolean,
|
|
1845
|
+
invoice_data: Schema.optionalKey(
|
|
1846
|
+
Schema.StructWithRest(
|
|
1847
|
+
Schema.Struct({
|
|
1848
|
+
account_tax_ids: Schema.optionalKey(
|
|
1849
|
+
Schema.Union([
|
|
1850
|
+
Schema.Array(
|
|
1851
|
+
Schema.String.check(
|
|
1852
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1853
|
+
expected: "a string with at most 5000 code points",
|
|
1854
|
+
}),
|
|
1855
|
+
),
|
|
1856
|
+
),
|
|
1857
|
+
Schema.Literal(""),
|
|
1858
|
+
]),
|
|
1859
|
+
),
|
|
1860
|
+
custom_fields: Schema.optionalKey(
|
|
1861
|
+
Schema.Union([
|
|
1862
|
+
Schema.Array(
|
|
1863
|
+
Schema.StructWithRest(
|
|
1864
|
+
Schema.Struct({
|
|
1865
|
+
name: Schema.String.check(
|
|
1866
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
1867
|
+
expected: "a string with at most 40 code points",
|
|
1868
|
+
}),
|
|
1869
|
+
),
|
|
1870
|
+
value: Schema.String.check(
|
|
1871
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
1872
|
+
expected: "a string with at most 140 code points",
|
|
1873
|
+
}),
|
|
1874
|
+
),
|
|
1875
|
+
}),
|
|
1876
|
+
[
|
|
1877
|
+
Schema.Record(
|
|
1878
|
+
Schema.String,
|
|
1879
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1880
|
+
),
|
|
1881
|
+
],
|
|
1882
|
+
).annotate({ title: "custom_field_params" }),
|
|
1883
|
+
),
|
|
1884
|
+
Schema.Literal(""),
|
|
1885
|
+
]),
|
|
1886
|
+
),
|
|
1887
|
+
description: Schema.optionalKey(
|
|
1888
|
+
Schema.String.check(
|
|
1889
|
+
Schema.isMaxCodePoints(1500).annotate({
|
|
1890
|
+
expected: "a string with at most 1500 code points",
|
|
1891
|
+
}),
|
|
1892
|
+
),
|
|
1893
|
+
),
|
|
1894
|
+
footer: Schema.optionalKey(
|
|
1895
|
+
Schema.String.check(
|
|
1896
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1897
|
+
expected: "a string with at most 5000 code points",
|
|
1898
|
+
}),
|
|
1899
|
+
),
|
|
1900
|
+
),
|
|
1901
|
+
issuer: Schema.optionalKey(
|
|
1902
|
+
Schema.StructWithRest(
|
|
1903
|
+
Schema.Struct({
|
|
1904
|
+
account: Schema.optionalKey(Schema.String),
|
|
1905
|
+
type: Schema.Literals(["account", "self"]),
|
|
1906
|
+
}),
|
|
1907
|
+
[
|
|
1908
|
+
Schema.Record(
|
|
1909
|
+
Schema.String,
|
|
1910
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1911
|
+
),
|
|
1912
|
+
],
|
|
1913
|
+
).annotate({ title: "param" }),
|
|
1914
|
+
),
|
|
1915
|
+
metadata: Schema.optionalKey(
|
|
1916
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1917
|
+
),
|
|
1918
|
+
rendering_options: Schema.optionalKey(
|
|
1919
|
+
Schema.Union([
|
|
1920
|
+
Schema.StructWithRest(
|
|
1921
|
+
Schema.Struct({
|
|
1922
|
+
amount_tax_display: Schema.optionalKey(
|
|
1923
|
+
Schema.Literals([
|
|
1924
|
+
"",
|
|
1925
|
+
"exclude_tax",
|
|
1926
|
+
"include_inclusive_tax",
|
|
1927
|
+
]),
|
|
1928
|
+
),
|
|
1929
|
+
template: Schema.optionalKey(
|
|
1930
|
+
Schema.String.check(
|
|
1931
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1932
|
+
expected:
|
|
1933
|
+
"a string with at most 5000 code points",
|
|
1934
|
+
}),
|
|
1935
|
+
),
|
|
1936
|
+
),
|
|
1937
|
+
}),
|
|
1938
|
+
[
|
|
1939
|
+
Schema.Record(
|
|
1940
|
+
Schema.String,
|
|
1941
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1942
|
+
),
|
|
1943
|
+
],
|
|
1944
|
+
).annotate({ title: "checkout_rendering_options_param" }),
|
|
1945
|
+
Schema.Literal(""),
|
|
1946
|
+
]),
|
|
1947
|
+
),
|
|
1948
|
+
}),
|
|
1949
|
+
[
|
|
1950
|
+
Schema.Record(
|
|
1951
|
+
Schema.String,
|
|
1952
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1953
|
+
),
|
|
1954
|
+
],
|
|
1955
|
+
).annotate({ title: "invoice_data_params" }),
|
|
1956
|
+
),
|
|
1957
|
+
}),
|
|
1958
|
+
[
|
|
1959
|
+
Schema.Record(
|
|
1960
|
+
Schema.String,
|
|
1961
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1962
|
+
),
|
|
1963
|
+
],
|
|
1964
|
+
).annotate({
|
|
1965
|
+
title: "invoice_creation_params",
|
|
1966
|
+
description: "Generate a post-purchase Invoice for one-time payments.",
|
|
1967
|
+
}),
|
|
1968
|
+
),
|
|
1969
|
+
line_items: Schema.optionalKey(
|
|
1970
|
+
Schema.Array(
|
|
1971
|
+
Schema.StructWithRest(
|
|
1972
|
+
Schema.Struct({
|
|
1973
|
+
adjustable_quantity: Schema.optionalKey(
|
|
1974
|
+
Schema.StructWithRest(
|
|
1975
|
+
Schema.Struct({
|
|
1976
|
+
enabled: Schema.Boolean,
|
|
1977
|
+
maximum: Schema.optionalKey(Schema.Int),
|
|
1978
|
+
minimum: Schema.optionalKey(Schema.Int),
|
|
1979
|
+
}),
|
|
1980
|
+
[
|
|
1981
|
+
Schema.Record(
|
|
1982
|
+
Schema.String,
|
|
1983
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1984
|
+
),
|
|
1985
|
+
],
|
|
1986
|
+
).annotate({ title: "adjustable_quantity_params" }),
|
|
1987
|
+
),
|
|
1988
|
+
metadata: Schema.optionalKey(
|
|
1989
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1990
|
+
),
|
|
1991
|
+
price: Schema.optionalKey(
|
|
1992
|
+
Schema.String.check(
|
|
1993
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1994
|
+
expected: "a string with at most 5000 code points",
|
|
1995
|
+
}),
|
|
1996
|
+
),
|
|
1997
|
+
),
|
|
1998
|
+
price_data: Schema.optionalKey(
|
|
1999
|
+
Schema.StructWithRest(
|
|
2000
|
+
Schema.Struct({
|
|
2001
|
+
currency: Schema.String.annotate({ format: "currency" }),
|
|
2002
|
+
product: Schema.optionalKey(
|
|
2003
|
+
Schema.String.check(
|
|
2004
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2005
|
+
expected: "a string with at most 5000 code points",
|
|
2006
|
+
}),
|
|
2007
|
+
),
|
|
2008
|
+
),
|
|
2009
|
+
product_data: Schema.optionalKey(
|
|
2010
|
+
Schema.StructWithRest(
|
|
2011
|
+
Schema.Struct({
|
|
2012
|
+
description: Schema.optionalKey(
|
|
2013
|
+
Schema.String.check(
|
|
2014
|
+
Schema.isMaxCodePoints(40000).annotate({
|
|
2015
|
+
expected:
|
|
2016
|
+
"a string with at most 40000 code points",
|
|
2017
|
+
}),
|
|
2018
|
+
),
|
|
2019
|
+
),
|
|
2020
|
+
images: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
2021
|
+
metadata: Schema.optionalKey(
|
|
2022
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2023
|
+
),
|
|
2024
|
+
name: Schema.String.check(
|
|
2025
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2026
|
+
expected: "a string with at most 5000 code points",
|
|
2027
|
+
}),
|
|
2028
|
+
),
|
|
2029
|
+
tax_code: Schema.optionalKey(
|
|
2030
|
+
Schema.String.check(
|
|
2031
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2032
|
+
expected:
|
|
2033
|
+
"a string with at most 5000 code points",
|
|
2034
|
+
}),
|
|
2035
|
+
),
|
|
2036
|
+
),
|
|
2037
|
+
tax_details: Schema.optionalKey(
|
|
2038
|
+
Schema.StructWithRest(
|
|
2039
|
+
Schema.Struct({
|
|
2040
|
+
performance_location: Schema.optionalKey(
|
|
2041
|
+
Schema.String.check(
|
|
2042
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2043
|
+
expected:
|
|
2044
|
+
"a string with at most 5000 code points",
|
|
2045
|
+
}),
|
|
2046
|
+
),
|
|
2047
|
+
),
|
|
2048
|
+
tax_code: Schema.optionalKey(
|
|
2049
|
+
Schema.Union([
|
|
2050
|
+
Schema.String,
|
|
2051
|
+
Schema.Literal(""),
|
|
2052
|
+
]),
|
|
2053
|
+
),
|
|
2054
|
+
}),
|
|
2055
|
+
[
|
|
2056
|
+
Schema.Record(
|
|
2057
|
+
Schema.String,
|
|
2058
|
+
Schema.Json.annotate({
|
|
2059
|
+
expected: "JSON value",
|
|
2060
|
+
}),
|
|
2061
|
+
),
|
|
2062
|
+
],
|
|
2063
|
+
).annotate({ title: "tax_details" }),
|
|
2064
|
+
),
|
|
2065
|
+
unit_label: Schema.optionalKey(
|
|
2066
|
+
Schema.String.check(
|
|
2067
|
+
Schema.isMaxCodePoints(12).annotate({
|
|
2068
|
+
expected: "a string with at most 12 code points",
|
|
2069
|
+
}),
|
|
2070
|
+
),
|
|
2071
|
+
),
|
|
2072
|
+
}),
|
|
2073
|
+
[
|
|
2074
|
+
Schema.Record(
|
|
2075
|
+
Schema.String,
|
|
2076
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2077
|
+
),
|
|
2078
|
+
],
|
|
2079
|
+
).annotate({ title: "product_data" }),
|
|
2080
|
+
),
|
|
2081
|
+
recurring: Schema.optionalKey(
|
|
2082
|
+
Schema.StructWithRest(
|
|
2083
|
+
Schema.Struct({
|
|
2084
|
+
interval: Schema.Literals([
|
|
2085
|
+
"day",
|
|
2086
|
+
"month",
|
|
2087
|
+
"week",
|
|
2088
|
+
"year",
|
|
2089
|
+
]),
|
|
2090
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
2091
|
+
}),
|
|
2092
|
+
[
|
|
2093
|
+
Schema.Record(
|
|
2094
|
+
Schema.String,
|
|
2095
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2096
|
+
),
|
|
2097
|
+
],
|
|
2098
|
+
).annotate({ title: "recurring_adhoc" }),
|
|
2099
|
+
),
|
|
2100
|
+
tax_behavior: Schema.optionalKey(
|
|
2101
|
+
Schema.Literals(["exclusive", "inclusive", "unspecified"]),
|
|
2102
|
+
),
|
|
2103
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
2104
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
2105
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
2106
|
+
),
|
|
2107
|
+
}),
|
|
2108
|
+
[
|
|
2109
|
+
Schema.Record(
|
|
2110
|
+
Schema.String,
|
|
2111
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2112
|
+
),
|
|
2113
|
+
],
|
|
2114
|
+
).annotate({ title: "price_data_with_product_data" }),
|
|
2115
|
+
),
|
|
2116
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
2117
|
+
tax_rates: Schema.optionalKey(
|
|
2118
|
+
Schema.Array(
|
|
2119
|
+
Schema.String.check(
|
|
2120
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2121
|
+
expected: "a string with at most 5000 code points",
|
|
2122
|
+
}),
|
|
2123
|
+
),
|
|
2124
|
+
),
|
|
2125
|
+
),
|
|
2126
|
+
}),
|
|
2127
|
+
[
|
|
2128
|
+
Schema.Record(
|
|
2129
|
+
Schema.String,
|
|
2130
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2131
|
+
),
|
|
2132
|
+
],
|
|
2133
|
+
).annotate({ title: "line_item_params" }),
|
|
2134
|
+
).annotate({
|
|
2135
|
+
description:
|
|
2136
|
+
"A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.\n\nFor `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.\n\nFor `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.",
|
|
2137
|
+
}),
|
|
2138
|
+
),
|
|
2139
|
+
locale: Schema.optionalKey(
|
|
2140
|
+
Schema.Literals([
|
|
2141
|
+
"auto",
|
|
2142
|
+
"bg",
|
|
2143
|
+
"cs",
|
|
2144
|
+
"da",
|
|
2145
|
+
"de",
|
|
2146
|
+
"el",
|
|
2147
|
+
"en",
|
|
2148
|
+
"en-GB",
|
|
2149
|
+
"es",
|
|
2150
|
+
"es-419",
|
|
2151
|
+
"et",
|
|
2152
|
+
"fi",
|
|
2153
|
+
"fil",
|
|
2154
|
+
"fr",
|
|
2155
|
+
"fr-CA",
|
|
2156
|
+
"hi-IN",
|
|
2157
|
+
"hr",
|
|
2158
|
+
"hu",
|
|
2159
|
+
"id",
|
|
2160
|
+
"it",
|
|
2161
|
+
"ja",
|
|
2162
|
+
"ko",
|
|
2163
|
+
"lt",
|
|
2164
|
+
"lv",
|
|
2165
|
+
"ms",
|
|
2166
|
+
"mt",
|
|
2167
|
+
"nb",
|
|
2168
|
+
"nl",
|
|
2169
|
+
"pl",
|
|
2170
|
+
"pt",
|
|
2171
|
+
"pt-BR",
|
|
2172
|
+
"ro",
|
|
2173
|
+
"ru",
|
|
2174
|
+
"sk",
|
|
2175
|
+
"sl",
|
|
2176
|
+
"sv",
|
|
2177
|
+
"th",
|
|
2178
|
+
"tr",
|
|
2179
|
+
"vi",
|
|
2180
|
+
"zh",
|
|
2181
|
+
"zh-HK",
|
|
2182
|
+
"zh-TW",
|
|
2183
|
+
]).annotate({
|
|
2184
|
+
description:
|
|
2185
|
+
"The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.",
|
|
2186
|
+
}),
|
|
2187
|
+
),
|
|
2188
|
+
managed_payments: Schema.optionalKey(
|
|
2189
|
+
Schema.StructWithRest(
|
|
2190
|
+
Schema.Struct({ enabled: Schema.optionalKey(Schema.Boolean) }),
|
|
2191
|
+
[
|
|
2192
|
+
Schema.Record(
|
|
2193
|
+
Schema.String,
|
|
2194
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2195
|
+
),
|
|
2196
|
+
],
|
|
2197
|
+
).annotate({
|
|
2198
|
+
title: "managed_payments_params",
|
|
2199
|
+
description:
|
|
2200
|
+
"Settings for Managed Payments for this Checkout Session and resulting [PaymentIntents](/api/payment_intents/object), [Invoices](/api/invoices/object), and [Subscriptions](/api/subscriptions/object).",
|
|
2201
|
+
}),
|
|
2202
|
+
),
|
|
2203
|
+
metadata: Schema.optionalKey(
|
|
2204
|
+
Schema.Record(Schema.String, Schema.String).annotate({
|
|
2205
|
+
description:
|
|
2206
|
+
"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`.",
|
|
2207
|
+
}),
|
|
2208
|
+
),
|
|
2209
|
+
mode: Schema.optionalKey(
|
|
2210
|
+
Schema.Literals(["payment", "setup", "subscription"]).annotate({
|
|
2211
|
+
description:
|
|
2212
|
+
"The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.",
|
|
2213
|
+
}),
|
|
2214
|
+
),
|
|
2215
|
+
name_collection: Schema.optionalKey(
|
|
2216
|
+
Schema.StructWithRest(
|
|
2217
|
+
Schema.Struct({
|
|
2218
|
+
business: Schema.optionalKey(
|
|
2219
|
+
Schema.StructWithRest(
|
|
2220
|
+
Schema.Struct({
|
|
2221
|
+
enabled: Schema.Boolean,
|
|
2222
|
+
optional: Schema.optionalKey(Schema.Boolean),
|
|
2223
|
+
}),
|
|
2224
|
+
[
|
|
2225
|
+
Schema.Record(
|
|
2226
|
+
Schema.String,
|
|
2227
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2228
|
+
),
|
|
2229
|
+
],
|
|
2230
|
+
).annotate({ title: "name_collection_business_params" }),
|
|
2231
|
+
),
|
|
2232
|
+
individual: Schema.optionalKey(
|
|
2233
|
+
Schema.StructWithRest(
|
|
2234
|
+
Schema.Struct({
|
|
2235
|
+
enabled: Schema.Boolean,
|
|
2236
|
+
optional: Schema.optionalKey(Schema.Boolean),
|
|
2237
|
+
}),
|
|
2238
|
+
[
|
|
2239
|
+
Schema.Record(
|
|
2240
|
+
Schema.String,
|
|
2241
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2242
|
+
),
|
|
2243
|
+
],
|
|
2244
|
+
).annotate({ title: "name_collection_individual_params" }),
|
|
2245
|
+
),
|
|
2246
|
+
}),
|
|
2247
|
+
[
|
|
2248
|
+
Schema.Record(
|
|
2249
|
+
Schema.String,
|
|
2250
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2251
|
+
),
|
|
2252
|
+
],
|
|
2253
|
+
).annotate({
|
|
2254
|
+
title: "name_collection_params",
|
|
2255
|
+
description:
|
|
2256
|
+
"Controls name collection settings for the session.\n\nYou can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.\n\nIf a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.",
|
|
2257
|
+
}),
|
|
2258
|
+
),
|
|
2259
|
+
optional_items: Schema.optionalKey(
|
|
2260
|
+
Schema.Array(
|
|
2261
|
+
Schema.StructWithRest(
|
|
2262
|
+
Schema.Struct({
|
|
2263
|
+
adjustable_quantity: Schema.optionalKey(
|
|
2264
|
+
Schema.StructWithRest(
|
|
2265
|
+
Schema.Struct({
|
|
2266
|
+
enabled: Schema.Boolean,
|
|
2267
|
+
maximum: Schema.optionalKey(Schema.Int),
|
|
2268
|
+
minimum: Schema.optionalKey(Schema.Int),
|
|
2269
|
+
}),
|
|
2270
|
+
[
|
|
2271
|
+
Schema.Record(
|
|
2272
|
+
Schema.String,
|
|
2273
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2274
|
+
),
|
|
2275
|
+
],
|
|
2276
|
+
).annotate({ title: "optional_item_adjustable_quantity_params" }),
|
|
2277
|
+
),
|
|
2278
|
+
price: Schema.String.check(
|
|
2279
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2280
|
+
expected: "a string with at most 5000 code points",
|
|
2281
|
+
}),
|
|
2282
|
+
),
|
|
2283
|
+
quantity: Schema.Int,
|
|
2284
|
+
}),
|
|
2285
|
+
[
|
|
2286
|
+
Schema.Record(
|
|
2287
|
+
Schema.String,
|
|
2288
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2289
|
+
),
|
|
2290
|
+
],
|
|
2291
|
+
).annotate({ title: "optional_item_params" }),
|
|
2292
|
+
).annotate({
|
|
2293
|
+
description:
|
|
2294
|
+
"A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).\n\nThere is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.\n\nFor `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.\n\nFor `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.\n\nYou can't set this parameter if `ui_mode` is `elements` or `form`.",
|
|
2295
|
+
}),
|
|
2296
|
+
),
|
|
2297
|
+
origin_context: Schema.optionalKey(
|
|
2298
|
+
Schema.Literals(["mobile_app", "web"]).annotate({
|
|
2299
|
+
description:
|
|
2300
|
+
"Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`.",
|
|
2301
|
+
}),
|
|
2302
|
+
),
|
|
2303
|
+
payment_intent_data: Schema.optionalKey(
|
|
2304
|
+
Schema.StructWithRest(
|
|
2305
|
+
Schema.Struct({
|
|
2306
|
+
application_fee_amount: Schema.optionalKey(Schema.Int),
|
|
2307
|
+
capture_method: Schema.optionalKey(
|
|
2308
|
+
Schema.Literals(["automatic", "automatic_async", "manual"]),
|
|
2309
|
+
),
|
|
2310
|
+
description: Schema.optionalKey(
|
|
2311
|
+
Schema.String.check(
|
|
2312
|
+
Schema.isMaxCodePoints(1000).annotate({
|
|
2313
|
+
expected: "a string with at most 1000 code points",
|
|
2314
|
+
}),
|
|
2315
|
+
),
|
|
2316
|
+
),
|
|
2317
|
+
metadata: Schema.optionalKey(
|
|
2318
|
+
Schema.Record(Schema.String, Schema.String),
|
|
2319
|
+
),
|
|
2320
|
+
on_behalf_of: Schema.optionalKey(Schema.String),
|
|
2321
|
+
receipt_email: Schema.optionalKey(
|
|
2322
|
+
Schema.String.check(
|
|
2323
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2324
|
+
expected: "a string with at most 5000 code points",
|
|
2325
|
+
}),
|
|
2326
|
+
),
|
|
2327
|
+
),
|
|
2328
|
+
setup_future_usage: Schema.optionalKey(
|
|
2329
|
+
Schema.Literals(["off_session", "on_session"]),
|
|
2330
|
+
),
|
|
2331
|
+
shipping: Schema.optionalKey(
|
|
2332
|
+
Schema.StructWithRest(
|
|
2333
|
+
Schema.Struct({
|
|
2334
|
+
address: Schema.StructWithRest(
|
|
2335
|
+
Schema.Struct({
|
|
2336
|
+
city: Schema.optionalKey(
|
|
2337
|
+
Schema.String.check(
|
|
2338
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2339
|
+
expected: "a string with at most 5000 code points",
|
|
2340
|
+
}),
|
|
2341
|
+
),
|
|
2342
|
+
),
|
|
2343
|
+
country: Schema.optionalKey(
|
|
2344
|
+
Schema.String.check(
|
|
2345
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2346
|
+
expected: "a string with at most 5000 code points",
|
|
2347
|
+
}),
|
|
2348
|
+
),
|
|
2349
|
+
),
|
|
2350
|
+
line1: Schema.String.check(
|
|
2351
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2352
|
+
expected: "a string with at most 5000 code points",
|
|
2353
|
+
}),
|
|
2354
|
+
),
|
|
2355
|
+
line2: Schema.optionalKey(
|
|
2356
|
+
Schema.String.check(
|
|
2357
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2358
|
+
expected: "a string with at most 5000 code points",
|
|
2359
|
+
}),
|
|
2360
|
+
),
|
|
2361
|
+
),
|
|
2362
|
+
postal_code: Schema.optionalKey(
|
|
2363
|
+
Schema.String.check(
|
|
2364
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2365
|
+
expected: "a string with at most 5000 code points",
|
|
2366
|
+
}),
|
|
2367
|
+
),
|
|
2368
|
+
),
|
|
2369
|
+
state: Schema.optionalKey(
|
|
2370
|
+
Schema.String.check(
|
|
2371
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2372
|
+
expected: "a string with at most 5000 code points",
|
|
2373
|
+
}),
|
|
2374
|
+
),
|
|
2375
|
+
),
|
|
2376
|
+
}),
|
|
2377
|
+
[
|
|
2378
|
+
Schema.Record(
|
|
2379
|
+
Schema.String,
|
|
2380
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2381
|
+
),
|
|
2382
|
+
],
|
|
2383
|
+
).annotate({ title: "address" }),
|
|
2384
|
+
carrier: Schema.optionalKey(
|
|
2385
|
+
Schema.String.check(
|
|
2386
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2387
|
+
expected: "a string with at most 5000 code points",
|
|
2388
|
+
}),
|
|
2389
|
+
),
|
|
2390
|
+
),
|
|
2391
|
+
name: Schema.String.check(
|
|
2392
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2393
|
+
expected: "a string with at most 5000 code points",
|
|
2394
|
+
}),
|
|
2395
|
+
),
|
|
2396
|
+
phone: Schema.optionalKey(
|
|
2397
|
+
Schema.String.check(
|
|
2398
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2399
|
+
expected: "a string with at most 5000 code points",
|
|
2400
|
+
}),
|
|
2401
|
+
),
|
|
2402
|
+
),
|
|
2403
|
+
tracking_number: Schema.optionalKey(
|
|
2404
|
+
Schema.String.check(
|
|
2405
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2406
|
+
expected: "a string with at most 5000 code points",
|
|
2407
|
+
}),
|
|
2408
|
+
),
|
|
2409
|
+
),
|
|
2410
|
+
}),
|
|
2411
|
+
[
|
|
2412
|
+
Schema.Record(
|
|
2413
|
+
Schema.String,
|
|
2414
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2415
|
+
),
|
|
2416
|
+
],
|
|
2417
|
+
).annotate({ title: "shipping" }),
|
|
2418
|
+
),
|
|
2419
|
+
statement_descriptor: Schema.optionalKey(
|
|
2420
|
+
Schema.String.check(
|
|
2421
|
+
Schema.isMaxCodePoints(22).annotate({
|
|
2422
|
+
expected: "a string with at most 22 code points",
|
|
2423
|
+
}),
|
|
2424
|
+
),
|
|
2425
|
+
),
|
|
2426
|
+
statement_descriptor_suffix: Schema.optionalKey(
|
|
2427
|
+
Schema.String.check(
|
|
2428
|
+
Schema.isMaxCodePoints(22).annotate({
|
|
2429
|
+
expected: "a string with at most 22 code points",
|
|
2430
|
+
}),
|
|
2431
|
+
),
|
|
2432
|
+
),
|
|
2433
|
+
transfer_data: Schema.optionalKey(
|
|
2434
|
+
Schema.StructWithRest(
|
|
2435
|
+
Schema.Struct({
|
|
2436
|
+
amount: Schema.optionalKey(Schema.Int),
|
|
2437
|
+
destination: Schema.String,
|
|
2438
|
+
}),
|
|
2439
|
+
[
|
|
2440
|
+
Schema.Record(
|
|
2441
|
+
Schema.String,
|
|
2442
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2443
|
+
),
|
|
2444
|
+
],
|
|
2445
|
+
).annotate({ title: "transfer_data_params" }),
|
|
2446
|
+
),
|
|
2447
|
+
transfer_group: Schema.optionalKey(Schema.String),
|
|
2448
|
+
}),
|
|
2449
|
+
[
|
|
2450
|
+
Schema.Record(
|
|
2451
|
+
Schema.String,
|
|
2452
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2453
|
+
),
|
|
2454
|
+
],
|
|
2455
|
+
).annotate({
|
|
2456
|
+
title: "payment_intent_data_params",
|
|
2457
|
+
description:
|
|
2458
|
+
"A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.",
|
|
2459
|
+
}),
|
|
2460
|
+
),
|
|
2461
|
+
payment_method_collection: Schema.optionalKey(
|
|
2462
|
+
Schema.Literals(["always", "if_required"]).annotate({
|
|
2463
|
+
description:
|
|
2464
|
+
"Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.\nThis may occur if the Checkout Session includes a free trial or a discount.\n\nCan only be set in `subscription` mode. Defaults to `always`.\n\nIf you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).",
|
|
2465
|
+
}),
|
|
2466
|
+
),
|
|
2467
|
+
payment_method_configuration: Schema.optionalKey(
|
|
2468
|
+
Schema.String.annotate({
|
|
2469
|
+
description:
|
|
2470
|
+
"The ID of the payment method configuration to use with this Checkout session.",
|
|
2471
|
+
}).check(
|
|
2472
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
2473
|
+
expected: "a string with at most 100 code points",
|
|
2474
|
+
}),
|
|
2475
|
+
),
|
|
2476
|
+
),
|
|
2477
|
+
payment_method_data: Schema.optionalKey(
|
|
2478
|
+
Schema.StructWithRest(
|
|
2479
|
+
Schema.Struct({
|
|
2480
|
+
allow_redisplay: Schema.optionalKey(
|
|
2481
|
+
Schema.Literals(["always", "limited", "unspecified"]),
|
|
2482
|
+
),
|
|
2483
|
+
}),
|
|
2484
|
+
[
|
|
2485
|
+
Schema.Record(
|
|
2486
|
+
Schema.String,
|
|
2487
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2488
|
+
),
|
|
2489
|
+
],
|
|
2490
|
+
).annotate({
|
|
2491
|
+
title: "payment_method_data_param",
|
|
2492
|
+
description:
|
|
2493
|
+
"This parameter allows you to set some attributes on the payment method created during a Checkout session.",
|
|
2494
|
+
}),
|
|
2495
|
+
),
|
|
2496
|
+
payment_method_options: Schema.optionalKey(
|
|
2497
|
+
Schema.StructWithRest(
|
|
2498
|
+
Schema.Struct({
|
|
2499
|
+
acss_debit: Schema.optionalKey(
|
|
2500
|
+
Schema.StructWithRest(
|
|
2501
|
+
Schema.Struct({
|
|
2502
|
+
currency: Schema.optionalKey(Schema.Literals(["cad", "usd"])),
|
|
2503
|
+
mandate_options: Schema.optionalKey(
|
|
2504
|
+
Schema.StructWithRest(
|
|
2505
|
+
Schema.Struct({
|
|
2506
|
+
custom_mandate_url: Schema.optionalKey(
|
|
2507
|
+
Schema.Union([Schema.String, Schema.Literal("")]),
|
|
2508
|
+
),
|
|
2509
|
+
default_for: Schema.optionalKey(
|
|
2510
|
+
Schema.Array(
|
|
2511
|
+
Schema.Literals(["invoice", "subscription"]),
|
|
2512
|
+
),
|
|
2513
|
+
),
|
|
2514
|
+
interval_description: Schema.optionalKey(
|
|
2515
|
+
Schema.String.check(
|
|
2516
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
2517
|
+
expected: "a string with at most 500 code points",
|
|
2518
|
+
}),
|
|
2519
|
+
),
|
|
2520
|
+
),
|
|
2521
|
+
payment_schedule: Schema.optionalKey(
|
|
2522
|
+
Schema.Literals(["combined", "interval", "sporadic"]),
|
|
2523
|
+
),
|
|
2524
|
+
transaction_type: Schema.optionalKey(
|
|
2525
|
+
Schema.Literals(["business", "personal"]),
|
|
2526
|
+
),
|
|
2527
|
+
}),
|
|
2528
|
+
[
|
|
2529
|
+
Schema.Record(
|
|
2530
|
+
Schema.String,
|
|
2531
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2532
|
+
),
|
|
2533
|
+
],
|
|
2534
|
+
).annotate({ title: "mandate_options_param" }),
|
|
2535
|
+
),
|
|
2536
|
+
setup_future_usage: Schema.optionalKey(
|
|
2537
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
2538
|
+
),
|
|
2539
|
+
target_date: Schema.optionalKey(
|
|
2540
|
+
Schema.String.check(
|
|
2541
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2542
|
+
expected: "a string with at most 5000 code points",
|
|
2543
|
+
}),
|
|
2544
|
+
),
|
|
2545
|
+
),
|
|
2546
|
+
verification_method: Schema.optionalKey(
|
|
2547
|
+
Schema.Literals(["automatic", "instant", "microdeposits"]),
|
|
2548
|
+
),
|
|
2549
|
+
}),
|
|
2550
|
+
[
|
|
2551
|
+
Schema.Record(
|
|
2552
|
+
Schema.String,
|
|
2553
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2554
|
+
),
|
|
2555
|
+
],
|
|
2556
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2557
|
+
),
|
|
2558
|
+
affirm: Schema.optionalKey(
|
|
2559
|
+
Schema.StructWithRest(
|
|
2560
|
+
Schema.Struct({
|
|
2561
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2562
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2563
|
+
}),
|
|
2564
|
+
[
|
|
2565
|
+
Schema.Record(
|
|
2566
|
+
Schema.String,
|
|
2567
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2568
|
+
),
|
|
2569
|
+
],
|
|
2570
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2571
|
+
),
|
|
2572
|
+
afterpay_clearpay: Schema.optionalKey(
|
|
2573
|
+
Schema.StructWithRest(
|
|
2574
|
+
Schema.Struct({
|
|
2575
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2576
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2577
|
+
}),
|
|
2578
|
+
[
|
|
2579
|
+
Schema.Record(
|
|
2580
|
+
Schema.String,
|
|
2581
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2582
|
+
),
|
|
2583
|
+
],
|
|
2584
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2585
|
+
),
|
|
2586
|
+
alipay: Schema.optionalKey(
|
|
2587
|
+
Schema.StructWithRest(
|
|
2588
|
+
Schema.Struct({
|
|
2589
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2590
|
+
}),
|
|
2591
|
+
[
|
|
2592
|
+
Schema.Record(
|
|
2593
|
+
Schema.String,
|
|
2594
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2595
|
+
),
|
|
2596
|
+
],
|
|
2597
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2598
|
+
),
|
|
2599
|
+
alma: Schema.optionalKey(
|
|
2600
|
+
Schema.StructWithRest(
|
|
2601
|
+
Schema.Struct({
|
|
2602
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2603
|
+
}),
|
|
2604
|
+
[
|
|
2605
|
+
Schema.Record(
|
|
2606
|
+
Schema.String,
|
|
2607
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2608
|
+
),
|
|
2609
|
+
],
|
|
2610
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2611
|
+
),
|
|
2612
|
+
amazon_pay: Schema.optionalKey(
|
|
2613
|
+
Schema.StructWithRest(
|
|
2614
|
+
Schema.Struct({
|
|
2615
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2616
|
+
setup_future_usage: Schema.optionalKey(
|
|
2617
|
+
Schema.Literals(["none", "off_session"]),
|
|
2618
|
+
),
|
|
2619
|
+
}),
|
|
2620
|
+
[
|
|
2621
|
+
Schema.Record(
|
|
2622
|
+
Schema.String,
|
|
2623
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2624
|
+
),
|
|
2625
|
+
],
|
|
2626
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2627
|
+
),
|
|
2628
|
+
au_becs_debit: Schema.optionalKey(
|
|
2629
|
+
Schema.StructWithRest(
|
|
2630
|
+
Schema.Struct({
|
|
2631
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2632
|
+
target_date: Schema.optionalKey(
|
|
2633
|
+
Schema.String.check(
|
|
2634
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2635
|
+
expected: "a string with at most 5000 code points",
|
|
2636
|
+
}),
|
|
2637
|
+
),
|
|
2638
|
+
),
|
|
2639
|
+
}),
|
|
2640
|
+
[
|
|
2641
|
+
Schema.Record(
|
|
2642
|
+
Schema.String,
|
|
2643
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2644
|
+
),
|
|
2645
|
+
],
|
|
2646
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2647
|
+
),
|
|
2648
|
+
bacs_debit: Schema.optionalKey(
|
|
2649
|
+
Schema.StructWithRest(
|
|
2650
|
+
Schema.Struct({
|
|
2651
|
+
mandate_options: Schema.optionalKey(
|
|
2652
|
+
Schema.StructWithRest(
|
|
2653
|
+
Schema.Struct({
|
|
2654
|
+
reference_prefix: Schema.optionalKey(
|
|
2655
|
+
Schema.Union([
|
|
2656
|
+
Schema.String.check(
|
|
2657
|
+
Schema.isMaxCodePoints(12).annotate({
|
|
2658
|
+
expected: "a string with at most 12 code points",
|
|
2659
|
+
}),
|
|
2660
|
+
),
|
|
2661
|
+
Schema.Literal(""),
|
|
2662
|
+
]),
|
|
2663
|
+
),
|
|
2664
|
+
}),
|
|
2665
|
+
[
|
|
2666
|
+
Schema.Record(
|
|
2667
|
+
Schema.String,
|
|
2668
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2669
|
+
),
|
|
2670
|
+
],
|
|
2671
|
+
).annotate({
|
|
2672
|
+
title: "payment_method_options_mandate_options_param",
|
|
2673
|
+
}),
|
|
2674
|
+
),
|
|
2675
|
+
setup_future_usage: Schema.optionalKey(
|
|
2676
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
2677
|
+
),
|
|
2678
|
+
target_date: Schema.optionalKey(
|
|
2679
|
+
Schema.String.check(
|
|
2680
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2681
|
+
expected: "a string with at most 5000 code points",
|
|
2682
|
+
}),
|
|
2683
|
+
),
|
|
2684
|
+
),
|
|
2685
|
+
}),
|
|
2686
|
+
[
|
|
2687
|
+
Schema.Record(
|
|
2688
|
+
Schema.String,
|
|
2689
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2690
|
+
),
|
|
2691
|
+
],
|
|
2692
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2693
|
+
),
|
|
2694
|
+
bancontact: Schema.optionalKey(
|
|
2695
|
+
Schema.StructWithRest(
|
|
2696
|
+
Schema.Struct({
|
|
2697
|
+
setup_future_usage: Schema.optionalKey(
|
|
2698
|
+
Schema.Literals(["none", "off_session"]),
|
|
2699
|
+
),
|
|
2700
|
+
}),
|
|
2701
|
+
[
|
|
2702
|
+
Schema.Record(
|
|
2703
|
+
Schema.String,
|
|
2704
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2705
|
+
),
|
|
2706
|
+
],
|
|
2707
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2708
|
+
),
|
|
2709
|
+
billie: Schema.optionalKey(
|
|
2710
|
+
Schema.StructWithRest(
|
|
2711
|
+
Schema.Struct({
|
|
2712
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2713
|
+
}),
|
|
2714
|
+
[
|
|
2715
|
+
Schema.Record(
|
|
2716
|
+
Schema.String,
|
|
2717
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2718
|
+
),
|
|
2719
|
+
],
|
|
2720
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2721
|
+
),
|
|
2722
|
+
blik: Schema.optionalKey(
|
|
2723
|
+
Schema.StructWithRest(
|
|
2724
|
+
Schema.Struct({
|
|
2725
|
+
mandate_options: Schema.optionalKey(
|
|
2726
|
+
Schema.StructWithRest(
|
|
2727
|
+
Schema.Struct({
|
|
2728
|
+
expires_at: Schema.optionalKey(
|
|
2729
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
2730
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
2731
|
+
),
|
|
2732
|
+
),
|
|
2733
|
+
}),
|
|
2734
|
+
[
|
|
2735
|
+
Schema.Record(
|
|
2736
|
+
Schema.String,
|
|
2737
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2738
|
+
),
|
|
2739
|
+
],
|
|
2740
|
+
).annotate({
|
|
2741
|
+
title:
|
|
2742
|
+
"subscription_payment_method_options_mandate_options_param",
|
|
2743
|
+
}),
|
|
2744
|
+
),
|
|
2745
|
+
setup_future_usage: Schema.optionalKey(
|
|
2746
|
+
Schema.Literals(["", "none", "off_session"]),
|
|
2747
|
+
),
|
|
2748
|
+
}),
|
|
2749
|
+
[
|
|
2750
|
+
Schema.Record(
|
|
2751
|
+
Schema.String,
|
|
2752
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2753
|
+
),
|
|
2754
|
+
],
|
|
2755
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2756
|
+
),
|
|
2757
|
+
boleto: Schema.optionalKey(
|
|
2758
|
+
Schema.StructWithRest(
|
|
2759
|
+
Schema.Struct({
|
|
2760
|
+
expires_after_days: Schema.optionalKey(Schema.Int),
|
|
2761
|
+
setup_future_usage: Schema.optionalKey(
|
|
2762
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
2763
|
+
),
|
|
2764
|
+
}),
|
|
2765
|
+
[
|
|
2766
|
+
Schema.Record(
|
|
2767
|
+
Schema.String,
|
|
2768
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2769
|
+
),
|
|
2770
|
+
],
|
|
2771
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2772
|
+
),
|
|
2773
|
+
card: Schema.optionalKey(
|
|
2774
|
+
Schema.StructWithRest(
|
|
2775
|
+
Schema.Struct({
|
|
2776
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2777
|
+
installments: Schema.optionalKey(
|
|
2778
|
+
Schema.StructWithRest(
|
|
2779
|
+
Schema.Struct({
|
|
2780
|
+
enabled: Schema.optionalKey(Schema.Boolean),
|
|
2781
|
+
}),
|
|
2782
|
+
[
|
|
2783
|
+
Schema.Record(
|
|
2784
|
+
Schema.String,
|
|
2785
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2786
|
+
),
|
|
2787
|
+
],
|
|
2788
|
+
).annotate({ title: "installments_param" }),
|
|
2789
|
+
),
|
|
2790
|
+
request_extended_authorization: Schema.optionalKey(
|
|
2791
|
+
Schema.Literals(["if_available", "never"]),
|
|
2792
|
+
),
|
|
2793
|
+
request_incremental_authorization: Schema.optionalKey(
|
|
2794
|
+
Schema.Literals(["if_available", "never"]),
|
|
2795
|
+
),
|
|
2796
|
+
request_multicapture: Schema.optionalKey(
|
|
2797
|
+
Schema.Literals(["if_available", "never"]),
|
|
2798
|
+
),
|
|
2799
|
+
request_overcapture: Schema.optionalKey(
|
|
2800
|
+
Schema.Literals(["if_available", "never"]),
|
|
2801
|
+
),
|
|
2802
|
+
request_three_d_secure: Schema.optionalKey(
|
|
2803
|
+
Schema.Literals(["any", "automatic", "challenge"]),
|
|
2804
|
+
),
|
|
2805
|
+
restrictions: Schema.optionalKey(
|
|
2806
|
+
Schema.StructWithRest(
|
|
2807
|
+
Schema.Struct({
|
|
2808
|
+
brands_blocked: Schema.optionalKey(
|
|
2809
|
+
Schema.Array(
|
|
2810
|
+
Schema.Literals([
|
|
2811
|
+
"american_express",
|
|
2812
|
+
"discover_global_network",
|
|
2813
|
+
"mastercard",
|
|
2814
|
+
"visa",
|
|
2815
|
+
]),
|
|
2816
|
+
),
|
|
2817
|
+
),
|
|
2818
|
+
funding_types_blocked: Schema.optionalKey(
|
|
2819
|
+
Schema.Array(
|
|
2820
|
+
Schema.Literals(["credit", "debit", "prepaid"]),
|
|
2821
|
+
),
|
|
2822
|
+
),
|
|
2823
|
+
}),
|
|
2824
|
+
[
|
|
2825
|
+
Schema.Record(
|
|
2826
|
+
Schema.String,
|
|
2827
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2828
|
+
),
|
|
2829
|
+
],
|
|
2830
|
+
).annotate({ title: "restrictions_param" }),
|
|
2831
|
+
),
|
|
2832
|
+
setup_future_usage: Schema.optionalKey(
|
|
2833
|
+
Schema.Literals(["off_session", "on_session"]),
|
|
2834
|
+
),
|
|
2835
|
+
statement_descriptor_suffix_kana: Schema.optionalKey(
|
|
2836
|
+
Schema.String.check(
|
|
2837
|
+
Schema.isMaxCodePoints(22).annotate({
|
|
2838
|
+
expected: "a string with at most 22 code points",
|
|
2839
|
+
}),
|
|
2840
|
+
),
|
|
2841
|
+
),
|
|
2842
|
+
statement_descriptor_suffix_kanji: Schema.optionalKey(
|
|
2843
|
+
Schema.String.check(
|
|
2844
|
+
Schema.isMaxCodePoints(17).annotate({
|
|
2845
|
+
expected: "a string with at most 17 code points",
|
|
2846
|
+
}),
|
|
2847
|
+
),
|
|
2848
|
+
),
|
|
2849
|
+
}),
|
|
2850
|
+
[
|
|
2851
|
+
Schema.Record(
|
|
2852
|
+
Schema.String,
|
|
2853
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2854
|
+
),
|
|
2855
|
+
],
|
|
2856
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2857
|
+
),
|
|
2858
|
+
cashapp: Schema.optionalKey(
|
|
2859
|
+
Schema.StructWithRest(
|
|
2860
|
+
Schema.Struct({
|
|
2861
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
2862
|
+
setup_future_usage: Schema.optionalKey(
|
|
2863
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
2864
|
+
),
|
|
2865
|
+
}),
|
|
2866
|
+
[
|
|
2867
|
+
Schema.Record(
|
|
2868
|
+
Schema.String,
|
|
2869
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2870
|
+
),
|
|
2871
|
+
],
|
|
2872
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2873
|
+
),
|
|
2874
|
+
crypto: Schema.optionalKey(
|
|
2875
|
+
Schema.StructWithRest(
|
|
2876
|
+
Schema.Struct({
|
|
2877
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2878
|
+
}),
|
|
2879
|
+
[
|
|
2880
|
+
Schema.Record(
|
|
2881
|
+
Schema.String,
|
|
2882
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2883
|
+
),
|
|
2884
|
+
],
|
|
2885
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2886
|
+
),
|
|
2887
|
+
customer_balance: Schema.optionalKey(
|
|
2888
|
+
Schema.StructWithRest(
|
|
2889
|
+
Schema.Struct({
|
|
2890
|
+
bank_transfer: Schema.optionalKey(
|
|
2891
|
+
Schema.StructWithRest(
|
|
2892
|
+
Schema.Struct({
|
|
2893
|
+
eu_bank_transfer: Schema.optionalKey(
|
|
2894
|
+
Schema.StructWithRest(
|
|
2895
|
+
Schema.Struct({
|
|
2896
|
+
country: Schema.String.check(
|
|
2897
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2898
|
+
expected:
|
|
2899
|
+
"a string with at most 5000 code points",
|
|
2900
|
+
}),
|
|
2901
|
+
),
|
|
2902
|
+
}),
|
|
2903
|
+
[
|
|
2904
|
+
Schema.Record(
|
|
2905
|
+
Schema.String,
|
|
2906
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2907
|
+
),
|
|
2908
|
+
],
|
|
2909
|
+
).annotate({ title: "eu_bank_transfer_params" }),
|
|
2910
|
+
),
|
|
2911
|
+
requested_address_types: Schema.optionalKey(
|
|
2912
|
+
Schema.Array(
|
|
2913
|
+
Schema.Literals([
|
|
2914
|
+
"aba",
|
|
2915
|
+
"iban",
|
|
2916
|
+
"sepa",
|
|
2917
|
+
"sort_code",
|
|
2918
|
+
"spei",
|
|
2919
|
+
"swift",
|
|
2920
|
+
"zengin",
|
|
2921
|
+
]),
|
|
2922
|
+
),
|
|
2923
|
+
),
|
|
2924
|
+
type: Schema.Literals([
|
|
2925
|
+
"eu_bank_transfer",
|
|
2926
|
+
"gb_bank_transfer",
|
|
2927
|
+
"jp_bank_transfer",
|
|
2928
|
+
"mx_bank_transfer",
|
|
2929
|
+
"us_bank_transfer",
|
|
2930
|
+
]),
|
|
2931
|
+
}),
|
|
2932
|
+
[
|
|
2933
|
+
Schema.Record(
|
|
2934
|
+
Schema.String,
|
|
2935
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2936
|
+
),
|
|
2937
|
+
],
|
|
2938
|
+
).annotate({ title: "bank_transfer_param" }),
|
|
2939
|
+
),
|
|
2940
|
+
funding_type: Schema.optionalKey(
|
|
2941
|
+
Schema.Literal("bank_transfer"),
|
|
2942
|
+
),
|
|
2943
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2944
|
+
}),
|
|
2945
|
+
[
|
|
2946
|
+
Schema.Record(
|
|
2947
|
+
Schema.String,
|
|
2948
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2949
|
+
),
|
|
2950
|
+
],
|
|
2951
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2952
|
+
),
|
|
2953
|
+
demo_pay: Schema.optionalKey(
|
|
2954
|
+
Schema.StructWithRest(
|
|
2955
|
+
Schema.Struct({
|
|
2956
|
+
setup_future_usage: Schema.optionalKey(
|
|
2957
|
+
Schema.Literals(["none", "off_session"]),
|
|
2958
|
+
),
|
|
2959
|
+
}),
|
|
2960
|
+
[
|
|
2961
|
+
Schema.Record(
|
|
2962
|
+
Schema.String,
|
|
2963
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2964
|
+
),
|
|
2965
|
+
],
|
|
2966
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2967
|
+
),
|
|
2968
|
+
eps: Schema.optionalKey(
|
|
2969
|
+
Schema.StructWithRest(
|
|
2970
|
+
Schema.Struct({
|
|
2971
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2972
|
+
}),
|
|
2973
|
+
[
|
|
2974
|
+
Schema.Record(
|
|
2975
|
+
Schema.String,
|
|
2976
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2977
|
+
),
|
|
2978
|
+
],
|
|
2979
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2980
|
+
),
|
|
2981
|
+
fpx: Schema.optionalKey(
|
|
2982
|
+
Schema.StructWithRest(
|
|
2983
|
+
Schema.Struct({
|
|
2984
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2985
|
+
}),
|
|
2986
|
+
[
|
|
2987
|
+
Schema.Record(
|
|
2988
|
+
Schema.String,
|
|
2989
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2990
|
+
),
|
|
2991
|
+
],
|
|
2992
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
2993
|
+
),
|
|
2994
|
+
giropay: Schema.optionalKey(
|
|
2995
|
+
Schema.StructWithRest(
|
|
2996
|
+
Schema.Struct({
|
|
2997
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
2998
|
+
}),
|
|
2999
|
+
[
|
|
3000
|
+
Schema.Record(
|
|
3001
|
+
Schema.String,
|
|
3002
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3003
|
+
),
|
|
3004
|
+
],
|
|
3005
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3006
|
+
),
|
|
3007
|
+
grabpay: Schema.optionalKey(
|
|
3008
|
+
Schema.StructWithRest(
|
|
3009
|
+
Schema.Struct({
|
|
3010
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3011
|
+
}),
|
|
3012
|
+
[
|
|
3013
|
+
Schema.Record(
|
|
3014
|
+
Schema.String,
|
|
3015
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3016
|
+
),
|
|
3017
|
+
],
|
|
3018
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3019
|
+
),
|
|
3020
|
+
ideal: Schema.optionalKey(
|
|
3021
|
+
Schema.StructWithRest(
|
|
3022
|
+
Schema.Struct({
|
|
3023
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3024
|
+
}),
|
|
3025
|
+
[
|
|
3026
|
+
Schema.Record(
|
|
3027
|
+
Schema.String,
|
|
3028
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3029
|
+
),
|
|
3030
|
+
],
|
|
3031
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3032
|
+
),
|
|
3033
|
+
kakao_pay: Schema.optionalKey(
|
|
3034
|
+
Schema.StructWithRest(
|
|
3035
|
+
Schema.Struct({
|
|
3036
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3037
|
+
setup_future_usage: Schema.optionalKey(
|
|
3038
|
+
Schema.Literals(["none", "off_session"]),
|
|
3039
|
+
),
|
|
3040
|
+
}),
|
|
3041
|
+
[
|
|
3042
|
+
Schema.Record(
|
|
3043
|
+
Schema.String,
|
|
3044
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3045
|
+
),
|
|
3046
|
+
],
|
|
3047
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3048
|
+
),
|
|
3049
|
+
klarna: Schema.optionalKey(
|
|
3050
|
+
Schema.StructWithRest(
|
|
3051
|
+
Schema.Struct({
|
|
3052
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3053
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3054
|
+
subscriptions: Schema.optionalKey(
|
|
3055
|
+
Schema.Union([
|
|
3056
|
+
Schema.Array(
|
|
3057
|
+
Schema.StructWithRest(
|
|
3058
|
+
Schema.Struct({
|
|
3059
|
+
interval: Schema.Literals([
|
|
3060
|
+
"day",
|
|
3061
|
+
"month",
|
|
3062
|
+
"week",
|
|
3063
|
+
"year",
|
|
3064
|
+
]),
|
|
3065
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
3066
|
+
name: Schema.optionalKey(
|
|
3067
|
+
Schema.String.check(
|
|
3068
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
3069
|
+
expected:
|
|
3070
|
+
"a string with at most 255 code points",
|
|
3071
|
+
}),
|
|
3072
|
+
),
|
|
3073
|
+
),
|
|
3074
|
+
next_billing: Schema.StructWithRest(
|
|
3075
|
+
Schema.Struct({
|
|
3076
|
+
amount: Schema.Int,
|
|
3077
|
+
date: Schema.String.check(
|
|
3078
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3079
|
+
expected:
|
|
3080
|
+
"a string with at most 5000 code points",
|
|
3081
|
+
}),
|
|
3082
|
+
),
|
|
3083
|
+
}),
|
|
3084
|
+
[
|
|
3085
|
+
Schema.Record(
|
|
3086
|
+
Schema.String,
|
|
3087
|
+
Schema.Json.annotate({
|
|
3088
|
+
expected: "JSON value",
|
|
3089
|
+
}),
|
|
3090
|
+
),
|
|
3091
|
+
],
|
|
3092
|
+
).annotate({
|
|
3093
|
+
title: "subscription_next_billing_param",
|
|
3094
|
+
}),
|
|
3095
|
+
reference: Schema.String.check(
|
|
3096
|
+
Schema.isMaxCodePoints(255).annotate({
|
|
3097
|
+
expected: "a string with at most 255 code points",
|
|
3098
|
+
}),
|
|
3099
|
+
),
|
|
3100
|
+
}),
|
|
3101
|
+
[
|
|
3102
|
+
Schema.Record(
|
|
3103
|
+
Schema.String,
|
|
3104
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3105
|
+
),
|
|
3106
|
+
],
|
|
3107
|
+
).annotate({ title: "setup_intent_subscription_param" }),
|
|
3108
|
+
),
|
|
3109
|
+
Schema.Literal(""),
|
|
3110
|
+
]),
|
|
3111
|
+
),
|
|
3112
|
+
}),
|
|
3113
|
+
[
|
|
3114
|
+
Schema.Record(
|
|
3115
|
+
Schema.String,
|
|
3116
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3117
|
+
),
|
|
3118
|
+
],
|
|
3119
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3120
|
+
),
|
|
3121
|
+
konbini: Schema.optionalKey(
|
|
3122
|
+
Schema.StructWithRest(
|
|
3123
|
+
Schema.Struct({
|
|
3124
|
+
expires_after_days: Schema.optionalKey(Schema.Int),
|
|
3125
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3126
|
+
}),
|
|
3127
|
+
[
|
|
3128
|
+
Schema.Record(
|
|
3129
|
+
Schema.String,
|
|
3130
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3131
|
+
),
|
|
3132
|
+
],
|
|
3133
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3134
|
+
),
|
|
3135
|
+
kr_card: Schema.optionalKey(
|
|
3136
|
+
Schema.StructWithRest(
|
|
3137
|
+
Schema.Struct({
|
|
3138
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3139
|
+
setup_future_usage: Schema.optionalKey(
|
|
3140
|
+
Schema.Literals(["none", "off_session"]),
|
|
3141
|
+
),
|
|
3142
|
+
}),
|
|
3143
|
+
[
|
|
3144
|
+
Schema.Record(
|
|
3145
|
+
Schema.String,
|
|
3146
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3147
|
+
),
|
|
3148
|
+
],
|
|
3149
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3150
|
+
),
|
|
3151
|
+
link: Schema.optionalKey(
|
|
3152
|
+
Schema.StructWithRest(
|
|
3153
|
+
Schema.Struct({
|
|
3154
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3155
|
+
setup_future_usage: Schema.optionalKey(
|
|
3156
|
+
Schema.Literals(["none", "off_session"]),
|
|
3157
|
+
),
|
|
3158
|
+
}),
|
|
3159
|
+
[
|
|
3160
|
+
Schema.Record(
|
|
3161
|
+
Schema.String,
|
|
3162
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3163
|
+
),
|
|
3164
|
+
],
|
|
3165
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3166
|
+
),
|
|
3167
|
+
mobilepay: Schema.optionalKey(
|
|
3168
|
+
Schema.StructWithRest(
|
|
3169
|
+
Schema.Struct({
|
|
3170
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3171
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3172
|
+
}),
|
|
3173
|
+
[
|
|
3174
|
+
Schema.Record(
|
|
3175
|
+
Schema.String,
|
|
3176
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3177
|
+
),
|
|
3178
|
+
],
|
|
3179
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3180
|
+
),
|
|
3181
|
+
multibanco: Schema.optionalKey(
|
|
3182
|
+
Schema.StructWithRest(
|
|
3183
|
+
Schema.Struct({
|
|
3184
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3185
|
+
}),
|
|
3186
|
+
[
|
|
3187
|
+
Schema.Record(
|
|
3188
|
+
Schema.String,
|
|
3189
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3190
|
+
),
|
|
3191
|
+
],
|
|
3192
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3193
|
+
),
|
|
3194
|
+
naver_pay: Schema.optionalKey(
|
|
3195
|
+
Schema.StructWithRest(
|
|
3196
|
+
Schema.Struct({
|
|
3197
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3198
|
+
setup_future_usage: Schema.optionalKey(
|
|
3199
|
+
Schema.Literals(["none", "off_session"]),
|
|
3200
|
+
),
|
|
3201
|
+
}),
|
|
3202
|
+
[
|
|
3203
|
+
Schema.Record(
|
|
3204
|
+
Schema.String,
|
|
3205
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3206
|
+
),
|
|
3207
|
+
],
|
|
3208
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3209
|
+
),
|
|
3210
|
+
oxxo: Schema.optionalKey(
|
|
3211
|
+
Schema.StructWithRest(
|
|
3212
|
+
Schema.Struct({
|
|
3213
|
+
expires_after_days: Schema.optionalKey(Schema.Int),
|
|
3214
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3215
|
+
}),
|
|
3216
|
+
[
|
|
3217
|
+
Schema.Record(
|
|
3218
|
+
Schema.String,
|
|
3219
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3220
|
+
),
|
|
3221
|
+
],
|
|
3222
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3223
|
+
),
|
|
3224
|
+
p24: Schema.optionalKey(
|
|
3225
|
+
Schema.StructWithRest(
|
|
3226
|
+
Schema.Struct({
|
|
3227
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3228
|
+
tos_shown_and_accepted: Schema.optionalKey(Schema.Boolean),
|
|
3229
|
+
}),
|
|
3230
|
+
[
|
|
3231
|
+
Schema.Record(
|
|
3232
|
+
Schema.String,
|
|
3233
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3234
|
+
),
|
|
3235
|
+
],
|
|
3236
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3237
|
+
),
|
|
3238
|
+
pay_by_bank: Schema.optionalKey(
|
|
3239
|
+
Schema.Record(
|
|
3240
|
+
Schema.String,
|
|
3241
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3242
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3243
|
+
),
|
|
3244
|
+
payco: Schema.optionalKey(
|
|
3245
|
+
Schema.StructWithRest(
|
|
3246
|
+
Schema.Struct({
|
|
3247
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3248
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3249
|
+
}),
|
|
3250
|
+
[
|
|
3251
|
+
Schema.Record(
|
|
3252
|
+
Schema.String,
|
|
3253
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3254
|
+
),
|
|
3255
|
+
],
|
|
3256
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3257
|
+
),
|
|
3258
|
+
paynow: Schema.optionalKey(
|
|
3259
|
+
Schema.StructWithRest(
|
|
3260
|
+
Schema.Struct({
|
|
3261
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3262
|
+
}),
|
|
3263
|
+
[
|
|
3264
|
+
Schema.Record(
|
|
3265
|
+
Schema.String,
|
|
3266
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3267
|
+
),
|
|
3268
|
+
],
|
|
3269
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3270
|
+
),
|
|
3271
|
+
paypal: Schema.optionalKey(
|
|
3272
|
+
Schema.StructWithRest(
|
|
3273
|
+
Schema.Struct({
|
|
3274
|
+
capture_method: Schema.optionalKey(
|
|
3275
|
+
Schema.Literals(["", "manual"]),
|
|
3276
|
+
),
|
|
3277
|
+
preferred_locale: Schema.optionalKey(
|
|
3278
|
+
Schema.Literals([
|
|
3279
|
+
"cs-CZ",
|
|
3280
|
+
"da-DK",
|
|
3281
|
+
"de-AT",
|
|
3282
|
+
"de-DE",
|
|
3283
|
+
"de-LU",
|
|
3284
|
+
"el-GR",
|
|
3285
|
+
"en-GB",
|
|
3286
|
+
"en-US",
|
|
3287
|
+
"es-ES",
|
|
3288
|
+
"fi-FI",
|
|
3289
|
+
"fr-BE",
|
|
3290
|
+
"fr-FR",
|
|
3291
|
+
"fr-LU",
|
|
3292
|
+
"hu-HU",
|
|
3293
|
+
"it-IT",
|
|
3294
|
+
"nl-BE",
|
|
3295
|
+
"nl-NL",
|
|
3296
|
+
"pl-PL",
|
|
3297
|
+
"pt-PT",
|
|
3298
|
+
"sk-SK",
|
|
3299
|
+
"sv-SE",
|
|
3300
|
+
]),
|
|
3301
|
+
),
|
|
3302
|
+
reference: Schema.optionalKey(
|
|
3303
|
+
Schema.String.check(
|
|
3304
|
+
Schema.isMaxCodePoints(127).annotate({
|
|
3305
|
+
expected: "a string with at most 127 code points",
|
|
3306
|
+
}),
|
|
3307
|
+
),
|
|
3308
|
+
),
|
|
3309
|
+
risk_correlation_id: Schema.optionalKey(
|
|
3310
|
+
Schema.String.check(
|
|
3311
|
+
Schema.isMaxCodePoints(32).annotate({
|
|
3312
|
+
expected: "a string with at most 32 code points",
|
|
3313
|
+
}),
|
|
3314
|
+
),
|
|
3315
|
+
),
|
|
3316
|
+
setup_future_usage: Schema.optionalKey(
|
|
3317
|
+
Schema.Literals(["", "none", "off_session"]),
|
|
3318
|
+
),
|
|
3319
|
+
}),
|
|
3320
|
+
[
|
|
3321
|
+
Schema.Record(
|
|
3322
|
+
Schema.String,
|
|
3323
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3324
|
+
),
|
|
3325
|
+
],
|
|
3326
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3327
|
+
),
|
|
3328
|
+
payto: Schema.optionalKey(
|
|
3329
|
+
Schema.StructWithRest(
|
|
3330
|
+
Schema.Struct({
|
|
3331
|
+
mandate_options: Schema.optionalKey(
|
|
3332
|
+
Schema.StructWithRest(
|
|
3333
|
+
Schema.Struct({
|
|
3334
|
+
amount: Schema.optionalKey(
|
|
3335
|
+
Schema.Union([Schema.Int, Schema.Literal("")]),
|
|
3336
|
+
),
|
|
3337
|
+
amount_type: Schema.optionalKey(
|
|
3338
|
+
Schema.Literals(["", "fixed", "maximum"]),
|
|
3339
|
+
),
|
|
3340
|
+
end_date: Schema.optionalKey(
|
|
3341
|
+
Schema.Union([
|
|
3342
|
+
Schema.String.check(
|
|
3343
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3344
|
+
expected:
|
|
3345
|
+
"a string with at most 5000 code points",
|
|
3346
|
+
}),
|
|
3347
|
+
),
|
|
3348
|
+
Schema.Literal(""),
|
|
3349
|
+
]),
|
|
3350
|
+
),
|
|
3351
|
+
payment_schedule: Schema.optionalKey(
|
|
3352
|
+
Schema.Literals([
|
|
3353
|
+
"",
|
|
3354
|
+
"adhoc",
|
|
3355
|
+
"annual",
|
|
3356
|
+
"daily",
|
|
3357
|
+
"fortnightly",
|
|
3358
|
+
"monthly",
|
|
3359
|
+
"quarterly",
|
|
3360
|
+
"semi_annual",
|
|
3361
|
+
"weekly",
|
|
3362
|
+
]),
|
|
3363
|
+
),
|
|
3364
|
+
payments_per_period: Schema.optionalKey(
|
|
3365
|
+
Schema.Union([Schema.Int, Schema.Literal("")]),
|
|
3366
|
+
),
|
|
3367
|
+
purpose: Schema.optionalKey(
|
|
3368
|
+
Schema.Literals([
|
|
3369
|
+
"",
|
|
3370
|
+
"dependant_support",
|
|
3371
|
+
"government",
|
|
3372
|
+
"loan",
|
|
3373
|
+
"mortgage",
|
|
3374
|
+
"other",
|
|
3375
|
+
"pension",
|
|
3376
|
+
"personal",
|
|
3377
|
+
"retail",
|
|
3378
|
+
"salary",
|
|
3379
|
+
"tax",
|
|
3380
|
+
"utility",
|
|
3381
|
+
]),
|
|
3382
|
+
),
|
|
3383
|
+
start_date: Schema.optionalKey(
|
|
3384
|
+
Schema.Union([
|
|
3385
|
+
Schema.String.check(
|
|
3386
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3387
|
+
expected:
|
|
3388
|
+
"a string with at most 5000 code points",
|
|
3389
|
+
}),
|
|
3390
|
+
),
|
|
3391
|
+
Schema.Literal(""),
|
|
3392
|
+
]),
|
|
3393
|
+
),
|
|
3394
|
+
}),
|
|
3395
|
+
[
|
|
3396
|
+
Schema.Record(
|
|
3397
|
+
Schema.String,
|
|
3398
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3399
|
+
),
|
|
3400
|
+
],
|
|
3401
|
+
).annotate({
|
|
3402
|
+
title:
|
|
3403
|
+
"setup_intent_payment_method_options_mandate_options_param",
|
|
3404
|
+
}),
|
|
3405
|
+
),
|
|
3406
|
+
setup_future_usage: Schema.optionalKey(
|
|
3407
|
+
Schema.Literals(["none", "off_session"]),
|
|
3408
|
+
),
|
|
3409
|
+
}),
|
|
3410
|
+
[
|
|
3411
|
+
Schema.Record(
|
|
3412
|
+
Schema.String,
|
|
3413
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3414
|
+
),
|
|
3415
|
+
],
|
|
3416
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3417
|
+
),
|
|
3418
|
+
pix: Schema.optionalKey(
|
|
3419
|
+
Schema.StructWithRest(
|
|
3420
|
+
Schema.Struct({
|
|
3421
|
+
amount_includes_iof: Schema.optionalKey(
|
|
3422
|
+
Schema.Literals(["always", "never"]),
|
|
3423
|
+
),
|
|
3424
|
+
expires_after_seconds: Schema.optionalKey(Schema.Int),
|
|
3425
|
+
mandate_options: Schema.optionalKey(
|
|
3426
|
+
Schema.StructWithRest(
|
|
3427
|
+
Schema.Struct({
|
|
3428
|
+
amount: Schema.optionalKey(Schema.Int),
|
|
3429
|
+
amount_includes_iof: Schema.optionalKey(
|
|
3430
|
+
Schema.Literals(["always", "never"]),
|
|
3431
|
+
),
|
|
3432
|
+
amount_type: Schema.optionalKey(
|
|
3433
|
+
Schema.Literals(["fixed", "maximum"]),
|
|
3434
|
+
),
|
|
3435
|
+
currency: Schema.optionalKey(
|
|
3436
|
+
Schema.String.annotate({ format: "currency" }),
|
|
3437
|
+
),
|
|
3438
|
+
end_date: Schema.optionalKey(
|
|
3439
|
+
Schema.String.check(
|
|
3440
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3441
|
+
expected: "a string with at most 5000 code points",
|
|
3442
|
+
}),
|
|
3443
|
+
),
|
|
3444
|
+
),
|
|
3445
|
+
payment_schedule: Schema.optionalKey(
|
|
3446
|
+
Schema.Literals([
|
|
3447
|
+
"halfyearly",
|
|
3448
|
+
"monthly",
|
|
3449
|
+
"quarterly",
|
|
3450
|
+
"weekly",
|
|
3451
|
+
"yearly",
|
|
3452
|
+
]),
|
|
3453
|
+
),
|
|
3454
|
+
reference: Schema.optionalKey(
|
|
3455
|
+
Schema.String.check(
|
|
3456
|
+
Schema.isMaxCodePoints(35).annotate({
|
|
3457
|
+
expected: "a string with at most 35 code points",
|
|
3458
|
+
}),
|
|
3459
|
+
),
|
|
3460
|
+
),
|
|
3461
|
+
start_date: Schema.optionalKey(
|
|
3462
|
+
Schema.String.check(
|
|
3463
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3464
|
+
expected: "a string with at most 5000 code points",
|
|
3465
|
+
}),
|
|
3466
|
+
),
|
|
3467
|
+
),
|
|
3468
|
+
}),
|
|
3469
|
+
[
|
|
3470
|
+
Schema.Record(
|
|
3471
|
+
Schema.String,
|
|
3472
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3473
|
+
),
|
|
3474
|
+
],
|
|
3475
|
+
).annotate({
|
|
3476
|
+
title: "payment_method_options_mandate_options_param",
|
|
3477
|
+
}),
|
|
3478
|
+
),
|
|
3479
|
+
setup_future_usage: Schema.optionalKey(
|
|
3480
|
+
Schema.Literals(["none", "off_session"]),
|
|
3481
|
+
),
|
|
3482
|
+
}),
|
|
3483
|
+
[
|
|
3484
|
+
Schema.Record(
|
|
3485
|
+
Schema.String,
|
|
3486
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3487
|
+
),
|
|
3488
|
+
],
|
|
3489
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3490
|
+
),
|
|
3491
|
+
revolut_pay: Schema.optionalKey(
|
|
3492
|
+
Schema.StructWithRest(
|
|
3493
|
+
Schema.Struct({
|
|
3494
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3495
|
+
setup_future_usage: Schema.optionalKey(
|
|
3496
|
+
Schema.Literals(["none", "off_session"]),
|
|
3497
|
+
),
|
|
3498
|
+
}),
|
|
3499
|
+
[
|
|
3500
|
+
Schema.Record(
|
|
3501
|
+
Schema.String,
|
|
3502
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3503
|
+
),
|
|
3504
|
+
],
|
|
3505
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3506
|
+
),
|
|
3507
|
+
samsung_pay: Schema.optionalKey(
|
|
3508
|
+
Schema.StructWithRest(
|
|
3509
|
+
Schema.Struct({
|
|
3510
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3511
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3512
|
+
}),
|
|
3513
|
+
[
|
|
3514
|
+
Schema.Record(
|
|
3515
|
+
Schema.String,
|
|
3516
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3517
|
+
),
|
|
3518
|
+
],
|
|
3519
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3520
|
+
),
|
|
3521
|
+
satispay: Schema.optionalKey(
|
|
3522
|
+
Schema.StructWithRest(
|
|
3523
|
+
Schema.Struct({
|
|
3524
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3525
|
+
}),
|
|
3526
|
+
[
|
|
3527
|
+
Schema.Record(
|
|
3528
|
+
Schema.String,
|
|
3529
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3530
|
+
),
|
|
3531
|
+
],
|
|
3532
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3533
|
+
),
|
|
3534
|
+
scalapay: Schema.optionalKey(
|
|
3535
|
+
Schema.StructWithRest(
|
|
3536
|
+
Schema.Struct({
|
|
3537
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3538
|
+
}),
|
|
3539
|
+
[
|
|
3540
|
+
Schema.Record(
|
|
3541
|
+
Schema.String,
|
|
3542
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3543
|
+
),
|
|
3544
|
+
],
|
|
3545
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3546
|
+
),
|
|
3547
|
+
sepa_debit: Schema.optionalKey(
|
|
3548
|
+
Schema.StructWithRest(
|
|
3549
|
+
Schema.Struct({
|
|
3550
|
+
mandate_options: Schema.optionalKey(
|
|
3551
|
+
Schema.StructWithRest(
|
|
3552
|
+
Schema.Struct({
|
|
3553
|
+
reference_prefix: Schema.optionalKey(
|
|
3554
|
+
Schema.Union([
|
|
3555
|
+
Schema.String.check(
|
|
3556
|
+
Schema.isMaxCodePoints(12).annotate({
|
|
3557
|
+
expected: "a string with at most 12 code points",
|
|
3558
|
+
}),
|
|
3559
|
+
),
|
|
3560
|
+
Schema.Literal(""),
|
|
3561
|
+
]),
|
|
3562
|
+
),
|
|
3563
|
+
}),
|
|
3564
|
+
[
|
|
3565
|
+
Schema.Record(
|
|
3566
|
+
Schema.String,
|
|
3567
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3568
|
+
),
|
|
3569
|
+
],
|
|
3570
|
+
).annotate({
|
|
3571
|
+
title: "payment_method_options_mandate_options_param",
|
|
3572
|
+
}),
|
|
3573
|
+
),
|
|
3574
|
+
setup_future_usage: Schema.optionalKey(
|
|
3575
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
3576
|
+
),
|
|
3577
|
+
target_date: Schema.optionalKey(
|
|
3578
|
+
Schema.String.check(
|
|
3579
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3580
|
+
expected: "a string with at most 5000 code points",
|
|
3581
|
+
}),
|
|
3582
|
+
),
|
|
3583
|
+
),
|
|
3584
|
+
}),
|
|
3585
|
+
[
|
|
3586
|
+
Schema.Record(
|
|
3587
|
+
Schema.String,
|
|
3588
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3589
|
+
),
|
|
3590
|
+
],
|
|
3591
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3592
|
+
),
|
|
3593
|
+
sequra: Schema.optionalKey(
|
|
3594
|
+
Schema.StructWithRest(
|
|
3595
|
+
Schema.Struct({
|
|
3596
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3597
|
+
}),
|
|
3598
|
+
[
|
|
3599
|
+
Schema.Record(
|
|
3600
|
+
Schema.String,
|
|
3601
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3602
|
+
),
|
|
3603
|
+
],
|
|
3604
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3605
|
+
),
|
|
3606
|
+
sofort: Schema.optionalKey(
|
|
3607
|
+
Schema.StructWithRest(
|
|
3608
|
+
Schema.Struct({
|
|
3609
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3610
|
+
}),
|
|
3611
|
+
[
|
|
3612
|
+
Schema.Record(
|
|
3613
|
+
Schema.String,
|
|
3614
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3615
|
+
),
|
|
3616
|
+
],
|
|
3617
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3618
|
+
),
|
|
3619
|
+
sunbit: Schema.optionalKey(
|
|
3620
|
+
Schema.StructWithRest(
|
|
3621
|
+
Schema.Struct({
|
|
3622
|
+
capture_method: Schema.optionalKey(Schema.Literal("manual")),
|
|
3623
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3624
|
+
}),
|
|
3625
|
+
[
|
|
3626
|
+
Schema.Record(
|
|
3627
|
+
Schema.String,
|
|
3628
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3629
|
+
),
|
|
3630
|
+
],
|
|
3631
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3632
|
+
),
|
|
3633
|
+
swish: Schema.optionalKey(
|
|
3634
|
+
Schema.StructWithRest(
|
|
3635
|
+
Schema.Struct({
|
|
3636
|
+
reference: Schema.optionalKey(
|
|
3637
|
+
Schema.String.check(
|
|
3638
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3639
|
+
expected: "a string with at most 5000 code points",
|
|
3640
|
+
}),
|
|
3641
|
+
),
|
|
3642
|
+
),
|
|
3643
|
+
}),
|
|
3644
|
+
[
|
|
3645
|
+
Schema.Record(
|
|
3646
|
+
Schema.String,
|
|
3647
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3648
|
+
),
|
|
3649
|
+
],
|
|
3650
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3651
|
+
),
|
|
3652
|
+
twint: Schema.optionalKey(
|
|
3653
|
+
Schema.StructWithRest(
|
|
3654
|
+
Schema.Struct({
|
|
3655
|
+
setup_future_usage: Schema.optionalKey(
|
|
3656
|
+
Schema.Literals(["none", "off_session"]),
|
|
3657
|
+
),
|
|
3658
|
+
}),
|
|
3659
|
+
[
|
|
3660
|
+
Schema.Record(
|
|
3661
|
+
Schema.String,
|
|
3662
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3663
|
+
),
|
|
3664
|
+
],
|
|
3665
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3666
|
+
),
|
|
3667
|
+
upi: Schema.optionalKey(
|
|
3668
|
+
Schema.StructWithRest(
|
|
3669
|
+
Schema.Struct({
|
|
3670
|
+
mandate_options: Schema.optionalKey(
|
|
3671
|
+
Schema.StructWithRest(
|
|
3672
|
+
Schema.Struct({
|
|
3673
|
+
amount: Schema.optionalKey(Schema.Int),
|
|
3674
|
+
amount_type: Schema.optionalKey(
|
|
3675
|
+
Schema.Literals(["fixed", "maximum"]),
|
|
3676
|
+
),
|
|
3677
|
+
description: Schema.optionalKey(
|
|
3678
|
+
Schema.String.check(
|
|
3679
|
+
Schema.isMaxCodePoints(20).annotate({
|
|
3680
|
+
expected: "a string with at most 20 code points",
|
|
3681
|
+
}),
|
|
3682
|
+
),
|
|
3683
|
+
),
|
|
3684
|
+
end_date: Schema.optionalKey(
|
|
3685
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
3686
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
3687
|
+
),
|
|
3688
|
+
),
|
|
3689
|
+
}),
|
|
3690
|
+
[
|
|
3691
|
+
Schema.Record(
|
|
3692
|
+
Schema.String,
|
|
3693
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3694
|
+
),
|
|
3695
|
+
],
|
|
3696
|
+
).annotate({
|
|
3697
|
+
title: "payment_method_options_mandate_options_param",
|
|
3698
|
+
}),
|
|
3699
|
+
),
|
|
3700
|
+
setup_future_usage: Schema.optionalKey(
|
|
3701
|
+
Schema.Literals(["", "none", "off_session", "on_session"]),
|
|
3702
|
+
),
|
|
3703
|
+
}),
|
|
3704
|
+
[
|
|
3705
|
+
Schema.Record(
|
|
3706
|
+
Schema.String,
|
|
3707
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3708
|
+
),
|
|
3709
|
+
],
|
|
3710
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3711
|
+
),
|
|
3712
|
+
us_bank_account: Schema.optionalKey(
|
|
3713
|
+
Schema.StructWithRest(
|
|
3714
|
+
Schema.Struct({
|
|
3715
|
+
financial_connections: Schema.optionalKey(
|
|
3716
|
+
Schema.StructWithRest(
|
|
3717
|
+
Schema.Struct({
|
|
3718
|
+
permissions: Schema.optionalKey(
|
|
3719
|
+
Schema.Array(
|
|
3720
|
+
Schema.Literals([
|
|
3721
|
+
"balances",
|
|
3722
|
+
"ownership",
|
|
3723
|
+
"payment_method",
|
|
3724
|
+
"transactions",
|
|
3725
|
+
]),
|
|
3726
|
+
),
|
|
3727
|
+
),
|
|
3728
|
+
prefetch: Schema.optionalKey(
|
|
3729
|
+
Schema.Array(
|
|
3730
|
+
Schema.Literals([
|
|
3731
|
+
"balances",
|
|
3732
|
+
"ownership",
|
|
3733
|
+
"transactions",
|
|
3734
|
+
]),
|
|
3735
|
+
),
|
|
3736
|
+
),
|
|
3737
|
+
}),
|
|
3738
|
+
[
|
|
3739
|
+
Schema.Record(
|
|
3740
|
+
Schema.String,
|
|
3741
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3742
|
+
),
|
|
3743
|
+
],
|
|
3744
|
+
).annotate({ title: "linked_account_options_param" }),
|
|
3745
|
+
),
|
|
3746
|
+
setup_future_usage: Schema.optionalKey(
|
|
3747
|
+
Schema.Literals(["none", "off_session", "on_session"]),
|
|
3748
|
+
),
|
|
3749
|
+
target_date: Schema.optionalKey(
|
|
3750
|
+
Schema.String.check(
|
|
3751
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3752
|
+
expected: "a string with at most 5000 code points",
|
|
3753
|
+
}),
|
|
3754
|
+
),
|
|
3755
|
+
),
|
|
3756
|
+
verification_method: Schema.optionalKey(
|
|
3757
|
+
Schema.Literals(["automatic", "instant"]),
|
|
3758
|
+
),
|
|
3759
|
+
}),
|
|
3760
|
+
[
|
|
3761
|
+
Schema.Record(
|
|
3762
|
+
Schema.String,
|
|
3763
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3764
|
+
),
|
|
3765
|
+
],
|
|
3766
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3767
|
+
),
|
|
3768
|
+
wechat_pay: Schema.optionalKey(
|
|
3769
|
+
Schema.StructWithRest(
|
|
3770
|
+
Schema.Struct({
|
|
3771
|
+
app_id: Schema.optionalKey(
|
|
3772
|
+
Schema.String.check(
|
|
3773
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3774
|
+
expected: "a string with at most 5000 code points",
|
|
3775
|
+
}),
|
|
3776
|
+
),
|
|
3777
|
+
),
|
|
3778
|
+
client: Schema.Literals(["android", "ios", "web"]),
|
|
3779
|
+
setup_future_usage: Schema.optionalKey(Schema.Literal("none")),
|
|
3780
|
+
}),
|
|
3781
|
+
[
|
|
3782
|
+
Schema.Record(
|
|
3783
|
+
Schema.String,
|
|
3784
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3785
|
+
),
|
|
3786
|
+
],
|
|
3787
|
+
).annotate({ title: "payment_method_options_param" }),
|
|
3788
|
+
),
|
|
3789
|
+
}),
|
|
3790
|
+
[
|
|
3791
|
+
Schema.Record(
|
|
3792
|
+
Schema.String,
|
|
3793
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3794
|
+
),
|
|
3795
|
+
],
|
|
3796
|
+
).annotate({
|
|
3797
|
+
title: "payment_method_options_param",
|
|
3798
|
+
description: "Payment-method-specific configuration.",
|
|
3799
|
+
}),
|
|
3800
|
+
),
|
|
3801
|
+
permissions: Schema.optionalKey(
|
|
3802
|
+
Schema.StructWithRest(
|
|
3803
|
+
Schema.Struct({
|
|
3804
|
+
update_shipping_details: Schema.optionalKey(
|
|
3805
|
+
Schema.Literals(["client_only", "server_only"]),
|
|
3806
|
+
),
|
|
3807
|
+
}),
|
|
3808
|
+
[
|
|
3809
|
+
Schema.Record(
|
|
3810
|
+
Schema.String,
|
|
3811
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3812
|
+
),
|
|
3813
|
+
],
|
|
3814
|
+
).annotate({
|
|
3815
|
+
title: "permissions_param",
|
|
3816
|
+
description:
|
|
3817
|
+
"This property is used to set up permissions for various actions (for example, update) on the CheckoutSession object. Can only be set when creating `embedded_page` or `elements` sessions.\n\nFor specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.",
|
|
3818
|
+
}),
|
|
3819
|
+
),
|
|
3820
|
+
phone_number_collection: Schema.optionalKey(
|
|
3821
|
+
Schema.StructWithRest(Schema.Struct({ enabled: Schema.Boolean }), [
|
|
3822
|
+
Schema.Record(
|
|
3823
|
+
Schema.String,
|
|
3824
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3825
|
+
),
|
|
3826
|
+
]).annotate({
|
|
3827
|
+
title: "phone_number_collection_params",
|
|
3828
|
+
description:
|
|
3829
|
+
"Controls phone number collection settings for the session.\n\nWe recommend that you review your privacy policy and check with your legal contacts\nbefore using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).",
|
|
3830
|
+
}),
|
|
3831
|
+
),
|
|
3832
|
+
redirect_on_completion: Schema.optionalKey(
|
|
3833
|
+
Schema.Literals(["always", "if_required", "never"]).annotate({
|
|
3834
|
+
description:
|
|
3835
|
+
"This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.",
|
|
3836
|
+
}),
|
|
3837
|
+
),
|
|
3838
|
+
return_url: Schema.optionalKey(
|
|
3839
|
+
Schema.String.annotate({
|
|
3840
|
+
description:
|
|
3841
|
+
"The URL to redirect your customer back to after they authenticate or cancel their payment on the\npayment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements`\nand redirect-based payment methods are enabled on the session.",
|
|
3842
|
+
}),
|
|
3843
|
+
),
|
|
3844
|
+
saved_payment_method_options: Schema.optionalKey(
|
|
3845
|
+
Schema.StructWithRest(
|
|
3846
|
+
Schema.Struct({
|
|
3847
|
+
allow_redisplay_filters: Schema.optionalKey(
|
|
3848
|
+
Schema.Array(Schema.Literals(["always", "limited", "unspecified"])),
|
|
3849
|
+
),
|
|
3850
|
+
payment_method_remove: Schema.optionalKey(
|
|
3851
|
+
Schema.Literals(["disabled", "enabled"]),
|
|
3852
|
+
),
|
|
3853
|
+
payment_method_save: Schema.optionalKey(
|
|
3854
|
+
Schema.Literals(["disabled", "enabled"]),
|
|
3855
|
+
),
|
|
3856
|
+
}),
|
|
3857
|
+
[
|
|
3858
|
+
Schema.Record(
|
|
3859
|
+
Schema.String,
|
|
3860
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3861
|
+
),
|
|
3862
|
+
],
|
|
3863
|
+
).annotate({
|
|
3864
|
+
title: "saved_payment_method_options_param",
|
|
3865
|
+
description:
|
|
3866
|
+
"Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.",
|
|
3867
|
+
}),
|
|
3868
|
+
),
|
|
3869
|
+
setup_intent_data: Schema.optionalKey(
|
|
3870
|
+
Schema.StructWithRest(
|
|
3871
|
+
Schema.Struct({
|
|
3872
|
+
description: Schema.optionalKey(
|
|
3873
|
+
Schema.String.check(
|
|
3874
|
+
Schema.isMaxCodePoints(1000).annotate({
|
|
3875
|
+
expected: "a string with at most 1000 code points",
|
|
3876
|
+
}),
|
|
3877
|
+
),
|
|
3878
|
+
),
|
|
3879
|
+
metadata: Schema.optionalKey(
|
|
3880
|
+
Schema.Record(Schema.String, Schema.String),
|
|
3881
|
+
),
|
|
3882
|
+
on_behalf_of: Schema.optionalKey(Schema.String),
|
|
3883
|
+
}),
|
|
3884
|
+
[
|
|
3885
|
+
Schema.Record(
|
|
3886
|
+
Schema.String,
|
|
3887
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3888
|
+
),
|
|
3889
|
+
],
|
|
3890
|
+
).annotate({
|
|
3891
|
+
title: "setup_intent_data_param",
|
|
3892
|
+
description:
|
|
3893
|
+
"A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.",
|
|
3894
|
+
}),
|
|
3895
|
+
),
|
|
3896
|
+
shipping_address_collection: Schema.optionalKey(
|
|
3897
|
+
Schema.StructWithRest(
|
|
3898
|
+
Schema.Struct({
|
|
3899
|
+
allowed_countries: Schema.Array(
|
|
3900
|
+
Schema.Literals([
|
|
3901
|
+
"AC",
|
|
3902
|
+
"AD",
|
|
3903
|
+
"AE",
|
|
3904
|
+
"AF",
|
|
3905
|
+
"AG",
|
|
3906
|
+
"AI",
|
|
3907
|
+
"AL",
|
|
3908
|
+
"AM",
|
|
3909
|
+
"AO",
|
|
3910
|
+
"AQ",
|
|
3911
|
+
"AR",
|
|
3912
|
+
"AT",
|
|
3913
|
+
"AU",
|
|
3914
|
+
"AW",
|
|
3915
|
+
"AX",
|
|
3916
|
+
"AZ",
|
|
3917
|
+
"BA",
|
|
3918
|
+
"BB",
|
|
3919
|
+
"BD",
|
|
3920
|
+
"BE",
|
|
3921
|
+
"BF",
|
|
3922
|
+
"BG",
|
|
3923
|
+
"BH",
|
|
3924
|
+
"BI",
|
|
3925
|
+
"BJ",
|
|
3926
|
+
"BL",
|
|
3927
|
+
"BM",
|
|
3928
|
+
"BN",
|
|
3929
|
+
"BO",
|
|
3930
|
+
"BQ",
|
|
3931
|
+
"BR",
|
|
3932
|
+
"BS",
|
|
3933
|
+
"BT",
|
|
3934
|
+
"BV",
|
|
3935
|
+
"BW",
|
|
3936
|
+
"BY",
|
|
3937
|
+
"BZ",
|
|
3938
|
+
"CA",
|
|
3939
|
+
"CD",
|
|
3940
|
+
"CF",
|
|
3941
|
+
"CG",
|
|
3942
|
+
"CH",
|
|
3943
|
+
"CI",
|
|
3944
|
+
"CK",
|
|
3945
|
+
"CL",
|
|
3946
|
+
"CM",
|
|
3947
|
+
"CN",
|
|
3948
|
+
"CO",
|
|
3949
|
+
"CR",
|
|
3950
|
+
"CV",
|
|
3951
|
+
"CW",
|
|
3952
|
+
"CY",
|
|
3953
|
+
"CZ",
|
|
3954
|
+
"DE",
|
|
3955
|
+
"DJ",
|
|
3956
|
+
"DK",
|
|
3957
|
+
"DM",
|
|
3958
|
+
"DO",
|
|
3959
|
+
"DZ",
|
|
3960
|
+
"EC",
|
|
3961
|
+
"EE",
|
|
3962
|
+
"EG",
|
|
3963
|
+
"EH",
|
|
3964
|
+
"ER",
|
|
3965
|
+
"ES",
|
|
3966
|
+
"ET",
|
|
3967
|
+
"FI",
|
|
3968
|
+
"FJ",
|
|
3969
|
+
"FK",
|
|
3970
|
+
"FO",
|
|
3971
|
+
"FR",
|
|
3972
|
+
"GA",
|
|
3973
|
+
"GB",
|
|
3974
|
+
"GD",
|
|
3975
|
+
"GE",
|
|
3976
|
+
"GF",
|
|
3977
|
+
"GG",
|
|
3978
|
+
"GH",
|
|
3979
|
+
"GI",
|
|
3980
|
+
"GL",
|
|
3981
|
+
"GM",
|
|
3982
|
+
"GN",
|
|
3983
|
+
"GP",
|
|
3984
|
+
"GQ",
|
|
3985
|
+
"GR",
|
|
3986
|
+
"GS",
|
|
3987
|
+
"GT",
|
|
3988
|
+
"GU",
|
|
3989
|
+
"GW",
|
|
3990
|
+
"GY",
|
|
3991
|
+
"HK",
|
|
3992
|
+
"HN",
|
|
3993
|
+
"HR",
|
|
3994
|
+
"HT",
|
|
3995
|
+
"HU",
|
|
3996
|
+
"ID",
|
|
3997
|
+
"IE",
|
|
3998
|
+
"IL",
|
|
3999
|
+
"IM",
|
|
4000
|
+
"IN",
|
|
4001
|
+
"IO",
|
|
4002
|
+
"IQ",
|
|
4003
|
+
"IS",
|
|
4004
|
+
"IT",
|
|
4005
|
+
"JE",
|
|
4006
|
+
"JM",
|
|
4007
|
+
"JO",
|
|
4008
|
+
"JP",
|
|
4009
|
+
"KE",
|
|
4010
|
+
"KG",
|
|
4011
|
+
"KH",
|
|
4012
|
+
"KI",
|
|
4013
|
+
"KM",
|
|
4014
|
+
"KN",
|
|
4015
|
+
"KR",
|
|
4016
|
+
"KW",
|
|
4017
|
+
"KY",
|
|
4018
|
+
"KZ",
|
|
4019
|
+
"LA",
|
|
4020
|
+
"LB",
|
|
4021
|
+
"LC",
|
|
4022
|
+
"LI",
|
|
4023
|
+
"LK",
|
|
4024
|
+
"LR",
|
|
4025
|
+
"LS",
|
|
4026
|
+
"LT",
|
|
4027
|
+
"LU",
|
|
4028
|
+
"LV",
|
|
4029
|
+
"LY",
|
|
4030
|
+
"MA",
|
|
4031
|
+
"MC",
|
|
4032
|
+
"MD",
|
|
4033
|
+
"ME",
|
|
4034
|
+
"MF",
|
|
4035
|
+
"MG",
|
|
4036
|
+
"MK",
|
|
4037
|
+
"ML",
|
|
4038
|
+
"MM",
|
|
4039
|
+
"MN",
|
|
4040
|
+
"MO",
|
|
4041
|
+
"MQ",
|
|
4042
|
+
"MR",
|
|
4043
|
+
"MS",
|
|
4044
|
+
"MT",
|
|
4045
|
+
"MU",
|
|
4046
|
+
"MV",
|
|
4047
|
+
"MW",
|
|
4048
|
+
"MX",
|
|
4049
|
+
"MY",
|
|
4050
|
+
"MZ",
|
|
4051
|
+
"NA",
|
|
4052
|
+
"NC",
|
|
4053
|
+
"NE",
|
|
4054
|
+
"NG",
|
|
4055
|
+
"NI",
|
|
4056
|
+
"NL",
|
|
4057
|
+
"NO",
|
|
4058
|
+
"NP",
|
|
4059
|
+
"NR",
|
|
4060
|
+
"NU",
|
|
4061
|
+
"NZ",
|
|
4062
|
+
"OM",
|
|
4063
|
+
"PA",
|
|
4064
|
+
"PE",
|
|
4065
|
+
"PF",
|
|
4066
|
+
"PG",
|
|
4067
|
+
"PH",
|
|
4068
|
+
"PK",
|
|
4069
|
+
"PL",
|
|
4070
|
+
"PM",
|
|
4071
|
+
"PN",
|
|
4072
|
+
"PR",
|
|
4073
|
+
"PS",
|
|
4074
|
+
"PT",
|
|
4075
|
+
"PY",
|
|
4076
|
+
"QA",
|
|
4077
|
+
"RE",
|
|
4078
|
+
"RO",
|
|
4079
|
+
"RS",
|
|
4080
|
+
"RU",
|
|
4081
|
+
"RW",
|
|
4082
|
+
"SA",
|
|
4083
|
+
"SB",
|
|
4084
|
+
"SC",
|
|
4085
|
+
"SD",
|
|
4086
|
+
"SE",
|
|
4087
|
+
"SG",
|
|
4088
|
+
"SH",
|
|
4089
|
+
"SI",
|
|
4090
|
+
"SJ",
|
|
4091
|
+
"SK",
|
|
4092
|
+
"SL",
|
|
4093
|
+
"SM",
|
|
4094
|
+
"SN",
|
|
4095
|
+
"SO",
|
|
4096
|
+
"SR",
|
|
4097
|
+
"SS",
|
|
4098
|
+
"ST",
|
|
4099
|
+
"SV",
|
|
4100
|
+
"SX",
|
|
4101
|
+
"SZ",
|
|
4102
|
+
"TA",
|
|
4103
|
+
"TC",
|
|
4104
|
+
"TD",
|
|
4105
|
+
"TF",
|
|
4106
|
+
"TG",
|
|
4107
|
+
"TH",
|
|
4108
|
+
"TJ",
|
|
4109
|
+
"TK",
|
|
4110
|
+
"TL",
|
|
4111
|
+
"TM",
|
|
4112
|
+
"TN",
|
|
4113
|
+
"TO",
|
|
4114
|
+
"TR",
|
|
4115
|
+
"TT",
|
|
4116
|
+
"TV",
|
|
4117
|
+
"TW",
|
|
4118
|
+
"TZ",
|
|
4119
|
+
"UA",
|
|
4120
|
+
"UG",
|
|
4121
|
+
"US",
|
|
4122
|
+
"UY",
|
|
4123
|
+
"UZ",
|
|
4124
|
+
"VA",
|
|
4125
|
+
"VC",
|
|
4126
|
+
"VE",
|
|
4127
|
+
"VG",
|
|
4128
|
+
"VN",
|
|
4129
|
+
"VU",
|
|
4130
|
+
"WF",
|
|
4131
|
+
"WS",
|
|
4132
|
+
"XK",
|
|
4133
|
+
"YE",
|
|
4134
|
+
"YT",
|
|
4135
|
+
"ZA",
|
|
4136
|
+
"ZM",
|
|
4137
|
+
"ZW",
|
|
4138
|
+
"ZZ",
|
|
4139
|
+
]),
|
|
4140
|
+
),
|
|
4141
|
+
}),
|
|
4142
|
+
[
|
|
4143
|
+
Schema.Record(
|
|
4144
|
+
Schema.String,
|
|
4145
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4146
|
+
),
|
|
4147
|
+
],
|
|
4148
|
+
).annotate({
|
|
4149
|
+
title: "shipping_address_collection_params",
|
|
4150
|
+
description:
|
|
4151
|
+
"When set, provides configuration for Checkout to collect a shipping address from a customer.",
|
|
4152
|
+
}),
|
|
4153
|
+
),
|
|
4154
|
+
shipping_options: Schema.optionalKey(
|
|
4155
|
+
Schema.Array(
|
|
4156
|
+
Schema.StructWithRest(
|
|
4157
|
+
Schema.Struct({
|
|
4158
|
+
shipping_rate: Schema.optionalKey(
|
|
4159
|
+
Schema.String.check(
|
|
4160
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
4161
|
+
expected: "a string with at most 5000 code points",
|
|
4162
|
+
}),
|
|
4163
|
+
),
|
|
4164
|
+
),
|
|
4165
|
+
shipping_rate_data: Schema.optionalKey(
|
|
4166
|
+
Schema.StructWithRest(
|
|
4167
|
+
Schema.Struct({
|
|
4168
|
+
delivery_estimate: Schema.optionalKey(
|
|
4169
|
+
Schema.StructWithRest(
|
|
4170
|
+
Schema.Struct({
|
|
4171
|
+
maximum: Schema.optionalKey(
|
|
4172
|
+
Schema.StructWithRest(
|
|
4173
|
+
Schema.Struct({
|
|
4174
|
+
unit: Schema.Literals([
|
|
4175
|
+
"business_day",
|
|
4176
|
+
"day",
|
|
4177
|
+
"hour",
|
|
4178
|
+
"month",
|
|
4179
|
+
"week",
|
|
4180
|
+
]),
|
|
4181
|
+
value: Schema.Int,
|
|
4182
|
+
}),
|
|
4183
|
+
[
|
|
4184
|
+
Schema.Record(
|
|
4185
|
+
Schema.String,
|
|
4186
|
+
Schema.Json.annotate({
|
|
4187
|
+
expected: "JSON value",
|
|
4188
|
+
}),
|
|
4189
|
+
),
|
|
4190
|
+
],
|
|
4191
|
+
).annotate({ title: "delivery_estimate_bound" }),
|
|
4192
|
+
),
|
|
4193
|
+
minimum: Schema.optionalKey(
|
|
4194
|
+
Schema.StructWithRest(
|
|
4195
|
+
Schema.Struct({
|
|
4196
|
+
unit: Schema.Literals([
|
|
4197
|
+
"business_day",
|
|
4198
|
+
"day",
|
|
4199
|
+
"hour",
|
|
4200
|
+
"month",
|
|
4201
|
+
"week",
|
|
4202
|
+
]),
|
|
4203
|
+
value: Schema.Int,
|
|
4204
|
+
}),
|
|
4205
|
+
[
|
|
4206
|
+
Schema.Record(
|
|
4207
|
+
Schema.String,
|
|
4208
|
+
Schema.Json.annotate({
|
|
4209
|
+
expected: "JSON value",
|
|
4210
|
+
}),
|
|
4211
|
+
),
|
|
4212
|
+
],
|
|
4213
|
+
).annotate({ title: "delivery_estimate_bound" }),
|
|
4214
|
+
),
|
|
4215
|
+
}),
|
|
4216
|
+
[
|
|
4217
|
+
Schema.Record(
|
|
4218
|
+
Schema.String,
|
|
4219
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4220
|
+
),
|
|
4221
|
+
],
|
|
4222
|
+
).annotate({ title: "delivery_estimate" }),
|
|
4223
|
+
),
|
|
4224
|
+
display_name: Schema.String.check(
|
|
4225
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
4226
|
+
expected: "a string with at most 100 code points",
|
|
4227
|
+
}),
|
|
4228
|
+
),
|
|
4229
|
+
fixed_amount: Schema.optionalKey(
|
|
4230
|
+
Schema.StructWithRest(
|
|
4231
|
+
Schema.Struct({
|
|
4232
|
+
amount: Schema.Int,
|
|
4233
|
+
currency: Schema.String.annotate({
|
|
4234
|
+
format: "currency",
|
|
4235
|
+
}),
|
|
4236
|
+
currency_options: Schema.optionalKey(
|
|
4237
|
+
Schema.Record(
|
|
4238
|
+
Schema.String,
|
|
4239
|
+
Schema.StructWithRest(
|
|
4240
|
+
Schema.Struct({
|
|
4241
|
+
amount: Schema.Int,
|
|
4242
|
+
tax_behavior: Schema.optionalKey(
|
|
4243
|
+
Schema.Literals([
|
|
4244
|
+
"exclusive",
|
|
4245
|
+
"inclusive",
|
|
4246
|
+
"unspecified",
|
|
4247
|
+
]),
|
|
4248
|
+
),
|
|
4249
|
+
}),
|
|
4250
|
+
[
|
|
4251
|
+
Schema.Record(
|
|
4252
|
+
Schema.String,
|
|
4253
|
+
Schema.Json.annotate({
|
|
4254
|
+
expected: "JSON value",
|
|
4255
|
+
}),
|
|
4256
|
+
),
|
|
4257
|
+
],
|
|
4258
|
+
).annotate({ title: "currency_option" }),
|
|
4259
|
+
),
|
|
4260
|
+
),
|
|
4261
|
+
}),
|
|
4262
|
+
[
|
|
4263
|
+
Schema.Record(
|
|
4264
|
+
Schema.String,
|
|
4265
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4266
|
+
),
|
|
4267
|
+
],
|
|
4268
|
+
).annotate({ title: "fixed_amount" }),
|
|
4269
|
+
),
|
|
4270
|
+
metadata: Schema.optionalKey(
|
|
4271
|
+
Schema.Record(Schema.String, Schema.String),
|
|
4272
|
+
),
|
|
4273
|
+
tax_behavior: Schema.optionalKey(
|
|
4274
|
+
Schema.Literals(["exclusive", "inclusive", "unspecified"]),
|
|
4275
|
+
),
|
|
4276
|
+
tax_code: Schema.optionalKey(Schema.String),
|
|
4277
|
+
type: Schema.optionalKey(Schema.Literal("fixed_amount")),
|
|
4278
|
+
}),
|
|
4279
|
+
[
|
|
4280
|
+
Schema.Record(
|
|
4281
|
+
Schema.String,
|
|
4282
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4283
|
+
),
|
|
4284
|
+
],
|
|
4285
|
+
).annotate({ title: "create_params" }),
|
|
4286
|
+
),
|
|
4287
|
+
}),
|
|
4288
|
+
[
|
|
4289
|
+
Schema.Record(
|
|
4290
|
+
Schema.String,
|
|
4291
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4292
|
+
),
|
|
4293
|
+
],
|
|
4294
|
+
).annotate({ title: "shipping_option_params" }),
|
|
4295
|
+
).annotate({
|
|
4296
|
+
description:
|
|
4297
|
+
"The shipping rate options to apply to this Session. Up to a maximum of 5.",
|
|
4298
|
+
}),
|
|
4299
|
+
),
|
|
4300
|
+
submit_type: Schema.optionalKey(
|
|
4301
|
+
Schema.Literals(["auto", "book", "donate", "pay", "subscribe"]).annotate({
|
|
4302
|
+
description:
|
|
4303
|
+
"Describes the type of transaction being performed by Checkout in order\nto customize relevant text on the page, such as the submit button.\n `submit_type` can only be specified on Checkout Sessions in\n`payment` or `subscription` mode. If blank or `auto`, `pay` is used.\nYou can't set this parameter if `ui_mode` is `elements`.",
|
|
4304
|
+
}),
|
|
4305
|
+
),
|
|
4306
|
+
subscription_data: Schema.optionalKey(
|
|
4307
|
+
Schema.StructWithRest(
|
|
4308
|
+
Schema.Struct({
|
|
4309
|
+
application_fee_percent: Schema.optionalKey(Schema.Finite),
|
|
4310
|
+
billing_cycle_anchor: Schema.optionalKey(
|
|
4311
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
4312
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
4313
|
+
),
|
|
4314
|
+
),
|
|
4315
|
+
billing_cycle_anchor_config: Schema.optionalKey(
|
|
4316
|
+
Schema.StructWithRest(
|
|
4317
|
+
Schema.Struct({
|
|
4318
|
+
day_of_month: Schema.Int,
|
|
4319
|
+
hour: Schema.optionalKey(Schema.Int),
|
|
4320
|
+
minute: Schema.optionalKey(Schema.Int),
|
|
4321
|
+
month: Schema.optionalKey(Schema.Int),
|
|
4322
|
+
second: Schema.optionalKey(Schema.Int),
|
|
4323
|
+
}),
|
|
4324
|
+
[
|
|
4325
|
+
Schema.Record(
|
|
4326
|
+
Schema.String,
|
|
4327
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4328
|
+
),
|
|
4329
|
+
],
|
|
4330
|
+
).annotate({ title: "cycle_anchor_config_param" }),
|
|
4331
|
+
),
|
|
4332
|
+
billing_mode: Schema.optionalKey(
|
|
4333
|
+
Schema.StructWithRest(
|
|
4334
|
+
Schema.Struct({
|
|
4335
|
+
flexible: Schema.optionalKey(
|
|
4336
|
+
Schema.StructWithRest(
|
|
4337
|
+
Schema.Struct({
|
|
4338
|
+
proration_discounts: Schema.optionalKey(
|
|
4339
|
+
Schema.Literals(["included", "itemized"]),
|
|
4340
|
+
),
|
|
4341
|
+
}),
|
|
4342
|
+
[
|
|
4343
|
+
Schema.Record(
|
|
4344
|
+
Schema.String,
|
|
4345
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4346
|
+
),
|
|
4347
|
+
],
|
|
4348
|
+
).annotate({ title: "flexible_params" }),
|
|
4349
|
+
),
|
|
4350
|
+
type: Schema.Literals(["classic", "flexible"]),
|
|
4351
|
+
}),
|
|
4352
|
+
[
|
|
4353
|
+
Schema.Record(
|
|
4354
|
+
Schema.String,
|
|
4355
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4356
|
+
),
|
|
4357
|
+
],
|
|
4358
|
+
).annotate({ title: "billing_mode" }),
|
|
4359
|
+
),
|
|
4360
|
+
default_tax_rates: Schema.optionalKey(
|
|
4361
|
+
Schema.Array(
|
|
4362
|
+
Schema.String.check(
|
|
4363
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
4364
|
+
expected: "a string with at most 5000 code points",
|
|
4365
|
+
}),
|
|
4366
|
+
),
|
|
4367
|
+
),
|
|
4368
|
+
),
|
|
4369
|
+
description: Schema.optionalKey(
|
|
4370
|
+
Schema.String.check(
|
|
4371
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
4372
|
+
expected: "a string with at most 500 code points",
|
|
4373
|
+
}),
|
|
4374
|
+
),
|
|
4375
|
+
),
|
|
4376
|
+
invoice_settings: Schema.optionalKey(
|
|
4377
|
+
Schema.StructWithRest(
|
|
4378
|
+
Schema.Struct({
|
|
4379
|
+
account_tax_ids: Schema.optionalKey(
|
|
4380
|
+
Schema.Union([
|
|
4381
|
+
Schema.Array(
|
|
4382
|
+
Schema.String.check(
|
|
4383
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
4384
|
+
expected: "a string with at most 5000 code points",
|
|
4385
|
+
}),
|
|
4386
|
+
),
|
|
4387
|
+
),
|
|
4388
|
+
Schema.Literal(""),
|
|
4389
|
+
]),
|
|
4390
|
+
),
|
|
4391
|
+
custom_fields: Schema.optionalKey(
|
|
4392
|
+
Schema.Union([
|
|
4393
|
+
Schema.Array(
|
|
4394
|
+
Schema.StructWithRest(
|
|
4395
|
+
Schema.Struct({
|
|
4396
|
+
name: Schema.String.check(
|
|
4397
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
4398
|
+
expected: "a string with at most 40 code points",
|
|
4399
|
+
}),
|
|
4400
|
+
),
|
|
4401
|
+
value: Schema.String.check(
|
|
4402
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
4403
|
+
expected: "a string with at most 140 code points",
|
|
4404
|
+
}),
|
|
4405
|
+
),
|
|
4406
|
+
}),
|
|
4407
|
+
[
|
|
4408
|
+
Schema.Record(
|
|
4409
|
+
Schema.String,
|
|
4410
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4411
|
+
),
|
|
4412
|
+
],
|
|
4413
|
+
).annotate({ title: "custom_field_params" }),
|
|
4414
|
+
),
|
|
4415
|
+
Schema.Literal(""),
|
|
4416
|
+
]),
|
|
4417
|
+
),
|
|
4418
|
+
description: Schema.optionalKey(
|
|
4419
|
+
Schema.String.check(
|
|
4420
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
4421
|
+
expected: "a string with at most 500 code points",
|
|
4422
|
+
}),
|
|
4423
|
+
),
|
|
4424
|
+
),
|
|
4425
|
+
footer: Schema.optionalKey(
|
|
4426
|
+
Schema.String.check(
|
|
4427
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
4428
|
+
expected: "a string with at most 5000 code points",
|
|
4429
|
+
}),
|
|
4430
|
+
),
|
|
4431
|
+
),
|
|
4432
|
+
issuer: Schema.optionalKey(
|
|
4433
|
+
Schema.StructWithRest(
|
|
4434
|
+
Schema.Struct({
|
|
4435
|
+
account: Schema.optionalKey(Schema.String),
|
|
4436
|
+
type: Schema.Literals(["account", "self"]),
|
|
4437
|
+
}),
|
|
4438
|
+
[
|
|
4439
|
+
Schema.Record(
|
|
4440
|
+
Schema.String,
|
|
4441
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4442
|
+
),
|
|
4443
|
+
],
|
|
4444
|
+
).annotate({ title: "param" }),
|
|
4445
|
+
),
|
|
4446
|
+
}),
|
|
4447
|
+
[
|
|
4448
|
+
Schema.Record(
|
|
4449
|
+
Schema.String,
|
|
4450
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4451
|
+
),
|
|
4452
|
+
],
|
|
4453
|
+
).annotate({ title: "invoice_settings_params" }),
|
|
4454
|
+
),
|
|
4455
|
+
metadata: Schema.optionalKey(
|
|
4456
|
+
Schema.Record(Schema.String, Schema.String),
|
|
4457
|
+
),
|
|
4458
|
+
on_behalf_of: Schema.optionalKey(Schema.String),
|
|
4459
|
+
pending_invoice_item_interval: Schema.optionalKey(
|
|
4460
|
+
Schema.StructWithRest(
|
|
4461
|
+
Schema.Struct({
|
|
4462
|
+
interval: Schema.Literals(["day", "month", "week", "year"]),
|
|
4463
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
4464
|
+
}),
|
|
4465
|
+
[
|
|
4466
|
+
Schema.Record(
|
|
4467
|
+
Schema.String,
|
|
4468
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4469
|
+
),
|
|
4470
|
+
],
|
|
4471
|
+
).annotate({ title: "pending_invoice_item_interval_params" }),
|
|
4472
|
+
),
|
|
4473
|
+
proration_behavior: Schema.optionalKey(
|
|
4474
|
+
Schema.Literals(["create_prorations", "none"]),
|
|
4475
|
+
),
|
|
4476
|
+
transfer_data: Schema.optionalKey(
|
|
4477
|
+
Schema.StructWithRest(
|
|
4478
|
+
Schema.Struct({
|
|
4479
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
4480
|
+
destination: Schema.String,
|
|
4481
|
+
}),
|
|
4482
|
+
[
|
|
4483
|
+
Schema.Record(
|
|
4484
|
+
Schema.String,
|
|
4485
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4486
|
+
),
|
|
4487
|
+
],
|
|
4488
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
4489
|
+
),
|
|
4490
|
+
trial_end: Schema.optionalKey(
|
|
4491
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
4492
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
4493
|
+
),
|
|
4494
|
+
),
|
|
4495
|
+
trial_period_days: Schema.optionalKey(Schema.Int),
|
|
4496
|
+
trial_settings: Schema.optionalKey(
|
|
4497
|
+
Schema.StructWithRest(
|
|
4498
|
+
Schema.Struct({
|
|
4499
|
+
end_behavior: Schema.StructWithRest(
|
|
4500
|
+
Schema.Struct({
|
|
4501
|
+
missing_payment_method: Schema.Literals([
|
|
4502
|
+
"cancel",
|
|
4503
|
+
"create_invoice",
|
|
4504
|
+
"pause",
|
|
4505
|
+
]),
|
|
4506
|
+
}),
|
|
4507
|
+
[
|
|
4508
|
+
Schema.Record(
|
|
4509
|
+
Schema.String,
|
|
4510
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4511
|
+
),
|
|
4512
|
+
],
|
|
4513
|
+
).annotate({ title: "end_behavior" }),
|
|
4514
|
+
}),
|
|
4515
|
+
[
|
|
4516
|
+
Schema.Record(
|
|
4517
|
+
Schema.String,
|
|
4518
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4519
|
+
),
|
|
4520
|
+
],
|
|
4521
|
+
).annotate({ title: "trial_settings_config" }),
|
|
4522
|
+
),
|
|
4523
|
+
}),
|
|
4524
|
+
[
|
|
4525
|
+
Schema.Record(
|
|
4526
|
+
Schema.String,
|
|
4527
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4528
|
+
),
|
|
4529
|
+
],
|
|
4530
|
+
).annotate({
|
|
4531
|
+
title: "subscription_data_params",
|
|
4532
|
+
description:
|
|
4533
|
+
"A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.",
|
|
4534
|
+
}),
|
|
4535
|
+
),
|
|
4536
|
+
success_url: Schema.optionalKey(
|
|
4537
|
+
Schema.String.annotate({
|
|
4538
|
+
description:
|
|
4539
|
+
"The URL to which Stripe should send customers when payment or setup\nis complete.\nThis parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use\ninformation from the successful Checkout Session on your page, read the\nguide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page).",
|
|
4540
|
+
}),
|
|
4541
|
+
),
|
|
4542
|
+
tax_id_collection: Schema.optionalKey(
|
|
4543
|
+
Schema.StructWithRest(
|
|
4544
|
+
Schema.Struct({
|
|
4545
|
+
enabled: Schema.Boolean,
|
|
4546
|
+
required: Schema.optionalKey(
|
|
4547
|
+
Schema.Literals(["if_supported", "never"]),
|
|
4548
|
+
),
|
|
4549
|
+
}),
|
|
4550
|
+
[
|
|
4551
|
+
Schema.Record(
|
|
4552
|
+
Schema.String,
|
|
4553
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4554
|
+
),
|
|
4555
|
+
],
|
|
4556
|
+
).annotate({
|
|
4557
|
+
title: "tax_id_collection_params",
|
|
4558
|
+
description: "Controls tax ID collection during checkout.",
|
|
4559
|
+
}),
|
|
4560
|
+
),
|
|
4561
|
+
ui_mode: Schema.optionalKey(
|
|
4562
|
+
Schema.Literals([
|
|
4563
|
+
"elements",
|
|
4564
|
+
"embedded_page",
|
|
4565
|
+
"form",
|
|
4566
|
+
"hosted_page",
|
|
4567
|
+
]).annotate({
|
|
4568
|
+
description: "The UI mode of the Session. Defaults to `hosted_page`.",
|
|
4569
|
+
}),
|
|
4570
|
+
),
|
|
4571
|
+
wallet_options: Schema.optionalKey(
|
|
4572
|
+
Schema.StructWithRest(
|
|
4573
|
+
Schema.Struct({
|
|
4574
|
+
link: Schema.optionalKey(
|
|
4575
|
+
Schema.StructWithRest(
|
|
4576
|
+
Schema.Struct({
|
|
4577
|
+
display: Schema.optionalKey(Schema.Literals(["auto", "never"])),
|
|
4578
|
+
}),
|
|
4579
|
+
[
|
|
4580
|
+
Schema.Record(
|
|
4581
|
+
Schema.String,
|
|
4582
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4583
|
+
),
|
|
4584
|
+
],
|
|
4585
|
+
).annotate({ title: "wallet_options_param" }),
|
|
4586
|
+
),
|
|
4587
|
+
}),
|
|
4588
|
+
[
|
|
4589
|
+
Schema.Record(
|
|
4590
|
+
Schema.String,
|
|
4591
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
4592
|
+
),
|
|
4593
|
+
],
|
|
4594
|
+
).annotate({
|
|
4595
|
+
title: "wallet_options_param",
|
|
4596
|
+
description: "Wallet-specific configuration.",
|
|
4597
|
+
}),
|
|
4598
|
+
),
|
|
4599
|
+
}),
|
|
4600
|
+
StripeCheckoutSessionResourceSchema,
|
|
4601
|
+
);
|