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,1874 @@
|
|
|
1
|
+
// This schema module comes from the selected resource contracts. Do not edit.
|
|
2
|
+
|
|
3
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's compiled regular expressions.
|
|
4
|
+
import { Effect, Schema } from "effect";
|
|
5
|
+
import { StripeClient } from "../stripeClient.js";
|
|
6
|
+
import type { StripeOperation } from "../stripeClientModel.js";
|
|
7
|
+
import { stripeApiBaseUrl, stripeApiVersion } from "./configuration.js";
|
|
8
|
+
import { Stripeerror, Stripeitem, Stripequote } from "./models/common.js";
|
|
9
|
+
|
|
10
|
+
export type GetQuotesInput = {
|
|
11
|
+
readonly customer?: string;
|
|
12
|
+
readonly customer_account?: string;
|
|
13
|
+
readonly ending_before?: string;
|
|
14
|
+
readonly expand?: ReadonlyArray<string>;
|
|
15
|
+
readonly limit?: number;
|
|
16
|
+
readonly starting_after?: string;
|
|
17
|
+
readonly status?: "accepted" | "canceled" | "draft" | "open";
|
|
18
|
+
readonly test_clock?: string;
|
|
19
|
+
};
|
|
20
|
+
export type GetQuotesOutput = {
|
|
21
|
+
readonly data: ReadonlyArray<Stripequote>;
|
|
22
|
+
readonly has_more: boolean;
|
|
23
|
+
readonly object: "list";
|
|
24
|
+
readonly url: string;
|
|
25
|
+
} & { readonly [x: string]: Schema.Json };
|
|
26
|
+
export type GetQuotesError = Stripeerror;
|
|
27
|
+
export type PostQuotesInput = {
|
|
28
|
+
readonly application_fee_amount?: number | "";
|
|
29
|
+
readonly application_fee_percent?: number | "";
|
|
30
|
+
readonly automatic_tax?: {
|
|
31
|
+
readonly enabled: boolean;
|
|
32
|
+
readonly liability?: {
|
|
33
|
+
readonly account?: string;
|
|
34
|
+
readonly type: "account" | "self";
|
|
35
|
+
} & { readonly [x: string]: Schema.Json };
|
|
36
|
+
} & { readonly [x: string]: Schema.Json };
|
|
37
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
38
|
+
readonly customer?: string;
|
|
39
|
+
readonly customer_account?: string;
|
|
40
|
+
readonly default_tax_rates?: ReadonlyArray<string> | "";
|
|
41
|
+
readonly description?: string | "";
|
|
42
|
+
readonly discounts?:
|
|
43
|
+
| ReadonlyArray<
|
|
44
|
+
{
|
|
45
|
+
readonly coupon?: string;
|
|
46
|
+
readonly discount?: string;
|
|
47
|
+
readonly promotion_code?: string;
|
|
48
|
+
} & { readonly [x: string]: Schema.Json }
|
|
49
|
+
>
|
|
50
|
+
| "";
|
|
51
|
+
readonly expand?: ReadonlyArray<string>;
|
|
52
|
+
readonly expires_at?: number;
|
|
53
|
+
readonly footer?: string | "";
|
|
54
|
+
readonly from_quote?: {
|
|
55
|
+
readonly is_revision?: boolean;
|
|
56
|
+
readonly quote: string;
|
|
57
|
+
} & { readonly [x: string]: Schema.Json };
|
|
58
|
+
readonly header?: string | "";
|
|
59
|
+
readonly invoice_settings?: {
|
|
60
|
+
readonly custom_fields?:
|
|
61
|
+
| ReadonlyArray<
|
|
62
|
+
{ readonly name: string; readonly value: string } & {
|
|
63
|
+
readonly [x: string]: Schema.Json;
|
|
64
|
+
}
|
|
65
|
+
>
|
|
66
|
+
| "";
|
|
67
|
+
readonly days_until_due?: number;
|
|
68
|
+
readonly description?: string | "";
|
|
69
|
+
readonly footer?: string | "";
|
|
70
|
+
readonly issuer?: {
|
|
71
|
+
readonly account?: string;
|
|
72
|
+
readonly type: "account" | "self";
|
|
73
|
+
} & { readonly [x: string]: Schema.Json };
|
|
74
|
+
} & { readonly [x: string]: Schema.Json };
|
|
75
|
+
readonly line_items?: ReadonlyArray<
|
|
76
|
+
{
|
|
77
|
+
readonly discounts?:
|
|
78
|
+
| ReadonlyArray<
|
|
79
|
+
{
|
|
80
|
+
readonly coupon?: string;
|
|
81
|
+
readonly discount?: string;
|
|
82
|
+
readonly promotion_code?: string;
|
|
83
|
+
} & { readonly [x: string]: Schema.Json }
|
|
84
|
+
>
|
|
85
|
+
| "";
|
|
86
|
+
readonly price?: string;
|
|
87
|
+
readonly price_data?: {
|
|
88
|
+
readonly currency: string;
|
|
89
|
+
readonly product: string;
|
|
90
|
+
readonly recurring?: {
|
|
91
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
92
|
+
readonly interval_count?: number;
|
|
93
|
+
} & { readonly [x: string]: Schema.Json };
|
|
94
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
95
|
+
readonly unit_amount?: number;
|
|
96
|
+
readonly unit_amount_decimal?: string;
|
|
97
|
+
} & { readonly [x: string]: Schema.Json };
|
|
98
|
+
readonly quantity?: number;
|
|
99
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
100
|
+
} & { readonly [x: string]: Schema.Json }
|
|
101
|
+
>;
|
|
102
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
103
|
+
readonly on_behalf_of?: string | "";
|
|
104
|
+
readonly subscription_data?: {
|
|
105
|
+
readonly billing_mode?: {
|
|
106
|
+
readonly flexible?: {
|
|
107
|
+
readonly proration_discounts?: "included" | "itemized";
|
|
108
|
+
} & { readonly [x: string]: Schema.Json };
|
|
109
|
+
readonly type: "classic" | "flexible";
|
|
110
|
+
} & { readonly [x: string]: Schema.Json };
|
|
111
|
+
readonly description?: string;
|
|
112
|
+
readonly effective_date?: "current_period_end" | number | "";
|
|
113
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
114
|
+
readonly trial_period_days?: number | "";
|
|
115
|
+
} & { readonly [x: string]: Schema.Json };
|
|
116
|
+
readonly test_clock?: string;
|
|
117
|
+
readonly transfer_data?:
|
|
118
|
+
| ({
|
|
119
|
+
readonly amount?: number;
|
|
120
|
+
readonly amount_percent?: number;
|
|
121
|
+
readonly destination: string;
|
|
122
|
+
} & { readonly [x: string]: Schema.Json })
|
|
123
|
+
| "";
|
|
124
|
+
};
|
|
125
|
+
export type PostQuotesOutput = Stripequote;
|
|
126
|
+
export type PostQuotesError = Stripeerror;
|
|
127
|
+
export type GetQuotesQuoteInput = {
|
|
128
|
+
readonly expand?: ReadonlyArray<string>;
|
|
129
|
+
readonly quote: string;
|
|
130
|
+
};
|
|
131
|
+
export type GetQuotesQuoteOutput = Stripequote;
|
|
132
|
+
export type GetQuotesQuoteError = Stripeerror;
|
|
133
|
+
export type PostQuotesQuoteInput = {
|
|
134
|
+
readonly application_fee_amount?: number | "";
|
|
135
|
+
readonly application_fee_percent?: number | "";
|
|
136
|
+
readonly automatic_tax?: {
|
|
137
|
+
readonly enabled: boolean;
|
|
138
|
+
readonly liability?: {
|
|
139
|
+
readonly account?: string;
|
|
140
|
+
readonly type: "account" | "self";
|
|
141
|
+
} & { readonly [x: string]: Schema.Json };
|
|
142
|
+
} & { readonly [x: string]: Schema.Json };
|
|
143
|
+
readonly collection_method?: "charge_automatically" | "send_invoice";
|
|
144
|
+
readonly customer?: string;
|
|
145
|
+
readonly customer_account?: string;
|
|
146
|
+
readonly default_tax_rates?: ReadonlyArray<string> | "";
|
|
147
|
+
readonly description?: string | "";
|
|
148
|
+
readonly discounts?:
|
|
149
|
+
| ReadonlyArray<
|
|
150
|
+
{
|
|
151
|
+
readonly coupon?: string;
|
|
152
|
+
readonly discount?: string;
|
|
153
|
+
readonly promotion_code?: string;
|
|
154
|
+
} & { readonly [x: string]: Schema.Json }
|
|
155
|
+
>
|
|
156
|
+
| "";
|
|
157
|
+
readonly expand?: ReadonlyArray<string>;
|
|
158
|
+
readonly expires_at?: number;
|
|
159
|
+
readonly footer?: string | "";
|
|
160
|
+
readonly header?: string | "";
|
|
161
|
+
readonly invoice_settings?: {
|
|
162
|
+
readonly custom_fields?:
|
|
163
|
+
| ReadonlyArray<
|
|
164
|
+
{ readonly name: string; readonly value: string } & {
|
|
165
|
+
readonly [x: string]: Schema.Json;
|
|
166
|
+
}
|
|
167
|
+
>
|
|
168
|
+
| "";
|
|
169
|
+
readonly days_until_due?: number;
|
|
170
|
+
readonly description?: string | "";
|
|
171
|
+
readonly footer?: string | "";
|
|
172
|
+
readonly issuer?: {
|
|
173
|
+
readonly account?: string;
|
|
174
|
+
readonly type: "account" | "self";
|
|
175
|
+
} & { readonly [x: string]: Schema.Json };
|
|
176
|
+
} & { readonly [x: string]: Schema.Json };
|
|
177
|
+
readonly line_items?: ReadonlyArray<
|
|
178
|
+
{
|
|
179
|
+
readonly discounts?:
|
|
180
|
+
| ReadonlyArray<
|
|
181
|
+
{
|
|
182
|
+
readonly coupon?: string;
|
|
183
|
+
readonly discount?: string;
|
|
184
|
+
readonly promotion_code?: string;
|
|
185
|
+
} & { readonly [x: string]: Schema.Json }
|
|
186
|
+
>
|
|
187
|
+
| "";
|
|
188
|
+
readonly id?: string;
|
|
189
|
+
readonly price?: string;
|
|
190
|
+
readonly price_data?: {
|
|
191
|
+
readonly currency: string;
|
|
192
|
+
readonly product: string;
|
|
193
|
+
readonly recurring?: {
|
|
194
|
+
readonly interval: "day" | "month" | "week" | "year";
|
|
195
|
+
readonly interval_count?: number;
|
|
196
|
+
} & { readonly [x: string]: Schema.Json };
|
|
197
|
+
readonly tax_behavior?: "exclusive" | "inclusive" | "unspecified";
|
|
198
|
+
readonly unit_amount?: number;
|
|
199
|
+
readonly unit_amount_decimal?: string;
|
|
200
|
+
} & { readonly [x: string]: Schema.Json };
|
|
201
|
+
readonly quantity?: number;
|
|
202
|
+
readonly tax_rates?: ReadonlyArray<string> | "";
|
|
203
|
+
} & { readonly [x: string]: Schema.Json }
|
|
204
|
+
>;
|
|
205
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
206
|
+
readonly on_behalf_of?: string | "";
|
|
207
|
+
readonly subscription_data?: {
|
|
208
|
+
readonly description?: string | "";
|
|
209
|
+
readonly effective_date?: "current_period_end" | number | "";
|
|
210
|
+
readonly metadata?: { readonly [x: string]: string };
|
|
211
|
+
readonly trial_period_days?: number | "";
|
|
212
|
+
} & { readonly [x: string]: Schema.Json };
|
|
213
|
+
readonly transfer_data?:
|
|
214
|
+
| ({
|
|
215
|
+
readonly amount?: number;
|
|
216
|
+
readonly amount_percent?: number;
|
|
217
|
+
readonly destination: string;
|
|
218
|
+
} & { readonly [x: string]: Schema.Json })
|
|
219
|
+
| "";
|
|
220
|
+
readonly quote: string;
|
|
221
|
+
};
|
|
222
|
+
export type PostQuotesQuoteOutput = Stripequote;
|
|
223
|
+
export type PostQuotesQuoteError = Stripeerror;
|
|
224
|
+
export type PostQuotesQuoteAcceptInput = {
|
|
225
|
+
readonly expand?: ReadonlyArray<string>;
|
|
226
|
+
readonly quote: string;
|
|
227
|
+
};
|
|
228
|
+
export type PostQuotesQuoteAcceptOutput = Stripequote;
|
|
229
|
+
export type PostQuotesQuoteAcceptError = Stripeerror;
|
|
230
|
+
export type PostQuotesQuoteCancelInput = {
|
|
231
|
+
readonly expand?: ReadonlyArray<string>;
|
|
232
|
+
readonly quote: string;
|
|
233
|
+
};
|
|
234
|
+
export type PostQuotesQuoteCancelOutput = Stripequote;
|
|
235
|
+
export type PostQuotesQuoteCancelError = Stripeerror;
|
|
236
|
+
export type GetQuotesQuoteComputedUpfrontLineItemsInput = {
|
|
237
|
+
readonly ending_before?: string;
|
|
238
|
+
readonly expand?: ReadonlyArray<string>;
|
|
239
|
+
readonly limit?: number;
|
|
240
|
+
readonly quote: string;
|
|
241
|
+
readonly starting_after?: string;
|
|
242
|
+
};
|
|
243
|
+
export type GetQuotesQuoteComputedUpfrontLineItemsOutput = {
|
|
244
|
+
readonly data: ReadonlyArray<Stripeitem>;
|
|
245
|
+
readonly has_more: boolean;
|
|
246
|
+
readonly object: "list";
|
|
247
|
+
readonly url: string;
|
|
248
|
+
} & { readonly [x: string]: Schema.Json };
|
|
249
|
+
export type GetQuotesQuoteComputedUpfrontLineItemsError = Stripeerror;
|
|
250
|
+
export type PostQuotesQuoteFinalizeInput = {
|
|
251
|
+
readonly expand?: ReadonlyArray<string>;
|
|
252
|
+
readonly expires_at?: number;
|
|
253
|
+
readonly quote: string;
|
|
254
|
+
};
|
|
255
|
+
export type PostQuotesQuoteFinalizeOutput = Stripequote;
|
|
256
|
+
export type PostQuotesQuoteFinalizeError = Stripeerror;
|
|
257
|
+
export type GetQuotesQuoteLineItemsInput = {
|
|
258
|
+
readonly ending_before?: string;
|
|
259
|
+
readonly expand?: ReadonlyArray<string>;
|
|
260
|
+
readonly limit?: number;
|
|
261
|
+
readonly quote: string;
|
|
262
|
+
readonly starting_after?: string;
|
|
263
|
+
};
|
|
264
|
+
export type GetQuotesQuoteLineItemsOutput = {
|
|
265
|
+
readonly data: ReadonlyArray<Stripeitem>;
|
|
266
|
+
readonly has_more: boolean;
|
|
267
|
+
readonly object: "list";
|
|
268
|
+
readonly url: string;
|
|
269
|
+
} & { readonly [x: string]: Schema.Json };
|
|
270
|
+
export type GetQuotesQuoteLineItemsError = Stripeerror;
|
|
271
|
+
|
|
272
|
+
export const GetQuotesInput = Schema.Struct({
|
|
273
|
+
customer: Schema.optionalKey(
|
|
274
|
+
Schema.String.check(
|
|
275
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
276
|
+
expected: "a string with at most 5000 code points",
|
|
277
|
+
}),
|
|
278
|
+
),
|
|
279
|
+
),
|
|
280
|
+
customer_account: Schema.optionalKey(
|
|
281
|
+
Schema.String.check(
|
|
282
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
283
|
+
expected: "a string with at most 5000 code points",
|
|
284
|
+
}),
|
|
285
|
+
),
|
|
286
|
+
),
|
|
287
|
+
ending_before: Schema.optionalKey(
|
|
288
|
+
Schema.String.check(
|
|
289
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
290
|
+
expected: "a string with at most 5000 code points",
|
|
291
|
+
}),
|
|
292
|
+
),
|
|
293
|
+
),
|
|
294
|
+
expand: Schema.optionalKey(
|
|
295
|
+
Schema.Array(
|
|
296
|
+
Schema.String.check(
|
|
297
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
298
|
+
expected: "a string with at most 5000 code points",
|
|
299
|
+
}),
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
),
|
|
303
|
+
limit: Schema.optionalKey(Schema.Int),
|
|
304
|
+
starting_after: Schema.optionalKey(
|
|
305
|
+
Schema.String.check(
|
|
306
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
307
|
+
expected: "a string with at most 5000 code points",
|
|
308
|
+
}),
|
|
309
|
+
),
|
|
310
|
+
),
|
|
311
|
+
status: Schema.optionalKey(
|
|
312
|
+
Schema.Literals(["accepted", "canceled", "draft", "open"]),
|
|
313
|
+
),
|
|
314
|
+
test_clock: Schema.optionalKey(
|
|
315
|
+
Schema.String.check(
|
|
316
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
317
|
+
expected: "a string with at most 5000 code points",
|
|
318
|
+
}),
|
|
319
|
+
),
|
|
320
|
+
),
|
|
321
|
+
});
|
|
322
|
+
export const GetQuotesOutput = Schema.StructWithRest(
|
|
323
|
+
Schema.Struct({
|
|
324
|
+
data: Schema.Array(Stripequote),
|
|
325
|
+
has_more: Schema.Boolean.annotate({
|
|
326
|
+
description:
|
|
327
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
328
|
+
}),
|
|
329
|
+
object: Schema.Literal("list").annotate({
|
|
330
|
+
description:
|
|
331
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
332
|
+
}),
|
|
333
|
+
url: Schema.String.annotate({
|
|
334
|
+
description: "The URL where this list can be accessed.",
|
|
335
|
+
})
|
|
336
|
+
.check(
|
|
337
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
338
|
+
expected: "a string with at most 5000 code points",
|
|
339
|
+
}),
|
|
340
|
+
)
|
|
341
|
+
.check(
|
|
342
|
+
Schema.isPattern(
|
|
343
|
+
new globalThis.RegExp("^\\/v1\\/quotes", "u"),
|
|
344
|
+
).annotate({
|
|
345
|
+
expected: "a string matching the RegExp ^\\/v1\\/quotes",
|
|
346
|
+
}),
|
|
347
|
+
),
|
|
348
|
+
}),
|
|
349
|
+
[
|
|
350
|
+
Schema.Record(
|
|
351
|
+
Schema.String,
|
|
352
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
353
|
+
),
|
|
354
|
+
],
|
|
355
|
+
).annotate({ title: "QuotesResourceQuoteList", description: "" });
|
|
356
|
+
export const GetQuotesError = Stripeerror;
|
|
357
|
+
export const PostQuotesInput = Schema.Struct({
|
|
358
|
+
application_fee_amount: Schema.optionalKey(
|
|
359
|
+
Schema.Union([Schema.Int, Schema.Literal("")]).annotate({
|
|
360
|
+
description:
|
|
361
|
+
"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.",
|
|
362
|
+
}),
|
|
363
|
+
),
|
|
364
|
+
application_fee_percent: Schema.optionalKey(
|
|
365
|
+
Schema.Union([Schema.Finite, Schema.Literal("")]).annotate({
|
|
366
|
+
description:
|
|
367
|
+
"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.",
|
|
368
|
+
}),
|
|
369
|
+
),
|
|
370
|
+
automatic_tax: Schema.optionalKey(
|
|
371
|
+
Schema.StructWithRest(
|
|
372
|
+
Schema.Struct({
|
|
373
|
+
enabled: Schema.Boolean,
|
|
374
|
+
liability: Schema.optionalKey(
|
|
375
|
+
Schema.StructWithRest(
|
|
376
|
+
Schema.Struct({
|
|
377
|
+
account: Schema.optionalKey(Schema.String),
|
|
378
|
+
type: Schema.Literals(["account", "self"]),
|
|
379
|
+
}),
|
|
380
|
+
[
|
|
381
|
+
Schema.Record(
|
|
382
|
+
Schema.String,
|
|
383
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
384
|
+
),
|
|
385
|
+
],
|
|
386
|
+
).annotate({ title: "param" }),
|
|
387
|
+
),
|
|
388
|
+
}),
|
|
389
|
+
[
|
|
390
|
+
Schema.Record(
|
|
391
|
+
Schema.String,
|
|
392
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
393
|
+
),
|
|
394
|
+
],
|
|
395
|
+
).annotate({
|
|
396
|
+
title: "automatic_tax_param",
|
|
397
|
+
description:
|
|
398
|
+
"Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.",
|
|
399
|
+
}),
|
|
400
|
+
),
|
|
401
|
+
collection_method: Schema.optionalKey(
|
|
402
|
+
Schema.Literals(["charge_automatically", "send_invoice"]).annotate({
|
|
403
|
+
description:
|
|
404
|
+
"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.",
|
|
405
|
+
}),
|
|
406
|
+
),
|
|
407
|
+
customer: Schema.optionalKey(
|
|
408
|
+
Schema.String.annotate({
|
|
409
|
+
description:
|
|
410
|
+
"The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.",
|
|
411
|
+
}).check(
|
|
412
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
413
|
+
expected: "a string with at most 5000 code points",
|
|
414
|
+
}),
|
|
415
|
+
),
|
|
416
|
+
),
|
|
417
|
+
customer_account: Schema.optionalKey(
|
|
418
|
+
Schema.String.annotate({
|
|
419
|
+
description:
|
|
420
|
+
"The account for which this quote belongs to. A customer or account is required before finalizing the quote. Once specified, it cannot be changed.",
|
|
421
|
+
}).check(
|
|
422
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
423
|
+
expected: "a string with at most 5000 code points",
|
|
424
|
+
}),
|
|
425
|
+
),
|
|
426
|
+
),
|
|
427
|
+
default_tax_rates: Schema.optionalKey(
|
|
428
|
+
Schema.Union([
|
|
429
|
+
Schema.Array(
|
|
430
|
+
Schema.String.check(
|
|
431
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
432
|
+
expected: "a string with at most 5000 code points",
|
|
433
|
+
}),
|
|
434
|
+
),
|
|
435
|
+
),
|
|
436
|
+
Schema.Literal(""),
|
|
437
|
+
]).annotate({
|
|
438
|
+
description:
|
|
439
|
+
"The tax rates that will apply to any line item that does not have `tax_rates` set.",
|
|
440
|
+
}),
|
|
441
|
+
),
|
|
442
|
+
description: Schema.optionalKey(
|
|
443
|
+
Schema.Union([
|
|
444
|
+
Schema.String.check(
|
|
445
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
446
|
+
expected: "a string with at most 500 code points",
|
|
447
|
+
}),
|
|
448
|
+
),
|
|
449
|
+
Schema.Literal(""),
|
|
450
|
+
]).annotate({
|
|
451
|
+
description:
|
|
452
|
+
"A description that will be displayed on the quote PDF. If no value is passed, the default description configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.",
|
|
453
|
+
}),
|
|
454
|
+
),
|
|
455
|
+
discounts: Schema.optionalKey(
|
|
456
|
+
Schema.Union([
|
|
457
|
+
Schema.Array(
|
|
458
|
+
Schema.StructWithRest(
|
|
459
|
+
Schema.Struct({
|
|
460
|
+
coupon: Schema.optionalKey(
|
|
461
|
+
Schema.String.check(
|
|
462
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
463
|
+
expected: "a string with at most 5000 code points",
|
|
464
|
+
}),
|
|
465
|
+
),
|
|
466
|
+
),
|
|
467
|
+
discount: Schema.optionalKey(
|
|
468
|
+
Schema.String.check(
|
|
469
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
470
|
+
expected: "a string with at most 5000 code points",
|
|
471
|
+
}),
|
|
472
|
+
),
|
|
473
|
+
),
|
|
474
|
+
promotion_code: Schema.optionalKey(
|
|
475
|
+
Schema.String.check(
|
|
476
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
477
|
+
expected: "a string with at most 5000 code points",
|
|
478
|
+
}),
|
|
479
|
+
),
|
|
480
|
+
),
|
|
481
|
+
}),
|
|
482
|
+
[
|
|
483
|
+
Schema.Record(
|
|
484
|
+
Schema.String,
|
|
485
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
486
|
+
),
|
|
487
|
+
],
|
|
488
|
+
).annotate({ title: "discounts_data_param" }),
|
|
489
|
+
),
|
|
490
|
+
Schema.Literal(""),
|
|
491
|
+
]).annotate({ description: "The discounts applied to the quote." }),
|
|
492
|
+
),
|
|
493
|
+
expand: Schema.optionalKey(
|
|
494
|
+
Schema.Array(
|
|
495
|
+
Schema.String.check(
|
|
496
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
497
|
+
expected: "a string with at most 5000 code points",
|
|
498
|
+
}),
|
|
499
|
+
),
|
|
500
|
+
).annotate({
|
|
501
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
502
|
+
}),
|
|
503
|
+
),
|
|
504
|
+
expires_at: Schema.optionalKey(
|
|
505
|
+
Schema.Number.annotate({
|
|
506
|
+
description:
|
|
507
|
+
"A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch. If no value is passed, the default expiration date configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.",
|
|
508
|
+
format: "unix-time",
|
|
509
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
510
|
+
),
|
|
511
|
+
footer: Schema.optionalKey(
|
|
512
|
+
Schema.Union([
|
|
513
|
+
Schema.String.check(
|
|
514
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
515
|
+
expected: "a string with at most 500 code points",
|
|
516
|
+
}),
|
|
517
|
+
),
|
|
518
|
+
Schema.Literal(""),
|
|
519
|
+
]).annotate({
|
|
520
|
+
description:
|
|
521
|
+
"A footer that will be displayed on the quote PDF. If no value is passed, the default footer configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.",
|
|
522
|
+
}),
|
|
523
|
+
),
|
|
524
|
+
from_quote: Schema.optionalKey(
|
|
525
|
+
Schema.StructWithRest(
|
|
526
|
+
Schema.Struct({
|
|
527
|
+
is_revision: Schema.optionalKey(Schema.Boolean),
|
|
528
|
+
quote: Schema.String.check(
|
|
529
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
530
|
+
expected: "a string with at most 5000 code points",
|
|
531
|
+
}),
|
|
532
|
+
),
|
|
533
|
+
}),
|
|
534
|
+
[
|
|
535
|
+
Schema.Record(
|
|
536
|
+
Schema.String,
|
|
537
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
538
|
+
),
|
|
539
|
+
],
|
|
540
|
+
).annotate({
|
|
541
|
+
title: "from_quote_params",
|
|
542
|
+
description:
|
|
543
|
+
"Clone an existing quote. The new quote will be created in `status=draft`. When using this parameter, you cannot specify any other parameters except for `expires_at`.",
|
|
544
|
+
}),
|
|
545
|
+
),
|
|
546
|
+
header: Schema.optionalKey(
|
|
547
|
+
Schema.Union([
|
|
548
|
+
Schema.String.check(
|
|
549
|
+
Schema.isMaxCodePoints(50).annotate({
|
|
550
|
+
expected: "a string with at most 50 code points",
|
|
551
|
+
}),
|
|
552
|
+
),
|
|
553
|
+
Schema.Literal(""),
|
|
554
|
+
]).annotate({
|
|
555
|
+
description:
|
|
556
|
+
"A header that will be displayed on the quote PDF. If no value is passed, the default header configured in your [quote template settings](https://dashboard.stripe.com/settings/billing/quote) will be used.",
|
|
557
|
+
}),
|
|
558
|
+
),
|
|
559
|
+
invoice_settings: Schema.optionalKey(
|
|
560
|
+
Schema.StructWithRest(
|
|
561
|
+
Schema.Struct({
|
|
562
|
+
custom_fields: Schema.optionalKey(
|
|
563
|
+
Schema.Union([
|
|
564
|
+
Schema.Array(
|
|
565
|
+
Schema.StructWithRest(
|
|
566
|
+
Schema.Struct({
|
|
567
|
+
name: Schema.String.check(
|
|
568
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
569
|
+
expected: "a string with at most 40 code points",
|
|
570
|
+
}),
|
|
571
|
+
),
|
|
572
|
+
value: Schema.String.check(
|
|
573
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
574
|
+
expected: "a string with at most 140 code points",
|
|
575
|
+
}),
|
|
576
|
+
),
|
|
577
|
+
}),
|
|
578
|
+
[
|
|
579
|
+
Schema.Record(
|
|
580
|
+
Schema.String,
|
|
581
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
582
|
+
),
|
|
583
|
+
],
|
|
584
|
+
).annotate({ title: "custom_field_params" }),
|
|
585
|
+
),
|
|
586
|
+
Schema.Literal(""),
|
|
587
|
+
]),
|
|
588
|
+
),
|
|
589
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
590
|
+
description: Schema.optionalKey(
|
|
591
|
+
Schema.Union([
|
|
592
|
+
Schema.String.check(
|
|
593
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
594
|
+
expected: "a string with at most 500 code points",
|
|
595
|
+
}),
|
|
596
|
+
),
|
|
597
|
+
Schema.Literal(""),
|
|
598
|
+
]),
|
|
599
|
+
),
|
|
600
|
+
footer: Schema.optionalKey(
|
|
601
|
+
Schema.Union([
|
|
602
|
+
Schema.String.check(
|
|
603
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
604
|
+
expected: "a string with at most 5000 code points",
|
|
605
|
+
}),
|
|
606
|
+
),
|
|
607
|
+
Schema.Literal(""),
|
|
608
|
+
]),
|
|
609
|
+
),
|
|
610
|
+
issuer: Schema.optionalKey(
|
|
611
|
+
Schema.StructWithRest(
|
|
612
|
+
Schema.Struct({
|
|
613
|
+
account: Schema.optionalKey(Schema.String),
|
|
614
|
+
type: Schema.Literals(["account", "self"]),
|
|
615
|
+
}),
|
|
616
|
+
[
|
|
617
|
+
Schema.Record(
|
|
618
|
+
Schema.String,
|
|
619
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
620
|
+
),
|
|
621
|
+
],
|
|
622
|
+
).annotate({ title: "param" }),
|
|
623
|
+
),
|
|
624
|
+
}),
|
|
625
|
+
[
|
|
626
|
+
Schema.Record(
|
|
627
|
+
Schema.String,
|
|
628
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
629
|
+
),
|
|
630
|
+
],
|
|
631
|
+
).annotate({
|
|
632
|
+
title: "quote_param",
|
|
633
|
+
description: "All invoices will be billed using the specified settings.",
|
|
634
|
+
}),
|
|
635
|
+
),
|
|
636
|
+
line_items: Schema.optionalKey(
|
|
637
|
+
Schema.Array(
|
|
638
|
+
Schema.StructWithRest(
|
|
639
|
+
Schema.Struct({
|
|
640
|
+
discounts: Schema.optionalKey(
|
|
641
|
+
Schema.Union([
|
|
642
|
+
Schema.Array(
|
|
643
|
+
Schema.StructWithRest(
|
|
644
|
+
Schema.Struct({
|
|
645
|
+
coupon: Schema.optionalKey(
|
|
646
|
+
Schema.String.check(
|
|
647
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
648
|
+
expected: "a string with at most 5000 code points",
|
|
649
|
+
}),
|
|
650
|
+
),
|
|
651
|
+
),
|
|
652
|
+
discount: Schema.optionalKey(
|
|
653
|
+
Schema.String.check(
|
|
654
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
655
|
+
expected: "a string with at most 5000 code points",
|
|
656
|
+
}),
|
|
657
|
+
),
|
|
658
|
+
),
|
|
659
|
+
promotion_code: Schema.optionalKey(
|
|
660
|
+
Schema.String.check(
|
|
661
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
662
|
+
expected: "a string with at most 5000 code points",
|
|
663
|
+
}),
|
|
664
|
+
),
|
|
665
|
+
),
|
|
666
|
+
}),
|
|
667
|
+
[
|
|
668
|
+
Schema.Record(
|
|
669
|
+
Schema.String,
|
|
670
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
671
|
+
),
|
|
672
|
+
],
|
|
673
|
+
).annotate({ title: "discounts_data_param" }),
|
|
674
|
+
),
|
|
675
|
+
Schema.Literal(""),
|
|
676
|
+
]),
|
|
677
|
+
),
|
|
678
|
+
price: Schema.optionalKey(
|
|
679
|
+
Schema.String.check(
|
|
680
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
681
|
+
expected: "a string with at most 5000 code points",
|
|
682
|
+
}),
|
|
683
|
+
),
|
|
684
|
+
),
|
|
685
|
+
price_data: Schema.optionalKey(
|
|
686
|
+
Schema.StructWithRest(
|
|
687
|
+
Schema.Struct({
|
|
688
|
+
currency: Schema.String.annotate({ format: "currency" }),
|
|
689
|
+
product: Schema.String.check(
|
|
690
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
691
|
+
expected: "a string with at most 5000 code points",
|
|
692
|
+
}),
|
|
693
|
+
),
|
|
694
|
+
recurring: Schema.optionalKey(
|
|
695
|
+
Schema.StructWithRest(
|
|
696
|
+
Schema.Struct({
|
|
697
|
+
interval: Schema.Literals([
|
|
698
|
+
"day",
|
|
699
|
+
"month",
|
|
700
|
+
"week",
|
|
701
|
+
"year",
|
|
702
|
+
]),
|
|
703
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
704
|
+
}),
|
|
705
|
+
[
|
|
706
|
+
Schema.Record(
|
|
707
|
+
Schema.String,
|
|
708
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
709
|
+
),
|
|
710
|
+
],
|
|
711
|
+
).annotate({ title: "recurring_adhoc" }),
|
|
712
|
+
),
|
|
713
|
+
tax_behavior: Schema.optionalKey(
|
|
714
|
+
Schema.Literals(["exclusive", "inclusive", "unspecified"]),
|
|
715
|
+
),
|
|
716
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
717
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
718
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
719
|
+
),
|
|
720
|
+
}),
|
|
721
|
+
[
|
|
722
|
+
Schema.Record(
|
|
723
|
+
Schema.String,
|
|
724
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
725
|
+
),
|
|
726
|
+
],
|
|
727
|
+
).annotate({ title: "price_data" }),
|
|
728
|
+
),
|
|
729
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
730
|
+
tax_rates: Schema.optionalKey(
|
|
731
|
+
Schema.Union([
|
|
732
|
+
Schema.Array(
|
|
733
|
+
Schema.String.check(
|
|
734
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
735
|
+
expected: "a string with at most 5000 code points",
|
|
736
|
+
}),
|
|
737
|
+
),
|
|
738
|
+
),
|
|
739
|
+
Schema.Literal(""),
|
|
740
|
+
]),
|
|
741
|
+
),
|
|
742
|
+
}),
|
|
743
|
+
[
|
|
744
|
+
Schema.Record(
|
|
745
|
+
Schema.String,
|
|
746
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
747
|
+
),
|
|
748
|
+
],
|
|
749
|
+
).annotate({ title: "line_item_create_params" }),
|
|
750
|
+
).annotate({
|
|
751
|
+
description:
|
|
752
|
+
"A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.",
|
|
753
|
+
}),
|
|
754
|
+
),
|
|
755
|
+
metadata: Schema.optionalKey(
|
|
756
|
+
Schema.Record(Schema.String, Schema.String).annotate({
|
|
757
|
+
description:
|
|
758
|
+
"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
|
|
759
|
+
}),
|
|
760
|
+
),
|
|
761
|
+
on_behalf_of: Schema.optionalKey(
|
|
762
|
+
Schema.Union([Schema.String, Schema.Literal("")]).annotate({
|
|
763
|
+
description: "The account on behalf of which to charge.",
|
|
764
|
+
}),
|
|
765
|
+
),
|
|
766
|
+
subscription_data: Schema.optionalKey(
|
|
767
|
+
Schema.StructWithRest(
|
|
768
|
+
Schema.Struct({
|
|
769
|
+
billing_mode: Schema.optionalKey(
|
|
770
|
+
Schema.StructWithRest(
|
|
771
|
+
Schema.Struct({
|
|
772
|
+
flexible: Schema.optionalKey(
|
|
773
|
+
Schema.StructWithRest(
|
|
774
|
+
Schema.Struct({
|
|
775
|
+
proration_discounts: Schema.optionalKey(
|
|
776
|
+
Schema.Literals(["included", "itemized"]),
|
|
777
|
+
),
|
|
778
|
+
}),
|
|
779
|
+
[
|
|
780
|
+
Schema.Record(
|
|
781
|
+
Schema.String,
|
|
782
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
783
|
+
),
|
|
784
|
+
],
|
|
785
|
+
).annotate({ title: "flexible_params" }),
|
|
786
|
+
),
|
|
787
|
+
type: Schema.Literals(["classic", "flexible"]),
|
|
788
|
+
}),
|
|
789
|
+
[
|
|
790
|
+
Schema.Record(
|
|
791
|
+
Schema.String,
|
|
792
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
793
|
+
),
|
|
794
|
+
],
|
|
795
|
+
).annotate({ title: "billing_mode" }),
|
|
796
|
+
),
|
|
797
|
+
description: Schema.optionalKey(
|
|
798
|
+
Schema.String.check(
|
|
799
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
800
|
+
expected: "a string with at most 500 code points",
|
|
801
|
+
}),
|
|
802
|
+
),
|
|
803
|
+
),
|
|
804
|
+
effective_date: Schema.optionalKey(
|
|
805
|
+
Schema.Union([
|
|
806
|
+
Schema.Literal("current_period_end"),
|
|
807
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
808
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
809
|
+
),
|
|
810
|
+
Schema.Literal(""),
|
|
811
|
+
]),
|
|
812
|
+
),
|
|
813
|
+
metadata: Schema.optionalKey(
|
|
814
|
+
Schema.Record(Schema.String, Schema.String),
|
|
815
|
+
),
|
|
816
|
+
trial_period_days: Schema.optionalKey(
|
|
817
|
+
Schema.Union([Schema.Int, Schema.Literal("")]),
|
|
818
|
+
),
|
|
819
|
+
}),
|
|
820
|
+
[
|
|
821
|
+
Schema.Record(
|
|
822
|
+
Schema.String,
|
|
823
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
824
|
+
),
|
|
825
|
+
],
|
|
826
|
+
).annotate({
|
|
827
|
+
title: "subscription_data_create_params",
|
|
828
|
+
description:
|
|
829
|
+
"When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.",
|
|
830
|
+
}),
|
|
831
|
+
),
|
|
832
|
+
test_clock: Schema.optionalKey(
|
|
833
|
+
Schema.String.annotate({
|
|
834
|
+
description: "ID of the test clock to attach to the quote.",
|
|
835
|
+
}).check(
|
|
836
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
837
|
+
expected: "a string with at most 5000 code points",
|
|
838
|
+
}),
|
|
839
|
+
),
|
|
840
|
+
),
|
|
841
|
+
transfer_data: Schema.optionalKey(
|
|
842
|
+
Schema.Union([
|
|
843
|
+
Schema.StructWithRest(
|
|
844
|
+
Schema.Struct({
|
|
845
|
+
amount: Schema.optionalKey(Schema.Int),
|
|
846
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
847
|
+
destination: Schema.String,
|
|
848
|
+
}),
|
|
849
|
+
[
|
|
850
|
+
Schema.Record(
|
|
851
|
+
Schema.String,
|
|
852
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
853
|
+
),
|
|
854
|
+
],
|
|
855
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
856
|
+
Schema.Literal(""),
|
|
857
|
+
]).annotate({
|
|
858
|
+
description:
|
|
859
|
+
"The data with which to automatically create a Transfer for each of the invoices.",
|
|
860
|
+
}),
|
|
861
|
+
),
|
|
862
|
+
});
|
|
863
|
+
export const PostQuotesOutput = Stripequote;
|
|
864
|
+
export const PostQuotesError = Stripeerror;
|
|
865
|
+
export const GetQuotesQuoteInput = Schema.Struct({
|
|
866
|
+
expand: Schema.optionalKey(
|
|
867
|
+
Schema.Array(
|
|
868
|
+
Schema.String.check(
|
|
869
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
870
|
+
expected: "a string with at most 5000 code points",
|
|
871
|
+
}),
|
|
872
|
+
),
|
|
873
|
+
),
|
|
874
|
+
),
|
|
875
|
+
quote: Schema.String.check(
|
|
876
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
877
|
+
expected: "a string with at most 5000 code points",
|
|
878
|
+
}),
|
|
879
|
+
),
|
|
880
|
+
});
|
|
881
|
+
export const GetQuotesQuoteOutput = Stripequote;
|
|
882
|
+
export const GetQuotesQuoteError = Stripeerror;
|
|
883
|
+
export const PostQuotesQuoteInput = Schema.Struct({
|
|
884
|
+
application_fee_amount: Schema.optionalKey(
|
|
885
|
+
Schema.Union([Schema.Int, Schema.Literal("")]).annotate({
|
|
886
|
+
description:
|
|
887
|
+
"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.",
|
|
888
|
+
}),
|
|
889
|
+
),
|
|
890
|
+
application_fee_percent: Schema.optionalKey(
|
|
891
|
+
Schema.Union([Schema.Finite, Schema.Literal("")]).annotate({
|
|
892
|
+
description:
|
|
893
|
+
"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.",
|
|
894
|
+
}),
|
|
895
|
+
),
|
|
896
|
+
automatic_tax: Schema.optionalKey(
|
|
897
|
+
Schema.StructWithRest(
|
|
898
|
+
Schema.Struct({
|
|
899
|
+
enabled: Schema.Boolean,
|
|
900
|
+
liability: Schema.optionalKey(
|
|
901
|
+
Schema.StructWithRest(
|
|
902
|
+
Schema.Struct({
|
|
903
|
+
account: Schema.optionalKey(Schema.String),
|
|
904
|
+
type: Schema.Literals(["account", "self"]),
|
|
905
|
+
}),
|
|
906
|
+
[
|
|
907
|
+
Schema.Record(
|
|
908
|
+
Schema.String,
|
|
909
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
910
|
+
),
|
|
911
|
+
],
|
|
912
|
+
).annotate({ title: "param" }),
|
|
913
|
+
),
|
|
914
|
+
}),
|
|
915
|
+
[
|
|
916
|
+
Schema.Record(
|
|
917
|
+
Schema.String,
|
|
918
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
919
|
+
),
|
|
920
|
+
],
|
|
921
|
+
).annotate({
|
|
922
|
+
title: "automatic_tax_param",
|
|
923
|
+
description:
|
|
924
|
+
"Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.",
|
|
925
|
+
}),
|
|
926
|
+
),
|
|
927
|
+
collection_method: Schema.optionalKey(
|
|
928
|
+
Schema.Literals(["charge_automatically", "send_invoice"]).annotate({
|
|
929
|
+
description:
|
|
930
|
+
"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.",
|
|
931
|
+
}),
|
|
932
|
+
),
|
|
933
|
+
customer: Schema.optionalKey(
|
|
934
|
+
Schema.String.annotate({
|
|
935
|
+
description:
|
|
936
|
+
"The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.",
|
|
937
|
+
}).check(
|
|
938
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
939
|
+
expected: "a string with at most 5000 code points",
|
|
940
|
+
}),
|
|
941
|
+
),
|
|
942
|
+
),
|
|
943
|
+
customer_account: Schema.optionalKey(
|
|
944
|
+
Schema.String.annotate({
|
|
945
|
+
description:
|
|
946
|
+
"The account for which this quote belongs to. A customer or account is required before finalizing the quote. Once specified, it cannot be changed.",
|
|
947
|
+
}).check(
|
|
948
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
949
|
+
expected: "a string with at most 5000 code points",
|
|
950
|
+
}),
|
|
951
|
+
),
|
|
952
|
+
),
|
|
953
|
+
default_tax_rates: Schema.optionalKey(
|
|
954
|
+
Schema.Union([
|
|
955
|
+
Schema.Array(
|
|
956
|
+
Schema.String.check(
|
|
957
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
958
|
+
expected: "a string with at most 5000 code points",
|
|
959
|
+
}),
|
|
960
|
+
),
|
|
961
|
+
),
|
|
962
|
+
Schema.Literal(""),
|
|
963
|
+
]).annotate({
|
|
964
|
+
description:
|
|
965
|
+
"The tax rates that will apply to any line item that does not have `tax_rates` set.",
|
|
966
|
+
}),
|
|
967
|
+
),
|
|
968
|
+
description: Schema.optionalKey(
|
|
969
|
+
Schema.Union([
|
|
970
|
+
Schema.String.check(
|
|
971
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
972
|
+
expected: "a string with at most 500 code points",
|
|
973
|
+
}),
|
|
974
|
+
),
|
|
975
|
+
Schema.Literal(""),
|
|
976
|
+
]).annotate({
|
|
977
|
+
description: "A description that will be displayed on the quote PDF.",
|
|
978
|
+
}),
|
|
979
|
+
),
|
|
980
|
+
discounts: Schema.optionalKey(
|
|
981
|
+
Schema.Union([
|
|
982
|
+
Schema.Array(
|
|
983
|
+
Schema.StructWithRest(
|
|
984
|
+
Schema.Struct({
|
|
985
|
+
coupon: Schema.optionalKey(
|
|
986
|
+
Schema.String.check(
|
|
987
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
988
|
+
expected: "a string with at most 5000 code points",
|
|
989
|
+
}),
|
|
990
|
+
),
|
|
991
|
+
),
|
|
992
|
+
discount: Schema.optionalKey(
|
|
993
|
+
Schema.String.check(
|
|
994
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
995
|
+
expected: "a string with at most 5000 code points",
|
|
996
|
+
}),
|
|
997
|
+
),
|
|
998
|
+
),
|
|
999
|
+
promotion_code: Schema.optionalKey(
|
|
1000
|
+
Schema.String.check(
|
|
1001
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1002
|
+
expected: "a string with at most 5000 code points",
|
|
1003
|
+
}),
|
|
1004
|
+
),
|
|
1005
|
+
),
|
|
1006
|
+
}),
|
|
1007
|
+
[
|
|
1008
|
+
Schema.Record(
|
|
1009
|
+
Schema.String,
|
|
1010
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1011
|
+
),
|
|
1012
|
+
],
|
|
1013
|
+
).annotate({ title: "discounts_data_param" }),
|
|
1014
|
+
),
|
|
1015
|
+
Schema.Literal(""),
|
|
1016
|
+
]).annotate({ description: "The discounts applied to the quote." }),
|
|
1017
|
+
),
|
|
1018
|
+
expand: Schema.optionalKey(
|
|
1019
|
+
Schema.Array(
|
|
1020
|
+
Schema.String.check(
|
|
1021
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1022
|
+
expected: "a string with at most 5000 code points",
|
|
1023
|
+
}),
|
|
1024
|
+
),
|
|
1025
|
+
).annotate({
|
|
1026
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
1027
|
+
}),
|
|
1028
|
+
),
|
|
1029
|
+
expires_at: Schema.optionalKey(
|
|
1030
|
+
Schema.Number.annotate({
|
|
1031
|
+
description:
|
|
1032
|
+
"A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.",
|
|
1033
|
+
format: "unix-time",
|
|
1034
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1035
|
+
),
|
|
1036
|
+
footer: Schema.optionalKey(
|
|
1037
|
+
Schema.Union([
|
|
1038
|
+
Schema.String.check(
|
|
1039
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1040
|
+
expected: "a string with at most 500 code points",
|
|
1041
|
+
}),
|
|
1042
|
+
),
|
|
1043
|
+
Schema.Literal(""),
|
|
1044
|
+
]).annotate({
|
|
1045
|
+
description: "A footer that will be displayed on the quote PDF.",
|
|
1046
|
+
}),
|
|
1047
|
+
),
|
|
1048
|
+
header: Schema.optionalKey(
|
|
1049
|
+
Schema.Union([
|
|
1050
|
+
Schema.String.check(
|
|
1051
|
+
Schema.isMaxCodePoints(50).annotate({
|
|
1052
|
+
expected: "a string with at most 50 code points",
|
|
1053
|
+
}),
|
|
1054
|
+
),
|
|
1055
|
+
Schema.Literal(""),
|
|
1056
|
+
]).annotate({
|
|
1057
|
+
description: "A header that will be displayed on the quote PDF.",
|
|
1058
|
+
}),
|
|
1059
|
+
),
|
|
1060
|
+
invoice_settings: Schema.optionalKey(
|
|
1061
|
+
Schema.StructWithRest(
|
|
1062
|
+
Schema.Struct({
|
|
1063
|
+
custom_fields: Schema.optionalKey(
|
|
1064
|
+
Schema.Union([
|
|
1065
|
+
Schema.Array(
|
|
1066
|
+
Schema.StructWithRest(
|
|
1067
|
+
Schema.Struct({
|
|
1068
|
+
name: Schema.String.check(
|
|
1069
|
+
Schema.isMaxCodePoints(40).annotate({
|
|
1070
|
+
expected: "a string with at most 40 code points",
|
|
1071
|
+
}),
|
|
1072
|
+
),
|
|
1073
|
+
value: Schema.String.check(
|
|
1074
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
1075
|
+
expected: "a string with at most 140 code points",
|
|
1076
|
+
}),
|
|
1077
|
+
),
|
|
1078
|
+
}),
|
|
1079
|
+
[
|
|
1080
|
+
Schema.Record(
|
|
1081
|
+
Schema.String,
|
|
1082
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1083
|
+
),
|
|
1084
|
+
],
|
|
1085
|
+
).annotate({ title: "custom_field_params" }),
|
|
1086
|
+
),
|
|
1087
|
+
Schema.Literal(""),
|
|
1088
|
+
]),
|
|
1089
|
+
),
|
|
1090
|
+
days_until_due: Schema.optionalKey(Schema.Int),
|
|
1091
|
+
description: Schema.optionalKey(
|
|
1092
|
+
Schema.Union([
|
|
1093
|
+
Schema.String.check(
|
|
1094
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1095
|
+
expected: "a string with at most 500 code points",
|
|
1096
|
+
}),
|
|
1097
|
+
),
|
|
1098
|
+
Schema.Literal(""),
|
|
1099
|
+
]),
|
|
1100
|
+
),
|
|
1101
|
+
footer: Schema.optionalKey(
|
|
1102
|
+
Schema.Union([
|
|
1103
|
+
Schema.String.check(
|
|
1104
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1105
|
+
expected: "a string with at most 5000 code points",
|
|
1106
|
+
}),
|
|
1107
|
+
),
|
|
1108
|
+
Schema.Literal(""),
|
|
1109
|
+
]),
|
|
1110
|
+
),
|
|
1111
|
+
issuer: Schema.optionalKey(
|
|
1112
|
+
Schema.StructWithRest(
|
|
1113
|
+
Schema.Struct({
|
|
1114
|
+
account: Schema.optionalKey(Schema.String),
|
|
1115
|
+
type: Schema.Literals(["account", "self"]),
|
|
1116
|
+
}),
|
|
1117
|
+
[
|
|
1118
|
+
Schema.Record(
|
|
1119
|
+
Schema.String,
|
|
1120
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1121
|
+
),
|
|
1122
|
+
],
|
|
1123
|
+
).annotate({ title: "param" }),
|
|
1124
|
+
),
|
|
1125
|
+
}),
|
|
1126
|
+
[
|
|
1127
|
+
Schema.Record(
|
|
1128
|
+
Schema.String,
|
|
1129
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1130
|
+
),
|
|
1131
|
+
],
|
|
1132
|
+
).annotate({
|
|
1133
|
+
title: "quote_param",
|
|
1134
|
+
description: "All invoices will be billed using the specified settings.",
|
|
1135
|
+
}),
|
|
1136
|
+
),
|
|
1137
|
+
line_items: Schema.optionalKey(
|
|
1138
|
+
Schema.Array(
|
|
1139
|
+
Schema.StructWithRest(
|
|
1140
|
+
Schema.Struct({
|
|
1141
|
+
discounts: Schema.optionalKey(
|
|
1142
|
+
Schema.Union([
|
|
1143
|
+
Schema.Array(
|
|
1144
|
+
Schema.StructWithRest(
|
|
1145
|
+
Schema.Struct({
|
|
1146
|
+
coupon: Schema.optionalKey(
|
|
1147
|
+
Schema.String.check(
|
|
1148
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1149
|
+
expected: "a string with at most 5000 code points",
|
|
1150
|
+
}),
|
|
1151
|
+
),
|
|
1152
|
+
),
|
|
1153
|
+
discount: Schema.optionalKey(
|
|
1154
|
+
Schema.String.check(
|
|
1155
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1156
|
+
expected: "a string with at most 5000 code points",
|
|
1157
|
+
}),
|
|
1158
|
+
),
|
|
1159
|
+
),
|
|
1160
|
+
promotion_code: Schema.optionalKey(
|
|
1161
|
+
Schema.String.check(
|
|
1162
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1163
|
+
expected: "a string with at most 5000 code points",
|
|
1164
|
+
}),
|
|
1165
|
+
),
|
|
1166
|
+
),
|
|
1167
|
+
}),
|
|
1168
|
+
[
|
|
1169
|
+
Schema.Record(
|
|
1170
|
+
Schema.String,
|
|
1171
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1172
|
+
),
|
|
1173
|
+
],
|
|
1174
|
+
).annotate({ title: "discounts_data_param" }),
|
|
1175
|
+
),
|
|
1176
|
+
Schema.Literal(""),
|
|
1177
|
+
]),
|
|
1178
|
+
),
|
|
1179
|
+
id: Schema.optionalKey(
|
|
1180
|
+
Schema.String.check(
|
|
1181
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1182
|
+
expected: "a string with at most 5000 code points",
|
|
1183
|
+
}),
|
|
1184
|
+
),
|
|
1185
|
+
),
|
|
1186
|
+
price: Schema.optionalKey(
|
|
1187
|
+
Schema.String.check(
|
|
1188
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1189
|
+
expected: "a string with at most 5000 code points",
|
|
1190
|
+
}),
|
|
1191
|
+
),
|
|
1192
|
+
),
|
|
1193
|
+
price_data: Schema.optionalKey(
|
|
1194
|
+
Schema.StructWithRest(
|
|
1195
|
+
Schema.Struct({
|
|
1196
|
+
currency: Schema.String.annotate({ format: "currency" }),
|
|
1197
|
+
product: Schema.String.check(
|
|
1198
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1199
|
+
expected: "a string with at most 5000 code points",
|
|
1200
|
+
}),
|
|
1201
|
+
),
|
|
1202
|
+
recurring: Schema.optionalKey(
|
|
1203
|
+
Schema.StructWithRest(
|
|
1204
|
+
Schema.Struct({
|
|
1205
|
+
interval: Schema.Literals([
|
|
1206
|
+
"day",
|
|
1207
|
+
"month",
|
|
1208
|
+
"week",
|
|
1209
|
+
"year",
|
|
1210
|
+
]),
|
|
1211
|
+
interval_count: Schema.optionalKey(Schema.Int),
|
|
1212
|
+
}),
|
|
1213
|
+
[
|
|
1214
|
+
Schema.Record(
|
|
1215
|
+
Schema.String,
|
|
1216
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1217
|
+
),
|
|
1218
|
+
],
|
|
1219
|
+
).annotate({ title: "recurring_adhoc" }),
|
|
1220
|
+
),
|
|
1221
|
+
tax_behavior: Schema.optionalKey(
|
|
1222
|
+
Schema.Literals(["exclusive", "inclusive", "unspecified"]),
|
|
1223
|
+
),
|
|
1224
|
+
unit_amount: Schema.optionalKey(Schema.Int),
|
|
1225
|
+
unit_amount_decimal: Schema.optionalKey(
|
|
1226
|
+
Schema.String.annotate({ format: "decimal" }),
|
|
1227
|
+
),
|
|
1228
|
+
}),
|
|
1229
|
+
[
|
|
1230
|
+
Schema.Record(
|
|
1231
|
+
Schema.String,
|
|
1232
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1233
|
+
),
|
|
1234
|
+
],
|
|
1235
|
+
).annotate({ title: "price_data" }),
|
|
1236
|
+
),
|
|
1237
|
+
quantity: Schema.optionalKey(Schema.Int),
|
|
1238
|
+
tax_rates: Schema.optionalKey(
|
|
1239
|
+
Schema.Union([
|
|
1240
|
+
Schema.Array(
|
|
1241
|
+
Schema.String.check(
|
|
1242
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1243
|
+
expected: "a string with at most 5000 code points",
|
|
1244
|
+
}),
|
|
1245
|
+
),
|
|
1246
|
+
),
|
|
1247
|
+
Schema.Literal(""),
|
|
1248
|
+
]),
|
|
1249
|
+
),
|
|
1250
|
+
}),
|
|
1251
|
+
[
|
|
1252
|
+
Schema.Record(
|
|
1253
|
+
Schema.String,
|
|
1254
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1255
|
+
),
|
|
1256
|
+
],
|
|
1257
|
+
).annotate({ title: "line_item_update_params" }),
|
|
1258
|
+
).annotate({
|
|
1259
|
+
description:
|
|
1260
|
+
"A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.",
|
|
1261
|
+
}),
|
|
1262
|
+
),
|
|
1263
|
+
metadata: Schema.optionalKey(
|
|
1264
|
+
Schema.Record(Schema.String, Schema.String).annotate({
|
|
1265
|
+
description:
|
|
1266
|
+
"Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
|
|
1267
|
+
}),
|
|
1268
|
+
),
|
|
1269
|
+
on_behalf_of: Schema.optionalKey(
|
|
1270
|
+
Schema.Union([Schema.String, Schema.Literal("")]).annotate({
|
|
1271
|
+
description: "The account on behalf of which to charge.",
|
|
1272
|
+
}),
|
|
1273
|
+
),
|
|
1274
|
+
subscription_data: Schema.optionalKey(
|
|
1275
|
+
Schema.StructWithRest(
|
|
1276
|
+
Schema.Struct({
|
|
1277
|
+
description: Schema.optionalKey(
|
|
1278
|
+
Schema.Union([
|
|
1279
|
+
Schema.String.check(
|
|
1280
|
+
Schema.isMaxCodePoints(500).annotate({
|
|
1281
|
+
expected: "a string with at most 500 code points",
|
|
1282
|
+
}),
|
|
1283
|
+
),
|
|
1284
|
+
Schema.Literal(""),
|
|
1285
|
+
]),
|
|
1286
|
+
),
|
|
1287
|
+
effective_date: Schema.optionalKey(
|
|
1288
|
+
Schema.Union([
|
|
1289
|
+
Schema.Literal("current_period_end"),
|
|
1290
|
+
Schema.Number.annotate({ format: "unix-time" }).check(
|
|
1291
|
+
Schema.isInt().annotate({ expected: "an integer" }),
|
|
1292
|
+
),
|
|
1293
|
+
Schema.Literal(""),
|
|
1294
|
+
]),
|
|
1295
|
+
),
|
|
1296
|
+
metadata: Schema.optionalKey(
|
|
1297
|
+
Schema.Record(Schema.String, Schema.String),
|
|
1298
|
+
),
|
|
1299
|
+
trial_period_days: Schema.optionalKey(
|
|
1300
|
+
Schema.Union([Schema.Int, Schema.Literal("")]),
|
|
1301
|
+
),
|
|
1302
|
+
}),
|
|
1303
|
+
[
|
|
1304
|
+
Schema.Record(
|
|
1305
|
+
Schema.String,
|
|
1306
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1307
|
+
),
|
|
1308
|
+
],
|
|
1309
|
+
).annotate({
|
|
1310
|
+
title: "subscription_data_update_params",
|
|
1311
|
+
description:
|
|
1312
|
+
"When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.",
|
|
1313
|
+
}),
|
|
1314
|
+
),
|
|
1315
|
+
transfer_data: Schema.optionalKey(
|
|
1316
|
+
Schema.Union([
|
|
1317
|
+
Schema.StructWithRest(
|
|
1318
|
+
Schema.Struct({
|
|
1319
|
+
amount: Schema.optionalKey(Schema.Int),
|
|
1320
|
+
amount_percent: Schema.optionalKey(Schema.Finite),
|
|
1321
|
+
destination: Schema.String,
|
|
1322
|
+
}),
|
|
1323
|
+
[
|
|
1324
|
+
Schema.Record(
|
|
1325
|
+
Schema.String,
|
|
1326
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1327
|
+
),
|
|
1328
|
+
],
|
|
1329
|
+
).annotate({ title: "transfer_data_specs" }),
|
|
1330
|
+
Schema.Literal(""),
|
|
1331
|
+
]).annotate({
|
|
1332
|
+
description:
|
|
1333
|
+
"The data with which to automatically create a Transfer for each of the invoices.",
|
|
1334
|
+
}),
|
|
1335
|
+
),
|
|
1336
|
+
quote: Schema.String.check(
|
|
1337
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1338
|
+
expected: "a string with at most 5000 code points",
|
|
1339
|
+
}),
|
|
1340
|
+
),
|
|
1341
|
+
});
|
|
1342
|
+
export const PostQuotesQuoteOutput = Stripequote;
|
|
1343
|
+
export const PostQuotesQuoteError = Stripeerror;
|
|
1344
|
+
export const PostQuotesQuoteAcceptInput = Schema.Struct({
|
|
1345
|
+
expand: Schema.optionalKey(
|
|
1346
|
+
Schema.Array(
|
|
1347
|
+
Schema.String.check(
|
|
1348
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1349
|
+
expected: "a string with at most 5000 code points",
|
|
1350
|
+
}),
|
|
1351
|
+
),
|
|
1352
|
+
).annotate({
|
|
1353
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
1354
|
+
}),
|
|
1355
|
+
),
|
|
1356
|
+
quote: Schema.String.check(
|
|
1357
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1358
|
+
expected: "a string with at most 5000 code points",
|
|
1359
|
+
}),
|
|
1360
|
+
),
|
|
1361
|
+
});
|
|
1362
|
+
export const PostQuotesQuoteAcceptOutput = Stripequote;
|
|
1363
|
+
export const PostQuotesQuoteAcceptError = Stripeerror;
|
|
1364
|
+
export const PostQuotesQuoteCancelInput = Schema.Struct({
|
|
1365
|
+
expand: Schema.optionalKey(
|
|
1366
|
+
Schema.Array(
|
|
1367
|
+
Schema.String.check(
|
|
1368
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1369
|
+
expected: "a string with at most 5000 code points",
|
|
1370
|
+
}),
|
|
1371
|
+
),
|
|
1372
|
+
).annotate({
|
|
1373
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
1374
|
+
}),
|
|
1375
|
+
),
|
|
1376
|
+
quote: Schema.String.check(
|
|
1377
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1378
|
+
expected: "a string with at most 5000 code points",
|
|
1379
|
+
}),
|
|
1380
|
+
),
|
|
1381
|
+
});
|
|
1382
|
+
export const PostQuotesQuoteCancelOutput = Stripequote;
|
|
1383
|
+
export const PostQuotesQuoteCancelError = Stripeerror;
|
|
1384
|
+
export const GetQuotesQuoteComputedUpfrontLineItemsInput = Schema.Struct({
|
|
1385
|
+
ending_before: Schema.optionalKey(
|
|
1386
|
+
Schema.String.check(
|
|
1387
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1388
|
+
expected: "a string with at most 5000 code points",
|
|
1389
|
+
}),
|
|
1390
|
+
),
|
|
1391
|
+
),
|
|
1392
|
+
expand: Schema.optionalKey(
|
|
1393
|
+
Schema.Array(
|
|
1394
|
+
Schema.String.check(
|
|
1395
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1396
|
+
expected: "a string with at most 5000 code points",
|
|
1397
|
+
}),
|
|
1398
|
+
),
|
|
1399
|
+
),
|
|
1400
|
+
),
|
|
1401
|
+
limit: Schema.optionalKey(Schema.Int),
|
|
1402
|
+
quote: Schema.String.check(
|
|
1403
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1404
|
+
expected: "a string with at most 5000 code points",
|
|
1405
|
+
}),
|
|
1406
|
+
),
|
|
1407
|
+
starting_after: Schema.optionalKey(
|
|
1408
|
+
Schema.String.check(
|
|
1409
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1410
|
+
expected: "a string with at most 5000 code points",
|
|
1411
|
+
}),
|
|
1412
|
+
),
|
|
1413
|
+
),
|
|
1414
|
+
});
|
|
1415
|
+
export const GetQuotesQuoteComputedUpfrontLineItemsOutput =
|
|
1416
|
+
Schema.StructWithRest(
|
|
1417
|
+
Schema.Struct({
|
|
1418
|
+
data: Schema.Array(Stripeitem).annotate({
|
|
1419
|
+
description: "Details about each object.",
|
|
1420
|
+
}),
|
|
1421
|
+
has_more: Schema.Boolean.annotate({
|
|
1422
|
+
description:
|
|
1423
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
1424
|
+
}),
|
|
1425
|
+
object: Schema.Literal("list").annotate({
|
|
1426
|
+
description:
|
|
1427
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
1428
|
+
}),
|
|
1429
|
+
url: Schema.String.annotate({
|
|
1430
|
+
description: "The URL where this list can be accessed.",
|
|
1431
|
+
}).check(
|
|
1432
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1433
|
+
expected: "a string with at most 5000 code points",
|
|
1434
|
+
}),
|
|
1435
|
+
),
|
|
1436
|
+
}),
|
|
1437
|
+
[
|
|
1438
|
+
Schema.Record(
|
|
1439
|
+
Schema.String,
|
|
1440
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1441
|
+
),
|
|
1442
|
+
],
|
|
1443
|
+
).annotate({ title: "QuotesResourceListLineItems", description: "" });
|
|
1444
|
+
export const GetQuotesQuoteComputedUpfrontLineItemsError = Stripeerror;
|
|
1445
|
+
export const PostQuotesQuoteFinalizeInput = Schema.Struct({
|
|
1446
|
+
expand: Schema.optionalKey(
|
|
1447
|
+
Schema.Array(
|
|
1448
|
+
Schema.String.check(
|
|
1449
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1450
|
+
expected: "a string with at most 5000 code points",
|
|
1451
|
+
}),
|
|
1452
|
+
),
|
|
1453
|
+
).annotate({
|
|
1454
|
+
description: "Specifies which fields in the response should be expanded.",
|
|
1455
|
+
}),
|
|
1456
|
+
),
|
|
1457
|
+
expires_at: Schema.optionalKey(
|
|
1458
|
+
Schema.Number.annotate({
|
|
1459
|
+
description:
|
|
1460
|
+
"A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.",
|
|
1461
|
+
format: "unix-time",
|
|
1462
|
+
}).check(Schema.isInt().annotate({ expected: "an integer" })),
|
|
1463
|
+
),
|
|
1464
|
+
quote: Schema.String.check(
|
|
1465
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1466
|
+
expected: "a string with at most 5000 code points",
|
|
1467
|
+
}),
|
|
1468
|
+
),
|
|
1469
|
+
});
|
|
1470
|
+
export const PostQuotesQuoteFinalizeOutput = Stripequote;
|
|
1471
|
+
export const PostQuotesQuoteFinalizeError = Stripeerror;
|
|
1472
|
+
export const GetQuotesQuoteLineItemsInput = Schema.Struct({
|
|
1473
|
+
ending_before: Schema.optionalKey(
|
|
1474
|
+
Schema.String.check(
|
|
1475
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1476
|
+
expected: "a string with at most 5000 code points",
|
|
1477
|
+
}),
|
|
1478
|
+
),
|
|
1479
|
+
),
|
|
1480
|
+
expand: Schema.optionalKey(
|
|
1481
|
+
Schema.Array(
|
|
1482
|
+
Schema.String.check(
|
|
1483
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1484
|
+
expected: "a string with at most 5000 code points",
|
|
1485
|
+
}),
|
|
1486
|
+
),
|
|
1487
|
+
),
|
|
1488
|
+
),
|
|
1489
|
+
limit: Schema.optionalKey(Schema.Int),
|
|
1490
|
+
quote: Schema.String.check(
|
|
1491
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1492
|
+
expected: "a string with at most 5000 code points",
|
|
1493
|
+
}),
|
|
1494
|
+
),
|
|
1495
|
+
starting_after: Schema.optionalKey(
|
|
1496
|
+
Schema.String.check(
|
|
1497
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1498
|
+
expected: "a string with at most 5000 code points",
|
|
1499
|
+
}),
|
|
1500
|
+
),
|
|
1501
|
+
),
|
|
1502
|
+
});
|
|
1503
|
+
export const GetQuotesQuoteLineItemsOutput = Schema.StructWithRest(
|
|
1504
|
+
Schema.Struct({
|
|
1505
|
+
data: Schema.Array(Stripeitem).annotate({
|
|
1506
|
+
description: "Details about each object.",
|
|
1507
|
+
}),
|
|
1508
|
+
has_more: Schema.Boolean.annotate({
|
|
1509
|
+
description:
|
|
1510
|
+
"True if this list has another page of items after this one that can be fetched.",
|
|
1511
|
+
}),
|
|
1512
|
+
object: Schema.Literal("list").annotate({
|
|
1513
|
+
description:
|
|
1514
|
+
"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
|
|
1515
|
+
}),
|
|
1516
|
+
url: Schema.String.annotate({
|
|
1517
|
+
description: "The URL where this list can be accessed.",
|
|
1518
|
+
}).check(
|
|
1519
|
+
Schema.isMaxCodePoints(5000).annotate({
|
|
1520
|
+
expected: "a string with at most 5000 code points",
|
|
1521
|
+
}),
|
|
1522
|
+
),
|
|
1523
|
+
}),
|
|
1524
|
+
[
|
|
1525
|
+
Schema.Record(
|
|
1526
|
+
Schema.String,
|
|
1527
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1528
|
+
),
|
|
1529
|
+
],
|
|
1530
|
+
).annotate({ title: "QuotesResourceListLineItems", description: "" });
|
|
1531
|
+
export const GetQuotesQuoteLineItemsError = Stripeerror;
|
|
1532
|
+
/**
|
|
1533
|
+
* The GetQuotesOperation value selects the schemas
|
|
1534
|
+
* that validate requests and decode responses for this API version.
|
|
1535
|
+
*/
|
|
1536
|
+
export const GetQuotesOperation: StripeOperation & {
|
|
1537
|
+
readonly input: typeof GetQuotesInput;
|
|
1538
|
+
readonly output: typeof GetQuotesOutput;
|
|
1539
|
+
readonly error: typeof GetQuotesError;
|
|
1540
|
+
} = {
|
|
1541
|
+
name: "GetQuotes",
|
|
1542
|
+
method: "GET",
|
|
1543
|
+
path: "/v1/quotes",
|
|
1544
|
+
pathParameters: [],
|
|
1545
|
+
queryParameters: [
|
|
1546
|
+
"customer",
|
|
1547
|
+
"customer_account",
|
|
1548
|
+
"ending_before",
|
|
1549
|
+
"expand",
|
|
1550
|
+
"limit",
|
|
1551
|
+
"starting_after",
|
|
1552
|
+
"status",
|
|
1553
|
+
"test_clock",
|
|
1554
|
+
],
|
|
1555
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1556
|
+
apiVersion: stripeApiVersion,
|
|
1557
|
+
baseUrl: stripeApiBaseUrl,
|
|
1558
|
+
input: GetQuotesInput,
|
|
1559
|
+
output: GetQuotesOutput,
|
|
1560
|
+
error: GetQuotesError,
|
|
1561
|
+
};
|
|
1562
|
+
/**
|
|
1563
|
+
* The PostQuotesOperation value selects the schemas
|
|
1564
|
+
* that validate requests and decode responses for this API version.
|
|
1565
|
+
*/
|
|
1566
|
+
export const PostQuotesOperation: StripeOperation & {
|
|
1567
|
+
readonly input: typeof PostQuotesInput;
|
|
1568
|
+
readonly output: typeof PostQuotesOutput;
|
|
1569
|
+
readonly error: typeof PostQuotesError;
|
|
1570
|
+
} = {
|
|
1571
|
+
name: "PostQuotes",
|
|
1572
|
+
method: "POST",
|
|
1573
|
+
path: "/v1/quotes",
|
|
1574
|
+
pathParameters: [],
|
|
1575
|
+
queryParameters: [],
|
|
1576
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1577
|
+
apiVersion: stripeApiVersion,
|
|
1578
|
+
baseUrl: stripeApiBaseUrl,
|
|
1579
|
+
input: PostQuotesInput,
|
|
1580
|
+
output: PostQuotesOutput,
|
|
1581
|
+
error: PostQuotesError,
|
|
1582
|
+
};
|
|
1583
|
+
/**
|
|
1584
|
+
* The GetQuotesQuoteOperation value selects the schemas
|
|
1585
|
+
* that validate requests and decode responses for this API version.
|
|
1586
|
+
*/
|
|
1587
|
+
export const GetQuotesQuoteOperation: StripeOperation & {
|
|
1588
|
+
readonly input: typeof GetQuotesQuoteInput;
|
|
1589
|
+
readonly output: typeof GetQuotesQuoteOutput;
|
|
1590
|
+
readonly error: typeof GetQuotesQuoteError;
|
|
1591
|
+
} = {
|
|
1592
|
+
name: "GetQuotesQuote",
|
|
1593
|
+
method: "GET",
|
|
1594
|
+
path: "/v1/quotes/{quote}",
|
|
1595
|
+
pathParameters: ["quote"],
|
|
1596
|
+
queryParameters: ["expand"],
|
|
1597
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1598
|
+
apiVersion: stripeApiVersion,
|
|
1599
|
+
baseUrl: stripeApiBaseUrl,
|
|
1600
|
+
input: GetQuotesQuoteInput,
|
|
1601
|
+
output: GetQuotesQuoteOutput,
|
|
1602
|
+
error: GetQuotesQuoteError,
|
|
1603
|
+
};
|
|
1604
|
+
/**
|
|
1605
|
+
* The PostQuotesQuoteOperation value selects the schemas
|
|
1606
|
+
* that validate requests and decode responses for this API version.
|
|
1607
|
+
*/
|
|
1608
|
+
export const PostQuotesQuoteOperation: StripeOperation & {
|
|
1609
|
+
readonly input: typeof PostQuotesQuoteInput;
|
|
1610
|
+
readonly output: typeof PostQuotesQuoteOutput;
|
|
1611
|
+
readonly error: typeof PostQuotesQuoteError;
|
|
1612
|
+
} = {
|
|
1613
|
+
name: "PostQuotesQuote",
|
|
1614
|
+
method: "POST",
|
|
1615
|
+
path: "/v1/quotes/{quote}",
|
|
1616
|
+
pathParameters: ["quote"],
|
|
1617
|
+
queryParameters: [],
|
|
1618
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1619
|
+
apiVersion: stripeApiVersion,
|
|
1620
|
+
baseUrl: stripeApiBaseUrl,
|
|
1621
|
+
input: PostQuotesQuoteInput,
|
|
1622
|
+
output: PostQuotesQuoteOutput,
|
|
1623
|
+
error: PostQuotesQuoteError,
|
|
1624
|
+
};
|
|
1625
|
+
/**
|
|
1626
|
+
* The PostQuotesQuoteAcceptOperation value selects the schemas
|
|
1627
|
+
* that validate requests and decode responses for this API version.
|
|
1628
|
+
*/
|
|
1629
|
+
export const PostQuotesQuoteAcceptOperation: StripeOperation & {
|
|
1630
|
+
readonly input: typeof PostQuotesQuoteAcceptInput;
|
|
1631
|
+
readonly output: typeof PostQuotesQuoteAcceptOutput;
|
|
1632
|
+
readonly error: typeof PostQuotesQuoteAcceptError;
|
|
1633
|
+
} = {
|
|
1634
|
+
name: "PostQuotesQuoteAccept",
|
|
1635
|
+
method: "POST",
|
|
1636
|
+
path: "/v1/quotes/{quote}/accept",
|
|
1637
|
+
pathParameters: ["quote"],
|
|
1638
|
+
queryParameters: [],
|
|
1639
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1640
|
+
apiVersion: stripeApiVersion,
|
|
1641
|
+
baseUrl: stripeApiBaseUrl,
|
|
1642
|
+
input: PostQuotesQuoteAcceptInput,
|
|
1643
|
+
output: PostQuotesQuoteAcceptOutput,
|
|
1644
|
+
error: PostQuotesQuoteAcceptError,
|
|
1645
|
+
};
|
|
1646
|
+
/**
|
|
1647
|
+
* The PostQuotesQuoteCancelOperation value selects the schemas
|
|
1648
|
+
* that validate requests and decode responses for this API version.
|
|
1649
|
+
*/
|
|
1650
|
+
export const PostQuotesQuoteCancelOperation: StripeOperation & {
|
|
1651
|
+
readonly input: typeof PostQuotesQuoteCancelInput;
|
|
1652
|
+
readonly output: typeof PostQuotesQuoteCancelOutput;
|
|
1653
|
+
readonly error: typeof PostQuotesQuoteCancelError;
|
|
1654
|
+
} = {
|
|
1655
|
+
name: "PostQuotesQuoteCancel",
|
|
1656
|
+
method: "POST",
|
|
1657
|
+
path: "/v1/quotes/{quote}/cancel",
|
|
1658
|
+
pathParameters: ["quote"],
|
|
1659
|
+
queryParameters: [],
|
|
1660
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1661
|
+
apiVersion: stripeApiVersion,
|
|
1662
|
+
baseUrl: stripeApiBaseUrl,
|
|
1663
|
+
input: PostQuotesQuoteCancelInput,
|
|
1664
|
+
output: PostQuotesQuoteCancelOutput,
|
|
1665
|
+
error: PostQuotesQuoteCancelError,
|
|
1666
|
+
};
|
|
1667
|
+
/**
|
|
1668
|
+
* The GetQuotesQuoteComputedUpfrontLineItemsOperation value selects the schemas
|
|
1669
|
+
* that validate requests and decode responses for this API version.
|
|
1670
|
+
*/
|
|
1671
|
+
export const GetQuotesQuoteComputedUpfrontLineItemsOperation: StripeOperation & {
|
|
1672
|
+
readonly input: typeof GetQuotesQuoteComputedUpfrontLineItemsInput;
|
|
1673
|
+
readonly output: typeof GetQuotesQuoteComputedUpfrontLineItemsOutput;
|
|
1674
|
+
readonly error: typeof GetQuotesQuoteComputedUpfrontLineItemsError;
|
|
1675
|
+
} = {
|
|
1676
|
+
name: "GetQuotesQuoteComputedUpfrontLineItems",
|
|
1677
|
+
method: "GET",
|
|
1678
|
+
path: "/v1/quotes/{quote}/computed_upfront_line_items",
|
|
1679
|
+
pathParameters: ["quote"],
|
|
1680
|
+
queryParameters: ["ending_before", "expand", "limit", "starting_after"],
|
|
1681
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1682
|
+
apiVersion: stripeApiVersion,
|
|
1683
|
+
baseUrl: stripeApiBaseUrl,
|
|
1684
|
+
input: GetQuotesQuoteComputedUpfrontLineItemsInput,
|
|
1685
|
+
output: GetQuotesQuoteComputedUpfrontLineItemsOutput,
|
|
1686
|
+
error: GetQuotesQuoteComputedUpfrontLineItemsError,
|
|
1687
|
+
};
|
|
1688
|
+
/**
|
|
1689
|
+
* The PostQuotesQuoteFinalizeOperation value selects the schemas
|
|
1690
|
+
* that validate requests and decode responses for this API version.
|
|
1691
|
+
*/
|
|
1692
|
+
export const PostQuotesQuoteFinalizeOperation: StripeOperation & {
|
|
1693
|
+
readonly input: typeof PostQuotesQuoteFinalizeInput;
|
|
1694
|
+
readonly output: typeof PostQuotesQuoteFinalizeOutput;
|
|
1695
|
+
readonly error: typeof PostQuotesQuoteFinalizeError;
|
|
1696
|
+
} = {
|
|
1697
|
+
name: "PostQuotesQuoteFinalize",
|
|
1698
|
+
method: "POST",
|
|
1699
|
+
path: "/v1/quotes/{quote}/finalize",
|
|
1700
|
+
pathParameters: ["quote"],
|
|
1701
|
+
queryParameters: [],
|
|
1702
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1703
|
+
apiVersion: stripeApiVersion,
|
|
1704
|
+
baseUrl: stripeApiBaseUrl,
|
|
1705
|
+
input: PostQuotesQuoteFinalizeInput,
|
|
1706
|
+
output: PostQuotesQuoteFinalizeOutput,
|
|
1707
|
+
error: PostQuotesQuoteFinalizeError,
|
|
1708
|
+
};
|
|
1709
|
+
/**
|
|
1710
|
+
* The GetQuotesQuoteLineItemsOperation value selects the schemas
|
|
1711
|
+
* that validate requests and decode responses for this API version.
|
|
1712
|
+
*/
|
|
1713
|
+
export const GetQuotesQuoteLineItemsOperation: StripeOperation & {
|
|
1714
|
+
readonly input: typeof GetQuotesQuoteLineItemsInput;
|
|
1715
|
+
readonly output: typeof GetQuotesQuoteLineItemsOutput;
|
|
1716
|
+
readonly error: typeof GetQuotesQuoteLineItemsError;
|
|
1717
|
+
} = {
|
|
1718
|
+
name: "GetQuotesQuoteLineItems",
|
|
1719
|
+
method: "GET",
|
|
1720
|
+
path: "/v1/quotes/{quote}/line_items",
|
|
1721
|
+
pathParameters: ["quote"],
|
|
1722
|
+
queryParameters: ["ending_before", "expand", "limit", "starting_after"],
|
|
1723
|
+
contentType: "application/x-www-form-urlencoded",
|
|
1724
|
+
apiVersion: stripeApiVersion,
|
|
1725
|
+
baseUrl: stripeApiBaseUrl,
|
|
1726
|
+
input: GetQuotesQuoteLineItemsInput,
|
|
1727
|
+
output: GetQuotesQuoteLineItemsOutput,
|
|
1728
|
+
error: GetQuotesQuoteLineItemsError,
|
|
1729
|
+
};
|
|
1730
|
+
/**
|
|
1731
|
+
* The makeQuotesClient Effect obtains the application's StripeClient service.
|
|
1732
|
+
* Its result exposes functions with the contracts fixed by this specification.
|
|
1733
|
+
*/
|
|
1734
|
+
export const makeQuotesClient = Effect.gen(function* () {
|
|
1735
|
+
const client = yield* StripeClient;
|
|
1736
|
+
/**
|
|
1737
|
+
* The GetQuotes function validates its request before it invokes Stripe.
|
|
1738
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1739
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1740
|
+
*/
|
|
1741
|
+
const GetQuotes = Effect.fn("quotes.GetQuotes")(function* (
|
|
1742
|
+
input: GetQuotesInput,
|
|
1743
|
+
) {
|
|
1744
|
+
const response: GetQuotesOutput = yield* client.invoke(
|
|
1745
|
+
GetQuotesOperation,
|
|
1746
|
+
input,
|
|
1747
|
+
);
|
|
1748
|
+
return response;
|
|
1749
|
+
});
|
|
1750
|
+
/**
|
|
1751
|
+
* The PostQuotes function validates its request before it invokes Stripe.
|
|
1752
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1753
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1754
|
+
*/
|
|
1755
|
+
const PostQuotes = Effect.fn("quotes.PostQuotes")(function* (
|
|
1756
|
+
input: PostQuotesInput,
|
|
1757
|
+
) {
|
|
1758
|
+
const response: PostQuotesOutput = yield* client.invoke(
|
|
1759
|
+
PostQuotesOperation,
|
|
1760
|
+
input,
|
|
1761
|
+
);
|
|
1762
|
+
return response;
|
|
1763
|
+
});
|
|
1764
|
+
/**
|
|
1765
|
+
* The GetQuotesQuote function validates its request before it invokes Stripe.
|
|
1766
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1767
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1768
|
+
*/
|
|
1769
|
+
const GetQuotesQuote = Effect.fn("quotes.GetQuotesQuote")(function* (
|
|
1770
|
+
input: GetQuotesQuoteInput,
|
|
1771
|
+
) {
|
|
1772
|
+
const response: GetQuotesQuoteOutput = yield* client.invoke(
|
|
1773
|
+
GetQuotesQuoteOperation,
|
|
1774
|
+
input,
|
|
1775
|
+
);
|
|
1776
|
+
return response;
|
|
1777
|
+
});
|
|
1778
|
+
/**
|
|
1779
|
+
* The PostQuotesQuote function validates its request before it invokes Stripe.
|
|
1780
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1781
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1782
|
+
*/
|
|
1783
|
+
const PostQuotesQuote = Effect.fn("quotes.PostQuotesQuote")(function* (
|
|
1784
|
+
input: PostQuotesQuoteInput,
|
|
1785
|
+
) {
|
|
1786
|
+
const response: PostQuotesQuoteOutput = yield* client.invoke(
|
|
1787
|
+
PostQuotesQuoteOperation,
|
|
1788
|
+
input,
|
|
1789
|
+
);
|
|
1790
|
+
return response;
|
|
1791
|
+
});
|
|
1792
|
+
/**
|
|
1793
|
+
* The PostQuotesQuoteAccept function validates its request before it invokes Stripe.
|
|
1794
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1795
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1796
|
+
*/
|
|
1797
|
+
const PostQuotesQuoteAccept = Effect.fn("quotes.PostQuotesQuoteAccept")(
|
|
1798
|
+
function* (input: PostQuotesQuoteAcceptInput) {
|
|
1799
|
+
const response: PostQuotesQuoteAcceptOutput = yield* client.invoke(
|
|
1800
|
+
PostQuotesQuoteAcceptOperation,
|
|
1801
|
+
input,
|
|
1802
|
+
);
|
|
1803
|
+
return response;
|
|
1804
|
+
},
|
|
1805
|
+
);
|
|
1806
|
+
/**
|
|
1807
|
+
* The PostQuotesQuoteCancel function validates its request before it invokes Stripe.
|
|
1808
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1809
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1810
|
+
*/
|
|
1811
|
+
const PostQuotesQuoteCancel = Effect.fn("quotes.PostQuotesQuoteCancel")(
|
|
1812
|
+
function* (input: PostQuotesQuoteCancelInput) {
|
|
1813
|
+
const response: PostQuotesQuoteCancelOutput = yield* client.invoke(
|
|
1814
|
+
PostQuotesQuoteCancelOperation,
|
|
1815
|
+
input,
|
|
1816
|
+
);
|
|
1817
|
+
return response;
|
|
1818
|
+
},
|
|
1819
|
+
);
|
|
1820
|
+
/**
|
|
1821
|
+
* The GetQuotesQuoteComputedUpfrontLineItems function validates its request before it invokes Stripe.
|
|
1822
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1823
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1824
|
+
*/
|
|
1825
|
+
const GetQuotesQuoteComputedUpfrontLineItems = Effect.fn(
|
|
1826
|
+
"quotes.GetQuotesQuoteComputedUpfrontLineItems",
|
|
1827
|
+
)(function* (input: GetQuotesQuoteComputedUpfrontLineItemsInput) {
|
|
1828
|
+
const response: GetQuotesQuoteComputedUpfrontLineItemsOutput =
|
|
1829
|
+
yield* client.invoke(
|
|
1830
|
+
GetQuotesQuoteComputedUpfrontLineItemsOperation,
|
|
1831
|
+
input,
|
|
1832
|
+
);
|
|
1833
|
+
return response;
|
|
1834
|
+
});
|
|
1835
|
+
/**
|
|
1836
|
+
* The PostQuotesQuoteFinalize function validates its request before it invokes Stripe.
|
|
1837
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1838
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1839
|
+
*/
|
|
1840
|
+
const PostQuotesQuoteFinalize = Effect.fn("quotes.PostQuotesQuoteFinalize")(
|
|
1841
|
+
function* (input: PostQuotesQuoteFinalizeInput) {
|
|
1842
|
+
const response: PostQuotesQuoteFinalizeOutput = yield* client.invoke(
|
|
1843
|
+
PostQuotesQuoteFinalizeOperation,
|
|
1844
|
+
input,
|
|
1845
|
+
);
|
|
1846
|
+
return response;
|
|
1847
|
+
},
|
|
1848
|
+
);
|
|
1849
|
+
/**
|
|
1850
|
+
* The GetQuotesQuoteLineItems function validates its request before it invokes Stripe.
|
|
1851
|
+
* The result is the decoded response. Failures in transport or validation
|
|
1852
|
+
* and modeled Stripe errors propagate to the caller.
|
|
1853
|
+
*/
|
|
1854
|
+
const GetQuotesQuoteLineItems = Effect.fn("quotes.GetQuotesQuoteLineItems")(
|
|
1855
|
+
function* (input: GetQuotesQuoteLineItemsInput) {
|
|
1856
|
+
const response: GetQuotesQuoteLineItemsOutput = yield* client.invoke(
|
|
1857
|
+
GetQuotesQuoteLineItemsOperation,
|
|
1858
|
+
input,
|
|
1859
|
+
);
|
|
1860
|
+
return response;
|
|
1861
|
+
},
|
|
1862
|
+
);
|
|
1863
|
+
return {
|
|
1864
|
+
GetQuotes,
|
|
1865
|
+
PostQuotes,
|
|
1866
|
+
GetQuotesQuote,
|
|
1867
|
+
PostQuotesQuote,
|
|
1868
|
+
PostQuotesQuoteAccept,
|
|
1869
|
+
PostQuotesQuoteCancel,
|
|
1870
|
+
GetQuotesQuoteComputedUpfrontLineItems,
|
|
1871
|
+
PostQuotesQuoteFinalize,
|
|
1872
|
+
GetQuotesQuoteLineItems,
|
|
1873
|
+
};
|
|
1874
|
+
});
|