nomoss 0.0.1 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -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
|
@@ -0,0 +1,3881 @@
|
|
|
1
|
+
// This schema module comes from the selected resource contracts. Do not edit.
|
|
2
|
+
|
|
3
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
|
|
4
|
+
import { Schema } from "effect";
|
|
5
|
+
import { Stripeaccount } from "./accounts.js";
|
|
6
|
+
import {
|
|
7
|
+
Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent,
|
|
8
|
+
Stripebilling_bill_resource_invoicing_parents_invoice_parent,
|
|
9
|
+
Stripebilling_bill_resource_invoicing_pricing_pricing,
|
|
10
|
+
Stripebilling_bill_resource_invoicing_taxes_tax,
|
|
11
|
+
Stripebilling_credit_balance_transaction,
|
|
12
|
+
} from "./billing.js";
|
|
13
|
+
import { Stripetax_id, Stripetax_rate } from "./catalog.js";
|
|
14
|
+
import { Stripecharge } from "./charges.js";
|
|
15
|
+
import {
|
|
16
|
+
Stripeaddress,
|
|
17
|
+
Stripeapi_errors,
|
|
18
|
+
Stripeapplication,
|
|
19
|
+
Stripeautomatic_tax,
|
|
20
|
+
Stripeconnect_account_reference,
|
|
21
|
+
Stripecredited_items_invoice_line_items,
|
|
22
|
+
Stripedeleted_application,
|
|
23
|
+
Stripedeleted_discount,
|
|
24
|
+
Stripedeleted_invoice,
|
|
25
|
+
Stripedeleted_tax_id,
|
|
26
|
+
Stripediscount,
|
|
27
|
+
Stripediscounts_resource_discount_amount,
|
|
28
|
+
Stripeinvoicing_rule,
|
|
29
|
+
Stripeline_item,
|
|
30
|
+
Stripeline_items_tax_amount,
|
|
31
|
+
Stripeproration_details,
|
|
32
|
+
Stripeshipping,
|
|
33
|
+
Stripeshipping_rate,
|
|
34
|
+
Stripetest_helpers_test_clock,
|
|
35
|
+
} from "./common.js";
|
|
36
|
+
import { Stripecustomer, Stripedeleted_customer } from "./customers.js";
|
|
37
|
+
import { Stripepayment_intent } from "./paymentIntents.js";
|
|
38
|
+
import { Stripepayment_method } from "./paymentMethods.js";
|
|
39
|
+
import { Stripebank_account, Stripecard } from "./paymentSources.js";
|
|
40
|
+
import { Stripepayment_record } from "./payments.js";
|
|
41
|
+
import { Stripesource } from "./sources.js";
|
|
42
|
+
|
|
43
|
+
export type Stripeinvoice = {
|
|
44
|
+
readonly account_country?: string | null;
|
|
45
|
+
readonly account_name?: string | null;
|
|
46
|
+
readonly account_tax_ids?: ReadonlyArray<
|
|
47
|
+
string | Stripetax_id | Stripedeleted_tax_id
|
|
48
|
+
> | null;
|
|
49
|
+
readonly amount_due: number;
|
|
50
|
+
readonly amount_overpaid: number;
|
|
51
|
+
readonly amount_paid: number;
|
|
52
|
+
readonly amount_paid_off_stripe: number;
|
|
53
|
+
readonly amount_remaining: number;
|
|
54
|
+
readonly amount_shipping: number;
|
|
55
|
+
readonly application?:
|
|
56
|
+
| string
|
|
57
|
+
| Stripeapplication
|
|
58
|
+
| Stripedeleted_application
|
|
59
|
+
| null;
|
|
60
|
+
readonly attempt_count: number;
|
|
61
|
+
readonly attempted: boolean;
|
|
62
|
+
readonly auto_advance: boolean;
|
|
63
|
+
readonly automatic_tax: Stripeautomatic_tax;
|
|
64
|
+
readonly automatically_finalizes_at?: number | null;
|
|
65
|
+
readonly billing_reason?:
|
|
66
|
+
| "automatic_pending_invoice_item_invoice"
|
|
67
|
+
| "manual"
|
|
68
|
+
| "quote_accept"
|
|
69
|
+
| "subscription"
|
|
70
|
+
| "subscription_create"
|
|
71
|
+
| "subscription_cycle"
|
|
72
|
+
| "subscription_threshold"
|
|
73
|
+
| "subscription_update"
|
|
74
|
+
| "upcoming"
|
|
75
|
+
| null;
|
|
76
|
+
readonly collection_method: "charge_automatically" | "send_invoice";
|
|
77
|
+
readonly confirmation_secret?: Stripeinvoices_resource_confirmation_secret | null;
|
|
78
|
+
readonly created: number;
|
|
79
|
+
readonly currency: string;
|
|
80
|
+
readonly custom_fields?: ReadonlyArray<Stripeinvoice_setting_custom_field> | null;
|
|
81
|
+
readonly customer: string | Stripecustomer | Stripedeleted_customer;
|
|
82
|
+
readonly customer_account?: string | null;
|
|
83
|
+
readonly customer_address?: Stripeaddress | null;
|
|
84
|
+
readonly customer_email?: string | null;
|
|
85
|
+
readonly customer_name?: string | null;
|
|
86
|
+
readonly customer_phone?: string | null;
|
|
87
|
+
readonly customer_shipping?: Stripeshipping | null;
|
|
88
|
+
readonly customer_tax_exempt?: "exempt" | "none" | "reverse" | null;
|
|
89
|
+
readonly customer_tax_ids?: ReadonlyArray<Stripeinvoices_resource_invoice_tax_id> | null;
|
|
90
|
+
readonly default_payment_method?: string | Stripepayment_method | null;
|
|
91
|
+
readonly default_source?:
|
|
92
|
+
| string
|
|
93
|
+
| Stripebank_account
|
|
94
|
+
| Stripecard
|
|
95
|
+
| Stripesource
|
|
96
|
+
| null;
|
|
97
|
+
readonly default_tax_rates: ReadonlyArray<Stripetax_rate>;
|
|
98
|
+
readonly description?: string | null;
|
|
99
|
+
readonly discounts: ReadonlyArray<
|
|
100
|
+
string | Stripediscount | Stripedeleted_discount
|
|
101
|
+
>;
|
|
102
|
+
readonly due_date?: number | null;
|
|
103
|
+
readonly effective_at?: number | null;
|
|
104
|
+
readonly ending_balance?: number | null;
|
|
105
|
+
readonly footer?: string | null;
|
|
106
|
+
readonly from_invoice?: Stripeinvoices_resource_from_invoice | null;
|
|
107
|
+
readonly hosted_invoice_url?: string | null;
|
|
108
|
+
readonly id: string;
|
|
109
|
+
readonly invoice_pdf?: string | null;
|
|
110
|
+
readonly issuer: Stripeconnect_account_reference;
|
|
111
|
+
readonly last_finalization_error?: Stripeapi_errors | null;
|
|
112
|
+
readonly latest_revision?: string | Stripeinvoice | null;
|
|
113
|
+
readonly lines: {
|
|
114
|
+
readonly data: ReadonlyArray<Stripeline_item>;
|
|
115
|
+
readonly has_more: boolean;
|
|
116
|
+
readonly object: "list";
|
|
117
|
+
readonly url: string;
|
|
118
|
+
} & { readonly [x: string]: Schema.Json };
|
|
119
|
+
readonly livemode: boolean;
|
|
120
|
+
readonly metadata?: { readonly [x: string]: string } | null;
|
|
121
|
+
readonly next_payment_attempt?: number | null;
|
|
122
|
+
readonly number?: string | null;
|
|
123
|
+
readonly object: "invoice";
|
|
124
|
+
readonly on_behalf_of?: string | Stripeaccount | null;
|
|
125
|
+
readonly parent?: Stripebilling_bill_resource_invoicing_parents_invoice_parent | null;
|
|
126
|
+
readonly payment_settings: Stripeinvoices_payment_settings;
|
|
127
|
+
readonly payments?: {
|
|
128
|
+
readonly data: ReadonlyArray<Stripeinvoice_payment>;
|
|
129
|
+
readonly has_more: boolean;
|
|
130
|
+
readonly object: "list";
|
|
131
|
+
readonly url: string;
|
|
132
|
+
} & { readonly [x: string]: Schema.Json };
|
|
133
|
+
readonly period_end: number;
|
|
134
|
+
readonly period_start: number;
|
|
135
|
+
readonly post_payment_credit_notes_amount: number;
|
|
136
|
+
readonly pre_payment_credit_notes_amount: number;
|
|
137
|
+
readonly receipt_number?: string | null;
|
|
138
|
+
readonly rendering?: Stripeinvoices_resource_invoice_rendering | null;
|
|
139
|
+
readonly shipping_cost?: Stripeinvoices_resource_shipping_cost | null;
|
|
140
|
+
readonly shipping_details?: Stripeshipping | null;
|
|
141
|
+
readonly starting_balance: number;
|
|
142
|
+
readonly statement_descriptor?: string | null;
|
|
143
|
+
readonly status?: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
|
|
144
|
+
readonly status_details?: Stripeinvoices_resource_status_details;
|
|
145
|
+
readonly status_transitions: Stripeinvoices_resource_status_transitions;
|
|
146
|
+
readonly subtotal: number;
|
|
147
|
+
readonly subtotal_excluding_tax?: number | null;
|
|
148
|
+
readonly test_clock?: string | Stripetest_helpers_test_clock | null;
|
|
149
|
+
readonly threshold_reason?: Stripeinvoice_threshold_reason;
|
|
150
|
+
readonly total: number;
|
|
151
|
+
readonly total_discount_amounts?: ReadonlyArray<Stripediscounts_resource_discount_amount> | null;
|
|
152
|
+
readonly total_excluding_tax?: number | null;
|
|
153
|
+
readonly total_pretax_credit_amounts?: ReadonlyArray<Stripeinvoices_resource_pretax_credit_amount> | null;
|
|
154
|
+
readonly total_taxes?: ReadonlyArray<Stripebilling_bill_resource_invoicing_taxes_tax> | null;
|
|
155
|
+
readonly webhooks_delivered_at?: number | null;
|
|
156
|
+
} & { readonly [x: string]: Schema.Json };
|
|
157
|
+
export type Stripeinvoices_resource_pretax_credit_amount = {
|
|
158
|
+
readonly amount: number;
|
|
159
|
+
readonly credit_balance_transaction?:
|
|
160
|
+
| string
|
|
161
|
+
| Stripebilling_credit_balance_transaction
|
|
162
|
+
| null;
|
|
163
|
+
readonly discount?: string | Stripediscount | Stripedeleted_discount;
|
|
164
|
+
readonly type: "credit_balance_transaction" | "discount";
|
|
165
|
+
} & { readonly [x: string]: Schema.Json };
|
|
166
|
+
export type Stripeinvoice_payment = {
|
|
167
|
+
readonly amount_paid?: number | null;
|
|
168
|
+
readonly amount_requested: number;
|
|
169
|
+
readonly created: number;
|
|
170
|
+
readonly currency: string;
|
|
171
|
+
readonly id: string;
|
|
172
|
+
readonly invoice: string | Stripeinvoice | Stripedeleted_invoice;
|
|
173
|
+
readonly is_default: boolean;
|
|
174
|
+
readonly livemode: boolean;
|
|
175
|
+
readonly object: "invoice_payment";
|
|
176
|
+
readonly payment: Stripeinvoices_payments_invoice_payment_associated_payment;
|
|
177
|
+
readonly status: string;
|
|
178
|
+
readonly status_transitions: Stripeinvoices_payments_invoice_payment_status_transitions;
|
|
179
|
+
} & { readonly [x: string]: Schema.Json };
|
|
180
|
+
export type Stripeinvoices_resource_from_invoice = {
|
|
181
|
+
readonly action: string;
|
|
182
|
+
readonly invoice: string | Stripeinvoice;
|
|
183
|
+
} & { readonly [x: string]: Schema.Json };
|
|
184
|
+
export type Stripeinvoice_setting_custom_field = {
|
|
185
|
+
readonly name: string;
|
|
186
|
+
readonly value: string;
|
|
187
|
+
} & { readonly [x: string]: Schema.Json };
|
|
188
|
+
export type Stripeinvoice_setting_customer_rendering_options = {
|
|
189
|
+
readonly amount_tax_display?: string | null;
|
|
190
|
+
readonly template?: string | null;
|
|
191
|
+
} & { readonly [x: string]: Schema.Json };
|
|
192
|
+
export type Stripeinvoices_resource_confirmation_secret = {
|
|
193
|
+
readonly client_secret: string;
|
|
194
|
+
readonly type: string;
|
|
195
|
+
} & { readonly [x: string]: Schema.Json };
|
|
196
|
+
export type Stripeinvoices_resource_invoice_tax_id = {
|
|
197
|
+
readonly type:
|
|
198
|
+
| "ad_nrt"
|
|
199
|
+
| "ae_trn"
|
|
200
|
+
| "al_tin"
|
|
201
|
+
| "am_tin"
|
|
202
|
+
| "ao_tin"
|
|
203
|
+
| "ar_cuit"
|
|
204
|
+
| "au_abn"
|
|
205
|
+
| "au_acn"
|
|
206
|
+
| "au_arn"
|
|
207
|
+
| "au_wpn"
|
|
208
|
+
| "aw_tin"
|
|
209
|
+
| "az_tin"
|
|
210
|
+
| "ba_tin"
|
|
211
|
+
| "bb_tin"
|
|
212
|
+
| "bd_bin"
|
|
213
|
+
| "bf_ifu"
|
|
214
|
+
| "bg_uic"
|
|
215
|
+
| "bh_vat"
|
|
216
|
+
| "bj_ifu"
|
|
217
|
+
| "bo_tin"
|
|
218
|
+
| "br_cnpj"
|
|
219
|
+
| "br_cpf"
|
|
220
|
+
| "bs_tin"
|
|
221
|
+
| "bw_vat"
|
|
222
|
+
| "by_tin"
|
|
223
|
+
| "ca_bn"
|
|
224
|
+
| "ca_gst_hst"
|
|
225
|
+
| "ca_pst_bc"
|
|
226
|
+
| "ca_pst_mb"
|
|
227
|
+
| "ca_pst_sk"
|
|
228
|
+
| "ca_qst"
|
|
229
|
+
| "cd_nif"
|
|
230
|
+
| "ch_uid"
|
|
231
|
+
| "ch_vat"
|
|
232
|
+
| "ci_vat"
|
|
233
|
+
| "cl_tin"
|
|
234
|
+
| "cm_niu"
|
|
235
|
+
| "cn_tin"
|
|
236
|
+
| "co_nit"
|
|
237
|
+
| "cr_tin"
|
|
238
|
+
| "cv_nif"
|
|
239
|
+
| "cz_dic"
|
|
240
|
+
| "de_stn"
|
|
241
|
+
| "do_rcn"
|
|
242
|
+
| "ec_ruc"
|
|
243
|
+
| "eg_tin"
|
|
244
|
+
| "es_cif"
|
|
245
|
+
| "et_tin"
|
|
246
|
+
| "eu_oss_vat"
|
|
247
|
+
| "eu_vat"
|
|
248
|
+
| "fo_vat"
|
|
249
|
+
| "fr_siren"
|
|
250
|
+
| "fr_siret"
|
|
251
|
+
| "fr_spi"
|
|
252
|
+
| "gb_vat"
|
|
253
|
+
| "ge_vat"
|
|
254
|
+
| "gh_tin"
|
|
255
|
+
| "gi_tin"
|
|
256
|
+
| "gn_nif"
|
|
257
|
+
| "hk_br"
|
|
258
|
+
| "hr_oib"
|
|
259
|
+
| "hu_tin"
|
|
260
|
+
| "ic_nif"
|
|
261
|
+
| "id_npwp"
|
|
262
|
+
| "il_vat"
|
|
263
|
+
| "in_gst"
|
|
264
|
+
| "is_kt"
|
|
265
|
+
| "is_vat"
|
|
266
|
+
| "it_cf"
|
|
267
|
+
| "jp_cn"
|
|
268
|
+
| "jp_rn"
|
|
269
|
+
| "jp_trn"
|
|
270
|
+
| "ke_pin"
|
|
271
|
+
| "kg_tin"
|
|
272
|
+
| "kh_tin"
|
|
273
|
+
| "kr_brn"
|
|
274
|
+
| "kz_bin"
|
|
275
|
+
| "la_tin"
|
|
276
|
+
| "li_uid"
|
|
277
|
+
| "li_vat"
|
|
278
|
+
| "lk_vat"
|
|
279
|
+
| "ma_vat"
|
|
280
|
+
| "md_cf"
|
|
281
|
+
| "md_vat"
|
|
282
|
+
| "me_pib"
|
|
283
|
+
| "mk_vat"
|
|
284
|
+
| "mr_nif"
|
|
285
|
+
| "mu_vat"
|
|
286
|
+
| "mx_rfc"
|
|
287
|
+
| "my_frp"
|
|
288
|
+
| "my_itn"
|
|
289
|
+
| "my_sst"
|
|
290
|
+
| "mz_nuit"
|
|
291
|
+
| "ng_tin"
|
|
292
|
+
| "no_vat"
|
|
293
|
+
| "no_voec"
|
|
294
|
+
| "np_pan"
|
|
295
|
+
| "nz_bn"
|
|
296
|
+
| "nz_gst"
|
|
297
|
+
| "om_vat"
|
|
298
|
+
| "pe_ruc"
|
|
299
|
+
| "ph_tin"
|
|
300
|
+
| "pl_nip"
|
|
301
|
+
| "pt_nif"
|
|
302
|
+
| "py_ruc"
|
|
303
|
+
| "ro_tin"
|
|
304
|
+
| "rs_pib"
|
|
305
|
+
| "ru_inn"
|
|
306
|
+
| "ru_kpp"
|
|
307
|
+
| "sa_vat"
|
|
308
|
+
| "sg_gst"
|
|
309
|
+
| "sg_uen"
|
|
310
|
+
| "si_tin"
|
|
311
|
+
| "sm_coe"
|
|
312
|
+
| "sn_ninea"
|
|
313
|
+
| "sr_fin"
|
|
314
|
+
| "sv_nit"
|
|
315
|
+
| "th_vat"
|
|
316
|
+
| "tj_tin"
|
|
317
|
+
| "tr_tin"
|
|
318
|
+
| "tt_bir"
|
|
319
|
+
| "tt_vat"
|
|
320
|
+
| "tw_vat"
|
|
321
|
+
| "tz_vat"
|
|
322
|
+
| "ua_vat"
|
|
323
|
+
| "ug_tin"
|
|
324
|
+
| "unknown"
|
|
325
|
+
| "us_ein"
|
|
326
|
+
| "uy_ruc"
|
|
327
|
+
| "uz_tin"
|
|
328
|
+
| "uz_vat"
|
|
329
|
+
| "ve_rif"
|
|
330
|
+
| "vn_tin"
|
|
331
|
+
| "za_vat"
|
|
332
|
+
| "zm_tin"
|
|
333
|
+
| "zw_tin";
|
|
334
|
+
readonly value?: string | null;
|
|
335
|
+
} & { readonly [x: string]: Schema.Json };
|
|
336
|
+
export type Stripeinvoice_line_item_period = {
|
|
337
|
+
readonly end: number;
|
|
338
|
+
readonly start: number;
|
|
339
|
+
} & { readonly [x: string]: Schema.Json };
|
|
340
|
+
export type Stripeinvoice_payment_method_options_acss_debit_mandate_options = {
|
|
341
|
+
readonly transaction_type?: "business" | "personal" | null;
|
|
342
|
+
} & { readonly [x: string]: Schema.Json };
|
|
343
|
+
export type Stripeinvoice_payment_method_options_bancontact = {
|
|
344
|
+
readonly preferred_language: "de" | "en" | "fr" | "nl";
|
|
345
|
+
} & { readonly [x: string]: Schema.Json };
|
|
346
|
+
export type Stripeinvoice_payment_method_options_billie_company_details_registered_address =
|
|
347
|
+
{
|
|
348
|
+
readonly city?: string | null;
|
|
349
|
+
readonly country?: string | null;
|
|
350
|
+
readonly line1?: string | null;
|
|
351
|
+
readonly line2?: string | null;
|
|
352
|
+
readonly postal_code?: string | null;
|
|
353
|
+
readonly state?: string | null;
|
|
354
|
+
} & { readonly [x: string]: Schema.Json };
|
|
355
|
+
export type Stripeinvoice_payment_method_options_blik = {
|
|
356
|
+
readonly [x: string]: Schema.Json;
|
|
357
|
+
};
|
|
358
|
+
export type Stripeinvoice_installments_card = {
|
|
359
|
+
readonly enabled?: boolean | null;
|
|
360
|
+
} & { readonly [x: string]: Schema.Json };
|
|
361
|
+
export type Stripeinvoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer =
|
|
362
|
+
{ readonly country: "BE" | "DE" | "ES" | "FR" | "IE" | "NL" } & {
|
|
363
|
+
readonly [x: string]: Schema.Json;
|
|
364
|
+
};
|
|
365
|
+
export type Stripeinvoice_payment_method_options_konbini = {
|
|
366
|
+
readonly [x: string]: Schema.Json;
|
|
367
|
+
};
|
|
368
|
+
export type Stripeinvoice_mandate_options_payto = {
|
|
369
|
+
readonly amount?: number | null;
|
|
370
|
+
readonly amount_type?: "fixed" | "maximum" | null;
|
|
371
|
+
readonly purpose?:
|
|
372
|
+
| "dependant_support"
|
|
373
|
+
| "government"
|
|
374
|
+
| "loan"
|
|
375
|
+
| "mortgage"
|
|
376
|
+
| "other"
|
|
377
|
+
| "pension"
|
|
378
|
+
| "personal"
|
|
379
|
+
| "retail"
|
|
380
|
+
| "salary"
|
|
381
|
+
| "tax"
|
|
382
|
+
| "utility"
|
|
383
|
+
| null;
|
|
384
|
+
} & { readonly [x: string]: Schema.Json };
|
|
385
|
+
export type Stripeinvoice_payment_method_options_pix = {
|
|
386
|
+
readonly amount_includes_iof?: "always" | "never" | null;
|
|
387
|
+
readonly expires_after_seconds?: number;
|
|
388
|
+
} & { readonly [x: string]: Schema.Json };
|
|
389
|
+
export type Stripeinvoice_payment_method_options_sepa_debit = {
|
|
390
|
+
readonly [x: string]: Schema.Json;
|
|
391
|
+
};
|
|
392
|
+
export type Stripeinvoice_payment_method_options_mandate_options_upi = {
|
|
393
|
+
readonly amount?: number | null;
|
|
394
|
+
readonly amount_type?: "fixed" | "maximum" | null;
|
|
395
|
+
readonly description?: string | null;
|
|
396
|
+
readonly end_date?: number | null;
|
|
397
|
+
} & { readonly [x: string]: Schema.Json };
|
|
398
|
+
export type Stripeinvoice_payment_method_options_us_bank_account_linked_account_options_filters =
|
|
399
|
+
{ readonly account_subcategories?: ReadonlyArray<"checking" | "savings"> } & {
|
|
400
|
+
readonly [x: string]: Schema.Json;
|
|
401
|
+
};
|
|
402
|
+
export type Stripeinvoices_payments_invoice_payment_associated_payment = {
|
|
403
|
+
readonly charge?: string | Stripecharge;
|
|
404
|
+
readonly payment_intent?: string | Stripepayment_intent;
|
|
405
|
+
readonly payment_record?: string | Stripepayment_record;
|
|
406
|
+
readonly type: "charge" | "payment_intent" | "payment_record";
|
|
407
|
+
} & { readonly [x: string]: Schema.Json };
|
|
408
|
+
export type Stripeinvoices_payments_invoice_payment_status_transitions = {
|
|
409
|
+
readonly canceled_at?: number | null;
|
|
410
|
+
readonly paid_at?: number | null;
|
|
411
|
+
} & { readonly [x: string]: Schema.Json };
|
|
412
|
+
export type Stripeinvoice_rendering_pdf = {
|
|
413
|
+
readonly page_size?: "a4" | "auto" | "letter" | null;
|
|
414
|
+
} & { readonly [x: string]: Schema.Json };
|
|
415
|
+
export type Stripeinvoices_resource_uncollectible_status_details = {
|
|
416
|
+
readonly reason?:
|
|
417
|
+
| "max_payment_attempts"
|
|
418
|
+
| "payment_not_received"
|
|
419
|
+
| "subscription_canceled"
|
|
420
|
+
| "subscription_paused"
|
|
421
|
+
| "user_forgiven"
|
|
422
|
+
| null;
|
|
423
|
+
} & { readonly [x: string]: Schema.Json };
|
|
424
|
+
export type Stripeinvoices_resource_status_transitions = {
|
|
425
|
+
readonly finalized_at?: number | null;
|
|
426
|
+
readonly marked_uncollectible_at?: number | null;
|
|
427
|
+
readonly paid_at?: number | null;
|
|
428
|
+
readonly voided_at?: number | null;
|
|
429
|
+
} & { readonly [x: string]: Schema.Json };
|
|
430
|
+
export type Stripeinvoice_item_threshold_reason = {
|
|
431
|
+
readonly line_item_ids: ReadonlyArray<string>;
|
|
432
|
+
readonly usage_gte: number;
|
|
433
|
+
} & { readonly [x: string]: Schema.Json };
|
|
434
|
+
export type Stripeinvoice_mandate_options_card = {
|
|
435
|
+
readonly amount?: number | null;
|
|
436
|
+
readonly amount_type?: "fixed" | "maximum" | null;
|
|
437
|
+
readonly description?: string | null;
|
|
438
|
+
} & { readonly [x: string]: Schema.Json };
|
|
439
|
+
export type Stripeinvoice_setting_checkout_rendering_options = {
|
|
440
|
+
readonly amount_tax_display?: string | null;
|
|
441
|
+
readonly template?: string | null;
|
|
442
|
+
} & { readonly [x: string]: Schema.Json };
|
|
443
|
+
export type Stripeinvoice_setting_customer_setting = {
|
|
444
|
+
readonly custom_fields?: ReadonlyArray<Stripeinvoice_setting_custom_field> | null;
|
|
445
|
+
readonly default_payment_method?: string | Stripepayment_method | null | null;
|
|
446
|
+
readonly footer?: string | null;
|
|
447
|
+
readonly rendering_options?: Stripeinvoice_setting_customer_rendering_options | null | null;
|
|
448
|
+
} & { readonly [x: string]: Schema.Json };
|
|
449
|
+
export type Stripeinvoice_setting_quote_setting = {
|
|
450
|
+
readonly custom_fields?: ReadonlyArray<Stripeinvoice_setting_custom_field> | null;
|
|
451
|
+
readonly days_until_due?: number | null;
|
|
452
|
+
readonly description?: string | null;
|
|
453
|
+
readonly footer?: string | null;
|
|
454
|
+
readonly issuer: Stripeconnect_account_reference;
|
|
455
|
+
} & { readonly [x: string]: Schema.Json };
|
|
456
|
+
export type Stripeinvoice_setting_subscription_schedule_setting = {
|
|
457
|
+
readonly account_tax_ids?: ReadonlyArray<
|
|
458
|
+
string | Stripetax_id | Stripedeleted_tax_id
|
|
459
|
+
> | null;
|
|
460
|
+
readonly custom_fields?: ReadonlyArray<Stripeinvoice_setting_custom_field> | null;
|
|
461
|
+
readonly days_until_due?: number | null;
|
|
462
|
+
readonly description?: string | null;
|
|
463
|
+
readonly footer?: string | null;
|
|
464
|
+
readonly issuer: Stripeconnect_account_reference;
|
|
465
|
+
} & { readonly [x: string]: Schema.Json };
|
|
466
|
+
export type Stripeinvoice_setting_subscription_schedule_phase_setting = {
|
|
467
|
+
readonly account_tax_ids?: ReadonlyArray<
|
|
468
|
+
string | Stripetax_id | Stripedeleted_tax_id
|
|
469
|
+
> | null;
|
|
470
|
+
readonly custom_fields?: ReadonlyArray<Stripeinvoice_setting_custom_field> | null;
|
|
471
|
+
readonly days_until_due?: number | null;
|
|
472
|
+
readonly description?: string | null;
|
|
473
|
+
readonly footer?: string | null;
|
|
474
|
+
readonly issuer?: Stripeconnect_account_reference | null;
|
|
475
|
+
} & { readonly [x: string]: Schema.Json };
|
|
476
|
+
export type Stripeinvoice_payment_method_options_acss_debit = {
|
|
477
|
+
readonly mandate_options?: Stripeinvoice_payment_method_options_acss_debit_mandate_options;
|
|
478
|
+
readonly verification_method?: "automatic" | "instant" | "microdeposits";
|
|
479
|
+
} & { readonly [x: string]: Schema.Json };
|
|
480
|
+
export type Stripeinvoice_payment_method_options_billie_company_details = {
|
|
481
|
+
readonly registered_address?: Stripeinvoice_payment_method_options_billie_company_details_registered_address;
|
|
482
|
+
readonly registered_name?: string | null;
|
|
483
|
+
readonly registration_number?: string | null;
|
|
484
|
+
readonly registration_type?:
|
|
485
|
+
| "ch_ein"
|
|
486
|
+
| "de_hrb"
|
|
487
|
+
| "dk_cvr"
|
|
488
|
+
| "es_cif"
|
|
489
|
+
| "fi_tunnus"
|
|
490
|
+
| "fr_siren"
|
|
491
|
+
| "fr_siret"
|
|
492
|
+
| "it_rea"
|
|
493
|
+
| "nl_kvk"
|
|
494
|
+
| "no_org_number"
|
|
495
|
+
| "no_pno"
|
|
496
|
+
| "se_org_number"
|
|
497
|
+
| "se_pno"
|
|
498
|
+
| "uk_crn";
|
|
499
|
+
readonly vat?: string | null;
|
|
500
|
+
} & { readonly [x: string]: Schema.Json };
|
|
501
|
+
export type Stripeinvoice_payment_method_options_card = {
|
|
502
|
+
readonly installments?: Stripeinvoice_installments_card;
|
|
503
|
+
readonly request_three_d_secure?: "any" | "automatic" | "challenge" | null;
|
|
504
|
+
} & { readonly [x: string]: Schema.Json };
|
|
505
|
+
export type Stripeinvoice_payment_method_options_customer_balance_bank_transfer =
|
|
506
|
+
{
|
|
507
|
+
readonly eu_bank_transfer?: Stripeinvoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer;
|
|
508
|
+
readonly type?: string | null;
|
|
509
|
+
} & { readonly [x: string]: Schema.Json };
|
|
510
|
+
export type Stripeinvoice_payment_method_options_payto = {
|
|
511
|
+
readonly mandate_options?: Stripeinvoice_mandate_options_payto;
|
|
512
|
+
} & { readonly [x: string]: Schema.Json };
|
|
513
|
+
export type Stripeinvoice_payment_method_options_upi = {
|
|
514
|
+
readonly mandate_options?: Stripeinvoice_payment_method_options_mandate_options_upi;
|
|
515
|
+
} & { readonly [x: string]: Schema.Json };
|
|
516
|
+
export type Stripeinvoice_payment_method_options_us_bank_account_linked_account_options =
|
|
517
|
+
{
|
|
518
|
+
readonly filters?: Stripeinvoice_payment_method_options_us_bank_account_linked_account_options_filters;
|
|
519
|
+
readonly permissions?: ReadonlyArray<
|
|
520
|
+
"balances" | "ownership" | "payment_method" | "transactions"
|
|
521
|
+
>;
|
|
522
|
+
readonly prefetch?: ReadonlyArray<
|
|
523
|
+
"balances" | "ownership" | "transactions"
|
|
524
|
+
> | null;
|
|
525
|
+
} & { readonly [x: string]: Schema.Json };
|
|
526
|
+
export type Stripeinvoices_resource_invoice_rendering = {
|
|
527
|
+
readonly amount_tax_display?: string | null;
|
|
528
|
+
readonly pdf?: Stripeinvoice_rendering_pdf | null;
|
|
529
|
+
readonly template?: string | null;
|
|
530
|
+
readonly template_version?: number | null;
|
|
531
|
+
} & { readonly [x: string]: Schema.Json };
|
|
532
|
+
export type Stripeinvoices_resource_status_details = {
|
|
533
|
+
readonly uncollectible?: Stripeinvoices_resource_uncollectible_status_details;
|
|
534
|
+
} & { readonly [x: string]: Schema.Json };
|
|
535
|
+
export type Stripeinvoice_threshold_reason = {
|
|
536
|
+
readonly amount_gte?: number | null;
|
|
537
|
+
readonly item_reasons: ReadonlyArray<Stripeinvoice_item_threshold_reason>;
|
|
538
|
+
} & { readonly [x: string]: Schema.Json };
|
|
539
|
+
export type Stripeinvoice_item_proration_credited_items = {
|
|
540
|
+
readonly invoice_item?: string;
|
|
541
|
+
readonly invoice_line_item_details?: Stripecredited_items_invoice_line_items;
|
|
542
|
+
readonly type: "invoice_item" | "invoice_line_items";
|
|
543
|
+
} & { readonly [x: string]: Schema.Json };
|
|
544
|
+
export type Stripeinvoice_payment_method_options_billie = {
|
|
545
|
+
readonly company_details?: Stripeinvoice_payment_method_options_billie_company_details;
|
|
546
|
+
readonly reference?: string | null;
|
|
547
|
+
} & { readonly [x: string]: Schema.Json };
|
|
548
|
+
export type Stripeinvoice_payment_method_options_customer_balance = {
|
|
549
|
+
readonly bank_transfer?: Stripeinvoice_payment_method_options_customer_balance_bank_transfer;
|
|
550
|
+
readonly funding_type?: "bank_transfer" | null;
|
|
551
|
+
} & { readonly [x: string]: Schema.Json };
|
|
552
|
+
export type Stripeinvoice_payment_method_options_us_bank_account = {
|
|
553
|
+
readonly financial_connections?: Stripeinvoice_payment_method_options_us_bank_account_linked_account_options;
|
|
554
|
+
readonly verification_method?: "automatic" | "instant" | "microdeposits";
|
|
555
|
+
} & { readonly [x: string]: Schema.Json };
|
|
556
|
+
export type Stripeinvoices_payment_method_options = {
|
|
557
|
+
readonly acss_debit?: Stripeinvoice_payment_method_options_acss_debit | null;
|
|
558
|
+
readonly bancontact?: Stripeinvoice_payment_method_options_bancontact | null;
|
|
559
|
+
readonly billie?: Stripeinvoice_payment_method_options_billie | null;
|
|
560
|
+
readonly blik?: Stripeinvoice_payment_method_options_blik | null;
|
|
561
|
+
readonly card?: Stripeinvoice_payment_method_options_card | null;
|
|
562
|
+
readonly customer_balance?: Stripeinvoice_payment_method_options_customer_balance | null;
|
|
563
|
+
readonly konbini?: Stripeinvoice_payment_method_options_konbini | null;
|
|
564
|
+
readonly payto?: Stripeinvoice_payment_method_options_payto | null;
|
|
565
|
+
readonly pix?: Stripeinvoice_payment_method_options_pix | null;
|
|
566
|
+
readonly sepa_debit?: Stripeinvoice_payment_method_options_sepa_debit | null;
|
|
567
|
+
readonly upi?: Stripeinvoice_payment_method_options_upi | null;
|
|
568
|
+
readonly us_bank_account?: Stripeinvoice_payment_method_options_us_bank_account | null;
|
|
569
|
+
} & { readonly [x: string]: Schema.Json };
|
|
570
|
+
export type Stripeinvoices_resource_shipping_cost = {
|
|
571
|
+
readonly amount_subtotal: number;
|
|
572
|
+
readonly amount_tax: number;
|
|
573
|
+
readonly amount_total: number;
|
|
574
|
+
readonly shipping_rate?: string | Stripeshipping_rate | null;
|
|
575
|
+
readonly taxes?: ReadonlyArray<Stripeline_items_tax_amount>;
|
|
576
|
+
} & { readonly [x: string]: Schema.Json };
|
|
577
|
+
export type Stripeinvoiceitem = {
|
|
578
|
+
readonly amount: number;
|
|
579
|
+
readonly currency: string;
|
|
580
|
+
readonly customer: string | Stripecustomer | Stripedeleted_customer;
|
|
581
|
+
readonly customer_account?: string | null;
|
|
582
|
+
readonly date: number;
|
|
583
|
+
readonly description?: string | null;
|
|
584
|
+
readonly discountable: boolean;
|
|
585
|
+
readonly discounts?: ReadonlyArray<string | Stripediscount> | null;
|
|
586
|
+
readonly frozen_fields?: ReadonlyArray<"discounts" | "pricing" | "quantity">;
|
|
587
|
+
readonly id: string;
|
|
588
|
+
readonly invoice?: string | Stripeinvoice | null;
|
|
589
|
+
readonly invoicing_rules?: ReadonlyArray<Stripeinvoicing_rule>;
|
|
590
|
+
readonly livemode: boolean;
|
|
591
|
+
readonly metadata?: { readonly [x: string]: string } | null;
|
|
592
|
+
readonly net_amount?: number;
|
|
593
|
+
readonly object: "invoiceitem";
|
|
594
|
+
readonly parent?: Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent | null;
|
|
595
|
+
readonly period: Stripeinvoice_line_item_period;
|
|
596
|
+
readonly pricing?: Stripebilling_bill_resource_invoicing_pricing_pricing | null;
|
|
597
|
+
readonly proration: boolean;
|
|
598
|
+
readonly proration_details?: Stripeproration_details;
|
|
599
|
+
readonly quantity: number;
|
|
600
|
+
readonly quantity_decimal: string;
|
|
601
|
+
readonly tax_rates?: ReadonlyArray<Stripetax_rate> | null;
|
|
602
|
+
readonly test_clock?: string | Stripetest_helpers_test_clock | null;
|
|
603
|
+
} & { readonly [x: string]: Schema.Json };
|
|
604
|
+
export type Stripeinvoices_payment_settings = {
|
|
605
|
+
readonly default_mandate?: string | null;
|
|
606
|
+
readonly payment_method_options?: Stripeinvoices_payment_method_options | null;
|
|
607
|
+
readonly payment_method_types?: ReadonlyArray<
|
|
608
|
+
| "ach_credit_transfer"
|
|
609
|
+
| "ach_debit"
|
|
610
|
+
| "acss_debit"
|
|
611
|
+
| "affirm"
|
|
612
|
+
| "alipay"
|
|
613
|
+
| "amazon_pay"
|
|
614
|
+
| "au_becs_debit"
|
|
615
|
+
| "bacs_debit"
|
|
616
|
+
| "bancontact"
|
|
617
|
+
| "billie"
|
|
618
|
+
| "blik"
|
|
619
|
+
| "boleto"
|
|
620
|
+
| "card"
|
|
621
|
+
| "cashapp"
|
|
622
|
+
| "crypto"
|
|
623
|
+
| "custom"
|
|
624
|
+
| "customer_balance"
|
|
625
|
+
| "eps"
|
|
626
|
+
| "fpx"
|
|
627
|
+
| "giropay"
|
|
628
|
+
| "grabpay"
|
|
629
|
+
| "ideal"
|
|
630
|
+
| "jp_credit_transfer"
|
|
631
|
+
| "kakao_pay"
|
|
632
|
+
| "klarna"
|
|
633
|
+
| "konbini"
|
|
634
|
+
| "kr_card"
|
|
635
|
+
| "link"
|
|
636
|
+
| "mb_way"
|
|
637
|
+
| "multibanco"
|
|
638
|
+
| "naver_pay"
|
|
639
|
+
| "nz_bank_account"
|
|
640
|
+
| "p24"
|
|
641
|
+
| "pay_by_bank"
|
|
642
|
+
| "payco"
|
|
643
|
+
| "paynow"
|
|
644
|
+
| "paypal"
|
|
645
|
+
| "payto"
|
|
646
|
+
| "pix"
|
|
647
|
+
| "promptpay"
|
|
648
|
+
| "revolut_pay"
|
|
649
|
+
| "satispay"
|
|
650
|
+
| "sepa_credit_transfer"
|
|
651
|
+
| "sepa_debit"
|
|
652
|
+
| "sequra"
|
|
653
|
+
| "sofort"
|
|
654
|
+
| "swish"
|
|
655
|
+
| "twint"
|
|
656
|
+
| "upi"
|
|
657
|
+
| "us_bank_account"
|
|
658
|
+
| "wechat_pay"
|
|
659
|
+
> | null;
|
|
660
|
+
} & { readonly [x: string]: Schema.Json };
|
|
661
|
+
|
|
662
|
+
export const Stripeinvoice = Schema.suspend(
|
|
663
|
+
(): Schema.Codec<Stripeinvoice> =>
|
|
664
|
+
Schema.StructWithRest(
|
|
665
|
+
Schema.Struct({
|
|
666
|
+
account_country: Schema.optionalKey(
|
|
667
|
+
Schema.Union([
|
|
668
|
+
Schema.String.annotate({
|
|
669
|
+
description:
|
|
670
|
+
"The country of the business associated with this invoice, most often the business creating the invoice.",
|
|
671
|
+
}).check(
|
|
672
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
673
|
+
expected: "a string with at most 5000 code points",
|
|
674
|
+
}),
|
|
675
|
+
),
|
|
676
|
+
Schema.Null,
|
|
677
|
+
]),
|
|
678
|
+
),
|
|
679
|
+
account_name: Schema.optionalKey(
|
|
680
|
+
Schema.Union([
|
|
681
|
+
Schema.String.annotate({
|
|
682
|
+
description:
|
|
683
|
+
"The public name of the business associated with this invoice, most often the business creating the invoice.",
|
|
684
|
+
}).check(
|
|
685
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
686
|
+
expected: "a string with at most 5000 code points",
|
|
687
|
+
}),
|
|
688
|
+
),
|
|
689
|
+
Schema.Null,
|
|
690
|
+
]),
|
|
691
|
+
),
|
|
692
|
+
account_tax_ids: Schema.optionalKey(
|
|
693
|
+
Schema.Union([
|
|
694
|
+
Schema.Array(
|
|
695
|
+
Schema.Union([
|
|
696
|
+
Schema.String.check(
|
|
697
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
698
|
+
expected: "a string with at most 5000 code points",
|
|
699
|
+
}),
|
|
700
|
+
),
|
|
701
|
+
Schema.suspend((): Schema.Codec<Stripetax_id> => Stripetax_id),
|
|
702
|
+
Stripedeleted_tax_id,
|
|
703
|
+
]),
|
|
704
|
+
).annotate({
|
|
705
|
+
description:
|
|
706
|
+
"The account tax IDs associated with the invoice. Only editable when the invoice is a draft.",
|
|
707
|
+
}),
|
|
708
|
+
Schema.Null,
|
|
709
|
+
]),
|
|
710
|
+
),
|
|
711
|
+
amount_due: Schema.Number.annotate({
|
|
712
|
+
description:
|
|
713
|
+
"Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.",
|
|
714
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
715
|
+
amount_overpaid: Schema.Number.annotate({
|
|
716
|
+
description:
|
|
717
|
+
"Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.",
|
|
718
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
719
|
+
amount_paid: Schema.Number.annotate({
|
|
720
|
+
description:
|
|
721
|
+
"The amount, in cents (or local equivalent), that was paid.",
|
|
722
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
723
|
+
amount_paid_off_stripe: Schema.Number.annotate({
|
|
724
|
+
description:
|
|
725
|
+
"Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe.",
|
|
726
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
727
|
+
amount_remaining: Schema.Number.annotate({
|
|
728
|
+
description:
|
|
729
|
+
"The difference between amount_due and amount_paid, in cents (or local equivalent).",
|
|
730
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
731
|
+
amount_shipping: Schema.Number.annotate({
|
|
732
|
+
description: "This is the sum of all the shipping amounts.",
|
|
733
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
734
|
+
application: Schema.optionalKey(
|
|
735
|
+
Schema.Union([
|
|
736
|
+
Schema.Union([
|
|
737
|
+
Schema.String.check(
|
|
738
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
739
|
+
expected: "a string with at most 5000 code points",
|
|
740
|
+
}),
|
|
741
|
+
),
|
|
742
|
+
Stripeapplication,
|
|
743
|
+
Stripedeleted_application,
|
|
744
|
+
]).annotate({
|
|
745
|
+
description:
|
|
746
|
+
"ID of the Connect Application that created the invoice.",
|
|
747
|
+
}),
|
|
748
|
+
Schema.Null,
|
|
749
|
+
]),
|
|
750
|
+
),
|
|
751
|
+
attempt_count: Schema.Number.annotate({
|
|
752
|
+
description:
|
|
753
|
+
"Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.",
|
|
754
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
755
|
+
attempted: Schema.Boolean.annotate({
|
|
756
|
+
description:
|
|
757
|
+
"Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.",
|
|
758
|
+
}),
|
|
759
|
+
auto_advance: Schema.Boolean.annotate({
|
|
760
|
+
description:
|
|
761
|
+
"Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.",
|
|
762
|
+
}),
|
|
763
|
+
automatic_tax: Stripeautomatic_tax,
|
|
764
|
+
automatically_finalizes_at: Schema.optionalKey(
|
|
765
|
+
Schema.Union([
|
|
766
|
+
Schema.Number.annotate({
|
|
767
|
+
description:
|
|
768
|
+
"The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.",
|
|
769
|
+
format: "unix-time",
|
|
770
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
771
|
+
Schema.Null,
|
|
772
|
+
]),
|
|
773
|
+
),
|
|
774
|
+
billing_reason: Schema.optionalKey(
|
|
775
|
+
Schema.Union([
|
|
776
|
+
Schema.Literals([
|
|
777
|
+
"automatic_pending_invoice_item_invoice",
|
|
778
|
+
"manual",
|
|
779
|
+
"quote_accept",
|
|
780
|
+
"subscription",
|
|
781
|
+
"subscription_create",
|
|
782
|
+
"subscription_cycle",
|
|
783
|
+
"subscription_threshold",
|
|
784
|
+
"subscription_update",
|
|
785
|
+
"upcoming",
|
|
786
|
+
]).annotate({
|
|
787
|
+
description:
|
|
788
|
+
"Indicates the reason why the invoice was created.\n\n* `manual`: Unrelated to a subscription, for example, created via the invoice editor.\n* `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.\n* `subscription_create`: A new subscription was created.\n* `subscription_cycle`: A subscription advanced into a new period.\n* `subscription_threshold`: A subscription reached a billing threshold.\n* `subscription_update`: A subscription was updated.\n* `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.",
|
|
789
|
+
}),
|
|
790
|
+
Schema.Null,
|
|
791
|
+
]),
|
|
792
|
+
),
|
|
793
|
+
collection_method: Schema.Literals([
|
|
794
|
+
"charge_automatically",
|
|
795
|
+
"send_invoice",
|
|
796
|
+
]).annotate({
|
|
797
|
+
description:
|
|
798
|
+
"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.",
|
|
799
|
+
}),
|
|
800
|
+
confirmation_secret: Schema.optionalKey(
|
|
801
|
+
Schema.Union([
|
|
802
|
+
Schema.Union([
|
|
803
|
+
Stripeinvoices_resource_confirmation_secret,
|
|
804
|
+
]).annotate({
|
|
805
|
+
description:
|
|
806
|
+
"The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.",
|
|
807
|
+
}),
|
|
808
|
+
Schema.Null,
|
|
809
|
+
]),
|
|
810
|
+
),
|
|
811
|
+
created: Schema.Number.annotate({
|
|
812
|
+
description:
|
|
813
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
814
|
+
format: "unix-time",
|
|
815
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
816
|
+
currency: Schema.String.annotate({
|
|
817
|
+
description:
|
|
818
|
+
"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).",
|
|
819
|
+
format: "currency",
|
|
820
|
+
}),
|
|
821
|
+
custom_fields: Schema.optionalKey(
|
|
822
|
+
Schema.Union([
|
|
823
|
+
Schema.Array(Stripeinvoice_setting_custom_field).annotate({
|
|
824
|
+
description: "Custom fields displayed on the invoice.",
|
|
825
|
+
}),
|
|
826
|
+
Schema.Null,
|
|
827
|
+
]),
|
|
828
|
+
),
|
|
829
|
+
customer: Schema.Union([
|
|
830
|
+
Schema.String.check(
|
|
831
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
832
|
+
expected: "a string with at most 5000 code points",
|
|
833
|
+
}),
|
|
834
|
+
),
|
|
835
|
+
Schema.suspend((): Schema.Codec<Stripecustomer> => Stripecustomer),
|
|
836
|
+
Stripedeleted_customer,
|
|
837
|
+
]).annotate({ description: "The ID of the customer to bill." }),
|
|
838
|
+
customer_account: Schema.optionalKey(
|
|
839
|
+
Schema.Union([
|
|
840
|
+
Schema.String.annotate({
|
|
841
|
+
description:
|
|
842
|
+
"The ID of the account representing the customer to bill.",
|
|
843
|
+
}).check(
|
|
844
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
845
|
+
expected: "a string with at most 5000 code points",
|
|
846
|
+
}),
|
|
847
|
+
),
|
|
848
|
+
Schema.Null,
|
|
849
|
+
]),
|
|
850
|
+
),
|
|
851
|
+
customer_address: Schema.optionalKey(
|
|
852
|
+
Schema.Union([
|
|
853
|
+
Schema.Union([Stripeaddress]).annotate({
|
|
854
|
+
description:
|
|
855
|
+
"The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.",
|
|
856
|
+
}),
|
|
857
|
+
Schema.Null,
|
|
858
|
+
]),
|
|
859
|
+
),
|
|
860
|
+
customer_email: Schema.optionalKey(
|
|
861
|
+
Schema.Union([
|
|
862
|
+
Schema.String.annotate({
|
|
863
|
+
description:
|
|
864
|
+
"The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.",
|
|
865
|
+
}).check(
|
|
866
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
867
|
+
expected: "a string with at most 5000 code points",
|
|
868
|
+
}),
|
|
869
|
+
),
|
|
870
|
+
Schema.Null,
|
|
871
|
+
]),
|
|
872
|
+
),
|
|
873
|
+
customer_name: Schema.optionalKey(
|
|
874
|
+
Schema.Union([
|
|
875
|
+
Schema.String.annotate({
|
|
876
|
+
description:
|
|
877
|
+
"The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.",
|
|
878
|
+
}).check(
|
|
879
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
880
|
+
expected: "a string with at most 5000 code points",
|
|
881
|
+
}),
|
|
882
|
+
),
|
|
883
|
+
Schema.Null,
|
|
884
|
+
]),
|
|
885
|
+
),
|
|
886
|
+
customer_phone: Schema.optionalKey(
|
|
887
|
+
Schema.Union([
|
|
888
|
+
Schema.String.annotate({
|
|
889
|
+
description:
|
|
890
|
+
"The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.",
|
|
891
|
+
}).check(
|
|
892
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
893
|
+
expected: "a string with at most 5000 code points",
|
|
894
|
+
}),
|
|
895
|
+
),
|
|
896
|
+
Schema.Null,
|
|
897
|
+
]),
|
|
898
|
+
),
|
|
899
|
+
customer_shipping: Schema.optionalKey(
|
|
900
|
+
Schema.Union([
|
|
901
|
+
Schema.Union([Stripeshipping]).annotate({
|
|
902
|
+
description:
|
|
903
|
+
"The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.",
|
|
904
|
+
}),
|
|
905
|
+
Schema.Null,
|
|
906
|
+
]),
|
|
907
|
+
),
|
|
908
|
+
customer_tax_exempt: Schema.optionalKey(
|
|
909
|
+
Schema.Union([
|
|
910
|
+
Schema.Literals(["exempt", "none", "reverse"]).annotate({
|
|
911
|
+
description:
|
|
912
|
+
"The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.",
|
|
913
|
+
}),
|
|
914
|
+
Schema.Null,
|
|
915
|
+
]),
|
|
916
|
+
),
|
|
917
|
+
customer_tax_ids: Schema.optionalKey(
|
|
918
|
+
Schema.Union([
|
|
919
|
+
Schema.Array(Stripeinvoices_resource_invoice_tax_id).annotate({
|
|
920
|
+
description:
|
|
921
|
+
"The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.",
|
|
922
|
+
}),
|
|
923
|
+
Schema.Null,
|
|
924
|
+
]),
|
|
925
|
+
),
|
|
926
|
+
default_payment_method: Schema.optionalKey(
|
|
927
|
+
Schema.Union([
|
|
928
|
+
Schema.Union([
|
|
929
|
+
Schema.String.check(
|
|
930
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
931
|
+
expected: "a string with at most 5000 code points",
|
|
932
|
+
}),
|
|
933
|
+
),
|
|
934
|
+
Schema.suspend(
|
|
935
|
+
(): Schema.Codec<Stripepayment_method> => Stripepayment_method,
|
|
936
|
+
),
|
|
937
|
+
]).annotate({
|
|
938
|
+
description:
|
|
939
|
+
"ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.",
|
|
940
|
+
}),
|
|
941
|
+
Schema.Null,
|
|
942
|
+
]),
|
|
943
|
+
),
|
|
944
|
+
default_source: Schema.optionalKey(
|
|
945
|
+
Schema.Union([
|
|
946
|
+
Schema.Union([
|
|
947
|
+
Schema.String.check(
|
|
948
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
949
|
+
expected: "a string with at most 5000 code points",
|
|
950
|
+
}),
|
|
951
|
+
),
|
|
952
|
+
Schema.suspend(
|
|
953
|
+
(): Schema.Codec<Stripebank_account> => Stripebank_account,
|
|
954
|
+
),
|
|
955
|
+
Schema.suspend((): Schema.Codec<Stripecard> => Stripecard),
|
|
956
|
+
Stripesource,
|
|
957
|
+
]).annotate({
|
|
958
|
+
description:
|
|
959
|
+
"ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.",
|
|
960
|
+
}),
|
|
961
|
+
Schema.Null,
|
|
962
|
+
]),
|
|
963
|
+
),
|
|
964
|
+
default_tax_rates: Schema.Array(Stripetax_rate).annotate({
|
|
965
|
+
description: "The tax rates applied to this invoice, if any.",
|
|
966
|
+
}),
|
|
967
|
+
description: Schema.optionalKey(
|
|
968
|
+
Schema.Union([
|
|
969
|
+
Schema.String.annotate({
|
|
970
|
+
description:
|
|
971
|
+
"An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.",
|
|
972
|
+
}).check(
|
|
973
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
974
|
+
expected: "a string with at most 5000 code points",
|
|
975
|
+
}),
|
|
976
|
+
),
|
|
977
|
+
Schema.Null,
|
|
978
|
+
]),
|
|
979
|
+
),
|
|
980
|
+
discounts: Schema.Array(
|
|
981
|
+
Schema.Union([
|
|
982
|
+
Schema.String.check(
|
|
983
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
984
|
+
expected: "a string with at most 5000 code points",
|
|
985
|
+
}),
|
|
986
|
+
),
|
|
987
|
+
Schema.suspend((): Schema.Codec<Stripediscount> => Stripediscount),
|
|
988
|
+
Schema.suspend(
|
|
989
|
+
(): Schema.Codec<Stripedeleted_discount> =>
|
|
990
|
+
Stripedeleted_discount,
|
|
991
|
+
),
|
|
992
|
+
]),
|
|
993
|
+
).annotate({
|
|
994
|
+
description:
|
|
995
|
+
"The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
|
|
996
|
+
}),
|
|
997
|
+
due_date: Schema.optionalKey(
|
|
998
|
+
Schema.Union([
|
|
999
|
+
Schema.Number.annotate({
|
|
1000
|
+
description:
|
|
1001
|
+
"The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.",
|
|
1002
|
+
format: "unix-time",
|
|
1003
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1004
|
+
Schema.Null,
|
|
1005
|
+
]),
|
|
1006
|
+
),
|
|
1007
|
+
effective_at: Schema.optionalKey(
|
|
1008
|
+
Schema.Union([
|
|
1009
|
+
Schema.Number.annotate({
|
|
1010
|
+
description:
|
|
1011
|
+
"The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.",
|
|
1012
|
+
format: "unix-time",
|
|
1013
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1014
|
+
Schema.Null,
|
|
1015
|
+
]),
|
|
1016
|
+
),
|
|
1017
|
+
ending_balance: Schema.optionalKey(
|
|
1018
|
+
Schema.Union([
|
|
1019
|
+
Schema.Number.annotate({
|
|
1020
|
+
description:
|
|
1021
|
+
"Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.",
|
|
1022
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1023
|
+
Schema.Null,
|
|
1024
|
+
]),
|
|
1025
|
+
),
|
|
1026
|
+
footer: Schema.optionalKey(
|
|
1027
|
+
Schema.Union([
|
|
1028
|
+
Schema.String.annotate({
|
|
1029
|
+
description: "Footer displayed on the invoice.",
|
|
1030
|
+
}).check(
|
|
1031
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1032
|
+
expected: "a string with at most 5000 code points",
|
|
1033
|
+
}),
|
|
1034
|
+
),
|
|
1035
|
+
Schema.Null,
|
|
1036
|
+
]),
|
|
1037
|
+
),
|
|
1038
|
+
from_invoice: Schema.optionalKey(
|
|
1039
|
+
Schema.Union([
|
|
1040
|
+
Schema.Union([
|
|
1041
|
+
Schema.suspend(
|
|
1042
|
+
(): Schema.Codec<Stripeinvoices_resource_from_invoice> =>
|
|
1043
|
+
Stripeinvoices_resource_from_invoice,
|
|
1044
|
+
),
|
|
1045
|
+
]).annotate({
|
|
1046
|
+
description:
|
|
1047
|
+
"Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.",
|
|
1048
|
+
}),
|
|
1049
|
+
Schema.Null,
|
|
1050
|
+
]),
|
|
1051
|
+
),
|
|
1052
|
+
hosted_invoice_url: Schema.optionalKey(
|
|
1053
|
+
Schema.Union([
|
|
1054
|
+
Schema.String.annotate({
|
|
1055
|
+
description:
|
|
1056
|
+
"The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.",
|
|
1057
|
+
}).check(
|
|
1058
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1059
|
+
expected: "a string with at most 5000 code points",
|
|
1060
|
+
}),
|
|
1061
|
+
),
|
|
1062
|
+
Schema.Null,
|
|
1063
|
+
]),
|
|
1064
|
+
),
|
|
1065
|
+
id: Schema.String.annotate({
|
|
1066
|
+
description:
|
|
1067
|
+
"Unique identifier for the object. For preview invoices created using the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint, this id will be prefixed with `upcoming_in`.",
|
|
1068
|
+
}).check(
|
|
1069
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1070
|
+
expected: "a string with at most 5000 code points",
|
|
1071
|
+
}),
|
|
1072
|
+
),
|
|
1073
|
+
invoice_pdf: Schema.optionalKey(
|
|
1074
|
+
Schema.Union([
|
|
1075
|
+
Schema.String.annotate({
|
|
1076
|
+
description:
|
|
1077
|
+
"The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.",
|
|
1078
|
+
}).check(
|
|
1079
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1080
|
+
expected: "a string with at most 5000 code points",
|
|
1081
|
+
}),
|
|
1082
|
+
),
|
|
1083
|
+
Schema.Null,
|
|
1084
|
+
]),
|
|
1085
|
+
),
|
|
1086
|
+
issuer: Stripeconnect_account_reference,
|
|
1087
|
+
last_finalization_error: Schema.optionalKey(
|
|
1088
|
+
Schema.Union([
|
|
1089
|
+
Schema.Union([
|
|
1090
|
+
Schema.suspend(
|
|
1091
|
+
(): Schema.Codec<Stripeapi_errors> => Stripeapi_errors,
|
|
1092
|
+
),
|
|
1093
|
+
]).annotate({
|
|
1094
|
+
description:
|
|
1095
|
+
"The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.",
|
|
1096
|
+
}),
|
|
1097
|
+
Schema.Null,
|
|
1098
|
+
]),
|
|
1099
|
+
),
|
|
1100
|
+
latest_revision: Schema.optionalKey(
|
|
1101
|
+
Schema.Union([
|
|
1102
|
+
Schema.Union([
|
|
1103
|
+
Schema.String.check(
|
|
1104
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1105
|
+
expected: "a string with at most 5000 code points",
|
|
1106
|
+
}),
|
|
1107
|
+
),
|
|
1108
|
+
Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
|
|
1109
|
+
]).annotate({
|
|
1110
|
+
description:
|
|
1111
|
+
"The ID of the most recent non-draft revision of this invoice",
|
|
1112
|
+
}),
|
|
1113
|
+
Schema.Null,
|
|
1114
|
+
]),
|
|
1115
|
+
),
|
|
1116
|
+
lines: Schema.StructWithRest(
|
|
1117
|
+
Schema.Struct({
|
|
1118
|
+
data: Schema.Array(
|
|
1119
|
+
Schema.suspend(
|
|
1120
|
+
(): Schema.Codec<Stripeline_item> => Stripeline_item,
|
|
1121
|
+
),
|
|
1122
|
+
).annotate({ description: "Details about each object." }),
|
|
1123
|
+
has_more: Schema.Boolean.annotate({
|
|
1124
|
+
description:
|
|
1125
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
1126
|
+
}),
|
|
1127
|
+
object: Schema.Literal("list").annotate({
|
|
1128
|
+
description:
|
|
1129
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
1130
|
+
}),
|
|
1131
|
+
url: Schema.String.annotate({
|
|
1132
|
+
description: "The URL where this list can be accessed.",
|
|
1133
|
+
}).check(
|
|
1134
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1135
|
+
expected: "a string with at most 5000 code points",
|
|
1136
|
+
}),
|
|
1137
|
+
),
|
|
1138
|
+
}),
|
|
1139
|
+
[
|
|
1140
|
+
Schema.Record(
|
|
1141
|
+
Schema.String,
|
|
1142
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1143
|
+
),
|
|
1144
|
+
],
|
|
1145
|
+
).annotate({
|
|
1146
|
+
title: "InvoiceLinesList",
|
|
1147
|
+
description:
|
|
1148
|
+
"The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.",
|
|
1149
|
+
}),
|
|
1150
|
+
livemode: Schema.Boolean.annotate({
|
|
1151
|
+
description:
|
|
1152
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
1153
|
+
}),
|
|
1154
|
+
metadata: Schema.optionalKey(
|
|
1155
|
+
Schema.Union([
|
|
1156
|
+
Schema.Record(
|
|
1157
|
+
Schema.String,
|
|
1158
|
+
Schema.String.check(
|
|
1159
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1160
|
+
expected: "a string with at most 500 code points",
|
|
1161
|
+
}),
|
|
1162
|
+
),
|
|
1163
|
+
).annotate({
|
|
1164
|
+
description:
|
|
1165
|
+
"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.",
|
|
1166
|
+
}),
|
|
1167
|
+
Schema.Null,
|
|
1168
|
+
]),
|
|
1169
|
+
),
|
|
1170
|
+
next_payment_attempt: Schema.optionalKey(
|
|
1171
|
+
Schema.Union([
|
|
1172
|
+
Schema.Number.annotate({
|
|
1173
|
+
description:
|
|
1174
|
+
"The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.",
|
|
1175
|
+
format: "unix-time",
|
|
1176
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1177
|
+
Schema.Null,
|
|
1178
|
+
]),
|
|
1179
|
+
),
|
|
1180
|
+
number: Schema.optionalKey(
|
|
1181
|
+
Schema.Union([
|
|
1182
|
+
Schema.String.annotate({
|
|
1183
|
+
description:
|
|
1184
|
+
"A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.",
|
|
1185
|
+
}).check(
|
|
1186
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1187
|
+
expected: "a string with at most 5000 code points",
|
|
1188
|
+
}),
|
|
1189
|
+
),
|
|
1190
|
+
Schema.Null,
|
|
1191
|
+
]),
|
|
1192
|
+
),
|
|
1193
|
+
object: Schema.Literal("invoice").annotate({
|
|
1194
|
+
description:
|
|
1195
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
1196
|
+
}),
|
|
1197
|
+
on_behalf_of: Schema.optionalKey(
|
|
1198
|
+
Schema.Union([
|
|
1199
|
+
Schema.Union([
|
|
1200
|
+
Schema.String.check(
|
|
1201
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1202
|
+
expected: "a string with at most 5000 code points",
|
|
1203
|
+
}),
|
|
1204
|
+
),
|
|
1205
|
+
Schema.suspend((): Schema.Codec<Stripeaccount> => Stripeaccount),
|
|
1206
|
+
]).annotate({
|
|
1207
|
+
description:
|
|
1208
|
+
"The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.",
|
|
1209
|
+
}),
|
|
1210
|
+
Schema.Null,
|
|
1211
|
+
]),
|
|
1212
|
+
),
|
|
1213
|
+
parent: Schema.optionalKey(
|
|
1214
|
+
Schema.Union([
|
|
1215
|
+
Schema.Union([
|
|
1216
|
+
Schema.suspend(
|
|
1217
|
+
(): Schema.Codec<Stripebilling_bill_resource_invoicing_parents_invoice_parent> =>
|
|
1218
|
+
Stripebilling_bill_resource_invoicing_parents_invoice_parent,
|
|
1219
|
+
),
|
|
1220
|
+
]).annotate({
|
|
1221
|
+
description: "The parent that generated this invoice",
|
|
1222
|
+
}),
|
|
1223
|
+
Schema.Null,
|
|
1224
|
+
]),
|
|
1225
|
+
),
|
|
1226
|
+
payment_settings: Stripeinvoices_payment_settings,
|
|
1227
|
+
payments: Schema.optionalKey(
|
|
1228
|
+
Schema.StructWithRest(
|
|
1229
|
+
Schema.Struct({
|
|
1230
|
+
data: Schema.Array(
|
|
1231
|
+
Schema.suspend(
|
|
1232
|
+
(): Schema.Codec<Stripeinvoice_payment> =>
|
|
1233
|
+
Stripeinvoice_payment,
|
|
1234
|
+
),
|
|
1235
|
+
).annotate({ description: "Details about each object." }),
|
|
1236
|
+
has_more: Schema.Boolean.annotate({
|
|
1237
|
+
description:
|
|
1238
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
1239
|
+
}),
|
|
1240
|
+
object: Schema.Literal("list").annotate({
|
|
1241
|
+
description:
|
|
1242
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
1243
|
+
}),
|
|
1244
|
+
url: Schema.String.annotate({
|
|
1245
|
+
description: "The URL where this list can be accessed.",
|
|
1246
|
+
}).check(
|
|
1247
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1248
|
+
expected: "a string with at most 5000 code points",
|
|
1249
|
+
}),
|
|
1250
|
+
),
|
|
1251
|
+
}),
|
|
1252
|
+
[
|
|
1253
|
+
Schema.Record(
|
|
1254
|
+
Schema.String,
|
|
1255
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1256
|
+
),
|
|
1257
|
+
],
|
|
1258
|
+
).annotate({
|
|
1259
|
+
title: "InvoicesPaymentsListInvoicePayments",
|
|
1260
|
+
description:
|
|
1261
|
+
"Payments for this invoice. Use [invoice payment](/api/invoice-payment) to get more details.",
|
|
1262
|
+
}),
|
|
1263
|
+
),
|
|
1264
|
+
period_end: Schema.Number.annotate({
|
|
1265
|
+
description:
|
|
1266
|
+
"The latest timestamp at which invoice items can be associated with this invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.",
|
|
1267
|
+
format: "unix-time",
|
|
1268
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1269
|
+
period_start: Schema.Number.annotate({
|
|
1270
|
+
description:
|
|
1271
|
+
"The earliest timestamp at which invoice items can be associated with this invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.",
|
|
1272
|
+
format: "unix-time",
|
|
1273
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1274
|
+
post_payment_credit_notes_amount: Schema.Number.annotate({
|
|
1275
|
+
description:
|
|
1276
|
+
"Total amount of all post-payment credit notes issued for this invoice.",
|
|
1277
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1278
|
+
pre_payment_credit_notes_amount: Schema.Number.annotate({
|
|
1279
|
+
description:
|
|
1280
|
+
"Total amount of all pre-payment credit notes issued for this invoice.",
|
|
1281
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1282
|
+
receipt_number: Schema.optionalKey(
|
|
1283
|
+
Schema.Union([
|
|
1284
|
+
Schema.String.annotate({
|
|
1285
|
+
description:
|
|
1286
|
+
"This is the transaction number that appears on email receipts sent for this invoice.",
|
|
1287
|
+
}).check(
|
|
1288
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1289
|
+
expected: "a string with at most 5000 code points",
|
|
1290
|
+
}),
|
|
1291
|
+
),
|
|
1292
|
+
Schema.Null,
|
|
1293
|
+
]),
|
|
1294
|
+
),
|
|
1295
|
+
rendering: Schema.optionalKey(
|
|
1296
|
+
Schema.Union([
|
|
1297
|
+
Schema.Union([Stripeinvoices_resource_invoice_rendering]).annotate({
|
|
1298
|
+
description:
|
|
1299
|
+
"The rendering-related settings that control how invoices render in customer-facing interfaces such as the PDF or hosted invoice page.",
|
|
1300
|
+
}),
|
|
1301
|
+
Schema.Null,
|
|
1302
|
+
]),
|
|
1303
|
+
),
|
|
1304
|
+
shipping_cost: Schema.optionalKey(
|
|
1305
|
+
Schema.Union([
|
|
1306
|
+
Schema.Union([Stripeinvoices_resource_shipping_cost]).annotate({
|
|
1307
|
+
description:
|
|
1308
|
+
"The details of the cost of shipping, including the ShippingRate applied on the invoice.",
|
|
1309
|
+
}),
|
|
1310
|
+
Schema.Null,
|
|
1311
|
+
]),
|
|
1312
|
+
),
|
|
1313
|
+
shipping_details: Schema.optionalKey(
|
|
1314
|
+
Schema.Union([
|
|
1315
|
+
Schema.Union([Stripeshipping]).annotate({
|
|
1316
|
+
description:
|
|
1317
|
+
"Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.",
|
|
1318
|
+
}),
|
|
1319
|
+
Schema.Null,
|
|
1320
|
+
]),
|
|
1321
|
+
),
|
|
1322
|
+
starting_balance: Schema.Number.annotate({
|
|
1323
|
+
description:
|
|
1324
|
+
"Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.",
|
|
1325
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1326
|
+
statement_descriptor: Schema.optionalKey(
|
|
1327
|
+
Schema.Union([
|
|
1328
|
+
Schema.String.annotate({
|
|
1329
|
+
description:
|
|
1330
|
+
"Extra information about an invoice for the customer's credit card statement.",
|
|
1331
|
+
}).check(
|
|
1332
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1333
|
+
expected: "a string with at most 5000 code points",
|
|
1334
|
+
}),
|
|
1335
|
+
),
|
|
1336
|
+
Schema.Null,
|
|
1337
|
+
]),
|
|
1338
|
+
),
|
|
1339
|
+
status: Schema.optionalKey(
|
|
1340
|
+
Schema.Union([
|
|
1341
|
+
Schema.Literals([
|
|
1342
|
+
"draft",
|
|
1343
|
+
"open",
|
|
1344
|
+
"paid",
|
|
1345
|
+
"uncollectible",
|
|
1346
|
+
"void",
|
|
1347
|
+
]).annotate({
|
|
1348
|
+
description:
|
|
1349
|
+
"The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)",
|
|
1350
|
+
}),
|
|
1351
|
+
Schema.Null,
|
|
1352
|
+
]),
|
|
1353
|
+
),
|
|
1354
|
+
status_details: Schema.optionalKey(
|
|
1355
|
+
Stripeinvoices_resource_status_details,
|
|
1356
|
+
),
|
|
1357
|
+
status_transitions: Stripeinvoices_resource_status_transitions,
|
|
1358
|
+
subtotal: Schema.Number.annotate({
|
|
1359
|
+
description:
|
|
1360
|
+
"Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated",
|
|
1361
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1362
|
+
subtotal_excluding_tax: Schema.optionalKey(
|
|
1363
|
+
Schema.Union([
|
|
1364
|
+
Schema.Number.annotate({
|
|
1365
|
+
description:
|
|
1366
|
+
"The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated",
|
|
1367
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1368
|
+
Schema.Null,
|
|
1369
|
+
]),
|
|
1370
|
+
),
|
|
1371
|
+
test_clock: Schema.optionalKey(
|
|
1372
|
+
Schema.Union([
|
|
1373
|
+
Schema.Union([
|
|
1374
|
+
Schema.String.check(
|
|
1375
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1376
|
+
expected: "a string with at most 5000 code points",
|
|
1377
|
+
}),
|
|
1378
|
+
),
|
|
1379
|
+
Stripetest_helpers_test_clock,
|
|
1380
|
+
]).annotate({
|
|
1381
|
+
description: "ID of the test clock this invoice belongs to.",
|
|
1382
|
+
}),
|
|
1383
|
+
Schema.Null,
|
|
1384
|
+
]),
|
|
1385
|
+
),
|
|
1386
|
+
threshold_reason: Schema.optionalKey(Stripeinvoice_threshold_reason),
|
|
1387
|
+
total: Schema.Number.annotate({
|
|
1388
|
+
description: "Total after discounts and taxes.",
|
|
1389
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1390
|
+
total_discount_amounts: Schema.optionalKey(
|
|
1391
|
+
Schema.Union([
|
|
1392
|
+
Schema.Array(Stripediscounts_resource_discount_amount).annotate({
|
|
1393
|
+
description:
|
|
1394
|
+
"The aggregate amounts calculated per discount across all line items.",
|
|
1395
|
+
}),
|
|
1396
|
+
Schema.Null,
|
|
1397
|
+
]),
|
|
1398
|
+
),
|
|
1399
|
+
total_excluding_tax: Schema.optionalKey(
|
|
1400
|
+
Schema.Union([
|
|
1401
|
+
Schema.Number.annotate({
|
|
1402
|
+
description:
|
|
1403
|
+
"The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.",
|
|
1404
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1405
|
+
Schema.Null,
|
|
1406
|
+
]),
|
|
1407
|
+
),
|
|
1408
|
+
total_pretax_credit_amounts: Schema.optionalKey(
|
|
1409
|
+
Schema.Union([
|
|
1410
|
+
Schema.Array(
|
|
1411
|
+
Schema.suspend(
|
|
1412
|
+
(): Schema.Codec<Stripeinvoices_resource_pretax_credit_amount> =>
|
|
1413
|
+
Stripeinvoices_resource_pretax_credit_amount,
|
|
1414
|
+
),
|
|
1415
|
+
).annotate({
|
|
1416
|
+
description:
|
|
1417
|
+
"Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.",
|
|
1418
|
+
}),
|
|
1419
|
+
Schema.Null,
|
|
1420
|
+
]),
|
|
1421
|
+
),
|
|
1422
|
+
total_taxes: Schema.optionalKey(
|
|
1423
|
+
Schema.Union([
|
|
1424
|
+
Schema.Array(
|
|
1425
|
+
Stripebilling_bill_resource_invoicing_taxes_tax,
|
|
1426
|
+
).annotate({
|
|
1427
|
+
description: "The aggregate tax information of all line items.",
|
|
1428
|
+
}),
|
|
1429
|
+
Schema.Null,
|
|
1430
|
+
]),
|
|
1431
|
+
),
|
|
1432
|
+
webhooks_delivered_at: Schema.optionalKey(
|
|
1433
|
+
Schema.Union([
|
|
1434
|
+
Schema.Number.annotate({
|
|
1435
|
+
description:
|
|
1436
|
+
"Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://docs.stripe.com/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.",
|
|
1437
|
+
format: "unix-time",
|
|
1438
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1439
|
+
Schema.Null,
|
|
1440
|
+
]),
|
|
1441
|
+
),
|
|
1442
|
+
}),
|
|
1443
|
+
[
|
|
1444
|
+
Schema.Record(
|
|
1445
|
+
Schema.String,
|
|
1446
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1447
|
+
),
|
|
1448
|
+
],
|
|
1449
|
+
).annotate({
|
|
1450
|
+
title: "Invoice",
|
|
1451
|
+
description:
|
|
1452
|
+
"Invoices are statements of amounts owed by a customer, and are either\ngenerated one-off, or generated periodically from a subscription.\n\nThey contain [invoice items](https://docs.stripe.com/api#invoiceitems), and proration adjustments\nthat may be caused by subscription upgrades/downgrades (if necessary).\n\nIf your invoice is configured to be billed through automatic charges,\nStripe automatically finalizes your invoice and attempts payment. Note\nthat finalizing the invoice,\n[when automatic](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection), does\nnot happen immediately as the invoice is created. Stripe waits\nuntil one hour after the last webhook was successfully sent (or the last\nwebhook timed out after failing). If you (and the platforms you may have\nconnected to) have no webhooks configured, Stripe waits one hour after\ncreation to finalize the invoice.\n\nIf your invoice is configured to be billed by sending an email, then based on your\n[email settings](https://dashboard.stripe.com/account/billing/automatic),\nStripe will email the invoice to your customer and await payment. These\nemails can contain a link to a hosted page to pay the invoice.\n\nStripe applies any customer credit on the account before determining the\namount due for the invoice (i.e., the amount that will be actually\ncharged). If the amount due for the invoice is less than Stripe's [minimum allowed charge\nper currency](/docs/currencies#minimum-and-maximum-charge-amounts), the\ninvoice is automatically marked paid, and we add the amount due to the\ncustomer's credit balance which is applied to the next invoice.\n\nMore details on the customer's credit balance are\n[here](https://docs.stripe.com/billing/customer/balance).\n\nRelated guide: [Send invoices to customers](https://docs.stripe.com/billing/invoices/sending)",
|
|
1453
|
+
identifier: "Stripeinvoice",
|
|
1454
|
+
}),
|
|
1455
|
+
);
|
|
1456
|
+
export const Stripeinvoices_resource_pretax_credit_amount =
|
|
1457
|
+
Schema.StructWithRest(
|
|
1458
|
+
Schema.Struct({
|
|
1459
|
+
amount: Schema.Number.annotate({
|
|
1460
|
+
description:
|
|
1461
|
+
"The amount, in cents (or local equivalent), of the pretax credit amount.",
|
|
1462
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1463
|
+
credit_balance_transaction: Schema.optionalKey(
|
|
1464
|
+
Schema.Union([
|
|
1465
|
+
Schema.Union([
|
|
1466
|
+
Schema.String.check(
|
|
1467
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1468
|
+
expected: "a string with at most 5000 code points",
|
|
1469
|
+
}),
|
|
1470
|
+
),
|
|
1471
|
+
Schema.suspend(
|
|
1472
|
+
(): Schema.Codec<Stripebilling_credit_balance_transaction> =>
|
|
1473
|
+
Stripebilling_credit_balance_transaction,
|
|
1474
|
+
),
|
|
1475
|
+
]).annotate({
|
|
1476
|
+
description:
|
|
1477
|
+
"The credit balance transaction that was applied to get this pretax credit amount.",
|
|
1478
|
+
}),
|
|
1479
|
+
Schema.Null,
|
|
1480
|
+
]),
|
|
1481
|
+
),
|
|
1482
|
+
discount: Schema.optionalKey(
|
|
1483
|
+
Schema.Union([
|
|
1484
|
+
Schema.String.check(
|
|
1485
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1486
|
+
expected: "a string with at most 5000 code points",
|
|
1487
|
+
}),
|
|
1488
|
+
),
|
|
1489
|
+
Schema.suspend((): Schema.Codec<Stripediscount> => Stripediscount),
|
|
1490
|
+
Schema.suspend(
|
|
1491
|
+
(): Schema.Codec<Stripedeleted_discount> => Stripedeleted_discount,
|
|
1492
|
+
),
|
|
1493
|
+
]).annotate({
|
|
1494
|
+
description:
|
|
1495
|
+
"The discount that was applied to get this pretax credit amount.",
|
|
1496
|
+
}),
|
|
1497
|
+
),
|
|
1498
|
+
type: Schema.Literals([
|
|
1499
|
+
"credit_balance_transaction",
|
|
1500
|
+
"discount",
|
|
1501
|
+
]).annotate({
|
|
1502
|
+
description: "Type of the pretax credit amount referenced.",
|
|
1503
|
+
}),
|
|
1504
|
+
}),
|
|
1505
|
+
[
|
|
1506
|
+
Schema.Record(
|
|
1507
|
+
Schema.String,
|
|
1508
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1509
|
+
),
|
|
1510
|
+
],
|
|
1511
|
+
).annotate({
|
|
1512
|
+
title: "InvoicesResourcePretaxCreditAmount",
|
|
1513
|
+
description: "",
|
|
1514
|
+
identifier: "Stripeinvoices_resource_pretax_credit_amount",
|
|
1515
|
+
});
|
|
1516
|
+
export const Stripeinvoice_payment = Schema.suspend(
|
|
1517
|
+
(): Schema.Codec<Stripeinvoice_payment> =>
|
|
1518
|
+
Schema.StructWithRest(
|
|
1519
|
+
Schema.Struct({
|
|
1520
|
+
amount_paid: Schema.optionalKey(
|
|
1521
|
+
Schema.Union([
|
|
1522
|
+
Schema.Number.annotate({
|
|
1523
|
+
description:
|
|
1524
|
+
"Amount that was actually paid for this invoice, in cents (or local equivalent). This field is null until the payment is `paid`. This amount can be less than the `amount_requested` if the PaymentIntent’s `amount_received` is not sufficient to pay all of the invoices that it is attached to.",
|
|
1525
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1526
|
+
Schema.Null,
|
|
1527
|
+
]),
|
|
1528
|
+
),
|
|
1529
|
+
amount_requested: Schema.Number.annotate({
|
|
1530
|
+
description:
|
|
1531
|
+
"Amount intended to be paid toward this invoice, in cents (or local equivalent)",
|
|
1532
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1533
|
+
created: Schema.Number.annotate({
|
|
1534
|
+
description:
|
|
1535
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
1536
|
+
format: "unix-time",
|
|
1537
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1538
|
+
currency: Schema.String.annotate({
|
|
1539
|
+
description:
|
|
1540
|
+
"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).",
|
|
1541
|
+
}).check(
|
|
1542
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1543
|
+
expected: "a string with at most 5000 code points",
|
|
1544
|
+
}),
|
|
1545
|
+
),
|
|
1546
|
+
id: Schema.String.annotate({
|
|
1547
|
+
description: "Unique identifier for the object.",
|
|
1548
|
+
}).check(
|
|
1549
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1550
|
+
expected: "a string with at most 5000 code points",
|
|
1551
|
+
}),
|
|
1552
|
+
),
|
|
1553
|
+
invoice: Schema.Union([
|
|
1554
|
+
Schema.String.check(
|
|
1555
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1556
|
+
expected: "a string with at most 5000 code points",
|
|
1557
|
+
}),
|
|
1558
|
+
),
|
|
1559
|
+
Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
|
|
1560
|
+
Stripedeleted_invoice,
|
|
1561
|
+
]).annotate({ description: "The invoice that was paid." }),
|
|
1562
|
+
is_default: Schema.Boolean.annotate({
|
|
1563
|
+
description:
|
|
1564
|
+
"Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s `amount_remaining`. The PaymentIntent associated with the default payment can’t be edited or canceled directly.",
|
|
1565
|
+
}),
|
|
1566
|
+
livemode: Schema.Boolean.annotate({
|
|
1567
|
+
description:
|
|
1568
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
1569
|
+
}),
|
|
1570
|
+
object: Schema.Literal("invoice_payment").annotate({
|
|
1571
|
+
description:
|
|
1572
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
1573
|
+
}),
|
|
1574
|
+
payment: Stripeinvoices_payments_invoice_payment_associated_payment,
|
|
1575
|
+
status: Schema.String.annotate({
|
|
1576
|
+
description:
|
|
1577
|
+
"The status of the payment, one of `open`, `paid`, or `canceled`.",
|
|
1578
|
+
}).check(
|
|
1579
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1580
|
+
expected: "a string with at most 5000 code points",
|
|
1581
|
+
}),
|
|
1582
|
+
),
|
|
1583
|
+
status_transitions:
|
|
1584
|
+
Stripeinvoices_payments_invoice_payment_status_transitions,
|
|
1585
|
+
}),
|
|
1586
|
+
[
|
|
1587
|
+
Schema.Record(
|
|
1588
|
+
Schema.String,
|
|
1589
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1590
|
+
),
|
|
1591
|
+
],
|
|
1592
|
+
).annotate({
|
|
1593
|
+
title: "Invoice Payment",
|
|
1594
|
+
description:
|
|
1595
|
+
"Invoice Payments represent payments made against invoices. Invoice Payments can\nbe accessed in two ways:\n1. By expanding the `payments` field on the [Invoice](https://docs.stripe.com/api#invoice) resource.\n2. By using the Invoice Payment retrieve and list endpoints.\n\nInvoice Payments include the mapping between payment objects, such as Payment Intent, and Invoices.\nThis resource and its endpoints allows you to easily track if a payment is associated with a specific invoice and\nmonitor the allocation details of the payments.",
|
|
1596
|
+
identifier: "Stripeinvoice_payment",
|
|
1597
|
+
}),
|
|
1598
|
+
);
|
|
1599
|
+
export const Stripeinvoices_resource_from_invoice = Schema.StructWithRest(
|
|
1600
|
+
Schema.Struct({
|
|
1601
|
+
action: Schema.String.annotate({
|
|
1602
|
+
description: "The relation between this invoice and the cloned invoice",
|
|
1603
|
+
}).check(
|
|
1604
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1605
|
+
expected: "a string with at most 5000 code points",
|
|
1606
|
+
}),
|
|
1607
|
+
),
|
|
1608
|
+
invoice: Schema.Union([
|
|
1609
|
+
Schema.String.check(
|
|
1610
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1611
|
+
expected: "a string with at most 5000 code points",
|
|
1612
|
+
}),
|
|
1613
|
+
),
|
|
1614
|
+
Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
|
|
1615
|
+
]).annotate({ description: "The invoice that was cloned." }),
|
|
1616
|
+
}),
|
|
1617
|
+
[
|
|
1618
|
+
Schema.Record(
|
|
1619
|
+
Schema.String,
|
|
1620
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1621
|
+
),
|
|
1622
|
+
],
|
|
1623
|
+
).annotate({
|
|
1624
|
+
title: "InvoicesResourceFromInvoice",
|
|
1625
|
+
description: "",
|
|
1626
|
+
identifier: "Stripeinvoices_resource_from_invoice",
|
|
1627
|
+
});
|
|
1628
|
+
export const Stripeinvoice_setting_custom_field = Schema.StructWithRest(
|
|
1629
|
+
Schema.Struct({
|
|
1630
|
+
name: Schema.String.annotate({
|
|
1631
|
+
description: "The name of the custom field.",
|
|
1632
|
+
}).check(
|
|
1633
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1634
|
+
expected: "a string with at most 5000 code points",
|
|
1635
|
+
}),
|
|
1636
|
+
),
|
|
1637
|
+
value: Schema.String.annotate({
|
|
1638
|
+
description: "The value of the custom field.",
|
|
1639
|
+
}).check(
|
|
1640
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1641
|
+
expected: "a string with at most 5000 code points",
|
|
1642
|
+
}),
|
|
1643
|
+
),
|
|
1644
|
+
}),
|
|
1645
|
+
[
|
|
1646
|
+
Schema.Record(
|
|
1647
|
+
Schema.String,
|
|
1648
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1649
|
+
),
|
|
1650
|
+
],
|
|
1651
|
+
).annotate({
|
|
1652
|
+
title: "InvoiceSettingCustomField",
|
|
1653
|
+
description: "",
|
|
1654
|
+
identifier: "Stripeinvoice_setting_custom_field",
|
|
1655
|
+
});
|
|
1656
|
+
export const Stripeinvoice_setting_customer_rendering_options =
|
|
1657
|
+
Schema.StructWithRest(
|
|
1658
|
+
Schema.Struct({
|
|
1659
|
+
amount_tax_display: Schema.optionalKey(
|
|
1660
|
+
Schema.Union([
|
|
1661
|
+
Schema.String.annotate({
|
|
1662
|
+
description:
|
|
1663
|
+
"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.",
|
|
1664
|
+
}).check(
|
|
1665
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1666
|
+
expected: "a string with at most 5000 code points",
|
|
1667
|
+
}),
|
|
1668
|
+
),
|
|
1669
|
+
Schema.Null,
|
|
1670
|
+
]),
|
|
1671
|
+
),
|
|
1672
|
+
template: Schema.optionalKey(
|
|
1673
|
+
Schema.Union([
|
|
1674
|
+
Schema.String.annotate({
|
|
1675
|
+
description:
|
|
1676
|
+
"ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.",
|
|
1677
|
+
}).check(
|
|
1678
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1679
|
+
expected: "a string with at most 5000 code points",
|
|
1680
|
+
}),
|
|
1681
|
+
),
|
|
1682
|
+
Schema.Null,
|
|
1683
|
+
]),
|
|
1684
|
+
),
|
|
1685
|
+
}),
|
|
1686
|
+
[
|
|
1687
|
+
Schema.Record(
|
|
1688
|
+
Schema.String,
|
|
1689
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1690
|
+
),
|
|
1691
|
+
],
|
|
1692
|
+
).annotate({
|
|
1693
|
+
title: "InvoiceSettingCustomerRenderingOptions",
|
|
1694
|
+
description: "",
|
|
1695
|
+
identifier: "Stripeinvoice_setting_customer_rendering_options",
|
|
1696
|
+
});
|
|
1697
|
+
export const Stripeinvoices_resource_confirmation_secret =
|
|
1698
|
+
Schema.StructWithRest(
|
|
1699
|
+
Schema.Struct({
|
|
1700
|
+
client_secret: Schema.String.annotate({
|
|
1701
|
+
description:
|
|
1702
|
+
"The client_secret of the payment that Stripe creates for the invoice after finalization.",
|
|
1703
|
+
}).check(
|
|
1704
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1705
|
+
expected: "a string with at most 5000 code points",
|
|
1706
|
+
}),
|
|
1707
|
+
),
|
|
1708
|
+
type: Schema.String.annotate({
|
|
1709
|
+
description:
|
|
1710
|
+
"The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization",
|
|
1711
|
+
}).check(
|
|
1712
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1713
|
+
expected: "a string with at most 5000 code points",
|
|
1714
|
+
}),
|
|
1715
|
+
),
|
|
1716
|
+
}),
|
|
1717
|
+
[
|
|
1718
|
+
Schema.Record(
|
|
1719
|
+
Schema.String,
|
|
1720
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1721
|
+
),
|
|
1722
|
+
],
|
|
1723
|
+
).annotate({
|
|
1724
|
+
title: "InvoicesResourceConfirmationSecret",
|
|
1725
|
+
description: "",
|
|
1726
|
+
identifier: "Stripeinvoices_resource_confirmation_secret",
|
|
1727
|
+
});
|
|
1728
|
+
export const Stripeinvoices_resource_invoice_tax_id = Schema.StructWithRest(
|
|
1729
|
+
Schema.Struct({
|
|
1730
|
+
type: Schema.Literals([
|
|
1731
|
+
"ad_nrt",
|
|
1732
|
+
"ae_trn",
|
|
1733
|
+
"al_tin",
|
|
1734
|
+
"am_tin",
|
|
1735
|
+
"ao_tin",
|
|
1736
|
+
"ar_cuit",
|
|
1737
|
+
"au_abn",
|
|
1738
|
+
"au_acn",
|
|
1739
|
+
"au_arn",
|
|
1740
|
+
"au_wpn",
|
|
1741
|
+
"aw_tin",
|
|
1742
|
+
"az_tin",
|
|
1743
|
+
"ba_tin",
|
|
1744
|
+
"bb_tin",
|
|
1745
|
+
"bd_bin",
|
|
1746
|
+
"bf_ifu",
|
|
1747
|
+
"bg_uic",
|
|
1748
|
+
"bh_vat",
|
|
1749
|
+
"bj_ifu",
|
|
1750
|
+
"bo_tin",
|
|
1751
|
+
"br_cnpj",
|
|
1752
|
+
"br_cpf",
|
|
1753
|
+
"bs_tin",
|
|
1754
|
+
"bw_vat",
|
|
1755
|
+
"by_tin",
|
|
1756
|
+
"ca_bn",
|
|
1757
|
+
"ca_gst_hst",
|
|
1758
|
+
"ca_pst_bc",
|
|
1759
|
+
"ca_pst_mb",
|
|
1760
|
+
"ca_pst_sk",
|
|
1761
|
+
"ca_qst",
|
|
1762
|
+
"cd_nif",
|
|
1763
|
+
"ch_uid",
|
|
1764
|
+
"ch_vat",
|
|
1765
|
+
"ci_vat",
|
|
1766
|
+
"cl_tin",
|
|
1767
|
+
"cm_niu",
|
|
1768
|
+
"cn_tin",
|
|
1769
|
+
"co_nit",
|
|
1770
|
+
"cr_tin",
|
|
1771
|
+
"cv_nif",
|
|
1772
|
+
"cz_dic",
|
|
1773
|
+
"de_stn",
|
|
1774
|
+
"do_rcn",
|
|
1775
|
+
"ec_ruc",
|
|
1776
|
+
"eg_tin",
|
|
1777
|
+
"es_cif",
|
|
1778
|
+
"et_tin",
|
|
1779
|
+
"eu_oss_vat",
|
|
1780
|
+
"eu_vat",
|
|
1781
|
+
"fo_vat",
|
|
1782
|
+
"fr_siren",
|
|
1783
|
+
"fr_siret",
|
|
1784
|
+
"fr_spi",
|
|
1785
|
+
"gb_vat",
|
|
1786
|
+
"ge_vat",
|
|
1787
|
+
"gh_tin",
|
|
1788
|
+
"gi_tin",
|
|
1789
|
+
"gn_nif",
|
|
1790
|
+
"hk_br",
|
|
1791
|
+
"hr_oib",
|
|
1792
|
+
"hu_tin",
|
|
1793
|
+
"ic_nif",
|
|
1794
|
+
"id_npwp",
|
|
1795
|
+
"il_vat",
|
|
1796
|
+
"in_gst",
|
|
1797
|
+
"is_kt",
|
|
1798
|
+
"is_vat",
|
|
1799
|
+
"it_cf",
|
|
1800
|
+
"jp_cn",
|
|
1801
|
+
"jp_rn",
|
|
1802
|
+
"jp_trn",
|
|
1803
|
+
"ke_pin",
|
|
1804
|
+
"kg_tin",
|
|
1805
|
+
"kh_tin",
|
|
1806
|
+
"kr_brn",
|
|
1807
|
+
"kz_bin",
|
|
1808
|
+
"la_tin",
|
|
1809
|
+
"li_uid",
|
|
1810
|
+
"li_vat",
|
|
1811
|
+
"lk_vat",
|
|
1812
|
+
"ma_vat",
|
|
1813
|
+
"md_cf",
|
|
1814
|
+
"md_vat",
|
|
1815
|
+
"me_pib",
|
|
1816
|
+
"mk_vat",
|
|
1817
|
+
"mr_nif",
|
|
1818
|
+
"mu_vat",
|
|
1819
|
+
"mx_rfc",
|
|
1820
|
+
"my_frp",
|
|
1821
|
+
"my_itn",
|
|
1822
|
+
"my_sst",
|
|
1823
|
+
"mz_nuit",
|
|
1824
|
+
"ng_tin",
|
|
1825
|
+
"no_vat",
|
|
1826
|
+
"no_voec",
|
|
1827
|
+
"np_pan",
|
|
1828
|
+
"nz_bn",
|
|
1829
|
+
"nz_gst",
|
|
1830
|
+
"om_vat",
|
|
1831
|
+
"pe_ruc",
|
|
1832
|
+
"ph_tin",
|
|
1833
|
+
"pl_nip",
|
|
1834
|
+
"pt_nif",
|
|
1835
|
+
"py_ruc",
|
|
1836
|
+
"ro_tin",
|
|
1837
|
+
"rs_pib",
|
|
1838
|
+
"ru_inn",
|
|
1839
|
+
"ru_kpp",
|
|
1840
|
+
"sa_vat",
|
|
1841
|
+
"sg_gst",
|
|
1842
|
+
"sg_uen",
|
|
1843
|
+
"si_tin",
|
|
1844
|
+
"sm_coe",
|
|
1845
|
+
"sn_ninea",
|
|
1846
|
+
"sr_fin",
|
|
1847
|
+
"sv_nit",
|
|
1848
|
+
"th_vat",
|
|
1849
|
+
"tj_tin",
|
|
1850
|
+
"tr_tin",
|
|
1851
|
+
"tt_bir",
|
|
1852
|
+
"tt_vat",
|
|
1853
|
+
"tw_vat",
|
|
1854
|
+
"tz_vat",
|
|
1855
|
+
"ua_vat",
|
|
1856
|
+
"ug_tin",
|
|
1857
|
+
"unknown",
|
|
1858
|
+
"us_ein",
|
|
1859
|
+
"uy_ruc",
|
|
1860
|
+
"uz_tin",
|
|
1861
|
+
"uz_vat",
|
|
1862
|
+
"ve_rif",
|
|
1863
|
+
"vn_tin",
|
|
1864
|
+
"za_vat",
|
|
1865
|
+
"zm_tin",
|
|
1866
|
+
"zw_tin",
|
|
1867
|
+
]).annotate({
|
|
1868
|
+
description:
|
|
1869
|
+
"The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `au_acn`, `nz_bn`, `pt_nif`, `cz_dic`, `fr_siret`, `fr_siren`, `fr_spi`, `sm_coe`, `tt_vat`, `tt_bir`, `mu_vat`, `mz_nuit`, `au_wpn`, `md_cf`, `is_kt`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, `gh_tin`, `bw_vat`, `ci_vat`, or `unknown`",
|
|
1870
|
+
}),
|
|
1871
|
+
value: Schema.optionalKey(
|
|
1872
|
+
Schema.Union([
|
|
1873
|
+
Schema.String.annotate({
|
|
1874
|
+
description: "The value of the tax ID.",
|
|
1875
|
+
}).check(
|
|
1876
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1877
|
+
expected: "a string with at most 5000 code points",
|
|
1878
|
+
}),
|
|
1879
|
+
),
|
|
1880
|
+
Schema.Null,
|
|
1881
|
+
]),
|
|
1882
|
+
),
|
|
1883
|
+
}),
|
|
1884
|
+
[
|
|
1885
|
+
Schema.Record(
|
|
1886
|
+
Schema.String,
|
|
1887
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1888
|
+
),
|
|
1889
|
+
],
|
|
1890
|
+
).annotate({
|
|
1891
|
+
title: "InvoicesResourceInvoiceTaxID",
|
|
1892
|
+
description: "",
|
|
1893
|
+
identifier: "Stripeinvoices_resource_invoice_tax_id",
|
|
1894
|
+
});
|
|
1895
|
+
export const Stripeinvoice_line_item_period = Schema.StructWithRest(
|
|
1896
|
+
Schema.Struct({
|
|
1897
|
+
end: Schema.Number.annotate({
|
|
1898
|
+
description:
|
|
1899
|
+
"The end of the period, which must be greater than or equal to the start. This value is inclusive.",
|
|
1900
|
+
format: "unix-time",
|
|
1901
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1902
|
+
start: Schema.Number.annotate({
|
|
1903
|
+
description: "The start of the period. This value is inclusive.",
|
|
1904
|
+
format: "unix-time",
|
|
1905
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1906
|
+
}),
|
|
1907
|
+
[
|
|
1908
|
+
Schema.Record(
|
|
1909
|
+
Schema.String,
|
|
1910
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1911
|
+
),
|
|
1912
|
+
],
|
|
1913
|
+
).annotate({
|
|
1914
|
+
title: "InvoiceLineItemPeriod",
|
|
1915
|
+
description: "",
|
|
1916
|
+
identifier: "Stripeinvoice_line_item_period",
|
|
1917
|
+
});
|
|
1918
|
+
export const Stripeinvoice_payment_method_options_acss_debit_mandate_options =
|
|
1919
|
+
Schema.StructWithRest(
|
|
1920
|
+
Schema.Struct({
|
|
1921
|
+
transaction_type: Schema.optionalKey(
|
|
1922
|
+
Schema.Union([
|
|
1923
|
+
Schema.Literals(["business", "personal"]).annotate({
|
|
1924
|
+
description: "Transaction type of the mandate.",
|
|
1925
|
+
}),
|
|
1926
|
+
Schema.Null,
|
|
1927
|
+
]),
|
|
1928
|
+
),
|
|
1929
|
+
}),
|
|
1930
|
+
[
|
|
1931
|
+
Schema.Record(
|
|
1932
|
+
Schema.String,
|
|
1933
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1934
|
+
),
|
|
1935
|
+
],
|
|
1936
|
+
).annotate({
|
|
1937
|
+
title: "invoice_payment_method_options_acss_debit_mandate_options",
|
|
1938
|
+
description: "",
|
|
1939
|
+
identifier:
|
|
1940
|
+
"Stripeinvoice_payment_method_options_acss_debit_mandate_options",
|
|
1941
|
+
});
|
|
1942
|
+
export const Stripeinvoice_payment_method_options_bancontact =
|
|
1943
|
+
Schema.StructWithRest(
|
|
1944
|
+
Schema.Struct({
|
|
1945
|
+
preferred_language: Schema.Literals(["de", "en", "fr", "nl"]).annotate({
|
|
1946
|
+
description:
|
|
1947
|
+
"Preferred language of the Bancontact authorization page that the customer is redirected to.",
|
|
1948
|
+
}),
|
|
1949
|
+
}),
|
|
1950
|
+
[
|
|
1951
|
+
Schema.Record(
|
|
1952
|
+
Schema.String,
|
|
1953
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1954
|
+
),
|
|
1955
|
+
],
|
|
1956
|
+
).annotate({
|
|
1957
|
+
title: "invoice_payment_method_options_bancontact",
|
|
1958
|
+
description: "",
|
|
1959
|
+
identifier: "Stripeinvoice_payment_method_options_bancontact",
|
|
1960
|
+
});
|
|
1961
|
+
export const Stripeinvoice_payment_method_options_billie_company_details_registered_address =
|
|
1962
|
+
Schema.StructWithRest(
|
|
1963
|
+
Schema.Struct({
|
|
1964
|
+
city: Schema.optionalKey(
|
|
1965
|
+
Schema.Union([
|
|
1966
|
+
Schema.String.annotate({
|
|
1967
|
+
description: "City, district, suburb, town, or village.",
|
|
1968
|
+
}).check(
|
|
1969
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1970
|
+
expected: "a string with at most 5000 code points",
|
|
1971
|
+
}),
|
|
1972
|
+
),
|
|
1973
|
+
Schema.Null,
|
|
1974
|
+
]),
|
|
1975
|
+
),
|
|
1976
|
+
country: Schema.optionalKey(
|
|
1977
|
+
Schema.Union([
|
|
1978
|
+
Schema.String.annotate({
|
|
1979
|
+
description: "Two-letter country code.",
|
|
1980
|
+
}).check(
|
|
1981
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1982
|
+
expected: "a string with at most 5000 code points",
|
|
1983
|
+
}),
|
|
1984
|
+
),
|
|
1985
|
+
Schema.Null,
|
|
1986
|
+
]),
|
|
1987
|
+
),
|
|
1988
|
+
line1: Schema.optionalKey(
|
|
1989
|
+
Schema.Union([
|
|
1990
|
+
Schema.String.annotate({
|
|
1991
|
+
description:
|
|
1992
|
+
"Address line 1 (for example, street, PO Box, or company name).",
|
|
1993
|
+
}).check(
|
|
1994
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1995
|
+
expected: "a string with at most 5000 code points",
|
|
1996
|
+
}),
|
|
1997
|
+
),
|
|
1998
|
+
Schema.Null,
|
|
1999
|
+
]),
|
|
2000
|
+
),
|
|
2001
|
+
line2: Schema.optionalKey(
|
|
2002
|
+
Schema.Union([
|
|
2003
|
+
Schema.String.annotate({
|
|
2004
|
+
description:
|
|
2005
|
+
"Address line 2 (for example, apartment, suite, unit, or building).",
|
|
2006
|
+
}).check(
|
|
2007
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2008
|
+
expected: "a string with at most 5000 code points",
|
|
2009
|
+
}),
|
|
2010
|
+
),
|
|
2011
|
+
Schema.Null,
|
|
2012
|
+
]),
|
|
2013
|
+
),
|
|
2014
|
+
postal_code: Schema.optionalKey(
|
|
2015
|
+
Schema.Union([
|
|
2016
|
+
Schema.String.annotate({ description: "ZIP or postal code." }).check(
|
|
2017
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2018
|
+
expected: "a string with at most 5000 code points",
|
|
2019
|
+
}),
|
|
2020
|
+
),
|
|
2021
|
+
Schema.Null,
|
|
2022
|
+
]),
|
|
2023
|
+
),
|
|
2024
|
+
state: Schema.optionalKey(
|
|
2025
|
+
Schema.Union([
|
|
2026
|
+
Schema.String.annotate({
|
|
2027
|
+
description: "State, county, province, or region.",
|
|
2028
|
+
}).check(
|
|
2029
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2030
|
+
expected: "a string with at most 5000 code points",
|
|
2031
|
+
}),
|
|
2032
|
+
),
|
|
2033
|
+
Schema.Null,
|
|
2034
|
+
]),
|
|
2035
|
+
),
|
|
2036
|
+
}),
|
|
2037
|
+
[
|
|
2038
|
+
Schema.Record(
|
|
2039
|
+
Schema.String,
|
|
2040
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2041
|
+
),
|
|
2042
|
+
],
|
|
2043
|
+
).annotate({
|
|
2044
|
+
title:
|
|
2045
|
+
"invoice_payment_method_options_billie_company_details_registered_address",
|
|
2046
|
+
description: "",
|
|
2047
|
+
identifier:
|
|
2048
|
+
"Stripeinvoice_payment_method_options_billie_company_details_registered_address",
|
|
2049
|
+
});
|
|
2050
|
+
export const Stripeinvoice_payment_method_options_blik = Schema.Record(
|
|
2051
|
+
Schema.String,
|
|
2052
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2053
|
+
).annotate({
|
|
2054
|
+
title: "invoice_payment_method_options_blik",
|
|
2055
|
+
description: "",
|
|
2056
|
+
identifier: "Stripeinvoice_payment_method_options_blik",
|
|
2057
|
+
});
|
|
2058
|
+
export const Stripeinvoice_installments_card = Schema.StructWithRest(
|
|
2059
|
+
Schema.Struct({
|
|
2060
|
+
enabled: Schema.optionalKey(
|
|
2061
|
+
Schema.Union([
|
|
2062
|
+
Schema.Boolean.annotate({
|
|
2063
|
+
description: "Whether Installments are enabled for this Invoice.",
|
|
2064
|
+
}),
|
|
2065
|
+
Schema.Null,
|
|
2066
|
+
]),
|
|
2067
|
+
),
|
|
2068
|
+
}),
|
|
2069
|
+
[
|
|
2070
|
+
Schema.Record(
|
|
2071
|
+
Schema.String,
|
|
2072
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2073
|
+
),
|
|
2074
|
+
],
|
|
2075
|
+
).annotate({
|
|
2076
|
+
title: "invoice_installments_card",
|
|
2077
|
+
description: "",
|
|
2078
|
+
identifier: "Stripeinvoice_installments_card",
|
|
2079
|
+
});
|
|
2080
|
+
export const Stripeinvoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer =
|
|
2081
|
+
Schema.StructWithRest(
|
|
2082
|
+
Schema.Struct({
|
|
2083
|
+
country: Schema.Literals(["BE", "DE", "ES", "FR", "IE", "NL"]).annotate({
|
|
2084
|
+
description:
|
|
2085
|
+
"The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.",
|
|
2086
|
+
}),
|
|
2087
|
+
}),
|
|
2088
|
+
[
|
|
2089
|
+
Schema.Record(
|
|
2090
|
+
Schema.String,
|
|
2091
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2092
|
+
),
|
|
2093
|
+
],
|
|
2094
|
+
).annotate({
|
|
2095
|
+
title:
|
|
2096
|
+
"invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer",
|
|
2097
|
+
description: "",
|
|
2098
|
+
identifier:
|
|
2099
|
+
"Stripeinvoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer",
|
|
2100
|
+
});
|
|
2101
|
+
export const Stripeinvoice_payment_method_options_konbini = Schema.Record(
|
|
2102
|
+
Schema.String,
|
|
2103
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2104
|
+
).annotate({
|
|
2105
|
+
title: "invoice_payment_method_options_konbini",
|
|
2106
|
+
description: "",
|
|
2107
|
+
identifier: "Stripeinvoice_payment_method_options_konbini",
|
|
2108
|
+
});
|
|
2109
|
+
export const Stripeinvoice_mandate_options_payto = Schema.StructWithRest(
|
|
2110
|
+
Schema.Struct({
|
|
2111
|
+
amount: Schema.optionalKey(
|
|
2112
|
+
Schema.Union([
|
|
2113
|
+
Schema.Number.annotate({
|
|
2114
|
+
description:
|
|
2115
|
+
"The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.",
|
|
2116
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2117
|
+
Schema.Null,
|
|
2118
|
+
]),
|
|
2119
|
+
),
|
|
2120
|
+
amount_type: Schema.optionalKey(
|
|
2121
|
+
Schema.Union([
|
|
2122
|
+
Schema.Literals(["fixed", "maximum"]).annotate({
|
|
2123
|
+
description: "Only `maximum` is supported.",
|
|
2124
|
+
}),
|
|
2125
|
+
Schema.Null,
|
|
2126
|
+
]),
|
|
2127
|
+
),
|
|
2128
|
+
purpose: Schema.optionalKey(
|
|
2129
|
+
Schema.Union([
|
|
2130
|
+
Schema.Literals([
|
|
2131
|
+
"dependant_support",
|
|
2132
|
+
"government",
|
|
2133
|
+
"loan",
|
|
2134
|
+
"mortgage",
|
|
2135
|
+
"other",
|
|
2136
|
+
"pension",
|
|
2137
|
+
"personal",
|
|
2138
|
+
"retail",
|
|
2139
|
+
"salary",
|
|
2140
|
+
"tax",
|
|
2141
|
+
"utility",
|
|
2142
|
+
]).annotate({
|
|
2143
|
+
description:
|
|
2144
|
+
"The purpose for which payments are made. Has a default value based on your merchant category code.",
|
|
2145
|
+
}),
|
|
2146
|
+
Schema.Null,
|
|
2147
|
+
]),
|
|
2148
|
+
),
|
|
2149
|
+
}),
|
|
2150
|
+
[
|
|
2151
|
+
Schema.Record(
|
|
2152
|
+
Schema.String,
|
|
2153
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2154
|
+
),
|
|
2155
|
+
],
|
|
2156
|
+
).annotate({
|
|
2157
|
+
title: "invoice_mandate_options_payto",
|
|
2158
|
+
description: "",
|
|
2159
|
+
identifier: "Stripeinvoice_mandate_options_payto",
|
|
2160
|
+
});
|
|
2161
|
+
export const Stripeinvoice_payment_method_options_pix = Schema.StructWithRest(
|
|
2162
|
+
Schema.Struct({
|
|
2163
|
+
amount_includes_iof: Schema.optionalKey(
|
|
2164
|
+
Schema.Union([
|
|
2165
|
+
Schema.Literals(["always", "never"]).annotate({
|
|
2166
|
+
description: "Determines if the amount includes the IOF tax.",
|
|
2167
|
+
}),
|
|
2168
|
+
Schema.Null,
|
|
2169
|
+
]),
|
|
2170
|
+
),
|
|
2171
|
+
expires_after_seconds: Schema.optionalKey(
|
|
2172
|
+
Schema.Number.annotate({
|
|
2173
|
+
description:
|
|
2174
|
+
"The number of seconds after PaymentIntent confirmation when the Pix expires (between 60 and 1209600, inclusive). If unspecified, defaults to 14400 seconds (4 hours).",
|
|
2175
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2176
|
+
),
|
|
2177
|
+
}),
|
|
2178
|
+
[
|
|
2179
|
+
Schema.Record(
|
|
2180
|
+
Schema.String,
|
|
2181
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2182
|
+
),
|
|
2183
|
+
],
|
|
2184
|
+
).annotate({
|
|
2185
|
+
title: "invoice_payment_method_options_pix",
|
|
2186
|
+
description: "",
|
|
2187
|
+
identifier: "Stripeinvoice_payment_method_options_pix",
|
|
2188
|
+
});
|
|
2189
|
+
export const Stripeinvoice_payment_method_options_sepa_debit = Schema.Record(
|
|
2190
|
+
Schema.String,
|
|
2191
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2192
|
+
).annotate({
|
|
2193
|
+
title: "invoice_payment_method_options_sepa_debit",
|
|
2194
|
+
description: "",
|
|
2195
|
+
identifier: "Stripeinvoice_payment_method_options_sepa_debit",
|
|
2196
|
+
});
|
|
2197
|
+
export const Stripeinvoice_payment_method_options_mandate_options_upi =
|
|
2198
|
+
Schema.StructWithRest(
|
|
2199
|
+
Schema.Struct({
|
|
2200
|
+
amount: Schema.optionalKey(
|
|
2201
|
+
Schema.Union([
|
|
2202
|
+
Schema.Number.annotate({
|
|
2203
|
+
description: "Amount to be charged for future payments.",
|
|
2204
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2205
|
+
Schema.Null,
|
|
2206
|
+
]),
|
|
2207
|
+
),
|
|
2208
|
+
amount_type: Schema.optionalKey(
|
|
2209
|
+
Schema.Union([
|
|
2210
|
+
Schema.Literals(["fixed", "maximum"]).annotate({
|
|
2211
|
+
description:
|
|
2212
|
+
"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.",
|
|
2213
|
+
}),
|
|
2214
|
+
Schema.Null,
|
|
2215
|
+
]),
|
|
2216
|
+
),
|
|
2217
|
+
description: Schema.optionalKey(
|
|
2218
|
+
Schema.Union([
|
|
2219
|
+
Schema.String.annotate({
|
|
2220
|
+
description:
|
|
2221
|
+
"A description of the mandate or subscription that is meant to be displayed to the customer.",
|
|
2222
|
+
}).check(
|
|
2223
|
+
Schema.isMaxCodePoints(20).annotate({
|
|
2224
|
+
expected: "a string with at most 20 code points",
|
|
2225
|
+
}),
|
|
2226
|
+
),
|
|
2227
|
+
Schema.Null,
|
|
2228
|
+
]),
|
|
2229
|
+
),
|
|
2230
|
+
end_date: Schema.optionalKey(
|
|
2231
|
+
Schema.Union([
|
|
2232
|
+
Schema.Number.annotate({
|
|
2233
|
+
description: "End date of the mandate or subscription.",
|
|
2234
|
+
format: "unix-time",
|
|
2235
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2236
|
+
Schema.Null,
|
|
2237
|
+
]),
|
|
2238
|
+
),
|
|
2239
|
+
}),
|
|
2240
|
+
[
|
|
2241
|
+
Schema.Record(
|
|
2242
|
+
Schema.String,
|
|
2243
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2244
|
+
),
|
|
2245
|
+
],
|
|
2246
|
+
).annotate({
|
|
2247
|
+
title: "invoice_payment_method_options_mandate_options_upi",
|
|
2248
|
+
description: "",
|
|
2249
|
+
identifier: "Stripeinvoice_payment_method_options_mandate_options_upi",
|
|
2250
|
+
});
|
|
2251
|
+
export const Stripeinvoice_payment_method_options_us_bank_account_linked_account_options_filters =
|
|
2252
|
+
Schema.StructWithRest(
|
|
2253
|
+
Schema.Struct({
|
|
2254
|
+
account_subcategories: Schema.optionalKey(
|
|
2255
|
+
Schema.Array(Schema.Literals(["checking", "savings"])).annotate({
|
|
2256
|
+
description:
|
|
2257
|
+
"The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.",
|
|
2258
|
+
}),
|
|
2259
|
+
),
|
|
2260
|
+
}),
|
|
2261
|
+
[
|
|
2262
|
+
Schema.Record(
|
|
2263
|
+
Schema.String,
|
|
2264
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2265
|
+
),
|
|
2266
|
+
],
|
|
2267
|
+
).annotate({
|
|
2268
|
+
title:
|
|
2269
|
+
"invoice_payment_method_options_us_bank_account_linked_account_options_filters",
|
|
2270
|
+
description: "",
|
|
2271
|
+
identifier:
|
|
2272
|
+
"Stripeinvoice_payment_method_options_us_bank_account_linked_account_options_filters",
|
|
2273
|
+
});
|
|
2274
|
+
export const Stripeinvoices_payments_invoice_payment_associated_payment =
|
|
2275
|
+
Schema.suspend(
|
|
2276
|
+
(): Schema.Codec<Stripeinvoices_payments_invoice_payment_associated_payment> =>
|
|
2277
|
+
Schema.StructWithRest(
|
|
2278
|
+
Schema.Struct({
|
|
2279
|
+
charge: Schema.optionalKey(
|
|
2280
|
+
Schema.Union([
|
|
2281
|
+
Schema.String.check(
|
|
2282
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2283
|
+
expected: "a string with at most 5000 code points",
|
|
2284
|
+
}),
|
|
2285
|
+
),
|
|
2286
|
+
Stripecharge,
|
|
2287
|
+
]).annotate({
|
|
2288
|
+
description:
|
|
2289
|
+
"ID of the successful charge for this payment when `type` is `charge`. Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead.",
|
|
2290
|
+
}),
|
|
2291
|
+
),
|
|
2292
|
+
payment_intent: Schema.optionalKey(
|
|
2293
|
+
Schema.Union([
|
|
2294
|
+
Schema.String.check(
|
|
2295
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2296
|
+
expected: "a string with at most 5000 code points",
|
|
2297
|
+
}),
|
|
2298
|
+
),
|
|
2299
|
+
Stripepayment_intent,
|
|
2300
|
+
]).annotate({
|
|
2301
|
+
description:
|
|
2302
|
+
"ID of the PaymentIntent associated with this payment when `type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019.",
|
|
2303
|
+
}),
|
|
2304
|
+
),
|
|
2305
|
+
payment_record: Schema.optionalKey(
|
|
2306
|
+
Schema.Union([
|
|
2307
|
+
Schema.String.check(
|
|
2308
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2309
|
+
expected: "a string with at most 5000 code points",
|
|
2310
|
+
}),
|
|
2311
|
+
),
|
|
2312
|
+
Stripepayment_record,
|
|
2313
|
+
]).annotate({
|
|
2314
|
+
description:
|
|
2315
|
+
"ID of the PaymentRecord associated with this payment when `type` is `payment_record`.",
|
|
2316
|
+
}),
|
|
2317
|
+
),
|
|
2318
|
+
type: Schema.Literals([
|
|
2319
|
+
"charge",
|
|
2320
|
+
"payment_intent",
|
|
2321
|
+
"payment_record",
|
|
2322
|
+
]).annotate({
|
|
2323
|
+
description:
|
|
2324
|
+
"Type of payment object associated with this invoice payment.",
|
|
2325
|
+
}),
|
|
2326
|
+
}),
|
|
2327
|
+
[
|
|
2328
|
+
Schema.Record(
|
|
2329
|
+
Schema.String,
|
|
2330
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2331
|
+
),
|
|
2332
|
+
],
|
|
2333
|
+
).annotate({
|
|
2334
|
+
title: "InvoicesPaymentsInvoicePaymentAssociatedPayment",
|
|
2335
|
+
description: "",
|
|
2336
|
+
identifier:
|
|
2337
|
+
"Stripeinvoices_payments_invoice_payment_associated_payment",
|
|
2338
|
+
}),
|
|
2339
|
+
);
|
|
2340
|
+
export const Stripeinvoices_payments_invoice_payment_status_transitions =
|
|
2341
|
+
Schema.StructWithRest(
|
|
2342
|
+
Schema.Struct({
|
|
2343
|
+
canceled_at: Schema.optionalKey(
|
|
2344
|
+
Schema.Union([
|
|
2345
|
+
Schema.Number.annotate({
|
|
2346
|
+
description: "The time that the payment was canceled.",
|
|
2347
|
+
format: "unix-time",
|
|
2348
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2349
|
+
Schema.Null,
|
|
2350
|
+
]),
|
|
2351
|
+
),
|
|
2352
|
+
paid_at: Schema.optionalKey(
|
|
2353
|
+
Schema.Union([
|
|
2354
|
+
Schema.Number.annotate({
|
|
2355
|
+
description: "The time that the payment succeeded.",
|
|
2356
|
+
format: "unix-time",
|
|
2357
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2358
|
+
Schema.Null,
|
|
2359
|
+
]),
|
|
2360
|
+
),
|
|
2361
|
+
}),
|
|
2362
|
+
[
|
|
2363
|
+
Schema.Record(
|
|
2364
|
+
Schema.String,
|
|
2365
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2366
|
+
),
|
|
2367
|
+
],
|
|
2368
|
+
).annotate({
|
|
2369
|
+
title: "InvoicesPaymentsInvoicePaymentStatusTransitions",
|
|
2370
|
+
description: "",
|
|
2371
|
+
identifier: "Stripeinvoices_payments_invoice_payment_status_transitions",
|
|
2372
|
+
});
|
|
2373
|
+
export const Stripeinvoice_rendering_pdf = Schema.StructWithRest(
|
|
2374
|
+
Schema.Struct({
|
|
2375
|
+
page_size: Schema.optionalKey(
|
|
2376
|
+
Schema.Union([
|
|
2377
|
+
Schema.Literals(["a4", "auto", "letter"]).annotate({
|
|
2378
|
+
description:
|
|
2379
|
+
"Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.",
|
|
2380
|
+
}),
|
|
2381
|
+
Schema.Null,
|
|
2382
|
+
]),
|
|
2383
|
+
),
|
|
2384
|
+
}),
|
|
2385
|
+
[
|
|
2386
|
+
Schema.Record(
|
|
2387
|
+
Schema.String,
|
|
2388
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2389
|
+
),
|
|
2390
|
+
],
|
|
2391
|
+
).annotate({
|
|
2392
|
+
title: "Invoice Rendering Pdf Resource",
|
|
2393
|
+
description: "",
|
|
2394
|
+
identifier: "Stripeinvoice_rendering_pdf",
|
|
2395
|
+
});
|
|
2396
|
+
export const Stripeinvoices_resource_uncollectible_status_details =
|
|
2397
|
+
Schema.StructWithRest(
|
|
2398
|
+
Schema.Struct({
|
|
2399
|
+
reason: Schema.optionalKey(
|
|
2400
|
+
Schema.Union([
|
|
2401
|
+
Schema.Literals([
|
|
2402
|
+
"max_payment_attempts",
|
|
2403
|
+
"payment_not_received",
|
|
2404
|
+
"subscription_canceled",
|
|
2405
|
+
"subscription_paused",
|
|
2406
|
+
"user_forgiven",
|
|
2407
|
+
]).annotate({
|
|
2408
|
+
description: "The reason why the invoice is uncollectible.",
|
|
2409
|
+
}),
|
|
2410
|
+
Schema.Null,
|
|
2411
|
+
]),
|
|
2412
|
+
),
|
|
2413
|
+
}),
|
|
2414
|
+
[
|
|
2415
|
+
Schema.Record(
|
|
2416
|
+
Schema.String,
|
|
2417
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2418
|
+
),
|
|
2419
|
+
],
|
|
2420
|
+
).annotate({
|
|
2421
|
+
title: "InvoicesResourceUncollectibleStatusDetails",
|
|
2422
|
+
description: "",
|
|
2423
|
+
identifier: "Stripeinvoices_resource_uncollectible_status_details",
|
|
2424
|
+
});
|
|
2425
|
+
export const Stripeinvoices_resource_status_transitions = Schema.StructWithRest(
|
|
2426
|
+
Schema.Struct({
|
|
2427
|
+
finalized_at: Schema.optionalKey(
|
|
2428
|
+
Schema.Union([
|
|
2429
|
+
Schema.Number.annotate({
|
|
2430
|
+
description: "The time that the invoice draft was finalized.",
|
|
2431
|
+
format: "unix-time",
|
|
2432
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2433
|
+
Schema.Null,
|
|
2434
|
+
]),
|
|
2435
|
+
),
|
|
2436
|
+
marked_uncollectible_at: Schema.optionalKey(
|
|
2437
|
+
Schema.Union([
|
|
2438
|
+
Schema.Number.annotate({
|
|
2439
|
+
description: "The time that the invoice was marked uncollectible.",
|
|
2440
|
+
format: "unix-time",
|
|
2441
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2442
|
+
Schema.Null,
|
|
2443
|
+
]),
|
|
2444
|
+
),
|
|
2445
|
+
paid_at: Schema.optionalKey(
|
|
2446
|
+
Schema.Union([
|
|
2447
|
+
Schema.Number.annotate({
|
|
2448
|
+
description: "The time that the invoice was paid.",
|
|
2449
|
+
format: "unix-time",
|
|
2450
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2451
|
+
Schema.Null,
|
|
2452
|
+
]),
|
|
2453
|
+
),
|
|
2454
|
+
voided_at: Schema.optionalKey(
|
|
2455
|
+
Schema.Union([
|
|
2456
|
+
Schema.Number.annotate({
|
|
2457
|
+
description: "The time that the invoice was voided.",
|
|
2458
|
+
format: "unix-time",
|
|
2459
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2460
|
+
Schema.Null,
|
|
2461
|
+
]),
|
|
2462
|
+
),
|
|
2463
|
+
}),
|
|
2464
|
+
[
|
|
2465
|
+
Schema.Record(
|
|
2466
|
+
Schema.String,
|
|
2467
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2468
|
+
),
|
|
2469
|
+
],
|
|
2470
|
+
).annotate({
|
|
2471
|
+
title: "InvoicesResourceStatusTransitions",
|
|
2472
|
+
description: "",
|
|
2473
|
+
identifier: "Stripeinvoices_resource_status_transitions",
|
|
2474
|
+
});
|
|
2475
|
+
export const Stripeinvoice_item_threshold_reason = Schema.StructWithRest(
|
|
2476
|
+
Schema.Struct({
|
|
2477
|
+
line_item_ids: Schema.Array(
|
|
2478
|
+
Schema.String.check(
|
|
2479
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2480
|
+
expected: "a string with at most 5000 code points",
|
|
2481
|
+
}),
|
|
2482
|
+
),
|
|
2483
|
+
).annotate({
|
|
2484
|
+
description:
|
|
2485
|
+
"The IDs of the line items that triggered the threshold invoice.",
|
|
2486
|
+
}),
|
|
2487
|
+
usage_gte: Schema.Number.annotate({
|
|
2488
|
+
description:
|
|
2489
|
+
"The quantity threshold boundary that applied to the given line item.",
|
|
2490
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2491
|
+
}),
|
|
2492
|
+
[
|
|
2493
|
+
Schema.Record(
|
|
2494
|
+
Schema.String,
|
|
2495
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2496
|
+
),
|
|
2497
|
+
],
|
|
2498
|
+
).annotate({
|
|
2499
|
+
title: "InvoiceItemThresholdReason",
|
|
2500
|
+
description: "",
|
|
2501
|
+
identifier: "Stripeinvoice_item_threshold_reason",
|
|
2502
|
+
});
|
|
2503
|
+
export const Stripeinvoice_mandate_options_card = Schema.StructWithRest(
|
|
2504
|
+
Schema.Struct({
|
|
2505
|
+
amount: Schema.optionalKey(
|
|
2506
|
+
Schema.Union([
|
|
2507
|
+
Schema.Number.annotate({
|
|
2508
|
+
description:
|
|
2509
|
+
"Amount to be charged for future payments, specified in the presentment currency.",
|
|
2510
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2511
|
+
Schema.Null,
|
|
2512
|
+
]),
|
|
2513
|
+
),
|
|
2514
|
+
amount_type: Schema.optionalKey(
|
|
2515
|
+
Schema.Union([
|
|
2516
|
+
Schema.Literals(["fixed", "maximum"]).annotate({
|
|
2517
|
+
description:
|
|
2518
|
+
"One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.",
|
|
2519
|
+
}),
|
|
2520
|
+
Schema.Null,
|
|
2521
|
+
]),
|
|
2522
|
+
),
|
|
2523
|
+
description: Schema.optionalKey(
|
|
2524
|
+
Schema.Union([
|
|
2525
|
+
Schema.String.annotate({
|
|
2526
|
+
description:
|
|
2527
|
+
"A description of the mandate or subscription that is meant to be displayed to the customer.",
|
|
2528
|
+
}).check(
|
|
2529
|
+
Schema.isMaxCodePoints(200).annotate({
|
|
2530
|
+
expected: "a string with at most 200 code points",
|
|
2531
|
+
}),
|
|
2532
|
+
),
|
|
2533
|
+
Schema.Null,
|
|
2534
|
+
]),
|
|
2535
|
+
),
|
|
2536
|
+
}),
|
|
2537
|
+
[
|
|
2538
|
+
Schema.Record(
|
|
2539
|
+
Schema.String,
|
|
2540
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2541
|
+
),
|
|
2542
|
+
],
|
|
2543
|
+
).annotate({
|
|
2544
|
+
title: "invoice_mandate_options_card",
|
|
2545
|
+
description: "",
|
|
2546
|
+
identifier: "Stripeinvoice_mandate_options_card",
|
|
2547
|
+
});
|
|
2548
|
+
export const Stripeinvoice_setting_checkout_rendering_options =
|
|
2549
|
+
Schema.StructWithRest(
|
|
2550
|
+
Schema.Struct({
|
|
2551
|
+
amount_tax_display: Schema.optionalKey(
|
|
2552
|
+
Schema.Union([
|
|
2553
|
+
Schema.String.annotate({
|
|
2554
|
+
description:
|
|
2555
|
+
"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.",
|
|
2556
|
+
}).check(
|
|
2557
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2558
|
+
expected: "a string with at most 5000 code points",
|
|
2559
|
+
}),
|
|
2560
|
+
),
|
|
2561
|
+
Schema.Null,
|
|
2562
|
+
]),
|
|
2563
|
+
),
|
|
2564
|
+
template: Schema.optionalKey(
|
|
2565
|
+
Schema.Union([
|
|
2566
|
+
Schema.String.annotate({
|
|
2567
|
+
description:
|
|
2568
|
+
"ID of the invoice rendering template to be used for the generated invoice.",
|
|
2569
|
+
}).check(
|
|
2570
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2571
|
+
expected: "a string with at most 5000 code points",
|
|
2572
|
+
}),
|
|
2573
|
+
),
|
|
2574
|
+
Schema.Null,
|
|
2575
|
+
]),
|
|
2576
|
+
),
|
|
2577
|
+
}),
|
|
2578
|
+
[
|
|
2579
|
+
Schema.Record(
|
|
2580
|
+
Schema.String,
|
|
2581
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2582
|
+
),
|
|
2583
|
+
],
|
|
2584
|
+
).annotate({
|
|
2585
|
+
title: "invoice_setting_checkout_rendering_options",
|
|
2586
|
+
description: "",
|
|
2587
|
+
identifier: "Stripeinvoice_setting_checkout_rendering_options",
|
|
2588
|
+
});
|
|
2589
|
+
export const Stripeinvoice_setting_customer_setting = Schema.suspend(
|
|
2590
|
+
(): Schema.Codec<Stripeinvoice_setting_customer_setting> =>
|
|
2591
|
+
Schema.StructWithRest(
|
|
2592
|
+
Schema.Struct({
|
|
2593
|
+
custom_fields: Schema.optionalKey(
|
|
2594
|
+
Schema.Union([
|
|
2595
|
+
Schema.Array(Stripeinvoice_setting_custom_field).annotate({
|
|
2596
|
+
description:
|
|
2597
|
+
"Default custom fields to be displayed on invoices for this customer.",
|
|
2598
|
+
}),
|
|
2599
|
+
Schema.Null,
|
|
2600
|
+
]),
|
|
2601
|
+
),
|
|
2602
|
+
default_payment_method: Schema.optionalKey(
|
|
2603
|
+
Schema.Union([
|
|
2604
|
+
Schema.Union([
|
|
2605
|
+
Schema.String.check(
|
|
2606
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2607
|
+
expected: "a string with at most 5000 code points",
|
|
2608
|
+
}),
|
|
2609
|
+
),
|
|
2610
|
+
Stripepayment_method,
|
|
2611
|
+
Schema.Null,
|
|
2612
|
+
]).annotate({
|
|
2613
|
+
description:
|
|
2614
|
+
"ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.",
|
|
2615
|
+
}),
|
|
2616
|
+
Schema.Null,
|
|
2617
|
+
]),
|
|
2618
|
+
),
|
|
2619
|
+
footer: Schema.optionalKey(
|
|
2620
|
+
Schema.Union([
|
|
2621
|
+
Schema.String.annotate({
|
|
2622
|
+
description:
|
|
2623
|
+
"Default footer to be displayed on invoices for this customer.",
|
|
2624
|
+
}).check(
|
|
2625
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2626
|
+
expected: "a string with at most 5000 code points",
|
|
2627
|
+
}),
|
|
2628
|
+
),
|
|
2629
|
+
Schema.Null,
|
|
2630
|
+
]),
|
|
2631
|
+
),
|
|
2632
|
+
rendering_options: Schema.optionalKey(
|
|
2633
|
+
Schema.Union([
|
|
2634
|
+
Schema.Union([
|
|
2635
|
+
Stripeinvoice_setting_customer_rendering_options,
|
|
2636
|
+
Schema.Null,
|
|
2637
|
+
]).annotate({
|
|
2638
|
+
description:
|
|
2639
|
+
"Default options for invoice PDF rendering for this customer.",
|
|
2640
|
+
}),
|
|
2641
|
+
Schema.Null,
|
|
2642
|
+
]),
|
|
2643
|
+
),
|
|
2644
|
+
}),
|
|
2645
|
+
[
|
|
2646
|
+
Schema.Record(
|
|
2647
|
+
Schema.String,
|
|
2648
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2649
|
+
),
|
|
2650
|
+
],
|
|
2651
|
+
).annotate({
|
|
2652
|
+
title: "InvoiceSettingCustomerSetting",
|
|
2653
|
+
description: "",
|
|
2654
|
+
identifier: "Stripeinvoice_setting_customer_setting",
|
|
2655
|
+
}),
|
|
2656
|
+
);
|
|
2657
|
+
export const Stripeinvoice_setting_quote_setting = Schema.suspend(
|
|
2658
|
+
(): Schema.Codec<Stripeinvoice_setting_quote_setting> =>
|
|
2659
|
+
Schema.StructWithRest(
|
|
2660
|
+
Schema.Struct({
|
|
2661
|
+
custom_fields: Schema.optionalKey(
|
|
2662
|
+
Schema.Union([
|
|
2663
|
+
Schema.Array(Stripeinvoice_setting_custom_field).annotate({
|
|
2664
|
+
description:
|
|
2665
|
+
"A list of up to 4 custom fields to be displayed on the invoice.",
|
|
2666
|
+
}),
|
|
2667
|
+
Schema.Null,
|
|
2668
|
+
]),
|
|
2669
|
+
),
|
|
2670
|
+
days_until_due: Schema.optionalKey(
|
|
2671
|
+
Schema.Union([
|
|
2672
|
+
Schema.Number.annotate({
|
|
2673
|
+
description:
|
|
2674
|
+
"Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.",
|
|
2675
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2676
|
+
Schema.Null,
|
|
2677
|
+
]),
|
|
2678
|
+
),
|
|
2679
|
+
description: Schema.optionalKey(
|
|
2680
|
+
Schema.Union([
|
|
2681
|
+
Schema.String.annotate({
|
|
2682
|
+
description:
|
|
2683
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
2684
|
+
}).check(
|
|
2685
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2686
|
+
expected: "a string with at most 5000 code points",
|
|
2687
|
+
}),
|
|
2688
|
+
),
|
|
2689
|
+
Schema.Null,
|
|
2690
|
+
]),
|
|
2691
|
+
),
|
|
2692
|
+
footer: Schema.optionalKey(
|
|
2693
|
+
Schema.Union([
|
|
2694
|
+
Schema.String.annotate({
|
|
2695
|
+
description: "Footer to be displayed on the invoice.",
|
|
2696
|
+
}).check(
|
|
2697
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2698
|
+
expected: "a string with at most 5000 code points",
|
|
2699
|
+
}),
|
|
2700
|
+
),
|
|
2701
|
+
Schema.Null,
|
|
2702
|
+
]),
|
|
2703
|
+
),
|
|
2704
|
+
issuer: Stripeconnect_account_reference,
|
|
2705
|
+
}),
|
|
2706
|
+
[
|
|
2707
|
+
Schema.Record(
|
|
2708
|
+
Schema.String,
|
|
2709
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2710
|
+
),
|
|
2711
|
+
],
|
|
2712
|
+
).annotate({
|
|
2713
|
+
title: "InvoiceSettingQuoteSetting",
|
|
2714
|
+
description: "",
|
|
2715
|
+
identifier: "Stripeinvoice_setting_quote_setting",
|
|
2716
|
+
}),
|
|
2717
|
+
);
|
|
2718
|
+
export const Stripeinvoice_setting_subscription_schedule_setting =
|
|
2719
|
+
Schema.suspend(
|
|
2720
|
+
(): Schema.Codec<Stripeinvoice_setting_subscription_schedule_setting> =>
|
|
2721
|
+
Schema.StructWithRest(
|
|
2722
|
+
Schema.Struct({
|
|
2723
|
+
account_tax_ids: Schema.optionalKey(
|
|
2724
|
+
Schema.Union([
|
|
2725
|
+
Schema.Array(
|
|
2726
|
+
Schema.Union([
|
|
2727
|
+
Schema.String.check(
|
|
2728
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2729
|
+
expected: "a string with at most 5000 code points",
|
|
2730
|
+
}),
|
|
2731
|
+
),
|
|
2732
|
+
Stripetax_id,
|
|
2733
|
+
Stripedeleted_tax_id,
|
|
2734
|
+
]),
|
|
2735
|
+
).annotate({
|
|
2736
|
+
description:
|
|
2737
|
+
"The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.",
|
|
2738
|
+
}),
|
|
2739
|
+
Schema.Null,
|
|
2740
|
+
]),
|
|
2741
|
+
),
|
|
2742
|
+
custom_fields: Schema.optionalKey(
|
|
2743
|
+
Schema.Union([
|
|
2744
|
+
Schema.Array(Stripeinvoice_setting_custom_field).annotate({
|
|
2745
|
+
description:
|
|
2746
|
+
"A list of up to 4 custom fields to be displayed on the invoice.",
|
|
2747
|
+
}),
|
|
2748
|
+
Schema.Null,
|
|
2749
|
+
]),
|
|
2750
|
+
),
|
|
2751
|
+
days_until_due: Schema.optionalKey(
|
|
2752
|
+
Schema.Union([
|
|
2753
|
+
Schema.Number.annotate({
|
|
2754
|
+
description:
|
|
2755
|
+
"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.",
|
|
2756
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2757
|
+
Schema.Null,
|
|
2758
|
+
]),
|
|
2759
|
+
),
|
|
2760
|
+
description: Schema.optionalKey(
|
|
2761
|
+
Schema.Union([
|
|
2762
|
+
Schema.String.annotate({
|
|
2763
|
+
description:
|
|
2764
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
2765
|
+
}).check(
|
|
2766
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2767
|
+
expected: "a string with at most 5000 code points",
|
|
2768
|
+
}),
|
|
2769
|
+
),
|
|
2770
|
+
Schema.Null,
|
|
2771
|
+
]),
|
|
2772
|
+
),
|
|
2773
|
+
footer: Schema.optionalKey(
|
|
2774
|
+
Schema.Union([
|
|
2775
|
+
Schema.String.annotate({
|
|
2776
|
+
description: "Footer to be displayed on the invoice.",
|
|
2777
|
+
}).check(
|
|
2778
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2779
|
+
expected: "a string with at most 5000 code points",
|
|
2780
|
+
}),
|
|
2781
|
+
),
|
|
2782
|
+
Schema.Null,
|
|
2783
|
+
]),
|
|
2784
|
+
),
|
|
2785
|
+
issuer: Stripeconnect_account_reference,
|
|
2786
|
+
}),
|
|
2787
|
+
[
|
|
2788
|
+
Schema.Record(
|
|
2789
|
+
Schema.String,
|
|
2790
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2791
|
+
),
|
|
2792
|
+
],
|
|
2793
|
+
).annotate({
|
|
2794
|
+
title: "InvoiceSettingSubscriptionScheduleSetting",
|
|
2795
|
+
description: "",
|
|
2796
|
+
identifier: "Stripeinvoice_setting_subscription_schedule_setting",
|
|
2797
|
+
}),
|
|
2798
|
+
);
|
|
2799
|
+
export const Stripeinvoice_setting_subscription_schedule_phase_setting =
|
|
2800
|
+
Schema.suspend(
|
|
2801
|
+
(): Schema.Codec<Stripeinvoice_setting_subscription_schedule_phase_setting> =>
|
|
2802
|
+
Schema.StructWithRest(
|
|
2803
|
+
Schema.Struct({
|
|
2804
|
+
account_tax_ids: Schema.optionalKey(
|
|
2805
|
+
Schema.Union([
|
|
2806
|
+
Schema.Array(
|
|
2807
|
+
Schema.Union([
|
|
2808
|
+
Schema.String.check(
|
|
2809
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2810
|
+
expected: "a string with at most 5000 code points",
|
|
2811
|
+
}),
|
|
2812
|
+
),
|
|
2813
|
+
Stripetax_id,
|
|
2814
|
+
Stripedeleted_tax_id,
|
|
2815
|
+
]),
|
|
2816
|
+
).annotate({
|
|
2817
|
+
description:
|
|
2818
|
+
"The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.",
|
|
2819
|
+
}),
|
|
2820
|
+
Schema.Null,
|
|
2821
|
+
]),
|
|
2822
|
+
),
|
|
2823
|
+
custom_fields: Schema.optionalKey(
|
|
2824
|
+
Schema.Union([
|
|
2825
|
+
Schema.Array(Stripeinvoice_setting_custom_field).annotate({
|
|
2826
|
+
description:
|
|
2827
|
+
"A list of up to 4 custom fields to be displayed on the invoice.",
|
|
2828
|
+
}),
|
|
2829
|
+
Schema.Null,
|
|
2830
|
+
]),
|
|
2831
|
+
),
|
|
2832
|
+
days_until_due: Schema.optionalKey(
|
|
2833
|
+
Schema.Union([
|
|
2834
|
+
Schema.Number.annotate({
|
|
2835
|
+
description:
|
|
2836
|
+
"Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.",
|
|
2837
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
2838
|
+
Schema.Null,
|
|
2839
|
+
]),
|
|
2840
|
+
),
|
|
2841
|
+
description: Schema.optionalKey(
|
|
2842
|
+
Schema.Union([
|
|
2843
|
+
Schema.String.annotate({
|
|
2844
|
+
description:
|
|
2845
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
2846
|
+
}).check(
|
|
2847
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2848
|
+
expected: "a string with at most 5000 code points",
|
|
2849
|
+
}),
|
|
2850
|
+
),
|
|
2851
|
+
Schema.Null,
|
|
2852
|
+
]),
|
|
2853
|
+
),
|
|
2854
|
+
footer: Schema.optionalKey(
|
|
2855
|
+
Schema.Union([
|
|
2856
|
+
Schema.String.annotate({
|
|
2857
|
+
description: "Footer to be displayed on the invoice.",
|
|
2858
|
+
}).check(
|
|
2859
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2860
|
+
expected: "a string with at most 5000 code points",
|
|
2861
|
+
}),
|
|
2862
|
+
),
|
|
2863
|
+
Schema.Null,
|
|
2864
|
+
]),
|
|
2865
|
+
),
|
|
2866
|
+
issuer: Schema.optionalKey(
|
|
2867
|
+
Schema.Union([
|
|
2868
|
+
Schema.Union([Stripeconnect_account_reference]).annotate({
|
|
2869
|
+
description:
|
|
2870
|
+
"The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.",
|
|
2871
|
+
}),
|
|
2872
|
+
Schema.Null,
|
|
2873
|
+
]),
|
|
2874
|
+
),
|
|
2875
|
+
}),
|
|
2876
|
+
[
|
|
2877
|
+
Schema.Record(
|
|
2878
|
+
Schema.String,
|
|
2879
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2880
|
+
),
|
|
2881
|
+
],
|
|
2882
|
+
).annotate({
|
|
2883
|
+
title: "InvoiceSettingSubscriptionSchedulePhaseSetting",
|
|
2884
|
+
description: "",
|
|
2885
|
+
identifier: "Stripeinvoice_setting_subscription_schedule_phase_setting",
|
|
2886
|
+
}),
|
|
2887
|
+
);
|
|
2888
|
+
export const Stripeinvoice_payment_method_options_acss_debit = Schema.suspend(
|
|
2889
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_acss_debit> =>
|
|
2890
|
+
Schema.StructWithRest(
|
|
2891
|
+
Schema.Struct({
|
|
2892
|
+
mandate_options: Schema.optionalKey(
|
|
2893
|
+
Stripeinvoice_payment_method_options_acss_debit_mandate_options,
|
|
2894
|
+
),
|
|
2895
|
+
verification_method: Schema.optionalKey(
|
|
2896
|
+
Schema.Literals(["automatic", "instant", "microdeposits"]).annotate({
|
|
2897
|
+
description:
|
|
2898
|
+
"Bank account verification method. The default value is `automatic`.",
|
|
2899
|
+
}),
|
|
2900
|
+
),
|
|
2901
|
+
}),
|
|
2902
|
+
[
|
|
2903
|
+
Schema.Record(
|
|
2904
|
+
Schema.String,
|
|
2905
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2906
|
+
),
|
|
2907
|
+
],
|
|
2908
|
+
).annotate({
|
|
2909
|
+
title: "invoice_payment_method_options_acss_debit",
|
|
2910
|
+
description: "",
|
|
2911
|
+
identifier: "Stripeinvoice_payment_method_options_acss_debit",
|
|
2912
|
+
}),
|
|
2913
|
+
);
|
|
2914
|
+
export const Stripeinvoice_payment_method_options_billie_company_details =
|
|
2915
|
+
Schema.suspend(
|
|
2916
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_billie_company_details> =>
|
|
2917
|
+
Schema.StructWithRest(
|
|
2918
|
+
Schema.Struct({
|
|
2919
|
+
registered_address: Schema.optionalKey(
|
|
2920
|
+
Stripeinvoice_payment_method_options_billie_company_details_registered_address,
|
|
2921
|
+
),
|
|
2922
|
+
registered_name: Schema.optionalKey(
|
|
2923
|
+
Schema.Union([
|
|
2924
|
+
Schema.String.annotate({
|
|
2925
|
+
description: "Company or entity name.",
|
|
2926
|
+
}).check(
|
|
2927
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2928
|
+
expected: "a string with at most 5000 code points",
|
|
2929
|
+
}),
|
|
2930
|
+
),
|
|
2931
|
+
Schema.Null,
|
|
2932
|
+
]),
|
|
2933
|
+
),
|
|
2934
|
+
registration_number: Schema.optionalKey(
|
|
2935
|
+
Schema.Union([
|
|
2936
|
+
Schema.String.annotate({
|
|
2937
|
+
description:
|
|
2938
|
+
"The official registration number for the given registration type.",
|
|
2939
|
+
}).check(
|
|
2940
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2941
|
+
expected: "a string with at most 5000 code points",
|
|
2942
|
+
}),
|
|
2943
|
+
),
|
|
2944
|
+
Schema.Null,
|
|
2945
|
+
]),
|
|
2946
|
+
),
|
|
2947
|
+
registration_type: Schema.optionalKey(
|
|
2948
|
+
Schema.Literals([
|
|
2949
|
+
"ch_ein",
|
|
2950
|
+
"de_hrb",
|
|
2951
|
+
"dk_cvr",
|
|
2952
|
+
"es_cif",
|
|
2953
|
+
"fi_tunnus",
|
|
2954
|
+
"fr_siren",
|
|
2955
|
+
"fr_siret",
|
|
2956
|
+
"it_rea",
|
|
2957
|
+
"nl_kvk",
|
|
2958
|
+
"no_org_number",
|
|
2959
|
+
"no_pno",
|
|
2960
|
+
"se_org_number",
|
|
2961
|
+
"se_pno",
|
|
2962
|
+
"uk_crn",
|
|
2963
|
+
]).annotate({
|
|
2964
|
+
description:
|
|
2965
|
+
"Type of registration the company or entity holds in their registered country.",
|
|
2966
|
+
}),
|
|
2967
|
+
),
|
|
2968
|
+
vat: Schema.optionalKey(
|
|
2969
|
+
Schema.Union([
|
|
2970
|
+
Schema.String.annotate({ description: "VAT ID number." }).check(
|
|
2971
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
2972
|
+
expected: "a string with at most 5000 code points",
|
|
2973
|
+
}),
|
|
2974
|
+
),
|
|
2975
|
+
Schema.Null,
|
|
2976
|
+
]),
|
|
2977
|
+
),
|
|
2978
|
+
}),
|
|
2979
|
+
[
|
|
2980
|
+
Schema.Record(
|
|
2981
|
+
Schema.String,
|
|
2982
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2983
|
+
),
|
|
2984
|
+
],
|
|
2985
|
+
).annotate({
|
|
2986
|
+
title: "invoice_payment_method_options_billie_company_details",
|
|
2987
|
+
description: "",
|
|
2988
|
+
identifier:
|
|
2989
|
+
"Stripeinvoice_payment_method_options_billie_company_details",
|
|
2990
|
+
}),
|
|
2991
|
+
);
|
|
2992
|
+
export const Stripeinvoice_payment_method_options_card = Schema.suspend(
|
|
2993
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_card> =>
|
|
2994
|
+
Schema.StructWithRest(
|
|
2995
|
+
Schema.Struct({
|
|
2996
|
+
installments: Schema.optionalKey(Stripeinvoice_installments_card),
|
|
2997
|
+
request_three_d_secure: Schema.optionalKey(
|
|
2998
|
+
Schema.Union([
|
|
2999
|
+
Schema.Literals(["any", "automatic", "challenge"]).annotate({
|
|
3000
|
+
description:
|
|
3001
|
+
"We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.",
|
|
3002
|
+
}),
|
|
3003
|
+
Schema.Null,
|
|
3004
|
+
]),
|
|
3005
|
+
),
|
|
3006
|
+
}),
|
|
3007
|
+
[
|
|
3008
|
+
Schema.Record(
|
|
3009
|
+
Schema.String,
|
|
3010
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3011
|
+
),
|
|
3012
|
+
],
|
|
3013
|
+
).annotate({
|
|
3014
|
+
title: "invoice_payment_method_options_card",
|
|
3015
|
+
description: "",
|
|
3016
|
+
identifier: "Stripeinvoice_payment_method_options_card",
|
|
3017
|
+
}),
|
|
3018
|
+
);
|
|
3019
|
+
export const Stripeinvoice_payment_method_options_customer_balance_bank_transfer =
|
|
3020
|
+
Schema.suspend(
|
|
3021
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_customer_balance_bank_transfer> =>
|
|
3022
|
+
Schema.StructWithRest(
|
|
3023
|
+
Schema.Struct({
|
|
3024
|
+
eu_bank_transfer: Schema.optionalKey(
|
|
3025
|
+
Stripeinvoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer,
|
|
3026
|
+
),
|
|
3027
|
+
type: Schema.optionalKey(
|
|
3028
|
+
Schema.Union([
|
|
3029
|
+
Schema.String.annotate({
|
|
3030
|
+
description:
|
|
3031
|
+
"The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.",
|
|
3032
|
+
}),
|
|
3033
|
+
Schema.Null,
|
|
3034
|
+
]),
|
|
3035
|
+
),
|
|
3036
|
+
}),
|
|
3037
|
+
[
|
|
3038
|
+
Schema.Record(
|
|
3039
|
+
Schema.String,
|
|
3040
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3041
|
+
),
|
|
3042
|
+
],
|
|
3043
|
+
).annotate({
|
|
3044
|
+
title: "invoice_payment_method_options_customer_balance_bank_transfer",
|
|
3045
|
+
description: "",
|
|
3046
|
+
identifier:
|
|
3047
|
+
"Stripeinvoice_payment_method_options_customer_balance_bank_transfer",
|
|
3048
|
+
}),
|
|
3049
|
+
);
|
|
3050
|
+
export const Stripeinvoice_payment_method_options_payto = Schema.suspend(
|
|
3051
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_payto> =>
|
|
3052
|
+
Schema.StructWithRest(
|
|
3053
|
+
Schema.Struct({
|
|
3054
|
+
mandate_options: Schema.optionalKey(
|
|
3055
|
+
Stripeinvoice_mandate_options_payto,
|
|
3056
|
+
),
|
|
3057
|
+
}),
|
|
3058
|
+
[
|
|
3059
|
+
Schema.Record(
|
|
3060
|
+
Schema.String,
|
|
3061
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3062
|
+
),
|
|
3063
|
+
],
|
|
3064
|
+
).annotate({
|
|
3065
|
+
title: "invoice_payment_method_options_payto",
|
|
3066
|
+
description: "",
|
|
3067
|
+
identifier: "Stripeinvoice_payment_method_options_payto",
|
|
3068
|
+
}),
|
|
3069
|
+
);
|
|
3070
|
+
export const Stripeinvoice_payment_method_options_upi = Schema.suspend(
|
|
3071
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_upi> =>
|
|
3072
|
+
Schema.StructWithRest(
|
|
3073
|
+
Schema.Struct({
|
|
3074
|
+
mandate_options: Schema.optionalKey(
|
|
3075
|
+
Stripeinvoice_payment_method_options_mandate_options_upi,
|
|
3076
|
+
),
|
|
3077
|
+
}),
|
|
3078
|
+
[
|
|
3079
|
+
Schema.Record(
|
|
3080
|
+
Schema.String,
|
|
3081
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3082
|
+
),
|
|
3083
|
+
],
|
|
3084
|
+
).annotate({
|
|
3085
|
+
title: "invoice_payment_method_options_upi",
|
|
3086
|
+
description: "",
|
|
3087
|
+
identifier: "Stripeinvoice_payment_method_options_upi",
|
|
3088
|
+
}),
|
|
3089
|
+
);
|
|
3090
|
+
export const Stripeinvoice_payment_method_options_us_bank_account_linked_account_options =
|
|
3091
|
+
Schema.suspend(
|
|
3092
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_us_bank_account_linked_account_options> =>
|
|
3093
|
+
Schema.StructWithRest(
|
|
3094
|
+
Schema.Struct({
|
|
3095
|
+
filters: Schema.optionalKey(
|
|
3096
|
+
Stripeinvoice_payment_method_options_us_bank_account_linked_account_options_filters,
|
|
3097
|
+
),
|
|
3098
|
+
permissions: Schema.optionalKey(
|
|
3099
|
+
Schema.Array(
|
|
3100
|
+
Schema.Literals([
|
|
3101
|
+
"balances",
|
|
3102
|
+
"ownership",
|
|
3103
|
+
"payment_method",
|
|
3104
|
+
"transactions",
|
|
3105
|
+
]),
|
|
3106
|
+
).annotate({
|
|
3107
|
+
description:
|
|
3108
|
+
"The list of permissions to request. The `payment_method` permission must be included.",
|
|
3109
|
+
}),
|
|
3110
|
+
),
|
|
3111
|
+
prefetch: Schema.optionalKey(
|
|
3112
|
+
Schema.Union([
|
|
3113
|
+
Schema.Array(
|
|
3114
|
+
Schema.Literals(["balances", "ownership", "transactions"]),
|
|
3115
|
+
).annotate({
|
|
3116
|
+
description:
|
|
3117
|
+
"Data features requested to be retrieved upon account creation.",
|
|
3118
|
+
}),
|
|
3119
|
+
Schema.Null,
|
|
3120
|
+
]),
|
|
3121
|
+
),
|
|
3122
|
+
}),
|
|
3123
|
+
[
|
|
3124
|
+
Schema.Record(
|
|
3125
|
+
Schema.String,
|
|
3126
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3127
|
+
),
|
|
3128
|
+
],
|
|
3129
|
+
).annotate({
|
|
3130
|
+
title:
|
|
3131
|
+
"invoice_payment_method_options_us_bank_account_linked_account_options",
|
|
3132
|
+
description: "",
|
|
3133
|
+
identifier:
|
|
3134
|
+
"Stripeinvoice_payment_method_options_us_bank_account_linked_account_options",
|
|
3135
|
+
}),
|
|
3136
|
+
);
|
|
3137
|
+
export const Stripeinvoices_resource_invoice_rendering = Schema.suspend(
|
|
3138
|
+
(): Schema.Codec<Stripeinvoices_resource_invoice_rendering> =>
|
|
3139
|
+
Schema.StructWithRest(
|
|
3140
|
+
Schema.Struct({
|
|
3141
|
+
amount_tax_display: Schema.optionalKey(
|
|
3142
|
+
Schema.Union([
|
|
3143
|
+
Schema.String.annotate({
|
|
3144
|
+
description:
|
|
3145
|
+
"How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.",
|
|
3146
|
+
}).check(
|
|
3147
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3148
|
+
expected: "a string with at most 5000 code points",
|
|
3149
|
+
}),
|
|
3150
|
+
),
|
|
3151
|
+
Schema.Null,
|
|
3152
|
+
]),
|
|
3153
|
+
),
|
|
3154
|
+
pdf: Schema.optionalKey(
|
|
3155
|
+
Schema.Union([
|
|
3156
|
+
Schema.Union([Stripeinvoice_rendering_pdf]).annotate({
|
|
3157
|
+
description: "Invoice pdf rendering options",
|
|
3158
|
+
}),
|
|
3159
|
+
Schema.Null,
|
|
3160
|
+
]),
|
|
3161
|
+
),
|
|
3162
|
+
template: Schema.optionalKey(
|
|
3163
|
+
Schema.Union([
|
|
3164
|
+
Schema.String.annotate({
|
|
3165
|
+
description:
|
|
3166
|
+
"ID of the rendering template that the invoice is formatted by.",
|
|
3167
|
+
}).check(
|
|
3168
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3169
|
+
expected: "a string with at most 5000 code points",
|
|
3170
|
+
}),
|
|
3171
|
+
),
|
|
3172
|
+
Schema.Null,
|
|
3173
|
+
]),
|
|
3174
|
+
),
|
|
3175
|
+
template_version: Schema.optionalKey(
|
|
3176
|
+
Schema.Union([
|
|
3177
|
+
Schema.Number.annotate({
|
|
3178
|
+
description:
|
|
3179
|
+
"Version of the rendering template that the invoice is using.",
|
|
3180
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3181
|
+
Schema.Null,
|
|
3182
|
+
]),
|
|
3183
|
+
),
|
|
3184
|
+
}),
|
|
3185
|
+
[
|
|
3186
|
+
Schema.Record(
|
|
3187
|
+
Schema.String,
|
|
3188
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3189
|
+
),
|
|
3190
|
+
],
|
|
3191
|
+
).annotate({
|
|
3192
|
+
title: "InvoicesResourceInvoiceRendering",
|
|
3193
|
+
description: "",
|
|
3194
|
+
identifier: "Stripeinvoices_resource_invoice_rendering",
|
|
3195
|
+
}),
|
|
3196
|
+
);
|
|
3197
|
+
export const Stripeinvoices_resource_status_details = Schema.suspend(
|
|
3198
|
+
(): Schema.Codec<Stripeinvoices_resource_status_details> =>
|
|
3199
|
+
Schema.StructWithRest(
|
|
3200
|
+
Schema.Struct({
|
|
3201
|
+
uncollectible: Schema.optionalKey(
|
|
3202
|
+
Stripeinvoices_resource_uncollectible_status_details,
|
|
3203
|
+
),
|
|
3204
|
+
}),
|
|
3205
|
+
[
|
|
3206
|
+
Schema.Record(
|
|
3207
|
+
Schema.String,
|
|
3208
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3209
|
+
),
|
|
3210
|
+
],
|
|
3211
|
+
).annotate({
|
|
3212
|
+
title: "InvoicesResourceStatusDetails",
|
|
3213
|
+
description: "",
|
|
3214
|
+
identifier: "Stripeinvoices_resource_status_details",
|
|
3215
|
+
}),
|
|
3216
|
+
);
|
|
3217
|
+
export const Stripeinvoice_threshold_reason = Schema.suspend(
|
|
3218
|
+
(): Schema.Codec<Stripeinvoice_threshold_reason> =>
|
|
3219
|
+
Schema.StructWithRest(
|
|
3220
|
+
Schema.Struct({
|
|
3221
|
+
amount_gte: Schema.optionalKey(
|
|
3222
|
+
Schema.Union([
|
|
3223
|
+
Schema.Number.annotate({
|
|
3224
|
+
description:
|
|
3225
|
+
"The total invoice amount threshold boundary if it triggered the threshold invoice.",
|
|
3226
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3227
|
+
Schema.Null,
|
|
3228
|
+
]),
|
|
3229
|
+
),
|
|
3230
|
+
item_reasons: Schema.Array(
|
|
3231
|
+
Stripeinvoice_item_threshold_reason,
|
|
3232
|
+
).annotate({
|
|
3233
|
+
description:
|
|
3234
|
+
"Indicates which line items triggered a threshold invoice.",
|
|
3235
|
+
}),
|
|
3236
|
+
}),
|
|
3237
|
+
[
|
|
3238
|
+
Schema.Record(
|
|
3239
|
+
Schema.String,
|
|
3240
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3241
|
+
),
|
|
3242
|
+
],
|
|
3243
|
+
).annotate({
|
|
3244
|
+
title: "InvoiceThresholdReason",
|
|
3245
|
+
description: "",
|
|
3246
|
+
identifier: "Stripeinvoice_threshold_reason",
|
|
3247
|
+
}),
|
|
3248
|
+
);
|
|
3249
|
+
export const Stripeinvoice_item_proration_credited_items = Schema.suspend(
|
|
3250
|
+
(): Schema.Codec<Stripeinvoice_item_proration_credited_items> =>
|
|
3251
|
+
Schema.StructWithRest(
|
|
3252
|
+
Schema.Struct({
|
|
3253
|
+
invoice_item: Schema.optionalKey(
|
|
3254
|
+
Schema.String.annotate({
|
|
3255
|
+
description:
|
|
3256
|
+
"When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration.",
|
|
3257
|
+
}).check(
|
|
3258
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3259
|
+
expected: "a string with at most 5000 code points",
|
|
3260
|
+
}),
|
|
3261
|
+
),
|
|
3262
|
+
),
|
|
3263
|
+
invoice_line_item_details: Schema.optionalKey(
|
|
3264
|
+
Stripecredited_items_invoice_line_items,
|
|
3265
|
+
),
|
|
3266
|
+
type: Schema.Literals(["invoice_item", "invoice_line_items"]).annotate({
|
|
3267
|
+
description:
|
|
3268
|
+
"Whether the credit references a pending invoice item or one or more invoice line items on an invoice.",
|
|
3269
|
+
}),
|
|
3270
|
+
}),
|
|
3271
|
+
[
|
|
3272
|
+
Schema.Record(
|
|
3273
|
+
Schema.String,
|
|
3274
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3275
|
+
),
|
|
3276
|
+
],
|
|
3277
|
+
).annotate({
|
|
3278
|
+
title: "InvoiceItemProrationCreditedItems",
|
|
3279
|
+
description: "",
|
|
3280
|
+
identifier: "Stripeinvoice_item_proration_credited_items",
|
|
3281
|
+
}),
|
|
3282
|
+
);
|
|
3283
|
+
export const Stripeinvoice_payment_method_options_billie = Schema.suspend(
|
|
3284
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_billie> =>
|
|
3285
|
+
Schema.StructWithRest(
|
|
3286
|
+
Schema.Struct({
|
|
3287
|
+
company_details: Schema.optionalKey(
|
|
3288
|
+
Stripeinvoice_payment_method_options_billie_company_details,
|
|
3289
|
+
),
|
|
3290
|
+
reference: Schema.optionalKey(
|
|
3291
|
+
Schema.Union([
|
|
3292
|
+
Schema.String.annotate({
|
|
3293
|
+
description:
|
|
3294
|
+
"An identifier or reference that this payment corresponds to.",
|
|
3295
|
+
}).check(
|
|
3296
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3297
|
+
expected: "a string with at most 5000 code points",
|
|
3298
|
+
}),
|
|
3299
|
+
),
|
|
3300
|
+
Schema.Null,
|
|
3301
|
+
]),
|
|
3302
|
+
),
|
|
3303
|
+
}),
|
|
3304
|
+
[
|
|
3305
|
+
Schema.Record(
|
|
3306
|
+
Schema.String,
|
|
3307
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3308
|
+
),
|
|
3309
|
+
],
|
|
3310
|
+
).annotate({
|
|
3311
|
+
title: "invoice_payment_method_options_billie",
|
|
3312
|
+
description: "",
|
|
3313
|
+
identifier: "Stripeinvoice_payment_method_options_billie",
|
|
3314
|
+
}),
|
|
3315
|
+
);
|
|
3316
|
+
export const Stripeinvoice_payment_method_options_customer_balance =
|
|
3317
|
+
Schema.suspend(
|
|
3318
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_customer_balance> =>
|
|
3319
|
+
Schema.StructWithRest(
|
|
3320
|
+
Schema.Struct({
|
|
3321
|
+
bank_transfer: Schema.optionalKey(
|
|
3322
|
+
Stripeinvoice_payment_method_options_customer_balance_bank_transfer,
|
|
3323
|
+
),
|
|
3324
|
+
funding_type: Schema.optionalKey(
|
|
3325
|
+
Schema.Union([
|
|
3326
|
+
Schema.Literal("bank_transfer").annotate({
|
|
3327
|
+
description:
|
|
3328
|
+
"The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.",
|
|
3329
|
+
}),
|
|
3330
|
+
Schema.Null,
|
|
3331
|
+
]),
|
|
3332
|
+
),
|
|
3333
|
+
}),
|
|
3334
|
+
[
|
|
3335
|
+
Schema.Record(
|
|
3336
|
+
Schema.String,
|
|
3337
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3338
|
+
),
|
|
3339
|
+
],
|
|
3340
|
+
).annotate({
|
|
3341
|
+
title: "invoice_payment_method_options_customer_balance",
|
|
3342
|
+
description: "",
|
|
3343
|
+
identifier: "Stripeinvoice_payment_method_options_customer_balance",
|
|
3344
|
+
}),
|
|
3345
|
+
);
|
|
3346
|
+
export const Stripeinvoice_payment_method_options_us_bank_account =
|
|
3347
|
+
Schema.suspend(
|
|
3348
|
+
(): Schema.Codec<Stripeinvoice_payment_method_options_us_bank_account> =>
|
|
3349
|
+
Schema.StructWithRest(
|
|
3350
|
+
Schema.Struct({
|
|
3351
|
+
financial_connections: Schema.optionalKey(
|
|
3352
|
+
Stripeinvoice_payment_method_options_us_bank_account_linked_account_options,
|
|
3353
|
+
),
|
|
3354
|
+
verification_method: Schema.optionalKey(
|
|
3355
|
+
Schema.Literals(["automatic", "instant", "microdeposits"]).annotate(
|
|
3356
|
+
{
|
|
3357
|
+
description:
|
|
3358
|
+
"Bank account verification method. The default value is `automatic`.",
|
|
3359
|
+
},
|
|
3360
|
+
),
|
|
3361
|
+
),
|
|
3362
|
+
}),
|
|
3363
|
+
[
|
|
3364
|
+
Schema.Record(
|
|
3365
|
+
Schema.String,
|
|
3366
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3367
|
+
),
|
|
3368
|
+
],
|
|
3369
|
+
).annotate({
|
|
3370
|
+
title: "invoice_payment_method_options_us_bank_account",
|
|
3371
|
+
description: "",
|
|
3372
|
+
identifier: "Stripeinvoice_payment_method_options_us_bank_account",
|
|
3373
|
+
}),
|
|
3374
|
+
);
|
|
3375
|
+
export const Stripeinvoices_payment_method_options = Schema.suspend(
|
|
3376
|
+
(): Schema.Codec<Stripeinvoices_payment_method_options> =>
|
|
3377
|
+
Schema.StructWithRest(
|
|
3378
|
+
Schema.Struct({
|
|
3379
|
+
acss_debit: Schema.optionalKey(
|
|
3380
|
+
Schema.Union([
|
|
3381
|
+
Schema.Union([
|
|
3382
|
+
Stripeinvoice_payment_method_options_acss_debit,
|
|
3383
|
+
]).annotate({
|
|
3384
|
+
description:
|
|
3385
|
+
"If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.",
|
|
3386
|
+
}),
|
|
3387
|
+
Schema.Null,
|
|
3388
|
+
]),
|
|
3389
|
+
),
|
|
3390
|
+
bancontact: Schema.optionalKey(
|
|
3391
|
+
Schema.Union([
|
|
3392
|
+
Schema.Union([
|
|
3393
|
+
Stripeinvoice_payment_method_options_bancontact,
|
|
3394
|
+
]).annotate({
|
|
3395
|
+
description:
|
|
3396
|
+
"If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.",
|
|
3397
|
+
}),
|
|
3398
|
+
Schema.Null,
|
|
3399
|
+
]),
|
|
3400
|
+
),
|
|
3401
|
+
billie: Schema.optionalKey(
|
|
3402
|
+
Schema.Union([
|
|
3403
|
+
Schema.Union([
|
|
3404
|
+
Stripeinvoice_payment_method_options_billie,
|
|
3405
|
+
]).annotate({
|
|
3406
|
+
description:
|
|
3407
|
+
"If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice’s PaymentIntent.",
|
|
3408
|
+
}),
|
|
3409
|
+
Schema.Null,
|
|
3410
|
+
]),
|
|
3411
|
+
),
|
|
3412
|
+
blik: Schema.optionalKey(
|
|
3413
|
+
Schema.Union([
|
|
3414
|
+
Schema.Union([Stripeinvoice_payment_method_options_blik]).annotate({
|
|
3415
|
+
description:
|
|
3416
|
+
"If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.",
|
|
3417
|
+
}),
|
|
3418
|
+
Schema.Null,
|
|
3419
|
+
]),
|
|
3420
|
+
),
|
|
3421
|
+
card: Schema.optionalKey(
|
|
3422
|
+
Schema.Union([
|
|
3423
|
+
Schema.Union([Stripeinvoice_payment_method_options_card]).annotate({
|
|
3424
|
+
description:
|
|
3425
|
+
"If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.",
|
|
3426
|
+
}),
|
|
3427
|
+
Schema.Null,
|
|
3428
|
+
]),
|
|
3429
|
+
),
|
|
3430
|
+
customer_balance: Schema.optionalKey(
|
|
3431
|
+
Schema.Union([
|
|
3432
|
+
Schema.Union([
|
|
3433
|
+
Stripeinvoice_payment_method_options_customer_balance,
|
|
3434
|
+
]).annotate({
|
|
3435
|
+
description:
|
|
3436
|
+
"If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.",
|
|
3437
|
+
}),
|
|
3438
|
+
Schema.Null,
|
|
3439
|
+
]),
|
|
3440
|
+
),
|
|
3441
|
+
konbini: Schema.optionalKey(
|
|
3442
|
+
Schema.Union([
|
|
3443
|
+
Schema.Union([
|
|
3444
|
+
Stripeinvoice_payment_method_options_konbini,
|
|
3445
|
+
]).annotate({
|
|
3446
|
+
description:
|
|
3447
|
+
"If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.",
|
|
3448
|
+
}),
|
|
3449
|
+
Schema.Null,
|
|
3450
|
+
]),
|
|
3451
|
+
),
|
|
3452
|
+
payto: Schema.optionalKey(
|
|
3453
|
+
Schema.Union([
|
|
3454
|
+
Schema.Union([Stripeinvoice_payment_method_options_payto]).annotate(
|
|
3455
|
+
{
|
|
3456
|
+
description:
|
|
3457
|
+
"If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.",
|
|
3458
|
+
},
|
|
3459
|
+
),
|
|
3460
|
+
Schema.Null,
|
|
3461
|
+
]),
|
|
3462
|
+
),
|
|
3463
|
+
pix: Schema.optionalKey(
|
|
3464
|
+
Schema.Union([
|
|
3465
|
+
Schema.Union([Stripeinvoice_payment_method_options_pix]).annotate({
|
|
3466
|
+
description:
|
|
3467
|
+
"If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.",
|
|
3468
|
+
}),
|
|
3469
|
+
Schema.Null,
|
|
3470
|
+
]),
|
|
3471
|
+
),
|
|
3472
|
+
sepa_debit: Schema.optionalKey(
|
|
3473
|
+
Schema.Union([
|
|
3474
|
+
Schema.Union([
|
|
3475
|
+
Stripeinvoice_payment_method_options_sepa_debit,
|
|
3476
|
+
]).annotate({
|
|
3477
|
+
description:
|
|
3478
|
+
"If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.",
|
|
3479
|
+
}),
|
|
3480
|
+
Schema.Null,
|
|
3481
|
+
]),
|
|
3482
|
+
),
|
|
3483
|
+
upi: Schema.optionalKey(
|
|
3484
|
+
Schema.Union([
|
|
3485
|
+
Schema.Union([Stripeinvoice_payment_method_options_upi]).annotate({
|
|
3486
|
+
description:
|
|
3487
|
+
"If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.",
|
|
3488
|
+
}),
|
|
3489
|
+
Schema.Null,
|
|
3490
|
+
]),
|
|
3491
|
+
),
|
|
3492
|
+
us_bank_account: Schema.optionalKey(
|
|
3493
|
+
Schema.Union([
|
|
3494
|
+
Schema.Union([
|
|
3495
|
+
Stripeinvoice_payment_method_options_us_bank_account,
|
|
3496
|
+
]).annotate({
|
|
3497
|
+
description:
|
|
3498
|
+
"If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.",
|
|
3499
|
+
}),
|
|
3500
|
+
Schema.Null,
|
|
3501
|
+
]),
|
|
3502
|
+
),
|
|
3503
|
+
}),
|
|
3504
|
+
[
|
|
3505
|
+
Schema.Record(
|
|
3506
|
+
Schema.String,
|
|
3507
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3508
|
+
),
|
|
3509
|
+
],
|
|
3510
|
+
).annotate({
|
|
3511
|
+
title: "InvoicesPaymentMethodOptions",
|
|
3512
|
+
description: "",
|
|
3513
|
+
identifier: "Stripeinvoices_payment_method_options",
|
|
3514
|
+
}),
|
|
3515
|
+
);
|
|
3516
|
+
export const Stripeinvoices_resource_shipping_cost = Schema.suspend(
|
|
3517
|
+
(): Schema.Codec<Stripeinvoices_resource_shipping_cost> =>
|
|
3518
|
+
Schema.StructWithRest(
|
|
3519
|
+
Schema.Struct({
|
|
3520
|
+
amount_subtotal: Schema.Number.annotate({
|
|
3521
|
+
description: "Total shipping cost before any taxes are applied.",
|
|
3522
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3523
|
+
amount_tax: Schema.Number.annotate({
|
|
3524
|
+
description:
|
|
3525
|
+
"Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.",
|
|
3526
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3527
|
+
amount_total: Schema.Number.annotate({
|
|
3528
|
+
description: "Total shipping cost after taxes are applied.",
|
|
3529
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3530
|
+
shipping_rate: Schema.optionalKey(
|
|
3531
|
+
Schema.Union([
|
|
3532
|
+
Schema.Union([
|
|
3533
|
+
Schema.String.check(
|
|
3534
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3535
|
+
expected: "a string with at most 5000 code points",
|
|
3536
|
+
}),
|
|
3537
|
+
),
|
|
3538
|
+
Stripeshipping_rate,
|
|
3539
|
+
]).annotate({
|
|
3540
|
+
description: "The ID of the ShippingRate for this invoice.",
|
|
3541
|
+
}),
|
|
3542
|
+
Schema.Null,
|
|
3543
|
+
]),
|
|
3544
|
+
),
|
|
3545
|
+
taxes: Schema.optionalKey(
|
|
3546
|
+
Schema.Array(Stripeline_items_tax_amount).annotate({
|
|
3547
|
+
description: "The taxes applied to the shipping rate.",
|
|
3548
|
+
}),
|
|
3549
|
+
),
|
|
3550
|
+
}),
|
|
3551
|
+
[
|
|
3552
|
+
Schema.Record(
|
|
3553
|
+
Schema.String,
|
|
3554
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3555
|
+
),
|
|
3556
|
+
],
|
|
3557
|
+
).annotate({
|
|
3558
|
+
title: "InvoicesResourceShippingCost",
|
|
3559
|
+
description: "",
|
|
3560
|
+
identifier: "Stripeinvoices_resource_shipping_cost",
|
|
3561
|
+
}),
|
|
3562
|
+
);
|
|
3563
|
+
export const Stripeinvoiceitem = Schema.suspend(
|
|
3564
|
+
(): Schema.Codec<Stripeinvoiceitem> =>
|
|
3565
|
+
Schema.StructWithRest(
|
|
3566
|
+
Schema.Struct({
|
|
3567
|
+
amount: Schema.Number.annotate({
|
|
3568
|
+
description:
|
|
3569
|
+
"Amount (in the `currency` specified) of the invoice item. This should always be equal to `unit_amount * quantity`.",
|
|
3570
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3571
|
+
currency: Schema.String.annotate({
|
|
3572
|
+
description:
|
|
3573
|
+
"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).",
|
|
3574
|
+
format: "currency",
|
|
3575
|
+
}),
|
|
3576
|
+
customer: Schema.Union([
|
|
3577
|
+
Schema.String.check(
|
|
3578
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3579
|
+
expected: "a string with at most 5000 code points",
|
|
3580
|
+
}),
|
|
3581
|
+
),
|
|
3582
|
+
Stripecustomer,
|
|
3583
|
+
Stripedeleted_customer,
|
|
3584
|
+
]).annotate({
|
|
3585
|
+
description: "The ID of the customer to bill for this invoice item.",
|
|
3586
|
+
}),
|
|
3587
|
+
customer_account: Schema.optionalKey(
|
|
3588
|
+
Schema.Union([
|
|
3589
|
+
Schema.String.annotate({
|
|
3590
|
+
description:
|
|
3591
|
+
"The ID of the account to bill for this invoice item.",
|
|
3592
|
+
}).check(
|
|
3593
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3594
|
+
expected: "a string with at most 5000 code points",
|
|
3595
|
+
}),
|
|
3596
|
+
),
|
|
3597
|
+
Schema.Null,
|
|
3598
|
+
]),
|
|
3599
|
+
),
|
|
3600
|
+
date: Schema.Number.annotate({
|
|
3601
|
+
description:
|
|
3602
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
3603
|
+
format: "unix-time",
|
|
3604
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3605
|
+
description: Schema.optionalKey(
|
|
3606
|
+
Schema.Union([
|
|
3607
|
+
Schema.String.annotate({
|
|
3608
|
+
description:
|
|
3609
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
3610
|
+
}).check(
|
|
3611
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3612
|
+
expected: "a string with at most 5000 code points",
|
|
3613
|
+
}),
|
|
3614
|
+
),
|
|
3615
|
+
Schema.Null,
|
|
3616
|
+
]),
|
|
3617
|
+
),
|
|
3618
|
+
discountable: Schema.Boolean.annotate({
|
|
3619
|
+
description:
|
|
3620
|
+
"If true, discounts will apply to this invoice item. Always false for prorations.",
|
|
3621
|
+
}),
|
|
3622
|
+
discounts: Schema.optionalKey(
|
|
3623
|
+
Schema.Union([
|
|
3624
|
+
Schema.Array(
|
|
3625
|
+
Schema.Union([
|
|
3626
|
+
Schema.String.check(
|
|
3627
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3628
|
+
expected: "a string with at most 5000 code points",
|
|
3629
|
+
}),
|
|
3630
|
+
),
|
|
3631
|
+
Stripediscount,
|
|
3632
|
+
]),
|
|
3633
|
+
).annotate({
|
|
3634
|
+
description:
|
|
3635
|
+
"The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
|
|
3636
|
+
}),
|
|
3637
|
+
Schema.Null,
|
|
3638
|
+
]),
|
|
3639
|
+
),
|
|
3640
|
+
frozen_fields: Schema.optionalKey(
|
|
3641
|
+
Schema.Array(
|
|
3642
|
+
Schema.Literals(["discounts", "pricing", "quantity"]),
|
|
3643
|
+
).annotate({
|
|
3644
|
+
description:
|
|
3645
|
+
"Array of field names that can't be modified. Attempting to update a frozen field returns an error.",
|
|
3646
|
+
}),
|
|
3647
|
+
),
|
|
3648
|
+
id: Schema.String.annotate({
|
|
3649
|
+
description: "Unique identifier for the object.",
|
|
3650
|
+
}).check(
|
|
3651
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3652
|
+
expected: "a string with at most 5000 code points",
|
|
3653
|
+
}),
|
|
3654
|
+
),
|
|
3655
|
+
invoice: Schema.optionalKey(
|
|
3656
|
+
Schema.Union([
|
|
3657
|
+
Schema.Union([
|
|
3658
|
+
Schema.String.check(
|
|
3659
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3660
|
+
expected: "a string with at most 5000 code points",
|
|
3661
|
+
}),
|
|
3662
|
+
),
|
|
3663
|
+
Stripeinvoice,
|
|
3664
|
+
]).annotate({
|
|
3665
|
+
description:
|
|
3666
|
+
"The ID of the invoice this invoice item belongs to.",
|
|
3667
|
+
}),
|
|
3668
|
+
Schema.Null,
|
|
3669
|
+
]),
|
|
3670
|
+
),
|
|
3671
|
+
invoicing_rules: Schema.optionalKey(
|
|
3672
|
+
Schema.Array(Stripeinvoicing_rule).annotate({
|
|
3673
|
+
description:
|
|
3674
|
+
"The rules that control when this invoice item is eligible for invoicing. All rules must be satisfied for the item to be invoiced.",
|
|
3675
|
+
}),
|
|
3676
|
+
),
|
|
3677
|
+
livemode: Schema.Boolean.annotate({
|
|
3678
|
+
description:
|
|
3679
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
3680
|
+
}),
|
|
3681
|
+
metadata: Schema.optionalKey(
|
|
3682
|
+
Schema.Union([
|
|
3683
|
+
Schema.Record(
|
|
3684
|
+
Schema.String,
|
|
3685
|
+
Schema.String.check(
|
|
3686
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
3687
|
+
expected: "a string with at most 500 code points",
|
|
3688
|
+
}),
|
|
3689
|
+
),
|
|
3690
|
+
).annotate({
|
|
3691
|
+
description:
|
|
3692
|
+
"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.",
|
|
3693
|
+
}),
|
|
3694
|
+
Schema.Null,
|
|
3695
|
+
]),
|
|
3696
|
+
),
|
|
3697
|
+
net_amount: Schema.optionalKey(
|
|
3698
|
+
Schema.Number.annotate({
|
|
3699
|
+
description:
|
|
3700
|
+
"The amount after discounts, but before credits and taxes. This field is `null` for `discountable=true` items.",
|
|
3701
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3702
|
+
),
|
|
3703
|
+
object: Schema.Literal("invoiceitem").annotate({
|
|
3704
|
+
description:
|
|
3705
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
3706
|
+
}),
|
|
3707
|
+
parent: Schema.optionalKey(
|
|
3708
|
+
Schema.Union([
|
|
3709
|
+
Schema.Union([
|
|
3710
|
+
Stripebilling_bill_resource_invoice_item_parents_invoice_item_parent,
|
|
3711
|
+
]).annotate({
|
|
3712
|
+
description: "The parent that generated this invoice item.",
|
|
3713
|
+
}),
|
|
3714
|
+
Schema.Null,
|
|
3715
|
+
]),
|
|
3716
|
+
),
|
|
3717
|
+
period: Stripeinvoice_line_item_period,
|
|
3718
|
+
pricing: Schema.optionalKey(
|
|
3719
|
+
Schema.Union([
|
|
3720
|
+
Schema.Union([
|
|
3721
|
+
Stripebilling_bill_resource_invoicing_pricing_pricing,
|
|
3722
|
+
]).annotate({
|
|
3723
|
+
description: "The pricing information of the invoice item.",
|
|
3724
|
+
}),
|
|
3725
|
+
Schema.Null,
|
|
3726
|
+
]),
|
|
3727
|
+
),
|
|
3728
|
+
proration: Schema.Boolean.annotate({
|
|
3729
|
+
description:
|
|
3730
|
+
"Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.",
|
|
3731
|
+
}),
|
|
3732
|
+
proration_details: Schema.optionalKey(Stripeproration_details),
|
|
3733
|
+
quantity: Schema.Number.annotate({
|
|
3734
|
+
description:
|
|
3735
|
+
"Quantity of units for the invoice item in integer format, with any decimal precision truncated. For the item's full-precision decimal quantity, use `quantity_decimal`. This field will be deprecated in favor of `quantity_decimal` in a future version. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.",
|
|
3736
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
3737
|
+
quantity_decimal: Schema.String.annotate({
|
|
3738
|
+
description:
|
|
3739
|
+
"Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.",
|
|
3740
|
+
format: "decimal",
|
|
3741
|
+
}),
|
|
3742
|
+
tax_rates: Schema.optionalKey(
|
|
3743
|
+
Schema.Union([
|
|
3744
|
+
Schema.Array(Stripetax_rate).annotate({
|
|
3745
|
+
description:
|
|
3746
|
+
"The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item.",
|
|
3747
|
+
}),
|
|
3748
|
+
Schema.Null,
|
|
3749
|
+
]),
|
|
3750
|
+
),
|
|
3751
|
+
test_clock: Schema.optionalKey(
|
|
3752
|
+
Schema.Union([
|
|
3753
|
+
Schema.Union([
|
|
3754
|
+
Schema.String.check(
|
|
3755
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3756
|
+
expected: "a string with at most 5000 code points",
|
|
3757
|
+
}),
|
|
3758
|
+
),
|
|
3759
|
+
Stripetest_helpers_test_clock,
|
|
3760
|
+
]).annotate({
|
|
3761
|
+
description: "ID of the test clock this invoice item belongs to.",
|
|
3762
|
+
}),
|
|
3763
|
+
Schema.Null,
|
|
3764
|
+
]),
|
|
3765
|
+
),
|
|
3766
|
+
}),
|
|
3767
|
+
[
|
|
3768
|
+
Schema.Record(
|
|
3769
|
+
Schema.String,
|
|
3770
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3771
|
+
),
|
|
3772
|
+
],
|
|
3773
|
+
).annotate({
|
|
3774
|
+
title: "Invoice Item",
|
|
3775
|
+
description:
|
|
3776
|
+
"Invoice Items represent the component lines of an [invoice](https://docs.stripe.com/api/invoices). When you create an invoice item with an `invoice` field, it is attached to the specified invoice and included as [an invoice line item](https://docs.stripe.com/api/invoices/line_item) within [invoice.lines](https://docs.stripe.com/api/invoices/object#invoice_object-lines).\n\nInvoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined\nwith a [subscription](https://docs.stripe.com/api/subscriptions). Sometimes you want to add a charge or credit to a customer, but actually charge\nor credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges\n(to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.\n\nRelated guides: [Integrate with the Invoicing API](https://docs.stripe.com/invoicing/integration), [Subscription Invoices](https://docs.stripe.com/billing/invoices/subscription#adding-upcoming-invoice-items).",
|
|
3777
|
+
identifier: "Stripeinvoiceitem",
|
|
3778
|
+
}),
|
|
3779
|
+
);
|
|
3780
|
+
export const Stripeinvoices_payment_settings = Schema.suspend(
|
|
3781
|
+
(): Schema.Codec<Stripeinvoices_payment_settings> =>
|
|
3782
|
+
Schema.StructWithRest(
|
|
3783
|
+
Schema.Struct({
|
|
3784
|
+
default_mandate: Schema.optionalKey(
|
|
3785
|
+
Schema.Union([
|
|
3786
|
+
Schema.String.annotate({
|
|
3787
|
+
description:
|
|
3788
|
+
"ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.",
|
|
3789
|
+
}).check(
|
|
3790
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
3791
|
+
expected: "a string with at most 5000 code points",
|
|
3792
|
+
}),
|
|
3793
|
+
),
|
|
3794
|
+
Schema.Null,
|
|
3795
|
+
]),
|
|
3796
|
+
),
|
|
3797
|
+
payment_method_options: Schema.optionalKey(
|
|
3798
|
+
Schema.Union([
|
|
3799
|
+
Schema.Union([Stripeinvoices_payment_method_options]).annotate({
|
|
3800
|
+
description:
|
|
3801
|
+
"Payment-method-specific configuration to provide to the invoice’s PaymentIntent.",
|
|
3802
|
+
}),
|
|
3803
|
+
Schema.Null,
|
|
3804
|
+
]),
|
|
3805
|
+
),
|
|
3806
|
+
payment_method_types: Schema.optionalKey(
|
|
3807
|
+
Schema.Union([
|
|
3808
|
+
Schema.Array(
|
|
3809
|
+
Schema.Literals([
|
|
3810
|
+
"ach_credit_transfer",
|
|
3811
|
+
"ach_debit",
|
|
3812
|
+
"acss_debit",
|
|
3813
|
+
"affirm",
|
|
3814
|
+
"alipay",
|
|
3815
|
+
"amazon_pay",
|
|
3816
|
+
"au_becs_debit",
|
|
3817
|
+
"bacs_debit",
|
|
3818
|
+
"bancontact",
|
|
3819
|
+
"billie",
|
|
3820
|
+
"blik",
|
|
3821
|
+
"boleto",
|
|
3822
|
+
"card",
|
|
3823
|
+
"cashapp",
|
|
3824
|
+
"crypto",
|
|
3825
|
+
"custom",
|
|
3826
|
+
"customer_balance",
|
|
3827
|
+
"eps",
|
|
3828
|
+
"fpx",
|
|
3829
|
+
"giropay",
|
|
3830
|
+
"grabpay",
|
|
3831
|
+
"ideal",
|
|
3832
|
+
"jp_credit_transfer",
|
|
3833
|
+
"kakao_pay",
|
|
3834
|
+
"klarna",
|
|
3835
|
+
"konbini",
|
|
3836
|
+
"kr_card",
|
|
3837
|
+
"link",
|
|
3838
|
+
"mb_way",
|
|
3839
|
+
"multibanco",
|
|
3840
|
+
"naver_pay",
|
|
3841
|
+
"nz_bank_account",
|
|
3842
|
+
"p24",
|
|
3843
|
+
"pay_by_bank",
|
|
3844
|
+
"payco",
|
|
3845
|
+
"paynow",
|
|
3846
|
+
"paypal",
|
|
3847
|
+
"payto",
|
|
3848
|
+
"pix",
|
|
3849
|
+
"promptpay",
|
|
3850
|
+
"revolut_pay",
|
|
3851
|
+
"satispay",
|
|
3852
|
+
"sepa_credit_transfer",
|
|
3853
|
+
"sepa_debit",
|
|
3854
|
+
"sequra",
|
|
3855
|
+
"sofort",
|
|
3856
|
+
"swish",
|
|
3857
|
+
"twint",
|
|
3858
|
+
"upi",
|
|
3859
|
+
"us_bank_account",
|
|
3860
|
+
"wechat_pay",
|
|
3861
|
+
]),
|
|
3862
|
+
).annotate({
|
|
3863
|
+
description:
|
|
3864
|
+
"The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).",
|
|
3865
|
+
}),
|
|
3866
|
+
Schema.Null,
|
|
3867
|
+
]),
|
|
3868
|
+
),
|
|
3869
|
+
}),
|
|
3870
|
+
[
|
|
3871
|
+
Schema.Record(
|
|
3872
|
+
Schema.String,
|
|
3873
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3874
|
+
),
|
|
3875
|
+
],
|
|
3876
|
+
).annotate({
|
|
3877
|
+
title: "InvoicesPaymentSettings",
|
|
3878
|
+
description: "",
|
|
3879
|
+
identifier: "Stripeinvoices_payment_settings",
|
|
3880
|
+
}),
|
|
3881
|
+
);
|