stripe 18.5.0-beta.2 → 18.6.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 +108 -0
- package/OPENAPI_VERSION +1 -1
- package/README.md +5 -3
- package/VERSION +1 -1
- package/cjs/Error.js +63 -55
- package/cjs/RequestSender.js +7 -4
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +16 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +12 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources.js +64 -24
- package/cjs/stripe.core.js +27 -1
- package/esm/Error.js +50 -43
- package/esm/RequestSender.js +7 -4
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +13 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +9 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources.js +45 -5
- package/esm/stripe.core.js +27 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +76 -13
- package/types/Accounts.d.ts +2 -2
- package/types/Balance.d.ts +2 -7
- package/types/BalanceSettings.d.ts +52 -46
- package/types/BalanceSettingsResource.d.ts +55 -46
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +93 -2
- package/types/Billing/CreditBalanceSummary.d.ts +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +32 -1
- package/types/Billing/MeterUsageRows.d.ts +1 -1
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Charges.d.ts +71 -5
- package/types/Checkout/Sessions.d.ts +128 -2
- package/types/Checkout/SessionsResource.d.ts +167 -3
- package/types/CreditNotesResource.d.ts +3 -3
- package/types/Disputes.d.ts +7 -2
- package/types/Errors.d.ts +51 -45
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/InvoiceItems.d.ts +104 -2
- package/types/InvoiceLineItems.d.ts +113 -2
- package/types/InvoicePaymentsResource.d.ts +3 -0
- package/types/Invoices.d.ts +19 -2
- package/types/InvoicesResource.d.ts +64 -0
- package/types/Mandates.d.ts +58 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/PaymentAttemptRecords.d.ts +154 -9
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntents.d.ts +136 -2
- package/types/PaymentIntentsResource.d.ts +280 -3
- package/types/PaymentLinksResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentRecords.d.ts +154 -9
- package/types/PaymentRecordsResource.d.ts +24 -3
- package/types/Payouts.d.ts +1 -1
- package/types/PromotionCodes.d.ts +5 -2
- package/types/QuotePreviewInvoices.d.ts +19 -2
- package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
- package/types/SetupAttempts.d.ts +7 -1
- package/types/SetupIntents.d.ts +95 -1
- package/types/SetupIntentsResource.d.ts +207 -0
- package/types/SubscriptionSchedules.d.ts +47 -0
- package/types/SubscriptionSchedulesResource.d.ts +112 -0
- package/types/Subscriptions.d.ts +5 -0
- package/types/SubscriptionsResource.d.ts +145 -7
- package/types/Terminal/Configurations.d.ts +28 -0
- package/types/Terminal/ConfigurationsResource.d.ts +72 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +354 -0
- package/types/V2/Billing/CadencesResource.d.ts +489 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +458 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +574 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +163 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +134 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +93 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +138 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +134 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +209 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +240 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +302 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
- package/types/V2/Core/Accounts.d.ts +49 -0
- package/types/V2/Core/AccountsResource.d.ts +78 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +349 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +310 -0
- package/types/V2/Core/Persons.d.ts +16 -0
- package/types/V2/EventTypes.d.ts +3682 -632
- package/types/V2/Events.d.ts +7 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +7 -2
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
- package/types/V2/Reporting/ReportRuns.d.ts +178 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +99 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +2 -0
- package/types/index.d.ts +125 -5
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -78,6 +78,13 @@ declare module 'stripe' {
|
|
|
78
78
|
*/
|
|
79
79
|
error_on_requires_action?: boolean;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The list of payment method types to exclude from use with this payment.
|
|
83
|
+
*/
|
|
84
|
+
excluded_payment_method_types?: Array<
|
|
85
|
+
PaymentIntentCreateParams.ExcludedPaymentMethodType
|
|
86
|
+
>;
|
|
87
|
+
|
|
81
88
|
/**
|
|
82
89
|
* Specifies which fields in the response should be expanded.
|
|
83
90
|
*/
|
|
@@ -417,6 +424,63 @@ declare module 'stripe' {
|
|
|
417
424
|
|
|
418
425
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
419
426
|
|
|
427
|
+
type ExcludedPaymentMethodType =
|
|
428
|
+
| 'acss_debit'
|
|
429
|
+
| 'affirm'
|
|
430
|
+
| 'afterpay_clearpay'
|
|
431
|
+
| 'alipay'
|
|
432
|
+
| 'alma'
|
|
433
|
+
| 'amazon_pay'
|
|
434
|
+
| 'au_becs_debit'
|
|
435
|
+
| 'bacs_debit'
|
|
436
|
+
| 'bancontact'
|
|
437
|
+
| 'billie'
|
|
438
|
+
| 'blik'
|
|
439
|
+
| 'boleto'
|
|
440
|
+
| 'card'
|
|
441
|
+
| 'cashapp'
|
|
442
|
+
| 'crypto'
|
|
443
|
+
| 'customer_balance'
|
|
444
|
+
| 'eps'
|
|
445
|
+
| 'fpx'
|
|
446
|
+
| 'giropay'
|
|
447
|
+
| 'gopay'
|
|
448
|
+
| 'grabpay'
|
|
449
|
+
| 'id_bank_transfer'
|
|
450
|
+
| 'ideal'
|
|
451
|
+
| 'kakao_pay'
|
|
452
|
+
| 'klarna'
|
|
453
|
+
| 'konbini'
|
|
454
|
+
| 'kr_card'
|
|
455
|
+
| 'mb_way'
|
|
456
|
+
| 'mobilepay'
|
|
457
|
+
| 'multibanco'
|
|
458
|
+
| 'naver_pay'
|
|
459
|
+
| 'nz_bank_account'
|
|
460
|
+
| 'oxxo'
|
|
461
|
+
| 'p24'
|
|
462
|
+
| 'pay_by_bank'
|
|
463
|
+
| 'payco'
|
|
464
|
+
| 'paynow'
|
|
465
|
+
| 'paypal'
|
|
466
|
+
| 'payto'
|
|
467
|
+
| 'pix'
|
|
468
|
+
| 'promptpay'
|
|
469
|
+
| 'qris'
|
|
470
|
+
| 'rechnung'
|
|
471
|
+
| 'revolut_pay'
|
|
472
|
+
| 'samsung_pay'
|
|
473
|
+
| 'satispay'
|
|
474
|
+
| 'sepa_debit'
|
|
475
|
+
| 'shopeepay'
|
|
476
|
+
| 'sofort'
|
|
477
|
+
| 'stripe_balance'
|
|
478
|
+
| 'swish'
|
|
479
|
+
| 'twint'
|
|
480
|
+
| 'us_bank_account'
|
|
481
|
+
| 'wechat_pay'
|
|
482
|
+
| 'zip';
|
|
483
|
+
|
|
420
484
|
interface Hooks {
|
|
421
485
|
/**
|
|
422
486
|
* Arguments passed in automations
|
|
@@ -3966,6 +4030,11 @@ declare module 'stripe' {
|
|
|
3966
4030
|
}
|
|
3967
4031
|
|
|
3968
4032
|
interface Pix {
|
|
4033
|
+
/**
|
|
4034
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4035
|
+
*/
|
|
4036
|
+
amount_includes_iof?: Pix.AmountIncludesIof;
|
|
4037
|
+
|
|
3969
4038
|
/**
|
|
3970
4039
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
3971
4040
|
*/
|
|
@@ -3976,6 +4045,11 @@ declare module 'stripe' {
|
|
|
3976
4045
|
*/
|
|
3977
4046
|
expires_at?: number;
|
|
3978
4047
|
|
|
4048
|
+
/**
|
|
4049
|
+
* Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
4050
|
+
*/
|
|
4051
|
+
mandate_options?: Pix.MandateOptions;
|
|
4052
|
+
|
|
3979
4053
|
/**
|
|
3980
4054
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3981
4055
|
*
|
|
@@ -3987,7 +4061,68 @@ declare module 'stripe' {
|
|
|
3987
4061
|
*
|
|
3988
4062
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3989
4063
|
*/
|
|
3990
|
-
setup_future_usage?:
|
|
4064
|
+
setup_future_usage?: Pix.SetupFutureUsage;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
namespace Pix {
|
|
4068
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
4069
|
+
|
|
4070
|
+
interface MandateOptions {
|
|
4071
|
+
/**
|
|
4072
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
4073
|
+
*/
|
|
4074
|
+
amount?: number;
|
|
4075
|
+
|
|
4076
|
+
/**
|
|
4077
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
4078
|
+
*/
|
|
4079
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
4080
|
+
|
|
4081
|
+
/**
|
|
4082
|
+
* Type of amount. Defaults to `maximum`.
|
|
4083
|
+
*/
|
|
4084
|
+
amount_type?: MandateOptions.AmountType;
|
|
4085
|
+
|
|
4086
|
+
/**
|
|
4087
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
4088
|
+
*/
|
|
4089
|
+
currency?: string;
|
|
4090
|
+
|
|
4091
|
+
/**
|
|
4092
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
4093
|
+
*/
|
|
4094
|
+
end_date?: string;
|
|
4095
|
+
|
|
4096
|
+
/**
|
|
4097
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
4098
|
+
*/
|
|
4099
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
4100
|
+
|
|
4101
|
+
/**
|
|
4102
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
4103
|
+
*/
|
|
4104
|
+
reference?: string;
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
|
4108
|
+
*/
|
|
4109
|
+
start_date?: string;
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
namespace MandateOptions {
|
|
4113
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
4114
|
+
|
|
4115
|
+
type AmountType = 'fixed' | 'maximum';
|
|
4116
|
+
|
|
4117
|
+
type PaymentSchedule =
|
|
4118
|
+
| 'halfyearly'
|
|
4119
|
+
| 'monthly'
|
|
4120
|
+
| 'quarterly'
|
|
4121
|
+
| 'weekly'
|
|
4122
|
+
| 'yearly';
|
|
4123
|
+
}
|
|
4124
|
+
|
|
4125
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
3991
4126
|
}
|
|
3992
4127
|
|
|
3993
4128
|
interface Promptpay {
|
|
@@ -8332,6 +8467,11 @@ declare module 'stripe' {
|
|
|
8332
8467
|
}
|
|
8333
8468
|
|
|
8334
8469
|
interface Pix {
|
|
8470
|
+
/**
|
|
8471
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
8472
|
+
*/
|
|
8473
|
+
amount_includes_iof?: Pix.AmountIncludesIof;
|
|
8474
|
+
|
|
8335
8475
|
/**
|
|
8336
8476
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
8337
8477
|
*/
|
|
@@ -8342,6 +8482,11 @@ declare module 'stripe' {
|
|
|
8342
8482
|
*/
|
|
8343
8483
|
expires_at?: number;
|
|
8344
8484
|
|
|
8485
|
+
/**
|
|
8486
|
+
* Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
8487
|
+
*/
|
|
8488
|
+
mandate_options?: Pix.MandateOptions;
|
|
8489
|
+
|
|
8345
8490
|
/**
|
|
8346
8491
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
8347
8492
|
*
|
|
@@ -8353,7 +8498,68 @@ declare module 'stripe' {
|
|
|
8353
8498
|
*
|
|
8354
8499
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
8355
8500
|
*/
|
|
8356
|
-
setup_future_usage?:
|
|
8501
|
+
setup_future_usage?: Pix.SetupFutureUsage;
|
|
8502
|
+
}
|
|
8503
|
+
|
|
8504
|
+
namespace Pix {
|
|
8505
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
8506
|
+
|
|
8507
|
+
interface MandateOptions {
|
|
8508
|
+
/**
|
|
8509
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
8510
|
+
*/
|
|
8511
|
+
amount?: number;
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
8515
|
+
*/
|
|
8516
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
8517
|
+
|
|
8518
|
+
/**
|
|
8519
|
+
* Type of amount. Defaults to `maximum`.
|
|
8520
|
+
*/
|
|
8521
|
+
amount_type?: MandateOptions.AmountType;
|
|
8522
|
+
|
|
8523
|
+
/**
|
|
8524
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
8525
|
+
*/
|
|
8526
|
+
currency?: string;
|
|
8527
|
+
|
|
8528
|
+
/**
|
|
8529
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
8530
|
+
*/
|
|
8531
|
+
end_date?: string;
|
|
8532
|
+
|
|
8533
|
+
/**
|
|
8534
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
8535
|
+
*/
|
|
8536
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
8537
|
+
|
|
8538
|
+
/**
|
|
8539
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
8540
|
+
*/
|
|
8541
|
+
reference?: string;
|
|
8542
|
+
|
|
8543
|
+
/**
|
|
8544
|
+
* Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
|
8545
|
+
*/
|
|
8546
|
+
start_date?: string;
|
|
8547
|
+
}
|
|
8548
|
+
|
|
8549
|
+
namespace MandateOptions {
|
|
8550
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
8551
|
+
|
|
8552
|
+
type AmountType = 'fixed' | 'maximum';
|
|
8553
|
+
|
|
8554
|
+
type PaymentSchedule =
|
|
8555
|
+
| 'halfyearly'
|
|
8556
|
+
| 'monthly'
|
|
8557
|
+
| 'quarterly'
|
|
8558
|
+
| 'weekly'
|
|
8559
|
+
| 'yearly';
|
|
8560
|
+
}
|
|
8561
|
+
|
|
8562
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
8357
8563
|
}
|
|
8358
8564
|
|
|
8359
8565
|
interface Promptpay {
|
|
@@ -13686,6 +13892,11 @@ declare module 'stripe' {
|
|
|
13686
13892
|
}
|
|
13687
13893
|
|
|
13688
13894
|
interface Pix {
|
|
13895
|
+
/**
|
|
13896
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
13897
|
+
*/
|
|
13898
|
+
amount_includes_iof?: Pix.AmountIncludesIof;
|
|
13899
|
+
|
|
13689
13900
|
/**
|
|
13690
13901
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
13691
13902
|
*/
|
|
@@ -13696,6 +13907,11 @@ declare module 'stripe' {
|
|
|
13696
13907
|
*/
|
|
13697
13908
|
expires_at?: number;
|
|
13698
13909
|
|
|
13910
|
+
/**
|
|
13911
|
+
* Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
13912
|
+
*/
|
|
13913
|
+
mandate_options?: Pix.MandateOptions;
|
|
13914
|
+
|
|
13699
13915
|
/**
|
|
13700
13916
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
13701
13917
|
*
|
|
@@ -13707,7 +13923,68 @@ declare module 'stripe' {
|
|
|
13707
13923
|
*
|
|
13708
13924
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
13709
13925
|
*/
|
|
13710
|
-
setup_future_usage?:
|
|
13926
|
+
setup_future_usage?: Pix.SetupFutureUsage;
|
|
13927
|
+
}
|
|
13928
|
+
|
|
13929
|
+
namespace Pix {
|
|
13930
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
13931
|
+
|
|
13932
|
+
interface MandateOptions {
|
|
13933
|
+
/**
|
|
13934
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
13935
|
+
*/
|
|
13936
|
+
amount?: number;
|
|
13937
|
+
|
|
13938
|
+
/**
|
|
13939
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
13940
|
+
*/
|
|
13941
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
13942
|
+
|
|
13943
|
+
/**
|
|
13944
|
+
* Type of amount. Defaults to `maximum`.
|
|
13945
|
+
*/
|
|
13946
|
+
amount_type?: MandateOptions.AmountType;
|
|
13947
|
+
|
|
13948
|
+
/**
|
|
13949
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
13950
|
+
*/
|
|
13951
|
+
currency?: string;
|
|
13952
|
+
|
|
13953
|
+
/**
|
|
13954
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
13955
|
+
*/
|
|
13956
|
+
end_date?: string;
|
|
13957
|
+
|
|
13958
|
+
/**
|
|
13959
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
13960
|
+
*/
|
|
13961
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
13962
|
+
|
|
13963
|
+
/**
|
|
13964
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
13965
|
+
*/
|
|
13966
|
+
reference?: string;
|
|
13967
|
+
|
|
13968
|
+
/**
|
|
13969
|
+
* Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
|
13970
|
+
*/
|
|
13971
|
+
start_date?: string;
|
|
13972
|
+
}
|
|
13973
|
+
|
|
13974
|
+
namespace MandateOptions {
|
|
13975
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
13976
|
+
|
|
13977
|
+
type AmountType = 'fixed' | 'maximum';
|
|
13978
|
+
|
|
13979
|
+
type PaymentSchedule =
|
|
13980
|
+
| 'halfyearly'
|
|
13981
|
+
| 'monthly'
|
|
13982
|
+
| 'quarterly'
|
|
13983
|
+
| 'weekly'
|
|
13984
|
+
| 'yearly';
|
|
13985
|
+
}
|
|
13986
|
+
|
|
13987
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
13711
13988
|
}
|
|
13712
13989
|
|
|
13713
13990
|
interface Promptpay {
|
|
@@ -540,7 +540,7 @@ declare module 'stripe' {
|
|
|
540
540
|
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
|
|
543
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
544
544
|
*/
|
|
545
545
|
price?: string;
|
|
546
546
|
|
|
@@ -97,6 +97,11 @@ declare module 'stripe' {
|
|
|
97
97
|
|
|
98
98
|
kr_card?: PaymentMethod.KrCard;
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* The Mandate object of the most recently created Mandate associated with this payment method
|
|
102
|
+
*/
|
|
103
|
+
latest_active_mandate?: Stripe.Mandate | null;
|
|
104
|
+
|
|
100
105
|
link?: PaymentMethod.Link;
|
|
101
106
|
|
|
102
107
|
/**
|
|
@@ -19,6 +19,16 @@ declare module 'stripe' {
|
|
|
19
19
|
*/
|
|
20
20
|
object: 'payment_record';
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* A representation of an amount of money, consisting of an amount and a currency.
|
|
24
|
+
*/
|
|
25
|
+
amount: PaymentRecord.Amount;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A representation of an amount of money, consisting of an amount and a currency.
|
|
29
|
+
*/
|
|
30
|
+
amount_authorized: PaymentRecord.AmountAuthorized;
|
|
31
|
+
|
|
22
32
|
/**
|
|
23
33
|
* A representation of an amount of money, consisting of an amount and a currency.
|
|
24
34
|
*/
|
|
@@ -34,11 +44,21 @@ declare module 'stripe' {
|
|
|
34
44
|
*/
|
|
35
45
|
amount_guaranteed: PaymentRecord.AmountGuaranteed;
|
|
36
46
|
|
|
47
|
+
/**
|
|
48
|
+
* A representation of an amount of money, consisting of an amount and a currency.
|
|
49
|
+
*/
|
|
50
|
+
amount_refunded: PaymentRecord.AmountRefunded;
|
|
51
|
+
|
|
37
52
|
/**
|
|
38
53
|
* A representation of an amount of money, consisting of an amount and a currency.
|
|
39
54
|
*/
|
|
40
55
|
amount_requested: PaymentRecord.AmountRequested;
|
|
41
56
|
|
|
57
|
+
/**
|
|
58
|
+
* ID of the Connect application that created the PaymentRecord.
|
|
59
|
+
*/
|
|
60
|
+
application: string | null;
|
|
61
|
+
|
|
42
62
|
/**
|
|
43
63
|
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
44
64
|
*/
|
|
@@ -80,9 +100,9 @@ declare module 'stripe' {
|
|
|
80
100
|
payment_method_details: PaymentRecord.PaymentMethodDetails | null;
|
|
81
101
|
|
|
82
102
|
/**
|
|
83
|
-
*
|
|
103
|
+
* Processor information associated with this payment.
|
|
84
104
|
*/
|
|
85
|
-
|
|
105
|
+
processor_details: PaymentRecord.ProcessorDetails;
|
|
86
106
|
|
|
87
107
|
/**
|
|
88
108
|
* Shipping information for this payment.
|
|
@@ -91,6 +111,30 @@ declare module 'stripe' {
|
|
|
91
111
|
}
|
|
92
112
|
|
|
93
113
|
namespace PaymentRecord {
|
|
114
|
+
interface Amount {
|
|
115
|
+
/**
|
|
116
|
+
* 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).
|
|
117
|
+
*/
|
|
118
|
+
currency: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
122
|
+
*/
|
|
123
|
+
value: number;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface AmountAuthorized {
|
|
127
|
+
/**
|
|
128
|
+
* 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).
|
|
129
|
+
*/
|
|
130
|
+
currency: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
134
|
+
*/
|
|
135
|
+
value: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
94
138
|
interface AmountCanceled {
|
|
95
139
|
/**
|
|
96
140
|
* 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).
|
|
@@ -98,7 +142,7 @@ declare module 'stripe' {
|
|
|
98
142
|
currency: string;
|
|
99
143
|
|
|
100
144
|
/**
|
|
101
|
-
* A positive integer representing the amount in the [
|
|
145
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
102
146
|
*/
|
|
103
147
|
value: number;
|
|
104
148
|
}
|
|
@@ -110,7 +154,7 @@ declare module 'stripe' {
|
|
|
110
154
|
currency: string;
|
|
111
155
|
|
|
112
156
|
/**
|
|
113
|
-
* A positive integer representing the amount in the [
|
|
157
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
114
158
|
*/
|
|
115
159
|
value: number;
|
|
116
160
|
}
|
|
@@ -122,7 +166,19 @@ declare module 'stripe' {
|
|
|
122
166
|
currency: string;
|
|
123
167
|
|
|
124
168
|
/**
|
|
125
|
-
* A positive integer representing the amount in the [
|
|
169
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
170
|
+
*/
|
|
171
|
+
value: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface AmountRefunded {
|
|
175
|
+
/**
|
|
176
|
+
* 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).
|
|
177
|
+
*/
|
|
178
|
+
currency: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
126
182
|
*/
|
|
127
183
|
value: number;
|
|
128
184
|
}
|
|
@@ -134,7 +190,7 @@ declare module 'stripe' {
|
|
|
134
190
|
currency: string;
|
|
135
191
|
|
|
136
192
|
/**
|
|
137
|
-
* A positive integer representing the amount in the [
|
|
193
|
+
* A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
|
|
138
194
|
*/
|
|
139
195
|
value: number;
|
|
140
196
|
}
|
|
@@ -458,10 +514,31 @@ declare module 'stripe' {
|
|
|
458
514
|
transaction_id: string | null;
|
|
459
515
|
}
|
|
460
516
|
|
|
461
|
-
interface Alma {
|
|
517
|
+
interface Alma {
|
|
518
|
+
installments?: Alma.Installments;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* The Alma transaction ID associated with this payment.
|
|
522
|
+
*/
|
|
523
|
+
transaction_id: string | null;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
namespace Alma {
|
|
527
|
+
interface Installments {
|
|
528
|
+
/**
|
|
529
|
+
* The number of installments.
|
|
530
|
+
*/
|
|
531
|
+
count: number;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
462
534
|
|
|
463
535
|
interface AmazonPay {
|
|
464
536
|
funding?: AmazonPay.Funding;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The Amazon Pay transaction ID associated with this payment.
|
|
540
|
+
*/
|
|
541
|
+
transaction_id: string | null;
|
|
465
542
|
}
|
|
466
543
|
|
|
467
544
|
namespace AmazonPay {
|
|
@@ -606,7 +683,12 @@ declare module 'stripe' {
|
|
|
606
683
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
607
684
|
}
|
|
608
685
|
|
|
609
|
-
interface Billie {
|
|
686
|
+
interface Billie {
|
|
687
|
+
/**
|
|
688
|
+
* The Billie transaction ID associated with this payment.
|
|
689
|
+
*/
|
|
690
|
+
transaction_id: string | null;
|
|
691
|
+
}
|
|
610
692
|
|
|
611
693
|
interface BillingDetails {
|
|
612
694
|
/**
|
|
@@ -1467,6 +1549,11 @@ declare module 'stripe' {
|
|
|
1467
1549
|
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1468
1550
|
*/
|
|
1469
1551
|
buyer_id: string | null;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* The Kakao Pay transaction ID associated with this payment.
|
|
1555
|
+
*/
|
|
1556
|
+
transaction_id: string | null;
|
|
1470
1557
|
}
|
|
1471
1558
|
|
|
1472
1559
|
interface Klarna {
|
|
@@ -1541,6 +1628,11 @@ declare module 'stripe' {
|
|
|
1541
1628
|
* The last four digits of the card. This may not be present for American Express cards.
|
|
1542
1629
|
*/
|
|
1543
1630
|
last4: string | null;
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* The Korean Card transaction ID associated with this payment.
|
|
1634
|
+
*/
|
|
1635
|
+
transaction_id: string | null;
|
|
1544
1636
|
}
|
|
1545
1637
|
|
|
1546
1638
|
namespace KrCard {
|
|
@@ -1632,6 +1724,11 @@ declare module 'stripe' {
|
|
|
1632
1724
|
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1633
1725
|
*/
|
|
1634
1726
|
buyer_id: string | null;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* The Naver Pay transaction ID associated with this payment.
|
|
1730
|
+
*/
|
|
1731
|
+
transaction_id: string | null;
|
|
1635
1732
|
}
|
|
1636
1733
|
|
|
1637
1734
|
interface NzBankAccount {
|
|
@@ -1729,6 +1826,11 @@ declare module 'stripe' {
|
|
|
1729
1826
|
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1730
1827
|
*/
|
|
1731
1828
|
buyer_id: string | null;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* The Payco transaction ID associated with this payment.
|
|
1832
|
+
*/
|
|
1833
|
+
transaction_id: string | null;
|
|
1732
1834
|
}
|
|
1733
1835
|
|
|
1734
1836
|
interface Paynow {
|
|
@@ -1845,6 +1947,11 @@ declare module 'stripe' {
|
|
|
1845
1947
|
* Unique transaction id generated by BCB
|
|
1846
1948
|
*/
|
|
1847
1949
|
bank_transaction_id?: string | null;
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* ID of the multi use Mandate generated by the PaymentIntent
|
|
1953
|
+
*/
|
|
1954
|
+
mandate?: string;
|
|
1848
1955
|
}
|
|
1849
1956
|
|
|
1850
1957
|
interface Promptpay {
|
|
@@ -1860,6 +1967,11 @@ declare module 'stripe' {
|
|
|
1860
1967
|
|
|
1861
1968
|
interface RevolutPay {
|
|
1862
1969
|
funding?: RevolutPay.Funding;
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* The Revolut Pay transaction ID associated with this payment.
|
|
1973
|
+
*/
|
|
1974
|
+
transaction_id: string | null;
|
|
1863
1975
|
}
|
|
1864
1976
|
|
|
1865
1977
|
namespace RevolutPay {
|
|
@@ -1917,9 +2029,19 @@ declare module 'stripe' {
|
|
|
1917
2029
|
* A unique identifier for the buyer as determined by the local payment processor.
|
|
1918
2030
|
*/
|
|
1919
2031
|
buyer_id: string | null;
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* The Samsung Pay transaction ID associated with this payment.
|
|
2035
|
+
*/
|
|
2036
|
+
transaction_id: string | null;
|
|
1920
2037
|
}
|
|
1921
2038
|
|
|
1922
|
-
interface Satispay {
|
|
2039
|
+
interface Satispay {
|
|
2040
|
+
/**
|
|
2041
|
+
* The Satispay transaction ID associated with this payment.
|
|
2042
|
+
*/
|
|
2043
|
+
transaction_id: string | null;
|
|
2044
|
+
}
|
|
1923
2045
|
|
|
1924
2046
|
interface SepaCreditTransfer {
|
|
1925
2047
|
/**
|
|
@@ -2138,6 +2260,29 @@ declare module 'stripe' {
|
|
|
2138
2260
|
interface Zip {}
|
|
2139
2261
|
}
|
|
2140
2262
|
|
|
2263
|
+
interface ProcessorDetails {
|
|
2264
|
+
/**
|
|
2265
|
+
* Custom processors represent payment processors not modeled directly in
|
|
2266
|
+
* the Stripe API. This resource consists of details about the custom processor
|
|
2267
|
+
* used for this payment attempt.
|
|
2268
|
+
*/
|
|
2269
|
+
custom?: ProcessorDetails.Custom;
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* The processor used for this payment attempt.
|
|
2273
|
+
*/
|
|
2274
|
+
type: 'custom';
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
namespace ProcessorDetails {
|
|
2278
|
+
interface Custom {
|
|
2279
|
+
/**
|
|
2280
|
+
* An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
2281
|
+
*/
|
|
2282
|
+
payment_reference: string;
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2141
2286
|
interface ShippingDetails {
|
|
2142
2287
|
/**
|
|
2143
2288
|
* A representation of a physical address.
|