stripe 20.1.0-alpha.4 → 20.2.0-alpha.1
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 +39 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +9 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/SharedPayment/GrantedTokens.js +12 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +16 -0
- package/cjs/resources/V2/Iam/ApiKeys.js +24 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +20 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +33 -0
- package/cjs/resources/V2/Tax/ManualRules.js +23 -0
- package/cjs/resources.js +15 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +7 -0
- package/esm/apiVersion.js +1 -1
- package/esm/resources/SharedPayment/GrantedTokens.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +13 -0
- package/esm/resources/V2/Iam/ApiKeys.js +21 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +17 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +30 -0
- package/esm/resources/V2/Tax/ManualRules.js +20 -0
- package/esm/resources.js +14 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinks.d.ts +1 -1
- package/types/AccountNotices.d.ts +6 -6
- package/types/AccountNoticesResource.d.ts +1 -1
- package/types/AccountSessions.d.ts +7 -7
- package/types/AccountSessionsResource.d.ts +21 -0
- package/types/Accounts.d.ts +25 -25
- package/types/AccountsResource.d.ts +107 -63
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -2
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +1 -1
- package/types/BalanceTransfers.d.ts +3 -3
- package/types/BalanceTransfersResource.d.ts +1 -1
- package/types/BankAccounts.d.ts +10 -10
- package/types/Billing/Alerts.d.ts +2 -2
- package/types/Billing/CreditBalanceSummary.d.ts +3 -3
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactions.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +4 -4
- package/types/Billing/CreditGrantsResource.d.ts +3 -3
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +10 -3
- package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
- package/types/BillingPortal/Sessions.d.ts +7 -7
- package/types/BillingPortal/SessionsResource.d.ts +7 -7
- package/types/Capabilities.d.ts +16 -16
- package/types/Capital/FinancingOffers.d.ts +2 -2
- package/types/Capital/FinancingSummary.d.ts +7 -4
- package/types/Capital/FinancingSummaryResource.d.ts +1 -1
- package/types/Cards.d.ts +2 -2
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -27
- package/types/ChargesResource.d.ts +22 -22
- package/types/Checkout/Sessions.d.ts +18 -18
- package/types/Checkout/SessionsResource.d.ts +90 -60
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -6
- package/types/Coupons.d.ts +3 -3
- package/types/CouponsResource.d.ts +2 -2
- package/types/CreditNoteLineItems.d.ts +3 -0
- package/types/CreditNotes.d.ts +8 -5
- package/types/CreditNotesResource.d.ts +5 -5
- package/types/CustomerBalanceTransactions.d.ts +9 -6
- package/types/CustomerCashBalanceTransactions.d.ts +13 -10
- package/types/CustomerSessions.d.ts +1 -1
- package/types/Customers.d.ts +8 -5
- package/types/CustomersResource.d.ts +21 -16
- package/types/DelegatedCheckout/RequestedSessions.d.ts +83 -17
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +102 -0
- package/types/Discounts.d.ts +6 -6
- package/types/Disputes.d.ts +3 -3
- package/types/DisputesResource.d.ts +1 -1
- package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
- package/types/Errors.d.ts +6 -0
- package/types/Events.d.ts +1 -1
- package/types/ExchangeRates.d.ts +2 -2
- package/types/ExternalAccountsResource.d.ts +4 -4
- package/types/FeeRefunds.d.ts +2 -2
- package/types/FileLinks.d.ts +1 -1
- package/types/FileLinksResource.d.ts +2 -2
- package/types/Files.d.ts +4 -4
- package/types/FilesResource.d.ts +3 -3
- package/types/FinancialConnections/Accounts.d.ts +3 -3
- package/types/FinancialConnections/AccountsResource.d.ts +3 -3
- package/types/FinancialConnections/Sessions.d.ts +2 -2
- package/types/FinancialConnections/SessionsResource.d.ts +3 -3
- package/types/Forwarding/Requests.d.ts +1 -1
- package/types/Forwarding/RequestsResource.d.ts +1 -1
- package/types/FundingInstructions.d.ts +2 -2
- package/types/Identity/BlocklistEntries.d.ts +1 -1
- package/types/Identity/VerificationReports.d.ts +8 -8
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +12 -12
- package/types/InvoiceItemsResource.d.ts +16 -16
- package/types/InvoiceLineItems.d.ts +11 -8
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +83 -33
- package/types/InvoicesResource.d.ts +237 -111
- package/types/Issuing/Authorizations.d.ts +20 -20
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/Cardholders.d.ts +13 -13
- package/types/Issuing/CardholdersResource.d.ts +21 -21
- package/types/Issuing/Cards.d.ts +20 -10
- package/types/Issuing/CardsResource.d.ts +46 -13
- package/types/Issuing/CreditUnderwritingRecords.d.ts +5 -5
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +15 -15
- package/types/Issuing/Disputes.d.ts +7 -7
- package/types/Issuing/DisputesResource.d.ts +5 -5
- package/types/Issuing/FraudLiabilityDebits.d.ts +1 -1
- package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
- package/types/Issuing/Programs.d.ts +1 -1
- package/types/Issuing/ProgramsResource.d.ts +1 -1
- package/types/Issuing/Settlements.d.ts +2 -2
- package/types/Issuing/Tokens.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +13 -13
- package/types/Issuing/TransactionsResource.d.ts +1 -1
- package/types/LineItems.d.ts +3 -3
- package/types/LoginLinks.d.ts +1 -1
- package/types/MandatesResource.d.ts +1 -1
- package/types/Margins.d.ts +1 -1
- package/types/MarginsResource.d.ts +2 -2
- package/types/Orders.d.ts +11 -11
- package/types/OrdersResource.d.ts +24 -24
- package/types/PaymentAttemptRecords.d.ts +119 -18
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
- package/types/PaymentIntents.d.ts +72 -44
- package/types/PaymentIntentsResource.d.ts +172 -159
- package/types/PaymentLinks.d.ts +7 -7
- package/types/PaymentLinksResource.d.ts +42 -28
- package/types/PaymentMethodConfigurations.d.ts +4 -4
- package/types/PaymentMethodConfigurationsResource.d.ts +80 -80
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +10 -8
- package/types/PaymentMethodsResource.d.ts +7 -6
- package/types/PaymentRecords.d.ts +126 -18
- package/types/PaymentRecordsResource.d.ts +7 -7
- package/types/Payouts.d.ts +7 -7
- package/types/PayoutsResource.d.ts +3 -3
- package/types/Persons.d.ts +21 -21
- package/types/Plans.d.ts +5 -5
- package/types/PlansResource.d.ts +6 -6
- package/types/Prices.d.ts +6 -6
- package/types/PricesResource.d.ts +10 -10
- package/types/ProductCatalog/TrialOffers.d.ts +1 -1
- package/types/Products.d.ts +10 -10
- package/types/ProductsResource.d.ts +38 -14
- package/types/PromotionCodes.d.ts +5 -5
- package/types/PromotionCodesResource.d.ts +5 -5
- package/types/QuoteLines.d.ts +3 -3
- package/types/QuotePreviewInvoices.d.ts +81 -31
- package/types/QuotePreviewSubscriptionSchedules.d.ts +18 -18
- package/types/Quotes.d.ts +16 -16
- package/types/QuotesResource.d.ts +30 -30
- package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
- package/types/Radar/ValueListItems.d.ts +1 -1
- package/types/Radar/ValueLists.d.ts +2 -2
- package/types/Radar/ValueListsResource.d.ts +2 -2
- package/types/Refunds.d.ts +3 -3
- package/types/RefundsResource.d.ts +3 -3
- package/types/Reporting/ReportRuns.d.ts +3 -3
- package/types/Reporting/ReportRunsResource.d.ts +2 -2
- package/types/Reporting/ReportTypes.d.ts +3 -3
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +21 -18
- package/types/SetupIntents.d.ts +20 -19
- package/types/SetupIntentsResource.d.ts +47 -44
- package/types/SharedPayment/GrantedTokens.d.ts +102 -0
- package/types/SharedPayment/GrantedTokensResource.d.ts +29 -0
- package/types/ShippingRates.d.ts +3 -3
- package/types/ShippingRatesResource.d.ts +3 -3
- package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/types/SourceMandateNotifications.d.ts +3 -3
- package/types/Sources.d.ts +5 -5
- package/types/SourcesResource.d.ts +2 -2
- package/types/SubscriptionItems.d.ts +7 -7
- package/types/SubscriptionItemsResource.d.ts +22 -22
- package/types/SubscriptionSchedules.d.ts +19 -19
- package/types/SubscriptionSchedulesResource.d.ts +61 -61
- package/types/Subscriptions.d.ts +61 -15
- package/types/SubscriptionsResource.d.ts +142 -58
- package/types/Tax/Associations.d.ts +3 -3
- package/types/Tax/AssociationsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +7 -7
- package/types/Tax/Calculations.d.ts +12 -12
- package/types/Tax/CalculationsResource.d.ts +7 -7
- package/types/Tax/Registrations.d.ts +3 -3
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Tax/SettingsResource.d.ts +1 -1
- package/types/Tax/TransactionLineItems.d.ts +5 -5
- package/types/Tax/Transactions.d.ts +9 -9
- package/types/Tax/TransactionsResource.d.ts +10 -10
- package/types/TaxIds.d.ts +6 -6
- package/types/TaxIdsResource.d.ts +4 -4
- package/types/TaxRates.d.ts +1 -1
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/Locations.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +3 -3
- package/types/Terminal/Readers.d.ts +10 -10
- package/types/Terminal/ReadersResource.d.ts +7 -7
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -4
- package/types/TestHelpers/CustomersResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
- package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +87 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -1
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -1
- package/types/Tokens.d.ts +4 -4
- package/types/TokensResource.d.ts +17 -17
- package/types/Topups.d.ts +3 -3
- package/types/TopupsResource.d.ts +3 -3
- package/types/TransferReversals.d.ts +4 -4
- package/types/Transfers.d.ts +5 -5
- package/types/TransfersResource.d.ts +6 -6
- package/types/Treasury/CreditReversals.d.ts +3 -3
- package/types/Treasury/CreditReversalsResource.d.ts +1 -1
- package/types/Treasury/DebitReversals.d.ts +3 -3
- package/types/Treasury/DebitReversalsResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +2 -2
- package/types/Treasury/InboundTransfers.d.ts +4 -4
- package/types/Treasury/InboundTransfersResource.d.ts +2 -2
- package/types/Treasury/OutboundPayments.d.ts +5 -5
- package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
- package/types/Treasury/OutboundTransfers.d.ts +4 -4
- package/types/Treasury/OutboundTransfersResource.d.ts +3 -3
- package/types/Treasury/ReceivedCredits.d.ts +9 -9
- package/types/Treasury/ReceivedDebits.d.ts +6 -6
- package/types/Treasury/TransactionEntries.d.ts +11 -11
- package/types/Treasury/Transactions.d.ts +11 -11
- package/types/V2/Billing/IntentActions.d.ts +141 -36
- package/types/V2/Billing/IntentsResource.d.ts +141 -42
- package/types/V2/Core/AccountLinks.d.ts +11 -11
- package/types/V2/Core/AccountLinksResource.d.ts +6 -6
- package/types/V2/Core/AccountPersons.d.ts +55 -10
- package/types/V2/Core/AccountTokensResource.d.ts +99 -10
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
- package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
- package/types/V2/Core/Accounts.d.ts +298 -509
- package/types/V2/Core/AccountsResource.d.ts +256 -51
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +1 -1
- package/types/V2/Core/EventTypes.d.ts +601 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +21 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +26 -0
- package/types/V2/Iam/ApiKeys.d.ts +154 -0
- package/types/V2/Iam/ApiKeysResource.d.ts +215 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +31 -1
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +8 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +7 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +2 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +26 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +2 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +10 -1
- package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +111 -0
- package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +126 -0
- package/types/V2/Payments/SettlementAllocationIntents.d.ts +122 -0
- package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +168 -0
- package/types/V2/Tax/ManualRules.d.ts +142 -0
- package/types/V2/Tax/ManualRulesResource.d.ts +292 -0
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +4 -3
- package/types/apiVersion.d.ts +1 -1
- package/types/index.d.ts +24 -0
|
@@ -26,7 +26,7 @@ declare module 'stripe' {
|
|
|
26
26
|
/**
|
|
27
27
|
* A Reader represents a physical device for accepting payment details.
|
|
28
28
|
*
|
|
29
|
-
* Related guide: [Connecting to a reader](https://stripe.com/
|
|
29
|
+
* Related guide: [Connecting to a reader](https://docs.stripe.com/terminal/payments/connect-reader)
|
|
30
30
|
*/
|
|
31
31
|
interface Reader {
|
|
32
32
|
/**
|
|
@@ -70,7 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
label: string;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* The last time this reader reported to Stripe backend.
|
|
73
|
+
* The last time this reader reported to Stripe backend. Timestamp is measured in milliseconds since the Unix epoch. Unlike most other Stripe timestamp fields which use seconds, this field uses milliseconds.
|
|
74
74
|
*/
|
|
75
75
|
last_seen_at: number | null;
|
|
76
76
|
|
|
@@ -85,7 +85,7 @@ declare module 'stripe' {
|
|
|
85
85
|
location: string | Stripe.Terminal.Location | null;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
88
|
+
* 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.
|
|
89
89
|
*/
|
|
90
90
|
metadata: Stripe.Metadata;
|
|
91
91
|
|
|
@@ -166,7 +166,7 @@ declare module 'stripe' {
|
|
|
166
166
|
inputs: Array<CollectInputs.Input>;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
169
|
+
* 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.
|
|
170
170
|
*/
|
|
171
171
|
metadata: Stripe.Metadata | null;
|
|
172
172
|
}
|
|
@@ -383,10 +383,10 @@ declare module 'stripe' {
|
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* PaymentMethod objects represent your customer's payment instruments.
|
|
386
|
-
* You can use them with [PaymentIntents](https://stripe.com/
|
|
386
|
+
* You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
|
|
387
387
|
* Customer objects to store instrument details for future payments.
|
|
388
388
|
*
|
|
389
|
-
* Related guides: [Payment Methods](https://stripe.com/
|
|
389
|
+
* Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
|
|
390
390
|
*/
|
|
391
391
|
payment_method?: Stripe.PaymentMethod;
|
|
392
392
|
}
|
|
@@ -538,7 +538,7 @@ declare module 'stripe' {
|
|
|
538
538
|
charge?: string | Stripe.Charge;
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
541
|
+
* 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.
|
|
542
542
|
*/
|
|
543
543
|
metadata?: Stripe.Metadata;
|
|
544
544
|
|
|
@@ -609,12 +609,12 @@ declare module 'stripe' {
|
|
|
609
609
|
line_items: Array<Cart.LineItem>;
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Tax amount for the entire cart. A positive integer in the [smallest currency unit](https://stripe.com/
|
|
612
|
+
* Tax amount for the entire cart. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
613
613
|
*/
|
|
614
614
|
tax: number | null;
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
|
-
* Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](https://stripe.com/
|
|
617
|
+
* Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
618
618
|
*/
|
|
619
619
|
total: number;
|
|
620
620
|
}
|
|
@@ -622,7 +622,7 @@ declare module 'stripe' {
|
|
|
622
622
|
namespace Cart {
|
|
623
623
|
interface LineItem {
|
|
624
624
|
/**
|
|
625
|
-
* The amount of the line item. A positive integer in the [smallest currency unit](https://stripe.com/
|
|
625
|
+
* The amount of the line item. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
626
626
|
*/
|
|
627
627
|
amount: number;
|
|
628
628
|
|
|
@@ -25,7 +25,7 @@ declare module 'stripe' {
|
|
|
25
25
|
location?: string;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
28
|
+
* 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`.
|
|
29
29
|
*/
|
|
30
30
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
31
31
|
}
|
|
@@ -49,7 +49,7 @@ declare module 'stripe' {
|
|
|
49
49
|
label?: Stripe.Emptyable<string>;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
52
|
+
* 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`.
|
|
53
53
|
*/
|
|
54
54
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
55
55
|
}
|
|
@@ -117,7 +117,7 @@ declare module 'stripe' {
|
|
|
117
117
|
expand?: Array<string>;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
120
|
+
* 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`.
|
|
121
121
|
*/
|
|
122
122
|
metadata?: Stripe.MetadataParam;
|
|
123
123
|
}
|
|
@@ -419,7 +419,7 @@ declare module 'stripe' {
|
|
|
419
419
|
expand?: Array<string>;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
422
|
+
* 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`.
|
|
423
423
|
*/
|
|
424
424
|
metadata?: Stripe.MetadataParam;
|
|
425
425
|
|
|
@@ -483,12 +483,12 @@ declare module 'stripe' {
|
|
|
483
483
|
line_items: Array<Cart.LineItem>;
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
|
-
* The amount of tax in the [smallest currency unit](https://stripe.com/
|
|
486
|
+
* The amount of tax in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
487
487
|
*/
|
|
488
488
|
tax?: number;
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
|
-
* Total balance of cart due in the [smallest currency unit](https://stripe.com/
|
|
491
|
+
* Total balance of cart due in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
492
492
|
*/
|
|
493
493
|
total: number;
|
|
494
494
|
}
|
|
@@ -496,7 +496,7 @@ declare module 'stripe' {
|
|
|
496
496
|
namespace Cart {
|
|
497
497
|
interface LineItem {
|
|
498
498
|
/**
|
|
499
|
-
* The price of the item in the [smallest currency unit](https://stripe.com/
|
|
499
|
+
* The price of the item in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
500
500
|
*/
|
|
501
501
|
amount: number;
|
|
502
502
|
|
|
@@ -32,7 +32,7 @@ declare module 'stripe' {
|
|
|
32
32
|
/**
|
|
33
33
|
* Indicates that you intend to make future payments with this ConfirmationToken's payment method.
|
|
34
34
|
*
|
|
35
|
-
* The presence of this property will [attach the payment method](https://stripe.com/
|
|
35
|
+
* The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
|
|
36
36
|
*/
|
|
37
37
|
setup_future_usage?: ConfirmationTokenCreateParams.SetupFutureUsage;
|
|
38
38
|
|
|
@@ -200,7 +200,7 @@ declare module 'stripe' {
|
|
|
200
200
|
mb_way?: PaymentMethodData.MbWay;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
203
|
+
* 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`.
|
|
204
204
|
*/
|
|
205
205
|
metadata?: Stripe.MetadataParam;
|
|
206
206
|
|
|
@@ -280,7 +280,7 @@ declare module 'stripe' {
|
|
|
280
280
|
qris?: PaymentMethodData.Qris;
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
|
-
* Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
283
|
+
* Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
284
284
|
*/
|
|
285
285
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
286
286
|
|
|
@@ -568,6 +568,7 @@ declare module 'stripe' {
|
|
|
568
568
|
| 'handelsbanken'
|
|
569
569
|
| 'ing'
|
|
570
570
|
| 'knab'
|
|
571
|
+
| 'mollie'
|
|
571
572
|
| 'moneyou'
|
|
572
573
|
| 'n26'
|
|
573
574
|
| 'nn'
|
|
@@ -736,7 +737,7 @@ declare module 'stripe' {
|
|
|
736
737
|
|
|
737
738
|
interface RadarOptions {
|
|
738
739
|
/**
|
|
739
|
-
* A [Radar Session](https://stripe.com/
|
|
740
|
+
* A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
740
741
|
*/
|
|
741
742
|
session?: string;
|
|
742
743
|
}
|
|
@@ -5,7 +5,7 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace TestHelpers {
|
|
6
6
|
interface CustomerFundCashBalanceParams {
|
|
7
7
|
/**
|
|
8
|
-
* Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/
|
|
8
|
+
* Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency).
|
|
9
9
|
*/
|
|
10
10
|
amount: number;
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ declare module 'stripe' {
|
|
|
20
20
|
expand?: Array<string>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe's [reconciliation algorithm](https://stripe.com/
|
|
23
|
+
* A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe's [reconciliation algorithm](https://docs.stripe.com/payments/customer-balance/reconciliation) applies to different user inputs.
|
|
24
24
|
*/
|
|
25
25
|
reference?: string;
|
|
26
26
|
}
|
|
@@ -11,12 +11,12 @@ declare module 'stripe' {
|
|
|
11
11
|
card: string;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/
|
|
14
|
+
* The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
15
15
|
*/
|
|
16
16
|
amount?: number;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/
|
|
19
|
+
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
20
20
|
*/
|
|
21
21
|
amount_details?: AuthorizationCreateParams.AmountDetails;
|
|
22
22
|
|
|
@@ -51,12 +51,12 @@ declare module 'stripe' {
|
|
|
51
51
|
fuel?: AuthorizationCreateParams.Fuel;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* If set `true`, you may provide [amount](https://stripe.com/
|
|
54
|
+
* If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
|
55
55
|
*/
|
|
56
56
|
is_amount_controllable?: boolean;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://stripe.com/
|
|
59
|
+
* The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
60
60
|
*/
|
|
61
61
|
merchant_amount?: number;
|
|
62
62
|
|
|
@@ -271,7 +271,7 @@ declare module 'stripe' {
|
|
|
271
271
|
|
|
272
272
|
interface MerchantData {
|
|
273
273
|
/**
|
|
274
|
-
* A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/
|
|
274
|
+
* A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
|
275
275
|
*/
|
|
276
276
|
category?: MerchantData.Category;
|
|
277
277
|
|
|
@@ -796,7 +796,7 @@ declare module 'stripe' {
|
|
|
796
796
|
namespace Issuing {
|
|
797
797
|
interface AuthorizationCaptureParams {
|
|
798
798
|
/**
|
|
799
|
-
* The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
799
|
+
* The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
800
800
|
*/
|
|
801
801
|
capture_amount?: number;
|
|
802
802
|
|
|
@@ -1100,7 +1100,7 @@ declare module 'stripe' {
|
|
|
1100
1100
|
namespace Issuing {
|
|
1101
1101
|
interface AuthorizationFinalizeAmountParams {
|
|
1102
1102
|
/**
|
|
1103
|
-
* The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
1103
|
+
* The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
1104
1104
|
*/
|
|
1105
1105
|
final_amount: number;
|
|
1106
1106
|
|
|
@@ -1278,7 +1278,7 @@ declare module 'stripe' {
|
|
|
1278
1278
|
namespace Issuing {
|
|
1279
1279
|
interface AuthorizationIncrementParams {
|
|
1280
1280
|
/**
|
|
1281
|
-
* The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
1281
|
+
* The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
1282
1282
|
*/
|
|
1283
1283
|
increment_amount: number;
|
|
1284
1284
|
|
|
@@ -1288,7 +1288,7 @@ declare module 'stripe' {
|
|
|
1288
1288
|
expand?: Array<string>;
|
|
1289
1289
|
|
|
1290
1290
|
/**
|
|
1291
|
-
* If set `true`, you may provide [amount](https://stripe.com/
|
|
1291
|
+
* If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
|
1292
1292
|
*/
|
|
1293
1293
|
is_amount_controllable?: boolean;
|
|
1294
1294
|
}
|
|
@@ -1316,7 +1316,7 @@ declare module 'stripe' {
|
|
|
1316
1316
|
expand?: Array<string>;
|
|
1317
1317
|
|
|
1318
1318
|
/**
|
|
1319
|
-
* The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/
|
|
1319
|
+
* The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
1320
1320
|
*/
|
|
1321
1321
|
reverse_amount?: number;
|
|
1322
1322
|
}
|
|
@@ -6,7 +6,7 @@ declare module 'stripe' {
|
|
|
6
6
|
namespace Issuing {
|
|
7
7
|
interface TransactionCreateForceCaptureParams {
|
|
8
8
|
/**
|
|
9
|
-
* The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/
|
|
9
|
+
* The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
10
10
|
*/
|
|
11
11
|
amount: number;
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ declare module 'stripe' {
|
|
|
39
39
|
namespace TransactionCreateForceCaptureParams {
|
|
40
40
|
interface MerchantData {
|
|
41
41
|
/**
|
|
42
|
-
* A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/
|
|
42
|
+
* A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
|
43
43
|
*/
|
|
44
44
|
category?: MerchantData.Category;
|
|
45
45
|
|
|
@@ -656,7 +656,7 @@ declare module 'stripe' {
|
|
|
656
656
|
namespace Issuing {
|
|
657
657
|
interface TransactionCreateUnlinkedRefundParams {
|
|
658
658
|
/**
|
|
659
|
-
* The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/
|
|
659
|
+
* The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
660
660
|
*/
|
|
661
661
|
amount: number;
|
|
662
662
|
|
|
@@ -689,7 +689,7 @@ declare module 'stripe' {
|
|
|
689
689
|
namespace TransactionCreateUnlinkedRefundParams {
|
|
690
690
|
interface MerchantData {
|
|
691
691
|
/**
|
|
692
|
-
* A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/
|
|
692
|
+
* A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
|
693
693
|
*/
|
|
694
694
|
category?: MerchantData.Category;
|
|
695
695
|
|
|
@@ -1311,7 +1311,7 @@ declare module 'stripe' {
|
|
|
1311
1311
|
expand?: Array<string>;
|
|
1312
1312
|
|
|
1313
1313
|
/**
|
|
1314
|
-
* The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/
|
|
1314
|
+
* The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
1315
1315
|
*/
|
|
1316
1316
|
refund_amount?: number;
|
|
1317
1317
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace TestHelpers {
|
|
6
|
+
namespace SharedPayment {
|
|
7
|
+
interface GrantedTokenCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The PaymentMethod that is going to be shared by the SharedPaymentGrantedToken.
|
|
10
|
+
*/
|
|
11
|
+
payment_method: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Limits on how this SharedPaymentGrantedToken can be used.
|
|
15
|
+
*/
|
|
16
|
+
usage_limits: GrantedTokenCreateParams.UsageLimits;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The Customer that the SharedPaymentGrantedToken belongs to. Should match the Customer that the PaymentMethod is attached to if any.
|
|
20
|
+
*/
|
|
21
|
+
customer?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies which fields in the response should be expanded.
|
|
25
|
+
*/
|
|
26
|
+
expand?: Array<string>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentGrantedToken.
|
|
30
|
+
*/
|
|
31
|
+
shared_metadata?: Stripe.Emptyable<{
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
}>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
namespace GrantedTokenCreateParams {
|
|
37
|
+
interface UsageLimits {
|
|
38
|
+
/**
|
|
39
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
40
|
+
*/
|
|
41
|
+
currency: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
45
|
+
*/
|
|
46
|
+
expires_at: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Max amount that can be captured using this SharedPaymentToken
|
|
50
|
+
*/
|
|
51
|
+
max_amount: number;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace SharedPayment {
|
|
57
|
+
interface GrantedTokenUpdateParams {
|
|
58
|
+
/**
|
|
59
|
+
* Specifies which fields in the response should be expanded.
|
|
60
|
+
*/
|
|
61
|
+
expand?: Array<string>;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
namespace SharedPayment {
|
|
66
|
+
class GrantedTokensResource {
|
|
67
|
+
/**
|
|
68
|
+
* Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration
|
|
69
|
+
*/
|
|
70
|
+
create(
|
|
71
|
+
params: GrantedTokenCreateParams,
|
|
72
|
+
options?: RequestOptions
|
|
73
|
+
): Promise<Stripe.Response<Stripe.SharedPayment.GrantedToken>>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
|
|
77
|
+
*/
|
|
78
|
+
update(
|
|
79
|
+
id: string,
|
|
80
|
+
params?: GrantedTokenUpdateParams,
|
|
81
|
+
options?: RequestOptions
|
|
82
|
+
): Promise<Stripe.Response<Stripe.SharedPayment.GrantedToken>>;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -21,7 +21,7 @@ declare module 'stripe' {
|
|
|
21
21
|
financial_account: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/
|
|
24
|
+
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
25
25
|
*/
|
|
26
26
|
network: ReceivedCreditCreateParams.Network;
|
|
27
27
|
|
|
@@ -21,7 +21,7 @@ declare module 'stripe' {
|
|
|
21
21
|
financial_account: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/
|
|
24
|
+
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
25
25
|
*/
|
|
26
26
|
network: 'ach';
|
|
27
27
|
|
package/types/Tokens.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare module 'stripe' {
|
|
|
7
7
|
* account details, or personally identifiable information (PII), directly from
|
|
8
8
|
* your customers in a secure manner. A token representing this information is
|
|
9
9
|
* returned to your server to use. Use our
|
|
10
|
-
* [recommended payments integrations](https://stripe.com/
|
|
10
|
+
* [recommended payments integrations](https://docs.stripe.com/payments) to perform this process
|
|
11
11
|
* on the client-side. This guarantees that no sensitive card data touches your server,
|
|
12
12
|
* and allows your integration to operate in a PCI-compliant way.
|
|
13
13
|
*
|
|
@@ -19,9 +19,9 @@ declare module 'stripe' {
|
|
|
19
19
|
* Stripe, so we can't determine how it's handled or stored.
|
|
20
20
|
*
|
|
21
21
|
* You can't store or use tokens more than once. To store card or bank account
|
|
22
|
-
* information for later use, create [Customer](https://stripe.com/
|
|
22
|
+
* information for later use, create [Customer](https://docs.stripe.com/api#customers)
|
|
23
23
|
* objects or [External accounts](https://docs.stripe.com/api#external_accounts).
|
|
24
|
-
* [Radar](https://stripe.com/
|
|
24
|
+
* [Radar](https://docs.stripe.com/radar), our integrated solution for automatic fraud protection,
|
|
25
25
|
* performs best with integrations that use client-side tokenization.
|
|
26
26
|
*/
|
|
27
27
|
interface Token {
|
|
@@ -51,7 +51,7 @@ declare module 'stripe' {
|
|
|
51
51
|
* later. You can also store multiple debit cards on a recipient in order to
|
|
52
52
|
* transfer to those cards later.
|
|
53
53
|
*
|
|
54
|
-
* Related guide: [Card payments with Sources](https://stripe.com/
|
|
54
|
+
* Related guide: [Card payments with Sources](https://docs.stripe.com/sources/cards)
|
|
55
55
|
*/
|
|
56
56
|
card?: Stripe.Card;
|
|
57
57
|
|
|
@@ -19,7 +19,7 @@ declare module 'stripe' {
|
|
|
19
19
|
card?: TokenCreateParams.Card | string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Create a token for the customer, which is owned by the application's account. You can only use this with an [OAuth access token](https://stripe.com/
|
|
22
|
+
* Create a token for the customer, which is owned by the application's account. You can only use this with an [OAuth access token](https://docs.stripe.com/connect/standard-accounts) or [Stripe-Account header](https://docs.stripe.com/connect/authentication). Learn more about [cloning saved payment methods](https://docs.stripe.com/connect/cloning-saved-payment-methods).
|
|
23
23
|
*/
|
|
24
24
|
customer?: string;
|
|
25
25
|
|
|
@@ -306,12 +306,12 @@ declare module 'stripe' {
|
|
|
306
306
|
namespace Verification {
|
|
307
307
|
interface Document {
|
|
308
308
|
/**
|
|
309
|
-
* The back of a document returned by a [file upload](https://stripe.com
|
|
309
|
+
* The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
310
310
|
*/
|
|
311
311
|
back?: string;
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
|
-
* The front of a document returned by a [file upload](https://stripe.com
|
|
314
|
+
* The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
315
315
|
*/
|
|
316
316
|
front?: string;
|
|
317
317
|
}
|
|
@@ -400,7 +400,7 @@ declare module 'stripe' {
|
|
|
400
400
|
maiden_name?: string;
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
403
|
+
* 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`.
|
|
404
404
|
*/
|
|
405
405
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
406
406
|
|
|
@@ -531,24 +531,24 @@ declare module 'stripe' {
|
|
|
531
531
|
namespace Verification {
|
|
532
532
|
interface AdditionalDocument {
|
|
533
533
|
/**
|
|
534
|
-
* The back of an ID returned by a [file upload](https://stripe.com
|
|
534
|
+
* The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
535
535
|
*/
|
|
536
536
|
back?: string;
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
|
-
* The front of an ID returned by a [file upload](https://stripe.com
|
|
539
|
+
* The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
540
540
|
*/
|
|
541
541
|
front?: string;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
interface Document {
|
|
545
545
|
/**
|
|
546
|
-
* The back of an ID returned by a [file upload](https://stripe.com
|
|
546
|
+
* The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
547
547
|
*/
|
|
548
548
|
back?: string;
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
|
-
* The front of an ID returned by a [file upload](https://stripe.com
|
|
551
|
+
* The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
552
552
|
*/
|
|
553
553
|
front?: string;
|
|
554
554
|
}
|
|
@@ -583,7 +583,7 @@ declare module 'stripe' {
|
|
|
583
583
|
country: string;
|
|
584
584
|
|
|
585
585
|
/**
|
|
586
|
-
* The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://stripe.com/
|
|
586
|
+
* The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://docs.stripe.com/payouts)
|
|
587
587
|
*/
|
|
588
588
|
currency?: string;
|
|
589
589
|
|
|
@@ -783,7 +783,7 @@ declare module 'stripe' {
|
|
|
783
783
|
maiden_name?: string;
|
|
784
784
|
|
|
785
785
|
/**
|
|
786
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
786
|
+
* 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`.
|
|
787
787
|
*/
|
|
788
788
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
789
789
|
|
|
@@ -902,21 +902,21 @@ declare module 'stripe' {
|
|
|
902
902
|
namespace Documents {
|
|
903
903
|
interface CompanyAuthorization {
|
|
904
904
|
/**
|
|
905
|
-
* One or more document ids returned by a [file upload](https://stripe.com
|
|
905
|
+
* One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
|
|
906
906
|
*/
|
|
907
907
|
files?: Array<string>;
|
|
908
908
|
}
|
|
909
909
|
|
|
910
910
|
interface Passport {
|
|
911
911
|
/**
|
|
912
|
-
* One or more document ids returned by a [file upload](https://stripe.com
|
|
912
|
+
* One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
|
|
913
913
|
*/
|
|
914
914
|
files?: Array<string>;
|
|
915
915
|
}
|
|
916
916
|
|
|
917
917
|
interface Visa {
|
|
918
918
|
/**
|
|
919
|
-
* One or more document ids returned by a [file upload](https://stripe.com
|
|
919
|
+
* One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
|
|
920
920
|
*/
|
|
921
921
|
files?: Array<string>;
|
|
922
922
|
}
|
|
@@ -1087,24 +1087,24 @@ declare module 'stripe' {
|
|
|
1087
1087
|
namespace Verification {
|
|
1088
1088
|
interface AdditionalDocument {
|
|
1089
1089
|
/**
|
|
1090
|
-
* The back of an ID returned by a [file upload](https://stripe.com
|
|
1090
|
+
* The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
1091
1091
|
*/
|
|
1092
1092
|
back?: string;
|
|
1093
1093
|
|
|
1094
1094
|
/**
|
|
1095
|
-
* The front of an ID returned by a [file upload](https://stripe.com
|
|
1095
|
+
* The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
1096
1096
|
*/
|
|
1097
1097
|
front?: string;
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
1100
|
interface Document {
|
|
1101
1101
|
/**
|
|
1102
|
-
* The back of an ID returned by a [file upload](https://stripe.com
|
|
1102
|
+
* The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
1103
1103
|
*/
|
|
1104
1104
|
back?: string;
|
|
1105
1105
|
|
|
1106
1106
|
/**
|
|
1107
|
-
* The front of an ID returned by a [file upload](https://stripe.com
|
|
1107
|
+
* The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
1108
1108
|
*/
|
|
1109
1109
|
front?: string;
|
|
1110
1110
|
}
|
package/types/Topups.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare module 'stripe' {
|
|
|
7
7
|
* individual top-ups, as well as list all top-ups. Top-ups are identified by a
|
|
8
8
|
* unique, random ID.
|
|
9
9
|
*
|
|
10
|
-
* Related guide: [Topping up your platform account](https://stripe.com/
|
|
10
|
+
* Related guide: [Topping up your platform account](https://docs.stripe.com/connect/top-ups)
|
|
11
11
|
*/
|
|
12
12
|
interface Topup {
|
|
13
13
|
/**
|
|
@@ -51,7 +51,7 @@ declare module 'stripe' {
|
|
|
51
51
|
expected_availability_date: number | null;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Error code explaining reason for top-up failure if available (see [the errors section](https://stripe.com/
|
|
54
|
+
* Error code explaining reason for top-up failure if available (see [the errors section](https://docs.stripe.com/api#errors) for a list of codes).
|
|
55
55
|
*/
|
|
56
56
|
failure_code: string | null;
|
|
57
57
|
|
|
@@ -66,7 +66,7 @@ declare module 'stripe' {
|
|
|
66
66
|
livemode: boolean;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
69
|
+
* 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.
|
|
70
70
|
*/
|
|
71
71
|
metadata: Stripe.Metadata;
|
|
72
72
|
|