nomoss 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/LICENSE +1 -1
- package/README.md +52 -26
- package/ROADMAP.md +19 -0
- package/docs/README.md +19 -0
- package/docs/application/aws-resource-coverage.md +26 -0
- package/docs/application/aws-resource-lifecycle-management.md +47 -0
- package/docs/application/cli-workflow.md +111 -0
- package/docs/application/engine-design.md +43 -0
- package/docs/application/generation-architecture.md +285 -0
- package/docs/application/resource-command-policy-stage.md +37 -0
- package/docs/application/resource-graph.md +45 -0
- package/docs/application/resource-lifecycle-tracker.md +43 -0
- package/docs/application/resource-mapping.md +112 -0
- package/docs/application/resource-operations.md +41 -0
- package/docs/application/resource-outputs.md +66 -0
- package/docs/application/tracing.md +27 -0
- package/docs/development/code-documentation.md +54 -0
- package/docs/development/commit-message-spec.md +9 -0
- package/docs/development/effect-native-development.md +89 -0
- package/docs/development/linting.md +39 -0
- package/docs/development/resource-graph-testing-approach.md +9 -0
- package/docs/development/review-code.md +73 -0
- package/docs/development/review-docs.md +27 -0
- package/docs/development/review-remediation-spec.md +40 -0
- package/docs/development/spec-writing.md +35 -0
- package/docs/development/testing.md +125 -0
- package/docs/development/unslop.md +55 -0
- package/docs/operations/observability-sop.md +32 -0
- package/docs/operations/releasing.md +7 -0
- package/examples/README.md +11 -0
- package/examples/cli.ts +15 -0
- package/examples/commands.ts +32 -0
- package/examples/http-echo/index.ts +54 -0
- package/examples/queue/application.ts +37 -0
- package/examples/state-machine/application.ts +57 -0
- package/examples/stripe-billing/application.ts +56 -0
- package/media/nomoss-http-demo.gif +0 -0
- package/package.json +63 -24
- package/providers/aws/README.md +21 -0
- package/providers/aws/awsEnvironment.ts +114 -0
- package/providers/aws/generated/managementRegistry.ts +136 -0
- package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
- package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
- package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
- package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
- package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
- package/providers/aws/generated/resources/iam/group.ts +294 -0
- package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
- package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
- package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
- package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
- package/providers/aws/generated/resources/iam/policy.ts +264 -0
- package/providers/aws/generated/resources/iam/role.ts +444 -0
- package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
- package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
- package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
- package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
- package/providers/aws/generated/resources/iam/user.ts +435 -0
- package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
- package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
- package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
- package/providers/aws/generated/resources/kms/key.ts +552 -0
- package/providers/aws/generated/resources/lambda/function.ts +1924 -0
- package/providers/aws/generated/resources/lambda/permission.ts +913 -0
- package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
- package/providers/aws/generated/resources/sns/topic.ts +536 -0
- package/providers/aws/generated/resources/sqs/queue.ts +476 -0
- package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
- package/providers/aws/management/mappings/iam/group.ts +63 -0
- package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
- package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
- package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
- package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
- package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
- package/providers/aws/management/mappings/iam/role.ts +74 -0
- package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
- package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
- package/providers/aws/management/mappings/iam/user.ts +61 -0
- package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
- package/providers/aws/management/operations/iam/accessKey.ts +206 -0
- package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
- package/providers/aws/management/operations/iam/policy.ts +476 -0
- package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
- package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
- package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
- package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
- package/providers/aws/management/resourceAssociations.ts +168 -0
- package/providers/aws/management/resourceConfiguration.ts +119 -0
- package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
- package/providers/aws/management/resourceManagementModule.ts +31 -0
- package/providers/aws/management/resourceManagementRegistry.ts +62 -0
- package/providers/aws/management/resourceMapping.ts +84 -0
- package/providers/aws/management/resourceOperation.ts +134 -0
- package/providers/aws/management/resourceTagOperations.ts +108 -0
- package/providers/aws/management/resourceTiming.ts +4 -0
- package/providers/aws/runtime.ts +52 -0
- package/src/cli.ts +31 -13
- package/src/cliCommand.ts +207 -170
- package/src/cliDiagnostics.ts +104 -0
- package/src/core/asset.ts +350 -0
- package/src/core/index.ts +61 -17
- package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
- package/src/core/resource/model.ts +1168 -0
- package/src/core/resource/resourceCommandPolicy.ts +88 -0
- package/src/core/resource/resourceGraphBuilder.ts +319 -0
- package/src/core/resource/resourceGraphStore.ts +373 -0
- package/src/core/resource/resourceLifecycle.ts +644 -0
- package/src/core/resource/resourceOutputBinding.ts +113 -0
- package/src/core/resource/resourceOutputResolver.ts +365 -0
- package/src/core/resource/resourceRequest.ts +186 -0
- package/src/core/resource/resourceStabilization.ts +120 -0
- package/src/core/resource/resourceVersions.ts +102 -0
- package/src/core/runtime/stackRuntimeLayer.ts +16 -0
- package/src/core/runtime/tracing.ts +43 -0
- package/src/core/stack/planner.ts +663 -0
- package/src/core/stack/resourceDisplay.ts +213 -0
- package/src/core/stack/resourceStackDefinition.ts +32 -0
- package/src/core/stack/resourceStackLifecycle.ts +1229 -0
- package/src/core/stack/resourceStackOperations.ts +642 -0
- package/src/core/stack/resourceStackProgress.ts +169 -0
- package/src/core/stack/stackWorkflowRenderer.ts +756 -0
- package/src/core/state/localState.ts +18 -0
- package/src/core/state/resourceState.ts +77 -0
- package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
- package/src/core/state/stateStore.ts +600 -0
- package/src/providers/file/jsonFile.ts +94 -0
- package/src/providers/file/model.ts +29 -0
- package/src/providers/file/resourcePolicy.ts +271 -0
- package/src/providers/index.ts +0 -2
- package/src/providers/providerRuntimeLayer.ts +27 -113
- package/src/providers/resourceCommandPolicyLayer.ts +151 -200
- package/src/providers/stripe/client/generated/LICENSE +21 -0
- package/src/providers/stripe/client/generated/accounts.ts +14360 -0
- package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
- package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
- package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
- package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
- package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
- package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
- package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
- package/src/providers/stripe/client/generated/catalog.ts +18881 -0
- package/src/providers/stripe/client/generated/charges.ts +2637 -0
- package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
- package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
- package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
- package/src/providers/stripe/client/generated/configuration.ts +3 -0
- package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
- package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
- package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
- package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
- package/src/providers/stripe/client/generated/coupons.ts +562 -0
- package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
- package/src/providers/stripe/client/generated/customers.ts +10712 -0
- package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
- package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
- package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
- package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
- package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
- package/src/providers/stripe/client/generated/index.ts +330 -0
- package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
- package/src/providers/stripe/client/generated/invoices.ts +8412 -0
- package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
- package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
- package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
- package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
- package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
- package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
- package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
- package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
- package/src/providers/stripe/client/generated/models/common.ts +25024 -0
- package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
- package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
- package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
- package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
- package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
- package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
- package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
- package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
- package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
- package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
- package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
- package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
- package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
- package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
- package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
- package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
- package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
- package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
- package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
- package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
- package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
- package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
- package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
- package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
- package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
- package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
- package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
- package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
- package/src/providers/stripe/client/generated/payouts.ts +589 -0
- package/src/providers/stripe/client/generated/plans.ts +712 -0
- package/src/providers/stripe/client/generated/prices.ts +1045 -0
- package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
- package/src/providers/stripe/client/generated/products.ts +1370 -0
- package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
- package/src/providers/stripe/client/generated/quotes.ts +1874 -0
- package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
- package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
- package/src/providers/stripe/client/generated/refunds.ts +493 -0
- package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
- package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
- package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
- package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
- package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
- package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
- package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
- package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
- package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
- package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
- package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
- package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
- package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
- package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
- package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
- package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
- package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
- package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
- package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
- package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
- package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
- package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
- package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
- package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
- package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
- package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
- package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
- package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
- package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
- package/src/providers/stripe/client/generated/sources.ts +1482 -0
- package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
- package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
- package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
- package/src/providers/stripe/client/generated/taxIds.ts +644 -0
- package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
- package/src/providers/stripe/client/generated/taxRates.ts +620 -0
- package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
- package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
- package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
- package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
- package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
- package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
- package/src/providers/stripe/client/generated/tokens.ts +2498 -0
- package/src/providers/stripe/client/generated/topups.ts +556 -0
- package/src/providers/stripe/client/generated/transfers.ts +786 -0
- package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
- package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
- package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
- package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
- package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
- package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
- package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
- package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
- package/src/providers/stripe/client/stripeClient.ts +212 -0
- package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
- package/src/providers/stripe/client/stripeClientModel.ts +40 -0
- package/src/providers/stripe/index.ts +8 -15
- package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
- package/src/providers/stripe/management/resourcePolicy.ts +500 -0
- package/src/providers/stripe/management/resources.ts +36 -0
- package/src/providers/stripe/runtime.ts +74 -0
- package/bin/nomoss +0 -13
- package/docs/code-documentation.md +0 -36
- package/docs/effect-native-development.md +0 -55
- package/docs/engine-design.md +0 -93
- package/docs/linting.md +0 -88
- package/docs/releasing.md +0 -13
- package/docs/resource-command-policy-stage.md +0 -71
- package/docs/resource-graph-mvp.md +0 -31
- package/docs/resource-graph-testing-approach.md +0 -11
- package/docs/resource-lifecycle-tracker.md +0 -93
- package/docs/testing.md +0 -86
- package/examples/upload-events/README.md +0 -41
- package/src/cliRuntimeLayer.ts +0 -49
- package/src/core/model.ts +0 -229
- package/src/core/physicalNameStore.ts +0 -226
- package/src/core/planner.ts +0 -645
- package/src/core/resourceCommandPolicy.ts +0 -79
- package/src/core/resourceGraphBuilder.ts +0 -167
- package/src/core/resourceGraphStore.ts +0 -288
- package/src/core/resourceOutputResolver.ts +0 -185
- package/src/core/resourcePolicy.ts +0 -77
- package/src/core/resourceStackDefinition.ts +0 -17
- package/src/core/resourceStackLifecycle.ts +0 -456
- package/src/core/resourceStackOperations.ts +0 -129
- package/src/core/runtimeLayer.ts +0 -73
- package/src/core/stackWorkflowRenderer.ts +0 -239
- package/src/core/stateStore.ts +0 -652
- package/src/core/tracing.ts +0 -26
- package/src/providers/aws/awsApply.ts +0 -132
- package/src/providers/aws/awsBucket.ts +0 -329
- package/src/providers/aws/awsBucketNotification.ts +0 -351
- package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
- package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
- package/src/providers/aws/awsProviderLayer.ts +0 -274
- package/src/providers/aws/awsQueue.ts +0 -346
- package/src/providers/aws/awsQueuePolicy.ts +0 -419
- package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
- package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
- package/src/providers/aws/awsReconciliation.ts +0 -92
- package/src/providers/aws/awsRefresh.ts +0 -50
- package/src/providers/aws/awsResourceLifecycle.ts +0 -118
- package/src/providers/aws/awsResourcePolicy.ts +0 -83
- package/src/providers/aws/awsResources.ts +0 -274
- package/src/providers/aws/awsRuntimeLayer.ts +0 -21
- package/src/providers/aws/awsSqsTransport.ts +0 -33
- package/src/providers/aws/awsStackLifecycle.ts +0 -272
- package/src/providers/aws/awsTagging.ts +0 -186
- package/src/providers/aws/constants.ts +0 -3
- package/src/providers/aws/index.ts +0 -22
- package/src/providers/aws/sampleStack.ts +0 -65
- package/src/providers/aws/stackWorkflow.ts +0 -443
- package/src/providers/stripe/stripeAccount.ts +0 -139
- package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
- package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
- package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
- package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
- package/src/providers/stripe/stripeCustomer.ts +0 -148
- package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
- package/src/providers/stripe/stripePrice.ts +0 -218
- package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
- package/src/providers/stripe/stripeProduct.ts +0 -171
- package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
- package/src/providers/stripe/stripeResources.ts +0 -454
- package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
- package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
- package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
|
@@ -0,0 +1,1559 @@
|
|
|
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 { Stripetax_id } from "./catalog.js";
|
|
6
|
+
import { Striperefund } from "./charges.js";
|
|
7
|
+
import {
|
|
8
|
+
Stripeaddress,
|
|
9
|
+
Stripecash_balance,
|
|
10
|
+
Stripecheckout_session,
|
|
11
|
+
Stripecredit_note,
|
|
12
|
+
Stripediscount,
|
|
13
|
+
Stripeoffline_acceptance,
|
|
14
|
+
Stripeonline_acceptance,
|
|
15
|
+
Stripeshipping,
|
|
16
|
+
Stripetest_helpers_test_clock,
|
|
17
|
+
} from "./common.js";
|
|
18
|
+
import {
|
|
19
|
+
Stripeinvoice,
|
|
20
|
+
Stripeinvoice_setting_customer_setting,
|
|
21
|
+
} from "./invoices.js";
|
|
22
|
+
import { Stripepayment_intent } from "./paymentIntents.js";
|
|
23
|
+
import { Stripebank_account, Stripecard } from "./paymentSources.js";
|
|
24
|
+
import { Stripesource } from "./sources.js";
|
|
25
|
+
import { Stripesubscription } from "./subscriptions.js";
|
|
26
|
+
import { Stripebalance_transaction } from "./transfers.js";
|
|
27
|
+
|
|
28
|
+
export type Stripecustomer = {
|
|
29
|
+
readonly address?: Stripeaddress | null | null;
|
|
30
|
+
readonly balance?: number;
|
|
31
|
+
readonly business_name?: string;
|
|
32
|
+
readonly cash_balance?: Stripecash_balance | null | null;
|
|
33
|
+
readonly created: number;
|
|
34
|
+
readonly currency?: string | null;
|
|
35
|
+
readonly customer_account?: string | null;
|
|
36
|
+
readonly default_source?:
|
|
37
|
+
| string
|
|
38
|
+
| Stripebank_account
|
|
39
|
+
| Stripecard
|
|
40
|
+
| Stripesource
|
|
41
|
+
| null
|
|
42
|
+
| null;
|
|
43
|
+
readonly delinquent?: boolean | null;
|
|
44
|
+
readonly description?: string | null;
|
|
45
|
+
readonly discount?: Stripediscount | null | null;
|
|
46
|
+
readonly email?: string | null;
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly individual_name?: string;
|
|
49
|
+
readonly invoice_credit_balance?: { readonly [x: string]: number };
|
|
50
|
+
readonly invoice_prefix?: string | null;
|
|
51
|
+
readonly invoice_settings?: Stripeinvoice_setting_customer_setting;
|
|
52
|
+
readonly livemode: boolean;
|
|
53
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
54
|
+
readonly name?: string | null;
|
|
55
|
+
readonly next_invoice_sequence?: number;
|
|
56
|
+
readonly object: "customer";
|
|
57
|
+
readonly phone?: string | null;
|
|
58
|
+
readonly preferred_locales?: ReadonlyArray<string> | null;
|
|
59
|
+
readonly shipping?: Stripeshipping | null | null;
|
|
60
|
+
readonly sources?: {
|
|
61
|
+
readonly data: ReadonlyArray<
|
|
62
|
+
Stripebank_account | Stripecard | Stripesource
|
|
63
|
+
>;
|
|
64
|
+
readonly has_more: boolean;
|
|
65
|
+
readonly object: "list";
|
|
66
|
+
readonly url: string;
|
|
67
|
+
} & { readonly [x: string]: Schema.Json };
|
|
68
|
+
readonly subscriptions?: {
|
|
69
|
+
readonly data: ReadonlyArray<Stripesubscription>;
|
|
70
|
+
readonly has_more: boolean;
|
|
71
|
+
readonly object: "list";
|
|
72
|
+
readonly url: string;
|
|
73
|
+
} & { readonly [x: string]: Schema.Json };
|
|
74
|
+
readonly tax?: Stripecustomer_tax;
|
|
75
|
+
readonly tax_exempt?: "exempt" | "none" | "reverse" | null;
|
|
76
|
+
readonly tax_ids?: {
|
|
77
|
+
readonly data: ReadonlyArray<Stripetax_id>;
|
|
78
|
+
readonly has_more: boolean;
|
|
79
|
+
readonly object: "list";
|
|
80
|
+
readonly url: string;
|
|
81
|
+
} & { readonly [x: string]: Schema.Json };
|
|
82
|
+
readonly test_clock?: string | Stripetest_helpers_test_clock | null | null;
|
|
83
|
+
} & { readonly [x: string]: Schema.Json };
|
|
84
|
+
export type Stripecustomer_cash_balance_transaction = {
|
|
85
|
+
readonly adjusted_for_overdraft?: Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft;
|
|
86
|
+
readonly applied_to_payment?: Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction;
|
|
87
|
+
readonly created: number;
|
|
88
|
+
readonly currency: string;
|
|
89
|
+
readonly customer: string | Stripecustomer;
|
|
90
|
+
readonly customer_account?: string | null;
|
|
91
|
+
readonly ending_balance: number;
|
|
92
|
+
readonly funded?: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction;
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly livemode: boolean;
|
|
95
|
+
readonly net_amount: number;
|
|
96
|
+
readonly object: "customer_cash_balance_transaction";
|
|
97
|
+
readonly refunded_from_payment?: Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction;
|
|
98
|
+
readonly transferred_to_balance?: Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance;
|
|
99
|
+
readonly type:
|
|
100
|
+
| "adjusted_for_overdraft"
|
|
101
|
+
| "applied_to_payment"
|
|
102
|
+
| "funded"
|
|
103
|
+
| "funding_reversed"
|
|
104
|
+
| "refunded_from_payment"
|
|
105
|
+
| "return_canceled"
|
|
106
|
+
| "return_initiated"
|
|
107
|
+
| "transferred_to_balance"
|
|
108
|
+
| "unapplied_from_payment";
|
|
109
|
+
readonly unapplied_from_payment?: Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction;
|
|
110
|
+
} & { readonly [x: string]: Schema.Json };
|
|
111
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction =
|
|
112
|
+
{ readonly payment_intent: string | Stripepayment_intent } & {
|
|
113
|
+
readonly [x: string]: Schema.Json;
|
|
114
|
+
};
|
|
115
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance =
|
|
116
|
+
{ readonly balance_transaction: string | Stripebalance_transaction } & {
|
|
117
|
+
readonly [x: string]: Schema.Json;
|
|
118
|
+
};
|
|
119
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction =
|
|
120
|
+
{ readonly refund: string | Striperefund } & {
|
|
121
|
+
readonly [x: string]: Schema.Json;
|
|
122
|
+
};
|
|
123
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction =
|
|
124
|
+
{ readonly payment_intent: string | Stripepayment_intent } & {
|
|
125
|
+
readonly [x: string]: Schema.Json;
|
|
126
|
+
};
|
|
127
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft =
|
|
128
|
+
{
|
|
129
|
+
readonly balance_transaction: string | Stripebalance_transaction;
|
|
130
|
+
readonly linked_transaction:
|
|
131
|
+
| string
|
|
132
|
+
| Stripecustomer_cash_balance_transaction;
|
|
133
|
+
} & { readonly [x: string]: Schema.Json };
|
|
134
|
+
export type Stripecustomer_balance_transaction = {
|
|
135
|
+
readonly amount: number;
|
|
136
|
+
readonly checkout_session?: string | Stripecheckout_session | null;
|
|
137
|
+
readonly created: number;
|
|
138
|
+
readonly credit_note?: string | Stripecredit_note | null;
|
|
139
|
+
readonly currency: string;
|
|
140
|
+
readonly customer: string | Stripecustomer;
|
|
141
|
+
readonly customer_account?: string | null;
|
|
142
|
+
readonly description?: string | null;
|
|
143
|
+
readonly ending_balance: number;
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly invoice?: string | Stripeinvoice | null;
|
|
146
|
+
readonly livemode: boolean;
|
|
147
|
+
readonly metadata?: { readonly [x: string]: string } | null;
|
|
148
|
+
readonly object: "customer_balance_transaction";
|
|
149
|
+
readonly type:
|
|
150
|
+
| "adjustment"
|
|
151
|
+
| "applied_to_invoice"
|
|
152
|
+
| "checkout_session_subscription_payment"
|
|
153
|
+
| "checkout_session_subscription_payment_canceled"
|
|
154
|
+
| "credit_note"
|
|
155
|
+
| "initial"
|
|
156
|
+
| "invoice_overpaid"
|
|
157
|
+
| "invoice_too_large"
|
|
158
|
+
| "invoice_too_small"
|
|
159
|
+
| "migration"
|
|
160
|
+
| "unapplied_from_invoice"
|
|
161
|
+
| "unspent_receiver_credit";
|
|
162
|
+
} & { readonly [x: string]: Schema.Json };
|
|
163
|
+
export type Stripecustomer_balance_customer_balance_settings = {
|
|
164
|
+
readonly reconciliation_mode: "automatic" | "manual";
|
|
165
|
+
readonly using_merchant_default: boolean;
|
|
166
|
+
} & { readonly [x: string]: Schema.Json };
|
|
167
|
+
export type Stripedeleted_customer = {
|
|
168
|
+
readonly deleted: true;
|
|
169
|
+
readonly id: string;
|
|
170
|
+
readonly object: "customer";
|
|
171
|
+
} & { readonly [x: string]: Schema.Json };
|
|
172
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer =
|
|
173
|
+
{
|
|
174
|
+
readonly bic?: string | null;
|
|
175
|
+
readonly iban_last4?: string | null;
|
|
176
|
+
readonly sender_name?: string | null;
|
|
177
|
+
} & { readonly [x: string]: Schema.Json };
|
|
178
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer =
|
|
179
|
+
{
|
|
180
|
+
readonly account_number_last4?: string | null;
|
|
181
|
+
readonly sender_name?: string | null;
|
|
182
|
+
readonly sort_code?: string | null;
|
|
183
|
+
} & { readonly [x: string]: Schema.Json };
|
|
184
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer =
|
|
185
|
+
{
|
|
186
|
+
readonly sender_bank?: string | null;
|
|
187
|
+
readonly sender_branch?: string | null;
|
|
188
|
+
readonly sender_name?: string | null;
|
|
189
|
+
} & { readonly [x: string]: Schema.Json };
|
|
190
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer =
|
|
191
|
+
{
|
|
192
|
+
readonly network?: "ach" | "domestic_wire_us" | "fednow" | "rtp" | "swift";
|
|
193
|
+
readonly sender_name?: string | null;
|
|
194
|
+
} & { readonly [x: string]: Schema.Json };
|
|
195
|
+
export type Stripecustomer_tax_location = {
|
|
196
|
+
readonly country: string;
|
|
197
|
+
readonly source:
|
|
198
|
+
| "billing_address"
|
|
199
|
+
| "ip_address"
|
|
200
|
+
| "payment_method"
|
|
201
|
+
| "shipping_destination";
|
|
202
|
+
readonly state?: string | null;
|
|
203
|
+
} & { readonly [x: string]: Schema.Json };
|
|
204
|
+
export type Stripecustomer_acceptance = {
|
|
205
|
+
readonly accepted_at?: number | null;
|
|
206
|
+
readonly offline?: Stripeoffline_acceptance;
|
|
207
|
+
readonly online?: Stripeonline_acceptance;
|
|
208
|
+
readonly type: "offline" | "online";
|
|
209
|
+
} & { readonly [x: string]: Schema.Json };
|
|
210
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer =
|
|
211
|
+
{
|
|
212
|
+
readonly eu_bank_transfer?: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer;
|
|
213
|
+
readonly gb_bank_transfer?: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer;
|
|
214
|
+
readonly jp_bank_transfer?: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer;
|
|
215
|
+
readonly reference?: string | null;
|
|
216
|
+
readonly type:
|
|
217
|
+
| "eu_bank_transfer"
|
|
218
|
+
| "gb_bank_transfer"
|
|
219
|
+
| "jp_bank_transfer"
|
|
220
|
+
| "mx_bank_transfer"
|
|
221
|
+
| "us_bank_transfer";
|
|
222
|
+
readonly us_bank_transfer?: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer;
|
|
223
|
+
} & { readonly [x: string]: Schema.Json };
|
|
224
|
+
export type Stripecustomer_tax = {
|
|
225
|
+
readonly automatic_tax:
|
|
226
|
+
| "failed"
|
|
227
|
+
| "not_collecting"
|
|
228
|
+
| "supported"
|
|
229
|
+
| "unrecognized_location";
|
|
230
|
+
readonly ip_address?: string | null;
|
|
231
|
+
readonly location?: Stripecustomer_tax_location | null;
|
|
232
|
+
readonly provider: "anrok" | "avalara" | "sphere" | "stripe";
|
|
233
|
+
} & { readonly [x: string]: Schema.Json };
|
|
234
|
+
export type Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction =
|
|
235
|
+
{
|
|
236
|
+
readonly bank_transfer: Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer;
|
|
237
|
+
} & { readonly [x: string]: Schema.Json };
|
|
238
|
+
|
|
239
|
+
export const Stripecustomer = Schema.suspend(
|
|
240
|
+
(): Schema.Codec<Stripecustomer> =>
|
|
241
|
+
Schema.StructWithRest(
|
|
242
|
+
Schema.Struct({
|
|
243
|
+
address: Schema.optionalKey(
|
|
244
|
+
Schema.Union([
|
|
245
|
+
Schema.Union([Stripeaddress, Schema.Null]).annotate({
|
|
246
|
+
description: "The customer's billing address.",
|
|
247
|
+
}),
|
|
248
|
+
Schema.Null,
|
|
249
|
+
]),
|
|
250
|
+
),
|
|
251
|
+
balance: Schema.optionalKey(
|
|
252
|
+
Schema.Number.annotate({
|
|
253
|
+
description:
|
|
254
|
+
"The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance).",
|
|
255
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
256
|
+
),
|
|
257
|
+
business_name: Schema.optionalKey(
|
|
258
|
+
Schema.String.annotate({
|
|
259
|
+
description: "The customer's business name.",
|
|
260
|
+
}).check(
|
|
261
|
+
Schema.isMaxCodePoints(150).annotate({
|
|
262
|
+
expected: "a string with at most 150 code points",
|
|
263
|
+
}),
|
|
264
|
+
),
|
|
265
|
+
),
|
|
266
|
+
cash_balance: Schema.optionalKey(
|
|
267
|
+
Schema.Union([
|
|
268
|
+
Schema.Union([Stripecash_balance, Schema.Null]).annotate({
|
|
269
|
+
description:
|
|
270
|
+
'The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.',
|
|
271
|
+
}),
|
|
272
|
+
Schema.Null,
|
|
273
|
+
]),
|
|
274
|
+
),
|
|
275
|
+
created: Schema.Number.annotate({
|
|
276
|
+
description:
|
|
277
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
278
|
+
format: "unix-time",
|
|
279
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
280
|
+
currency: Schema.optionalKey(
|
|
281
|
+
Schema.Union([
|
|
282
|
+
Schema.String.annotate({
|
|
283
|
+
description:
|
|
284
|
+
"Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes.",
|
|
285
|
+
}).check(
|
|
286
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
287
|
+
expected: "a string with at most 5000 code points",
|
|
288
|
+
}),
|
|
289
|
+
),
|
|
290
|
+
Schema.Null,
|
|
291
|
+
]),
|
|
292
|
+
),
|
|
293
|
+
customer_account: Schema.optionalKey(
|
|
294
|
+
Schema.Union([
|
|
295
|
+
Schema.String.annotate({
|
|
296
|
+
description:
|
|
297
|
+
"The ID of an Account representing a customer. You can use this ID with any v1 API that accepts a customer_account parameter.",
|
|
298
|
+
}).check(
|
|
299
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
300
|
+
expected: "a string with at most 5000 code points",
|
|
301
|
+
}),
|
|
302
|
+
),
|
|
303
|
+
Schema.Null,
|
|
304
|
+
]),
|
|
305
|
+
),
|
|
306
|
+
default_source: Schema.optionalKey(
|
|
307
|
+
Schema.Union([
|
|
308
|
+
Schema.Union([
|
|
309
|
+
Schema.String.check(
|
|
310
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
311
|
+
expected: "a string with at most 5000 code points",
|
|
312
|
+
}),
|
|
313
|
+
),
|
|
314
|
+
Schema.suspend(
|
|
315
|
+
(): Schema.Codec<Stripebank_account> => Stripebank_account,
|
|
316
|
+
),
|
|
317
|
+
Schema.suspend((): Schema.Codec<Stripecard> => Stripecard),
|
|
318
|
+
Stripesource,
|
|
319
|
+
Schema.Null,
|
|
320
|
+
]).annotate({
|
|
321
|
+
description:
|
|
322
|
+
"ID of the default payment source for the customer.\n\nIf you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead.",
|
|
323
|
+
}),
|
|
324
|
+
Schema.Null,
|
|
325
|
+
]),
|
|
326
|
+
),
|
|
327
|
+
delinquent: Schema.optionalKey(
|
|
328
|
+
Schema.Union([
|
|
329
|
+
Schema.Boolean.annotate({
|
|
330
|
+
description:
|
|
331
|
+
"Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.\n\nIf an invoice becomes uncollectible by [dunning](https://docs.stripe.com/billing/automatic-collection), `delinquent` doesn't reset to `false`.\n\nIf you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.",
|
|
332
|
+
}),
|
|
333
|
+
Schema.Null,
|
|
334
|
+
]),
|
|
335
|
+
),
|
|
336
|
+
description: Schema.optionalKey(
|
|
337
|
+
Schema.Union([
|
|
338
|
+
Schema.String.annotate({
|
|
339
|
+
description:
|
|
340
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
341
|
+
}).check(
|
|
342
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
343
|
+
expected: "a string with at most 5000 code points",
|
|
344
|
+
}),
|
|
345
|
+
),
|
|
346
|
+
Schema.Null,
|
|
347
|
+
]),
|
|
348
|
+
),
|
|
349
|
+
discount: Schema.optionalKey(
|
|
350
|
+
Schema.Union([
|
|
351
|
+
Schema.Union([
|
|
352
|
+
Schema.suspend(
|
|
353
|
+
(): Schema.Codec<Stripediscount> => Stripediscount,
|
|
354
|
+
),
|
|
355
|
+
Schema.Null,
|
|
356
|
+
]).annotate({
|
|
357
|
+
description:
|
|
358
|
+
"Describes the current discount active on the customer, if there is one.",
|
|
359
|
+
}),
|
|
360
|
+
Schema.Null,
|
|
361
|
+
]),
|
|
362
|
+
),
|
|
363
|
+
email: Schema.optionalKey(
|
|
364
|
+
Schema.Union([
|
|
365
|
+
Schema.String.annotate({
|
|
366
|
+
description: "The customer's email address.",
|
|
367
|
+
}).check(
|
|
368
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
369
|
+
expected: "a string with at most 5000 code points",
|
|
370
|
+
}),
|
|
371
|
+
),
|
|
372
|
+
Schema.Null,
|
|
373
|
+
]),
|
|
374
|
+
),
|
|
375
|
+
id: Schema.String.annotate({
|
|
376
|
+
description: "Unique identifier for the object.",
|
|
377
|
+
}).check(
|
|
378
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
379
|
+
expected: "a string with at most 5000 code points",
|
|
380
|
+
}),
|
|
381
|
+
),
|
|
382
|
+
individual_name: Schema.optionalKey(
|
|
383
|
+
Schema.String.annotate({
|
|
384
|
+
description: "The customer's individual name.",
|
|
385
|
+
}).check(
|
|
386
|
+
Schema.isMaxCodePoints(150).annotate({
|
|
387
|
+
expected: "a string with at most 150 code points",
|
|
388
|
+
}),
|
|
389
|
+
),
|
|
390
|
+
),
|
|
391
|
+
invoice_credit_balance: Schema.optionalKey(
|
|
392
|
+
Schema.Record(Schema.String, Schema.Int).annotate({
|
|
393
|
+
description:
|
|
394
|
+
"The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.",
|
|
395
|
+
}),
|
|
396
|
+
),
|
|
397
|
+
invoice_prefix: Schema.optionalKey(
|
|
398
|
+
Schema.Union([
|
|
399
|
+
Schema.String.annotate({
|
|
400
|
+
description:
|
|
401
|
+
"The prefix for the customer used to generate unique invoice numbers.",
|
|
402
|
+
}).check(
|
|
403
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
404
|
+
expected: "a string with at most 5000 code points",
|
|
405
|
+
}),
|
|
406
|
+
),
|
|
407
|
+
Schema.Null,
|
|
408
|
+
]),
|
|
409
|
+
),
|
|
410
|
+
invoice_settings: Schema.optionalKey(
|
|
411
|
+
Stripeinvoice_setting_customer_setting,
|
|
412
|
+
),
|
|
413
|
+
livemode: Schema.Boolean.annotate({
|
|
414
|
+
description:
|
|
415
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
416
|
+
}),
|
|
417
|
+
metadata: Schema.optionalKey(
|
|
418
|
+
Schema.Record(
|
|
419
|
+
Schema.String,
|
|
420
|
+
Schema.String.check(
|
|
421
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
422
|
+
expected: "a string with at most 500 code points",
|
|
423
|
+
}),
|
|
424
|
+
),
|
|
425
|
+
).annotate({
|
|
426
|
+
description:
|
|
427
|
+
"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.",
|
|
428
|
+
}),
|
|
429
|
+
),
|
|
430
|
+
name: Schema.optionalKey(
|
|
431
|
+
Schema.Union([
|
|
432
|
+
Schema.String.annotate({
|
|
433
|
+
description: "The customer's full name or business name.",
|
|
434
|
+
}).check(
|
|
435
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
436
|
+
expected: "a string with at most 5000 code points",
|
|
437
|
+
}),
|
|
438
|
+
),
|
|
439
|
+
Schema.Null,
|
|
440
|
+
]),
|
|
441
|
+
),
|
|
442
|
+
next_invoice_sequence: Schema.optionalKey(
|
|
443
|
+
Schema.Number.annotate({
|
|
444
|
+
description:
|
|
445
|
+
"The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.",
|
|
446
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
447
|
+
),
|
|
448
|
+
object: Schema.Literal("customer").annotate({
|
|
449
|
+
description:
|
|
450
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
451
|
+
}),
|
|
452
|
+
phone: Schema.optionalKey(
|
|
453
|
+
Schema.Union([
|
|
454
|
+
Schema.String.annotate({
|
|
455
|
+
description: "The customer's phone number.",
|
|
456
|
+
}).check(
|
|
457
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
458
|
+
expected: "a string with at most 5000 code points",
|
|
459
|
+
}),
|
|
460
|
+
),
|
|
461
|
+
Schema.Null,
|
|
462
|
+
]),
|
|
463
|
+
),
|
|
464
|
+
preferred_locales: Schema.optionalKey(
|
|
465
|
+
Schema.Union([
|
|
466
|
+
Schema.Array(
|
|
467
|
+
Schema.String.check(
|
|
468
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
469
|
+
expected: "a string with at most 5000 code points",
|
|
470
|
+
}),
|
|
471
|
+
),
|
|
472
|
+
).annotate({
|
|
473
|
+
description:
|
|
474
|
+
"The customer's preferred locales (languages), ordered by preference.",
|
|
475
|
+
}),
|
|
476
|
+
Schema.Null,
|
|
477
|
+
]),
|
|
478
|
+
),
|
|
479
|
+
shipping: Schema.optionalKey(
|
|
480
|
+
Schema.Union([
|
|
481
|
+
Schema.Union([Stripeshipping, Schema.Null]).annotate({
|
|
482
|
+
description:
|
|
483
|
+
"Mailing and shipping address for the customer. Appears on invoices emailed to this customer.",
|
|
484
|
+
}),
|
|
485
|
+
Schema.Null,
|
|
486
|
+
]),
|
|
487
|
+
),
|
|
488
|
+
sources: Schema.optionalKey(
|
|
489
|
+
Schema.StructWithRest(
|
|
490
|
+
Schema.Struct({
|
|
491
|
+
data: Schema.Array(
|
|
492
|
+
Schema.Union([
|
|
493
|
+
Schema.suspend(
|
|
494
|
+
(): Schema.Codec<Stripebank_account> => Stripebank_account,
|
|
495
|
+
),
|
|
496
|
+
Schema.suspend((): Schema.Codec<Stripecard> => Stripecard),
|
|
497
|
+
Stripesource,
|
|
498
|
+
]).annotate({ title: "Polymorphic" }),
|
|
499
|
+
).annotate({ description: "Details about each object." }),
|
|
500
|
+
has_more: Schema.Boolean.annotate({
|
|
501
|
+
description:
|
|
502
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
503
|
+
}),
|
|
504
|
+
object: Schema.Literal("list").annotate({
|
|
505
|
+
description:
|
|
506
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
507
|
+
}),
|
|
508
|
+
url: Schema.String.annotate({
|
|
509
|
+
description: "The URL where this list can be accessed.",
|
|
510
|
+
}).check(
|
|
511
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
512
|
+
expected: "a string with at most 5000 code points",
|
|
513
|
+
}),
|
|
514
|
+
),
|
|
515
|
+
}),
|
|
516
|
+
[
|
|
517
|
+
Schema.Record(
|
|
518
|
+
Schema.String,
|
|
519
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
520
|
+
),
|
|
521
|
+
],
|
|
522
|
+
).annotate({
|
|
523
|
+
title: "ApmsSourcesSourceList",
|
|
524
|
+
description: "The customer's payment sources, if any.",
|
|
525
|
+
}),
|
|
526
|
+
),
|
|
527
|
+
subscriptions: Schema.optionalKey(
|
|
528
|
+
Schema.StructWithRest(
|
|
529
|
+
Schema.Struct({
|
|
530
|
+
data: Schema.Array(
|
|
531
|
+
Schema.suspend(
|
|
532
|
+
(): Schema.Codec<Stripesubscription> => Stripesubscription,
|
|
533
|
+
),
|
|
534
|
+
).annotate({ description: "Details about each object." }),
|
|
535
|
+
has_more: Schema.Boolean.annotate({
|
|
536
|
+
description:
|
|
537
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
538
|
+
}),
|
|
539
|
+
object: Schema.Literal("list").annotate({
|
|
540
|
+
description:
|
|
541
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
542
|
+
}),
|
|
543
|
+
url: Schema.String.annotate({
|
|
544
|
+
description: "The URL where this list can be accessed.",
|
|
545
|
+
}).check(
|
|
546
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
547
|
+
expected: "a string with at most 5000 code points",
|
|
548
|
+
}),
|
|
549
|
+
),
|
|
550
|
+
}),
|
|
551
|
+
[
|
|
552
|
+
Schema.Record(
|
|
553
|
+
Schema.String,
|
|
554
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
555
|
+
),
|
|
556
|
+
],
|
|
557
|
+
).annotate({
|
|
558
|
+
title: "SubscriptionList",
|
|
559
|
+
description: "The customer's current subscriptions, if any.",
|
|
560
|
+
}),
|
|
561
|
+
),
|
|
562
|
+
tax: Schema.optionalKey(Stripecustomer_tax),
|
|
563
|
+
tax_exempt: Schema.optionalKey(
|
|
564
|
+
Schema.Union([
|
|
565
|
+
Schema.Literals(["exempt", "none", "reverse"]).annotate({
|
|
566
|
+
description:
|
|
567
|
+
'Describes the customer\'s tax exemption status, which is `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the following text: **"Reverse charge"**.',
|
|
568
|
+
}),
|
|
569
|
+
Schema.Null,
|
|
570
|
+
]),
|
|
571
|
+
),
|
|
572
|
+
tax_ids: Schema.optionalKey(
|
|
573
|
+
Schema.StructWithRest(
|
|
574
|
+
Schema.Struct({
|
|
575
|
+
data: Schema.Array(
|
|
576
|
+
Schema.suspend((): Schema.Codec<Stripetax_id> => Stripetax_id),
|
|
577
|
+
).annotate({ description: "Details about each object." }),
|
|
578
|
+
has_more: Schema.Boolean.annotate({
|
|
579
|
+
description:
|
|
580
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
581
|
+
}),
|
|
582
|
+
object: Schema.Literal("list").annotate({
|
|
583
|
+
description:
|
|
584
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
585
|
+
}),
|
|
586
|
+
url: Schema.String.annotate({
|
|
587
|
+
description: "The URL where this list can be accessed.",
|
|
588
|
+
}).check(
|
|
589
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
590
|
+
expected: "a string with at most 5000 code points",
|
|
591
|
+
}),
|
|
592
|
+
),
|
|
593
|
+
}),
|
|
594
|
+
[
|
|
595
|
+
Schema.Record(
|
|
596
|
+
Schema.String,
|
|
597
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
598
|
+
),
|
|
599
|
+
],
|
|
600
|
+
).annotate({
|
|
601
|
+
title: "TaxIDsList",
|
|
602
|
+
description: "The customer's tax IDs.",
|
|
603
|
+
}),
|
|
604
|
+
),
|
|
605
|
+
test_clock: Schema.optionalKey(
|
|
606
|
+
Schema.Union([
|
|
607
|
+
Schema.Union([
|
|
608
|
+
Schema.String.check(
|
|
609
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
610
|
+
expected: "a string with at most 5000 code points",
|
|
611
|
+
}),
|
|
612
|
+
),
|
|
613
|
+
Stripetest_helpers_test_clock,
|
|
614
|
+
Schema.Null,
|
|
615
|
+
]).annotate({
|
|
616
|
+
description:
|
|
617
|
+
"ID of the test clock that this customer belongs to.",
|
|
618
|
+
}),
|
|
619
|
+
Schema.Null,
|
|
620
|
+
]),
|
|
621
|
+
),
|
|
622
|
+
}),
|
|
623
|
+
[
|
|
624
|
+
Schema.Record(
|
|
625
|
+
Schema.String,
|
|
626
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
627
|
+
),
|
|
628
|
+
],
|
|
629
|
+
).annotate({
|
|
630
|
+
title: "Customer",
|
|
631
|
+
description:
|
|
632
|
+
"This object represents a customer of your business. Use it to [create recurring charges](https://docs.stripe.com/invoicing/customer), [save payment](https://docs.stripe.com/payments/save-during-payment) and contact information,\nand track payments that belong to the same customer.",
|
|
633
|
+
identifier: "Stripecustomer",
|
|
634
|
+
}),
|
|
635
|
+
);
|
|
636
|
+
export const Stripecustomer_cash_balance_transaction = Schema.suspend(
|
|
637
|
+
(): Schema.Codec<Stripecustomer_cash_balance_transaction> =>
|
|
638
|
+
Schema.StructWithRest(
|
|
639
|
+
Schema.Struct({
|
|
640
|
+
adjusted_for_overdraft: Schema.optionalKey(
|
|
641
|
+
Schema.suspend(
|
|
642
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft> =>
|
|
643
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft,
|
|
644
|
+
),
|
|
645
|
+
),
|
|
646
|
+
applied_to_payment: Schema.optionalKey(
|
|
647
|
+
Schema.suspend(
|
|
648
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction> =>
|
|
649
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction,
|
|
650
|
+
),
|
|
651
|
+
),
|
|
652
|
+
created: Schema.Number.annotate({
|
|
653
|
+
description:
|
|
654
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
655
|
+
format: "unix-time",
|
|
656
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
657
|
+
currency: Schema.String.annotate({
|
|
658
|
+
description:
|
|
659
|
+
"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).",
|
|
660
|
+
}).check(
|
|
661
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
662
|
+
expected: "a string with at most 5000 code points",
|
|
663
|
+
}),
|
|
664
|
+
),
|
|
665
|
+
customer: Schema.Union([
|
|
666
|
+
Schema.String.check(
|
|
667
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
668
|
+
expected: "a string with at most 5000 code points",
|
|
669
|
+
}),
|
|
670
|
+
),
|
|
671
|
+
Schema.suspend((): Schema.Codec<Stripecustomer> => Stripecustomer),
|
|
672
|
+
]).annotate({
|
|
673
|
+
description:
|
|
674
|
+
"The customer whose available cash balance changed as a result of this transaction.",
|
|
675
|
+
}),
|
|
676
|
+
customer_account: Schema.optionalKey(
|
|
677
|
+
Schema.Union([
|
|
678
|
+
Schema.String.annotate({
|
|
679
|
+
description:
|
|
680
|
+
"The ID of an Account representing a customer whose available cash balance changed as a result of this transaction.",
|
|
681
|
+
}).check(
|
|
682
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
683
|
+
expected: "a string with at most 5000 code points",
|
|
684
|
+
}),
|
|
685
|
+
),
|
|
686
|
+
Schema.Null,
|
|
687
|
+
]),
|
|
688
|
+
),
|
|
689
|
+
ending_balance: Schema.Number.annotate({
|
|
690
|
+
description:
|
|
691
|
+
"The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).",
|
|
692
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
693
|
+
funded: Schema.optionalKey(
|
|
694
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction,
|
|
695
|
+
),
|
|
696
|
+
id: Schema.String.annotate({
|
|
697
|
+
description: "Unique identifier for the object.",
|
|
698
|
+
}).check(
|
|
699
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
700
|
+
expected: "a string with at most 5000 code points",
|
|
701
|
+
}),
|
|
702
|
+
),
|
|
703
|
+
livemode: Schema.Boolean.annotate({
|
|
704
|
+
description:
|
|
705
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
706
|
+
}),
|
|
707
|
+
net_amount: Schema.Number.annotate({
|
|
708
|
+
description:
|
|
709
|
+
"The amount by which the cash balance changed, represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.",
|
|
710
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
711
|
+
object: Schema.Literal("customer_cash_balance_transaction").annotate({
|
|
712
|
+
description:
|
|
713
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
714
|
+
}),
|
|
715
|
+
refunded_from_payment: Schema.optionalKey(
|
|
716
|
+
Schema.suspend(
|
|
717
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction> =>
|
|
718
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction,
|
|
719
|
+
),
|
|
720
|
+
),
|
|
721
|
+
transferred_to_balance: Schema.optionalKey(
|
|
722
|
+
Schema.suspend(
|
|
723
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance> =>
|
|
724
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance,
|
|
725
|
+
),
|
|
726
|
+
),
|
|
727
|
+
type: Schema.Literals([
|
|
728
|
+
"adjusted_for_overdraft",
|
|
729
|
+
"applied_to_payment",
|
|
730
|
+
"funded",
|
|
731
|
+
"funding_reversed",
|
|
732
|
+
"refunded_from_payment",
|
|
733
|
+
"return_canceled",
|
|
734
|
+
"return_initiated",
|
|
735
|
+
"transferred_to_balance",
|
|
736
|
+
"unapplied_from_payment",
|
|
737
|
+
]).annotate({
|
|
738
|
+
description:
|
|
739
|
+
"The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types.",
|
|
740
|
+
}),
|
|
741
|
+
unapplied_from_payment: Schema.optionalKey(
|
|
742
|
+
Schema.suspend(
|
|
743
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction> =>
|
|
744
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction,
|
|
745
|
+
),
|
|
746
|
+
),
|
|
747
|
+
}),
|
|
748
|
+
[
|
|
749
|
+
Schema.Record(
|
|
750
|
+
Schema.String,
|
|
751
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
752
|
+
),
|
|
753
|
+
],
|
|
754
|
+
).annotate({
|
|
755
|
+
title: "Cash Balance Transaction",
|
|
756
|
+
description:
|
|
757
|
+
"Customers with certain payments enabled have a cash balance, representing funds that were paid\nby the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions\nrepresent when funds are moved into or out of this balance. This includes funding by the customer, allocation\nto payments, and refunds to the customer.",
|
|
758
|
+
identifier: "Stripecustomer_cash_balance_transaction",
|
|
759
|
+
}),
|
|
760
|
+
);
|
|
761
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction =
|
|
762
|
+
Schema.StructWithRest(
|
|
763
|
+
Schema.Struct({
|
|
764
|
+
payment_intent: Schema.Union([
|
|
765
|
+
Schema.String.check(
|
|
766
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
767
|
+
expected: "a string with at most 5000 code points",
|
|
768
|
+
}),
|
|
769
|
+
),
|
|
770
|
+
Schema.suspend(
|
|
771
|
+
(): Schema.Codec<Stripepayment_intent> => Stripepayment_intent,
|
|
772
|
+
),
|
|
773
|
+
]).annotate({
|
|
774
|
+
description:
|
|
775
|
+
"The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were unapplied from.",
|
|
776
|
+
}),
|
|
777
|
+
}),
|
|
778
|
+
[
|
|
779
|
+
Schema.Record(
|
|
780
|
+
Schema.String,
|
|
781
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
782
|
+
),
|
|
783
|
+
],
|
|
784
|
+
).annotate({
|
|
785
|
+
title:
|
|
786
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction",
|
|
787
|
+
description: "",
|
|
788
|
+
identifier:
|
|
789
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction",
|
|
790
|
+
});
|
|
791
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance =
|
|
792
|
+
Schema.StructWithRest(
|
|
793
|
+
Schema.Struct({
|
|
794
|
+
balance_transaction: Schema.Union([
|
|
795
|
+
Schema.String.check(
|
|
796
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
797
|
+
expected: "a string with at most 5000 code points",
|
|
798
|
+
}),
|
|
799
|
+
),
|
|
800
|
+
Schema.suspend(
|
|
801
|
+
(): Schema.Codec<Stripebalance_transaction> =>
|
|
802
|
+
Stripebalance_transaction,
|
|
803
|
+
),
|
|
804
|
+
]).annotate({
|
|
805
|
+
description:
|
|
806
|
+
"The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.",
|
|
807
|
+
}),
|
|
808
|
+
}),
|
|
809
|
+
[
|
|
810
|
+
Schema.Record(
|
|
811
|
+
Schema.String,
|
|
812
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
813
|
+
),
|
|
814
|
+
],
|
|
815
|
+
).annotate({
|
|
816
|
+
title:
|
|
817
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalance",
|
|
818
|
+
description: "",
|
|
819
|
+
identifier:
|
|
820
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_transferred_to_balance",
|
|
821
|
+
});
|
|
822
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction =
|
|
823
|
+
Schema.StructWithRest(
|
|
824
|
+
Schema.Struct({
|
|
825
|
+
refund: Schema.Union([
|
|
826
|
+
Schema.String.check(
|
|
827
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
828
|
+
expected: "a string with at most 5000 code points",
|
|
829
|
+
}),
|
|
830
|
+
),
|
|
831
|
+
Schema.suspend((): Schema.Codec<Striperefund> => Striperefund),
|
|
832
|
+
]).annotate({
|
|
833
|
+
description:
|
|
834
|
+
"The [Refund](https://docs.stripe.com/api/refunds/object) that moved these funds into the customer's cash balance.",
|
|
835
|
+
}),
|
|
836
|
+
}),
|
|
837
|
+
[
|
|
838
|
+
Schema.Record(
|
|
839
|
+
Schema.String,
|
|
840
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
841
|
+
),
|
|
842
|
+
],
|
|
843
|
+
).annotate({
|
|
844
|
+
title:
|
|
845
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransaction",
|
|
846
|
+
description: "",
|
|
847
|
+
identifier:
|
|
848
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction",
|
|
849
|
+
});
|
|
850
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction =
|
|
851
|
+
Schema.StructWithRest(
|
|
852
|
+
Schema.Struct({
|
|
853
|
+
payment_intent: Schema.Union([
|
|
854
|
+
Schema.String.check(
|
|
855
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
856
|
+
expected: "a string with at most 5000 code points",
|
|
857
|
+
}),
|
|
858
|
+
),
|
|
859
|
+
Schema.suspend(
|
|
860
|
+
(): Schema.Codec<Stripepayment_intent> => Stripepayment_intent,
|
|
861
|
+
),
|
|
862
|
+
]).annotate({
|
|
863
|
+
description:
|
|
864
|
+
"The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were applied to.",
|
|
865
|
+
}),
|
|
866
|
+
}),
|
|
867
|
+
[
|
|
868
|
+
Schema.Record(
|
|
869
|
+
Schema.String,
|
|
870
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
871
|
+
),
|
|
872
|
+
],
|
|
873
|
+
).annotate({
|
|
874
|
+
title:
|
|
875
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransaction",
|
|
876
|
+
description: "",
|
|
877
|
+
identifier:
|
|
878
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction",
|
|
879
|
+
});
|
|
880
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft =
|
|
881
|
+
Schema.StructWithRest(
|
|
882
|
+
Schema.Struct({
|
|
883
|
+
balance_transaction: Schema.Union([
|
|
884
|
+
Schema.String.check(
|
|
885
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
886
|
+
expected: "a string with at most 5000 code points",
|
|
887
|
+
}),
|
|
888
|
+
),
|
|
889
|
+
Schema.suspend(
|
|
890
|
+
(): Schema.Codec<Stripebalance_transaction> =>
|
|
891
|
+
Stripebalance_transaction,
|
|
892
|
+
),
|
|
893
|
+
]).annotate({
|
|
894
|
+
description:
|
|
895
|
+
"The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.",
|
|
896
|
+
}),
|
|
897
|
+
linked_transaction: Schema.Union([
|
|
898
|
+
Schema.String.check(
|
|
899
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
900
|
+
expected: "a string with at most 5000 code points",
|
|
901
|
+
}),
|
|
902
|
+
),
|
|
903
|
+
Schema.suspend(
|
|
904
|
+
(): Schema.Codec<Stripecustomer_cash_balance_transaction> =>
|
|
905
|
+
Stripecustomer_cash_balance_transaction,
|
|
906
|
+
),
|
|
907
|
+
]).annotate({
|
|
908
|
+
description:
|
|
909
|
+
"The [Cash Balance Transaction](https://docs.stripe.com/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.",
|
|
910
|
+
}),
|
|
911
|
+
}),
|
|
912
|
+
[
|
|
913
|
+
Schema.Record(
|
|
914
|
+
Schema.String,
|
|
915
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
916
|
+
),
|
|
917
|
+
],
|
|
918
|
+
).annotate({
|
|
919
|
+
title:
|
|
920
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraft",
|
|
921
|
+
description: "",
|
|
922
|
+
identifier:
|
|
923
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft",
|
|
924
|
+
});
|
|
925
|
+
export const Stripecustomer_balance_transaction = Schema.suspend(
|
|
926
|
+
(): Schema.Codec<Stripecustomer_balance_transaction> =>
|
|
927
|
+
Schema.StructWithRest(
|
|
928
|
+
Schema.Struct({
|
|
929
|
+
amount: Schema.Number.annotate({
|
|
930
|
+
description:
|
|
931
|
+
"The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's `balance`.",
|
|
932
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
933
|
+
checkout_session: Schema.optionalKey(
|
|
934
|
+
Schema.Union([
|
|
935
|
+
Schema.Union([
|
|
936
|
+
Schema.String.check(
|
|
937
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
938
|
+
expected: "a string with at most 5000 code points",
|
|
939
|
+
}),
|
|
940
|
+
),
|
|
941
|
+
Stripecheckout_session,
|
|
942
|
+
]).annotate({
|
|
943
|
+
description:
|
|
944
|
+
"The ID of the checkout session (if any) that created the transaction.",
|
|
945
|
+
}),
|
|
946
|
+
Schema.Null,
|
|
947
|
+
]),
|
|
948
|
+
),
|
|
949
|
+
created: Schema.Number.annotate({
|
|
950
|
+
description:
|
|
951
|
+
"Time at which the object was created. Measured in seconds since the Unix epoch.",
|
|
952
|
+
format: "unix-time",
|
|
953
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
954
|
+
credit_note: Schema.optionalKey(
|
|
955
|
+
Schema.Union([
|
|
956
|
+
Schema.Union([
|
|
957
|
+
Schema.String.check(
|
|
958
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
959
|
+
expected: "a string with at most 5000 code points",
|
|
960
|
+
}),
|
|
961
|
+
),
|
|
962
|
+
Schema.suspend(
|
|
963
|
+
(): Schema.Codec<Stripecredit_note> => Stripecredit_note,
|
|
964
|
+
),
|
|
965
|
+
]).annotate({
|
|
966
|
+
description:
|
|
967
|
+
"The ID of the credit note (if any) related to the transaction.",
|
|
968
|
+
}),
|
|
969
|
+
Schema.Null,
|
|
970
|
+
]),
|
|
971
|
+
),
|
|
972
|
+
currency: Schema.String.annotate({
|
|
973
|
+
description:
|
|
974
|
+
"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).",
|
|
975
|
+
format: "currency",
|
|
976
|
+
}),
|
|
977
|
+
customer: Schema.Union([
|
|
978
|
+
Schema.String.check(
|
|
979
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
980
|
+
expected: "a string with at most 5000 code points",
|
|
981
|
+
}),
|
|
982
|
+
),
|
|
983
|
+
Schema.suspend((): Schema.Codec<Stripecustomer> => Stripecustomer),
|
|
984
|
+
]).annotate({
|
|
985
|
+
description: "The ID of the customer the transaction belongs to.",
|
|
986
|
+
}),
|
|
987
|
+
customer_account: Schema.optionalKey(
|
|
988
|
+
Schema.Union([
|
|
989
|
+
Schema.String.annotate({
|
|
990
|
+
description:
|
|
991
|
+
"The ID of an Account representing a customer that the transaction belongs to.",
|
|
992
|
+
}).check(
|
|
993
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
994
|
+
expected: "a string with at most 5000 code points",
|
|
995
|
+
}),
|
|
996
|
+
),
|
|
997
|
+
Schema.Null,
|
|
998
|
+
]),
|
|
999
|
+
),
|
|
1000
|
+
description: Schema.optionalKey(
|
|
1001
|
+
Schema.Union([
|
|
1002
|
+
Schema.String.annotate({
|
|
1003
|
+
description:
|
|
1004
|
+
"An arbitrary string attached to the object. Often useful for displaying to users.",
|
|
1005
|
+
}).check(
|
|
1006
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1007
|
+
expected: "a string with at most 5000 code points",
|
|
1008
|
+
}),
|
|
1009
|
+
),
|
|
1010
|
+
Schema.Null,
|
|
1011
|
+
]),
|
|
1012
|
+
),
|
|
1013
|
+
ending_balance: Schema.Number.annotate({
|
|
1014
|
+
description:
|
|
1015
|
+
"The customer's `balance` after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.",
|
|
1016
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1017
|
+
id: Schema.String.annotate({
|
|
1018
|
+
description: "Unique identifier for the object.",
|
|
1019
|
+
}).check(
|
|
1020
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1021
|
+
expected: "a string with at most 5000 code points",
|
|
1022
|
+
}),
|
|
1023
|
+
),
|
|
1024
|
+
invoice: Schema.optionalKey(
|
|
1025
|
+
Schema.Union([
|
|
1026
|
+
Schema.Union([
|
|
1027
|
+
Schema.String.check(
|
|
1028
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1029
|
+
expected: "a string with at most 5000 code points",
|
|
1030
|
+
}),
|
|
1031
|
+
),
|
|
1032
|
+
Schema.suspend((): Schema.Codec<Stripeinvoice> => Stripeinvoice),
|
|
1033
|
+
]).annotate({
|
|
1034
|
+
description:
|
|
1035
|
+
"The ID of the invoice (if any) related to the transaction.",
|
|
1036
|
+
}),
|
|
1037
|
+
Schema.Null,
|
|
1038
|
+
]),
|
|
1039
|
+
),
|
|
1040
|
+
livemode: Schema.Boolean.annotate({
|
|
1041
|
+
description:
|
|
1042
|
+
"If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.",
|
|
1043
|
+
}),
|
|
1044
|
+
metadata: Schema.optionalKey(
|
|
1045
|
+
Schema.Union([
|
|
1046
|
+
Schema.Record(
|
|
1047
|
+
Schema.String,
|
|
1048
|
+
Schema.String.check(
|
|
1049
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1050
|
+
expected: "a string with at most 500 code points",
|
|
1051
|
+
}),
|
|
1052
|
+
),
|
|
1053
|
+
).annotate({
|
|
1054
|
+
description:
|
|
1055
|
+
"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.",
|
|
1056
|
+
}),
|
|
1057
|
+
Schema.Null,
|
|
1058
|
+
]),
|
|
1059
|
+
),
|
|
1060
|
+
object: Schema.Literal("customer_balance_transaction").annotate({
|
|
1061
|
+
description:
|
|
1062
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
1063
|
+
}),
|
|
1064
|
+
type: Schema.Literals([
|
|
1065
|
+
"adjustment",
|
|
1066
|
+
"applied_to_invoice",
|
|
1067
|
+
"checkout_session_subscription_payment",
|
|
1068
|
+
"checkout_session_subscription_payment_canceled",
|
|
1069
|
+
"credit_note",
|
|
1070
|
+
"initial",
|
|
1071
|
+
"invoice_overpaid",
|
|
1072
|
+
"invoice_too_large",
|
|
1073
|
+
"invoice_too_small",
|
|
1074
|
+
"migration",
|
|
1075
|
+
"unapplied_from_invoice",
|
|
1076
|
+
"unspent_receiver_credit",
|
|
1077
|
+
]).annotate({
|
|
1078
|
+
description:
|
|
1079
|
+
"Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://docs.stripe.com/billing/customer/balance#types) to learn more about transaction types.",
|
|
1080
|
+
}),
|
|
1081
|
+
}),
|
|
1082
|
+
[
|
|
1083
|
+
Schema.Record(
|
|
1084
|
+
Schema.String,
|
|
1085
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1086
|
+
),
|
|
1087
|
+
],
|
|
1088
|
+
).annotate({
|
|
1089
|
+
title: "Customer Balance Transaction",
|
|
1090
|
+
description:
|
|
1091
|
+
"Each customer has a [Balance](https://docs.stripe.com/api/customers/object#customer_object-balance) value,\nwhich denotes a debit or credit that's automatically applied to their next invoice upon finalization.\nYou may modify the value directly by using the [update customer API](https://docs.stripe.com/api/customers/update),\nor by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.\n\nRelated guide: [Customer balance](https://docs.stripe.com/billing/customer/balance)",
|
|
1092
|
+
identifier: "Stripecustomer_balance_transaction",
|
|
1093
|
+
}),
|
|
1094
|
+
);
|
|
1095
|
+
export const Stripecustomer_balance_customer_balance_settings =
|
|
1096
|
+
Schema.StructWithRest(
|
|
1097
|
+
Schema.Struct({
|
|
1098
|
+
reconciliation_mode: Schema.Literals(["automatic", "manual"]).annotate({
|
|
1099
|
+
description:
|
|
1100
|
+
"The configuration for how funds that land in the customer cash balance are reconciled.",
|
|
1101
|
+
}),
|
|
1102
|
+
using_merchant_default: Schema.Boolean.annotate({
|
|
1103
|
+
description:
|
|
1104
|
+
"A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance",
|
|
1105
|
+
}),
|
|
1106
|
+
}),
|
|
1107
|
+
[
|
|
1108
|
+
Schema.Record(
|
|
1109
|
+
Schema.String,
|
|
1110
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1111
|
+
),
|
|
1112
|
+
],
|
|
1113
|
+
).annotate({
|
|
1114
|
+
title: "CustomerBalanceCustomerBalanceSettings",
|
|
1115
|
+
description: "",
|
|
1116
|
+
identifier: "Stripecustomer_balance_customer_balance_settings",
|
|
1117
|
+
});
|
|
1118
|
+
export const Stripedeleted_customer = Schema.StructWithRest(
|
|
1119
|
+
Schema.Struct({
|
|
1120
|
+
deleted: Schema.Literal(true).annotate({
|
|
1121
|
+
description: "Always true for a deleted object",
|
|
1122
|
+
}),
|
|
1123
|
+
id: Schema.String.annotate({
|
|
1124
|
+
description: "Unique identifier for the object.",
|
|
1125
|
+
}).check(
|
|
1126
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1127
|
+
expected: "a string with at most 5000 code points",
|
|
1128
|
+
}),
|
|
1129
|
+
),
|
|
1130
|
+
object: Schema.Literal("customer").annotate({
|
|
1131
|
+
description:
|
|
1132
|
+
"String representing the object's type. Objects of the same type share the same value.",
|
|
1133
|
+
}),
|
|
1134
|
+
}),
|
|
1135
|
+
[
|
|
1136
|
+
Schema.Record(
|
|
1137
|
+
Schema.String,
|
|
1138
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1139
|
+
),
|
|
1140
|
+
],
|
|
1141
|
+
).annotate({
|
|
1142
|
+
title: "DeletedCustomer",
|
|
1143
|
+
description: "",
|
|
1144
|
+
identifier: "Stripedeleted_customer",
|
|
1145
|
+
});
|
|
1146
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer =
|
|
1147
|
+
Schema.StructWithRest(
|
|
1148
|
+
Schema.Struct({
|
|
1149
|
+
bic: Schema.optionalKey(
|
|
1150
|
+
Schema.Union([
|
|
1151
|
+
Schema.String.annotate({
|
|
1152
|
+
description: "The BIC of the bank of the sender of the funding.",
|
|
1153
|
+
}).check(
|
|
1154
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1155
|
+
expected: "a string with at most 5000 code points",
|
|
1156
|
+
}),
|
|
1157
|
+
),
|
|
1158
|
+
Schema.Null,
|
|
1159
|
+
]),
|
|
1160
|
+
),
|
|
1161
|
+
iban_last4: Schema.optionalKey(
|
|
1162
|
+
Schema.Union([
|
|
1163
|
+
Schema.String.annotate({
|
|
1164
|
+
description:
|
|
1165
|
+
"The last 4 digits of the IBAN of the sender of the funding.",
|
|
1166
|
+
}).check(
|
|
1167
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1168
|
+
expected: "a string with at most 5000 code points",
|
|
1169
|
+
}),
|
|
1170
|
+
),
|
|
1171
|
+
Schema.Null,
|
|
1172
|
+
]),
|
|
1173
|
+
),
|
|
1174
|
+
sender_name: Schema.optionalKey(
|
|
1175
|
+
Schema.Union([
|
|
1176
|
+
Schema.String.annotate({
|
|
1177
|
+
description:
|
|
1178
|
+
"The full name of the sender, as supplied by the sending bank.",
|
|
1179
|
+
}).check(
|
|
1180
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1181
|
+
expected: "a string with at most 5000 code points",
|
|
1182
|
+
}),
|
|
1183
|
+
),
|
|
1184
|
+
Schema.Null,
|
|
1185
|
+
]),
|
|
1186
|
+
),
|
|
1187
|
+
}),
|
|
1188
|
+
[
|
|
1189
|
+
Schema.Record(
|
|
1190
|
+
Schema.String,
|
|
1191
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1192
|
+
),
|
|
1193
|
+
],
|
|
1194
|
+
).annotate({
|
|
1195
|
+
title:
|
|
1196
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer",
|
|
1197
|
+
description: "",
|
|
1198
|
+
identifier:
|
|
1199
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer",
|
|
1200
|
+
});
|
|
1201
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer =
|
|
1202
|
+
Schema.StructWithRest(
|
|
1203
|
+
Schema.Struct({
|
|
1204
|
+
account_number_last4: Schema.optionalKey(
|
|
1205
|
+
Schema.Union([
|
|
1206
|
+
Schema.String.annotate({
|
|
1207
|
+
description:
|
|
1208
|
+
"The last 4 digits of the account number of the sender of the funding.",
|
|
1209
|
+
}).check(
|
|
1210
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1211
|
+
expected: "a string with at most 5000 code points",
|
|
1212
|
+
}),
|
|
1213
|
+
),
|
|
1214
|
+
Schema.Null,
|
|
1215
|
+
]),
|
|
1216
|
+
),
|
|
1217
|
+
sender_name: Schema.optionalKey(
|
|
1218
|
+
Schema.Union([
|
|
1219
|
+
Schema.String.annotate({
|
|
1220
|
+
description:
|
|
1221
|
+
"The full name of the sender, as supplied by the sending bank.",
|
|
1222
|
+
}).check(
|
|
1223
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1224
|
+
expected: "a string with at most 5000 code points",
|
|
1225
|
+
}),
|
|
1226
|
+
),
|
|
1227
|
+
Schema.Null,
|
|
1228
|
+
]),
|
|
1229
|
+
),
|
|
1230
|
+
sort_code: Schema.optionalKey(
|
|
1231
|
+
Schema.Union([
|
|
1232
|
+
Schema.String.annotate({
|
|
1233
|
+
description:
|
|
1234
|
+
"The sort code of the bank of the sender of the funding",
|
|
1235
|
+
}).check(
|
|
1236
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1237
|
+
expected: "a string with at most 5000 code points",
|
|
1238
|
+
}),
|
|
1239
|
+
),
|
|
1240
|
+
Schema.Null,
|
|
1241
|
+
]),
|
|
1242
|
+
),
|
|
1243
|
+
}),
|
|
1244
|
+
[
|
|
1245
|
+
Schema.Record(
|
|
1246
|
+
Schema.String,
|
|
1247
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1248
|
+
),
|
|
1249
|
+
],
|
|
1250
|
+
).annotate({
|
|
1251
|
+
title:
|
|
1252
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer",
|
|
1253
|
+
description: "",
|
|
1254
|
+
identifier:
|
|
1255
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer",
|
|
1256
|
+
});
|
|
1257
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer =
|
|
1258
|
+
Schema.StructWithRest(
|
|
1259
|
+
Schema.Struct({
|
|
1260
|
+
sender_bank: Schema.optionalKey(
|
|
1261
|
+
Schema.Union([
|
|
1262
|
+
Schema.String.annotate({
|
|
1263
|
+
description: "The name of the bank of the sender of the funding.",
|
|
1264
|
+
}).check(
|
|
1265
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1266
|
+
expected: "a string with at most 5000 code points",
|
|
1267
|
+
}),
|
|
1268
|
+
),
|
|
1269
|
+
Schema.Null,
|
|
1270
|
+
]),
|
|
1271
|
+
),
|
|
1272
|
+
sender_branch: Schema.optionalKey(
|
|
1273
|
+
Schema.Union([
|
|
1274
|
+
Schema.String.annotate({
|
|
1275
|
+
description:
|
|
1276
|
+
"The name of the bank branch of the sender of the funding.",
|
|
1277
|
+
}).check(
|
|
1278
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1279
|
+
expected: "a string with at most 5000 code points",
|
|
1280
|
+
}),
|
|
1281
|
+
),
|
|
1282
|
+
Schema.Null,
|
|
1283
|
+
]),
|
|
1284
|
+
),
|
|
1285
|
+
sender_name: Schema.optionalKey(
|
|
1286
|
+
Schema.Union([
|
|
1287
|
+
Schema.String.annotate({
|
|
1288
|
+
description:
|
|
1289
|
+
"The full name of the sender, as supplied by the sending bank.",
|
|
1290
|
+
}).check(
|
|
1291
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1292
|
+
expected: "a string with at most 5000 code points",
|
|
1293
|
+
}),
|
|
1294
|
+
),
|
|
1295
|
+
Schema.Null,
|
|
1296
|
+
]),
|
|
1297
|
+
),
|
|
1298
|
+
}),
|
|
1299
|
+
[
|
|
1300
|
+
Schema.Record(
|
|
1301
|
+
Schema.String,
|
|
1302
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1303
|
+
),
|
|
1304
|
+
],
|
|
1305
|
+
).annotate({
|
|
1306
|
+
title:
|
|
1307
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer",
|
|
1308
|
+
description: "",
|
|
1309
|
+
identifier:
|
|
1310
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer",
|
|
1311
|
+
});
|
|
1312
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer =
|
|
1313
|
+
Schema.StructWithRest(
|
|
1314
|
+
Schema.Struct({
|
|
1315
|
+
network: Schema.optionalKey(
|
|
1316
|
+
Schema.Literals([
|
|
1317
|
+
"ach",
|
|
1318
|
+
"domestic_wire_us",
|
|
1319
|
+
"fednow",
|
|
1320
|
+
"rtp",
|
|
1321
|
+
"swift",
|
|
1322
|
+
]).annotate({
|
|
1323
|
+
description: "The banking network used for this funding.",
|
|
1324
|
+
}),
|
|
1325
|
+
),
|
|
1326
|
+
sender_name: Schema.optionalKey(
|
|
1327
|
+
Schema.Union([
|
|
1328
|
+
Schema.String.annotate({
|
|
1329
|
+
description:
|
|
1330
|
+
"The full name of the sender, as supplied by the sending bank.",
|
|
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
|
+
}),
|
|
1340
|
+
[
|
|
1341
|
+
Schema.Record(
|
|
1342
|
+
Schema.String,
|
|
1343
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1344
|
+
),
|
|
1345
|
+
],
|
|
1346
|
+
).annotate({
|
|
1347
|
+
title:
|
|
1348
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer",
|
|
1349
|
+
description: "",
|
|
1350
|
+
identifier:
|
|
1351
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer",
|
|
1352
|
+
});
|
|
1353
|
+
export const Stripecustomer_tax_location = Schema.StructWithRest(
|
|
1354
|
+
Schema.Struct({
|
|
1355
|
+
country: Schema.String.annotate({
|
|
1356
|
+
description: "The identified tax country of the customer.",
|
|
1357
|
+
}).check(
|
|
1358
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1359
|
+
expected: "a string with at most 5000 code points",
|
|
1360
|
+
}),
|
|
1361
|
+
),
|
|
1362
|
+
source: Schema.Literals([
|
|
1363
|
+
"billing_address",
|
|
1364
|
+
"ip_address",
|
|
1365
|
+
"payment_method",
|
|
1366
|
+
"shipping_destination",
|
|
1367
|
+
]).annotate({
|
|
1368
|
+
description: "The data source used to infer the customer's location.",
|
|
1369
|
+
}),
|
|
1370
|
+
state: Schema.optionalKey(
|
|
1371
|
+
Schema.Union([
|
|
1372
|
+
Schema.String.annotate({
|
|
1373
|
+
description:
|
|
1374
|
+
"The identified tax state, county, province, or region of the customer.",
|
|
1375
|
+
}).check(
|
|
1376
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1377
|
+
expected: "a string with at most 5000 code points",
|
|
1378
|
+
}),
|
|
1379
|
+
),
|
|
1380
|
+
Schema.Null,
|
|
1381
|
+
]),
|
|
1382
|
+
),
|
|
1383
|
+
}),
|
|
1384
|
+
[
|
|
1385
|
+
Schema.Record(
|
|
1386
|
+
Schema.String,
|
|
1387
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1388
|
+
),
|
|
1389
|
+
],
|
|
1390
|
+
).annotate({
|
|
1391
|
+
title: "CustomerTaxLocation",
|
|
1392
|
+
description: "",
|
|
1393
|
+
identifier: "Stripecustomer_tax_location",
|
|
1394
|
+
});
|
|
1395
|
+
export const Stripecustomer_acceptance = Schema.suspend(
|
|
1396
|
+
(): Schema.Codec<Stripecustomer_acceptance> =>
|
|
1397
|
+
Schema.StructWithRest(
|
|
1398
|
+
Schema.Struct({
|
|
1399
|
+
accepted_at: Schema.optionalKey(
|
|
1400
|
+
Schema.Union([
|
|
1401
|
+
Schema.Number.annotate({
|
|
1402
|
+
description: "The time that the customer accepts the mandate.",
|
|
1403
|
+
format: "unix-time",
|
|
1404
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1405
|
+
Schema.Null,
|
|
1406
|
+
]),
|
|
1407
|
+
),
|
|
1408
|
+
offline: Schema.optionalKey(Stripeoffline_acceptance),
|
|
1409
|
+
online: Schema.optionalKey(Stripeonline_acceptance),
|
|
1410
|
+
type: Schema.Literals(["offline", "online"]).annotate({
|
|
1411
|
+
description:
|
|
1412
|
+
"The mandate includes the type of customer acceptance information, such as: `online` or `offline`.",
|
|
1413
|
+
}),
|
|
1414
|
+
}),
|
|
1415
|
+
[
|
|
1416
|
+
Schema.Record(
|
|
1417
|
+
Schema.String,
|
|
1418
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1419
|
+
),
|
|
1420
|
+
],
|
|
1421
|
+
).annotate({
|
|
1422
|
+
title: "customer_acceptance",
|
|
1423
|
+
description: "",
|
|
1424
|
+
identifier: "Stripecustomer_acceptance",
|
|
1425
|
+
}),
|
|
1426
|
+
);
|
|
1427
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer =
|
|
1428
|
+
Schema.suspend(
|
|
1429
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer> =>
|
|
1430
|
+
Schema.StructWithRest(
|
|
1431
|
+
Schema.Struct({
|
|
1432
|
+
eu_bank_transfer: Schema.optionalKey(
|
|
1433
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer,
|
|
1434
|
+
),
|
|
1435
|
+
gb_bank_transfer: Schema.optionalKey(
|
|
1436
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer,
|
|
1437
|
+
),
|
|
1438
|
+
jp_bank_transfer: Schema.optionalKey(
|
|
1439
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer,
|
|
1440
|
+
),
|
|
1441
|
+
reference: Schema.optionalKey(
|
|
1442
|
+
Schema.Union([
|
|
1443
|
+
Schema.String.annotate({
|
|
1444
|
+
description:
|
|
1445
|
+
"The user-supplied reference field on the bank transfer.",
|
|
1446
|
+
}).check(
|
|
1447
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1448
|
+
expected: "a string with at most 5000 code points",
|
|
1449
|
+
}),
|
|
1450
|
+
),
|
|
1451
|
+
Schema.Null,
|
|
1452
|
+
]),
|
|
1453
|
+
),
|
|
1454
|
+
type: Schema.Literals([
|
|
1455
|
+
"eu_bank_transfer",
|
|
1456
|
+
"gb_bank_transfer",
|
|
1457
|
+
"jp_bank_transfer",
|
|
1458
|
+
"mx_bank_transfer",
|
|
1459
|
+
"us_bank_transfer",
|
|
1460
|
+
]).annotate({
|
|
1461
|
+
description:
|
|
1462
|
+
"The funding method type used to fund the customer balance. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.",
|
|
1463
|
+
}),
|
|
1464
|
+
us_bank_transfer: Schema.optionalKey(
|
|
1465
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer,
|
|
1466
|
+
),
|
|
1467
|
+
}),
|
|
1468
|
+
[
|
|
1469
|
+
Schema.Record(
|
|
1470
|
+
Schema.String,
|
|
1471
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1472
|
+
),
|
|
1473
|
+
],
|
|
1474
|
+
).annotate({
|
|
1475
|
+
title:
|
|
1476
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer",
|
|
1477
|
+
description: "",
|
|
1478
|
+
identifier:
|
|
1479
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer",
|
|
1480
|
+
}),
|
|
1481
|
+
);
|
|
1482
|
+
export const Stripecustomer_tax = Schema.suspend(
|
|
1483
|
+
(): Schema.Codec<Stripecustomer_tax> =>
|
|
1484
|
+
Schema.StructWithRest(
|
|
1485
|
+
Schema.Struct({
|
|
1486
|
+
automatic_tax: Schema.Literals([
|
|
1487
|
+
"failed",
|
|
1488
|
+
"not_collecting",
|
|
1489
|
+
"supported",
|
|
1490
|
+
"unrecognized_location",
|
|
1491
|
+
]).annotate({
|
|
1492
|
+
description:
|
|
1493
|
+
"Surfaces if automatic tax computation is possible given the current customer location information.",
|
|
1494
|
+
}),
|
|
1495
|
+
ip_address: Schema.optionalKey(
|
|
1496
|
+
Schema.Union([
|
|
1497
|
+
Schema.String.annotate({
|
|
1498
|
+
description:
|
|
1499
|
+
"A recent IP address of the customer used for tax reporting and tax location inference.",
|
|
1500
|
+
}).check(
|
|
1501
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1502
|
+
expected: "a string with at most 5000 code points",
|
|
1503
|
+
}),
|
|
1504
|
+
),
|
|
1505
|
+
Schema.Null,
|
|
1506
|
+
]),
|
|
1507
|
+
),
|
|
1508
|
+
location: Schema.optionalKey(
|
|
1509
|
+
Schema.Union([
|
|
1510
|
+
Schema.Union([Stripecustomer_tax_location]).annotate({
|
|
1511
|
+
description: "The identified tax location of the customer.",
|
|
1512
|
+
}),
|
|
1513
|
+
Schema.Null,
|
|
1514
|
+
]),
|
|
1515
|
+
),
|
|
1516
|
+
provider: Schema.Literals([
|
|
1517
|
+
"anrok",
|
|
1518
|
+
"avalara",
|
|
1519
|
+
"sphere",
|
|
1520
|
+
"stripe",
|
|
1521
|
+
]).annotate({
|
|
1522
|
+
description:
|
|
1523
|
+
"The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps).",
|
|
1524
|
+
}),
|
|
1525
|
+
}),
|
|
1526
|
+
[
|
|
1527
|
+
Schema.Record(
|
|
1528
|
+
Schema.String,
|
|
1529
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1530
|
+
),
|
|
1531
|
+
],
|
|
1532
|
+
).annotate({
|
|
1533
|
+
title: "CustomerTax",
|
|
1534
|
+
description: "",
|
|
1535
|
+
identifier: "Stripecustomer_tax",
|
|
1536
|
+
}),
|
|
1537
|
+
);
|
|
1538
|
+
export const Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction =
|
|
1539
|
+
Schema.suspend(
|
|
1540
|
+
(): Schema.Codec<Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction> =>
|
|
1541
|
+
Schema.StructWithRest(
|
|
1542
|
+
Schema.Struct({
|
|
1543
|
+
bank_transfer:
|
|
1544
|
+
Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer,
|
|
1545
|
+
}),
|
|
1546
|
+
[
|
|
1547
|
+
Schema.Record(
|
|
1548
|
+
Schema.String,
|
|
1549
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1550
|
+
),
|
|
1551
|
+
],
|
|
1552
|
+
).annotate({
|
|
1553
|
+
title:
|
|
1554
|
+
"CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction",
|
|
1555
|
+
description: "",
|
|
1556
|
+
identifier:
|
|
1557
|
+
"Stripecustomer_balance_resource_cash_balance_transaction_resource_funded_transaction",
|
|
1558
|
+
}),
|
|
1559
|
+
);
|