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
|
@@ -66,9 +66,9 @@ declare module 'stripe' {
|
|
|
66
66
|
outcome?: PaymentRecordReportPaymentParams.Outcome;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Processor information for this payment.
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
processor_details?: PaymentRecordReportPaymentParams.ProcessorDetails;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Shipping information for this payment.
|
|
@@ -84,7 +84,7 @@ declare module 'stripe' {
|
|
|
84
84
|
currency: string;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* A positive integer representing the amount in the [
|
|
87
|
+
* 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.
|
|
88
88
|
*/
|
|
89
89
|
value: number;
|
|
90
90
|
}
|
|
@@ -187,6 +187,27 @@ declare module 'stripe' {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
interface ProcessorDetails {
|
|
191
|
+
/**
|
|
192
|
+
* Information about the custom processor used to make this payment.
|
|
193
|
+
*/
|
|
194
|
+
custom?: ProcessorDetails.Custom;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.
|
|
198
|
+
*/
|
|
199
|
+
type: 'custom';
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
namespace ProcessorDetails {
|
|
203
|
+
interface Custom {
|
|
204
|
+
/**
|
|
205
|
+
* An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
206
|
+
*/
|
|
207
|
+
payment_reference: string;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
190
211
|
interface ShippingDetails {
|
|
191
212
|
/**
|
|
192
213
|
* The physical shipping address.
|
package/types/Payouts.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ declare module 'stripe' {
|
|
|
115
115
|
/**
|
|
116
116
|
* ID of the v2 FinancialAccount the funds are sent to.
|
|
117
117
|
*/
|
|
118
|
-
payout_method
|
|
118
|
+
payout_method: string | null;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* If `completed`, you can use the [Balance Transactions API](https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout) to list all balance transactions that are paid out in this payout.
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
/**
|
|
6
|
-
* A Promotion Code represents a customer-redeemable code for a [coupon](https://stripe.com/docs/api#coupons).
|
|
7
|
-
* create multiple codes for a single coupon.
|
|
6
|
+
* A Promotion Code represents a customer-redeemable code for a [coupon](https://stripe.com/docs/api#coupons).
|
|
7
|
+
* You can create multiple codes for a single coupon.
|
|
8
|
+
*
|
|
9
|
+
* If you enable promotion codes in your [customer portal configuration](https://stripe.com/docs/customer-management/configure-portal), then customers can redeem a code themselves when updating a subscription in the portal.
|
|
10
|
+
* Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal.
|
|
8
11
|
*/
|
|
9
12
|
interface PromotionCode {
|
|
10
13
|
/**
|
|
@@ -801,7 +801,7 @@ declare module 'stripe' {
|
|
|
801
801
|
network_advice_code?: string;
|
|
802
802
|
|
|
803
803
|
/**
|
|
804
|
-
* For
|
|
804
|
+
* For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
|
805
805
|
*/
|
|
806
806
|
network_decline_code?: string;
|
|
807
807
|
|
|
@@ -922,6 +922,7 @@ declare module 'stripe' {
|
|
|
922
922
|
| 'coupon_expired'
|
|
923
923
|
| 'customer_max_payment_methods'
|
|
924
924
|
| 'customer_max_subscriptions'
|
|
925
|
+
| 'customer_session_expired'
|
|
925
926
|
| 'customer_tax_location_invalid'
|
|
926
927
|
| 'debit_not_authorized'
|
|
927
928
|
| 'email_invalid'
|
|
@@ -940,6 +941,7 @@ declare module 'stripe' {
|
|
|
940
941
|
| 'incorrect_cvc'
|
|
941
942
|
| 'incorrect_number'
|
|
942
943
|
| 'incorrect_zip'
|
|
944
|
+
| 'india_recurring_payment_mandate_canceled'
|
|
943
945
|
| 'instant_payouts_config_disabled'
|
|
944
946
|
| 'instant_payouts_currency_disabled'
|
|
945
947
|
| 'instant_payouts_limit_exceeded'
|
|
@@ -1069,6 +1071,11 @@ declare module 'stripe' {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
|
|
1071
1073
|
interface Parent {
|
|
1074
|
+
/**
|
|
1075
|
+
* Details about the billing cadence that generated this invoice
|
|
1076
|
+
*/
|
|
1077
|
+
billing_cadence_details?: Parent.BillingCadenceDetails | null;
|
|
1078
|
+
|
|
1072
1079
|
/**
|
|
1073
1080
|
* Details about the quote that generated this invoice
|
|
1074
1081
|
*/
|
|
@@ -1086,6 +1093,13 @@ declare module 'stripe' {
|
|
|
1086
1093
|
}
|
|
1087
1094
|
|
|
1088
1095
|
namespace Parent {
|
|
1096
|
+
interface BillingCadenceDetails {
|
|
1097
|
+
/**
|
|
1098
|
+
* The billing cadence that generated this invoice
|
|
1099
|
+
*/
|
|
1100
|
+
billing_cadence: string;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1089
1103
|
interface QuoteDetails {
|
|
1090
1104
|
/**
|
|
1091
1105
|
* The quote that generated this invoice
|
|
@@ -1134,7 +1148,10 @@ declare module 'stripe' {
|
|
|
1134
1148
|
}
|
|
1135
1149
|
}
|
|
1136
1150
|
|
|
1137
|
-
type Type =
|
|
1151
|
+
type Type =
|
|
1152
|
+
| 'billing_cadence_details'
|
|
1153
|
+
| 'quote_details'
|
|
1154
|
+
| 'subscription_details';
|
|
1138
1155
|
}
|
|
1139
1156
|
|
|
1140
1157
|
interface PaymentSettings {
|
|
@@ -476,6 +476,13 @@ declare module 'stripe' {
|
|
|
476
476
|
*/
|
|
477
477
|
discounts: Array<AddInvoiceItem.Discount>;
|
|
478
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
481
|
+
*/
|
|
482
|
+
metadata: Stripe.Metadata | null;
|
|
483
|
+
|
|
484
|
+
period: AddInvoiceItem.Period;
|
|
485
|
+
|
|
479
486
|
/**
|
|
480
487
|
* ID of the price used to generate the invoice item.
|
|
481
488
|
*/
|
|
@@ -528,6 +535,46 @@ declare module 'stripe' {
|
|
|
528
535
|
type: 'timestamp';
|
|
529
536
|
}
|
|
530
537
|
}
|
|
538
|
+
|
|
539
|
+
interface Period {
|
|
540
|
+
end: Period.End;
|
|
541
|
+
|
|
542
|
+
start: Period.Start;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
namespace Period {
|
|
546
|
+
interface End {
|
|
547
|
+
/**
|
|
548
|
+
* A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
|
549
|
+
*/
|
|
550
|
+
timestamp?: number;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Select how to calculate the end of the invoice item period.
|
|
554
|
+
*/
|
|
555
|
+
type: End.Type;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
namespace End {
|
|
559
|
+
type Type = 'min_item_period_end' | 'phase_end' | 'timestamp';
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
interface Start {
|
|
563
|
+
/**
|
|
564
|
+
* A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
|
565
|
+
*/
|
|
566
|
+
timestamp?: number;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Select how to calculate the start of the invoice item period.
|
|
570
|
+
*/
|
|
571
|
+
type: Start.Type;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
namespace Start {
|
|
575
|
+
type Type = 'max_item_period_start' | 'phase_start' | 'timestamp';
|
|
576
|
+
}
|
|
577
|
+
}
|
|
531
578
|
}
|
|
532
579
|
|
|
533
580
|
interface AutomaticTax {
|
package/types/SetupAttempts.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ declare module 'stripe' {
|
|
|
133
133
|
|
|
134
134
|
payto?: PaymentMethodDetails.Payto;
|
|
135
135
|
|
|
136
|
+
pix?: PaymentMethodDetails.Pix;
|
|
137
|
+
|
|
136
138
|
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
|
137
139
|
|
|
138
140
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
@@ -530,6 +532,8 @@ declare module 'stripe' {
|
|
|
530
532
|
|
|
531
533
|
interface Payto {}
|
|
532
534
|
|
|
535
|
+
interface Pix {}
|
|
536
|
+
|
|
533
537
|
interface RevolutPay {}
|
|
534
538
|
|
|
535
539
|
interface SepaDebit {}
|
|
@@ -624,7 +628,7 @@ declare module 'stripe' {
|
|
|
624
628
|
network_advice_code?: string;
|
|
625
629
|
|
|
626
630
|
/**
|
|
627
|
-
* For
|
|
631
|
+
* For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
|
628
632
|
*/
|
|
629
633
|
network_decline_code?: string;
|
|
630
634
|
|
|
@@ -745,6 +749,7 @@ declare module 'stripe' {
|
|
|
745
749
|
| 'coupon_expired'
|
|
746
750
|
| 'customer_max_payment_methods'
|
|
747
751
|
| 'customer_max_subscriptions'
|
|
752
|
+
| 'customer_session_expired'
|
|
748
753
|
| 'customer_tax_location_invalid'
|
|
749
754
|
| 'debit_not_authorized'
|
|
750
755
|
| 'email_invalid'
|
|
@@ -763,6 +768,7 @@ declare module 'stripe' {
|
|
|
763
768
|
| 'incorrect_cvc'
|
|
764
769
|
| 'incorrect_number'
|
|
765
770
|
| 'incorrect_zip'
|
|
771
|
+
| 'india_recurring_payment_mandate_canceled'
|
|
766
772
|
| 'instant_payouts_config_disabled'
|
|
767
773
|
| 'instant_payouts_currency_disabled'
|
|
768
774
|
| 'instant_payouts_limit_exceeded'
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -232,7 +232,7 @@ declare module 'stripe' {
|
|
|
232
232
|
network_advice_code?: string;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* For
|
|
235
|
+
* For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
|
236
236
|
*/
|
|
237
237
|
network_decline_code?: string;
|
|
238
238
|
|
|
@@ -353,6 +353,7 @@ declare module 'stripe' {
|
|
|
353
353
|
| 'coupon_expired'
|
|
354
354
|
| 'customer_max_payment_methods'
|
|
355
355
|
| 'customer_max_subscriptions'
|
|
356
|
+
| 'customer_session_expired'
|
|
356
357
|
| 'customer_tax_location_invalid'
|
|
357
358
|
| 'debit_not_authorized'
|
|
358
359
|
| 'email_invalid'
|
|
@@ -371,6 +372,7 @@ declare module 'stripe' {
|
|
|
371
372
|
| 'incorrect_cvc'
|
|
372
373
|
| 'incorrect_number'
|
|
373
374
|
| 'incorrect_zip'
|
|
375
|
+
| 'india_recurring_payment_mandate_canceled'
|
|
374
376
|
| 'instant_payouts_config_disabled'
|
|
375
377
|
| 'instant_payouts_currency_disabled'
|
|
376
378
|
| 'instant_payouts_limit_exceeded'
|
|
@@ -502,6 +504,8 @@ declare module 'stripe' {
|
|
|
502
504
|
interface NextAction {
|
|
503
505
|
cashapp_handle_redirect_or_display_qr_code?: NextAction.CashappHandleRedirectOrDisplayQrCode;
|
|
504
506
|
|
|
507
|
+
pix_display_qr_code?: NextAction.PixDisplayQrCode;
|
|
508
|
+
|
|
505
509
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
506
510
|
|
|
507
511
|
/**
|
|
@@ -551,6 +555,33 @@ declare module 'stripe' {
|
|
|
551
555
|
}
|
|
552
556
|
}
|
|
553
557
|
|
|
558
|
+
interface PixDisplayQrCode {
|
|
559
|
+
/**
|
|
560
|
+
* The raw data string used to generate QR code, it should be used together with QR code library.
|
|
561
|
+
*/
|
|
562
|
+
data?: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The date (unix timestamp) when the PIX expires.
|
|
566
|
+
*/
|
|
567
|
+
expires_at?: number;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
|
571
|
+
*/
|
|
572
|
+
hosted_instructions_url?: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* The image_url_png string used to render png QR code
|
|
576
|
+
*/
|
|
577
|
+
image_url_png?: string;
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* The image_url_svg string used to render svg QR code
|
|
581
|
+
*/
|
|
582
|
+
image_url_svg?: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
554
585
|
interface RedirectToUrl {
|
|
555
586
|
/**
|
|
556
587
|
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
@@ -618,6 +649,8 @@ declare module 'stripe' {
|
|
|
618
649
|
|
|
619
650
|
payto?: PaymentMethodOptions.Payto;
|
|
620
651
|
|
|
652
|
+
pix?: PaymentMethodOptions.Pix;
|
|
653
|
+
|
|
621
654
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
622
655
|
|
|
623
656
|
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
@@ -897,6 +930,67 @@ declare module 'stripe' {
|
|
|
897
930
|
}
|
|
898
931
|
}
|
|
899
932
|
|
|
933
|
+
interface Pix {
|
|
934
|
+
mandate_options?: Pix.MandateOptions;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
namespace Pix {
|
|
938
|
+
interface MandateOptions {
|
|
939
|
+
/**
|
|
940
|
+
* Amount to be charged for future payments.
|
|
941
|
+
*/
|
|
942
|
+
amount?: number;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* Determines if the amount includes the IOF tax.
|
|
946
|
+
*/
|
|
947
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Type of amount.
|
|
951
|
+
*/
|
|
952
|
+
amount_type?: MandateOptions.AmountType;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
956
|
+
*/
|
|
957
|
+
currency?: string;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
961
|
+
*/
|
|
962
|
+
end_date?: string;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Schedule at which the future payments will be charged.
|
|
966
|
+
*/
|
|
967
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Subscription name displayed to buyers in their bank app.
|
|
971
|
+
*/
|
|
972
|
+
reference?: string;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Start date of the mandate, in `YYYY-MM-DD`.
|
|
976
|
+
*/
|
|
977
|
+
start_date?: string;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
namespace MandateOptions {
|
|
981
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
982
|
+
|
|
983
|
+
type AmountType = 'fixed' | 'maximum';
|
|
984
|
+
|
|
985
|
+
type PaymentSchedule =
|
|
986
|
+
| 'halfyearly'
|
|
987
|
+
| 'monthly'
|
|
988
|
+
| 'quarterly'
|
|
989
|
+
| 'weekly'
|
|
990
|
+
| 'yearly';
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
900
994
|
interface SepaDebit {
|
|
901
995
|
mandate_options?: SepaDebit.MandateOptions;
|
|
902
996
|
}
|
|
@@ -1095,6 +1095,11 @@ declare module 'stripe' {
|
|
|
1095
1095
|
*/
|
|
1096
1096
|
payto?: PaymentMethodOptions.Payto;
|
|
1097
1097
|
|
|
1098
|
+
/**
|
|
1099
|
+
* If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
|
1100
|
+
*/
|
|
1101
|
+
pix?: PaymentMethodOptions.Pix;
|
|
1102
|
+
|
|
1098
1103
|
/**
|
|
1099
1104
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
1100
1105
|
*/
|
|
@@ -1624,6 +1629,70 @@ declare module 'stripe' {
|
|
|
1624
1629
|
}
|
|
1625
1630
|
}
|
|
1626
1631
|
|
|
1632
|
+
interface Pix {
|
|
1633
|
+
/**
|
|
1634
|
+
* Additional fields for mandate creation.
|
|
1635
|
+
*/
|
|
1636
|
+
mandate_options?: Pix.MandateOptions;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
namespace Pix {
|
|
1640
|
+
interface MandateOptions {
|
|
1641
|
+
/**
|
|
1642
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
1643
|
+
*/
|
|
1644
|
+
amount?: number;
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1648
|
+
*/
|
|
1649
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Type of amount. Defaults to `maximum`.
|
|
1653
|
+
*/
|
|
1654
|
+
amount_type?: MandateOptions.AmountType;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
1658
|
+
*/
|
|
1659
|
+
currency?: string;
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* 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.
|
|
1663
|
+
*/
|
|
1664
|
+
end_date?: string;
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
1668
|
+
*/
|
|
1669
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
1673
|
+
*/
|
|
1674
|
+
reference?: string;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* 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.
|
|
1678
|
+
*/
|
|
1679
|
+
start_date?: string;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
namespace MandateOptions {
|
|
1683
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
1684
|
+
|
|
1685
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1686
|
+
|
|
1687
|
+
type PaymentSchedule =
|
|
1688
|
+
| 'halfyearly'
|
|
1689
|
+
| 'monthly'
|
|
1690
|
+
| 'quarterly'
|
|
1691
|
+
| 'weekly'
|
|
1692
|
+
| 'yearly';
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1627
1696
|
interface SepaDebit {
|
|
1628
1697
|
/**
|
|
1629
1698
|
* Additional fields for Mandate creation
|
|
@@ -2757,6 +2826,11 @@ declare module 'stripe' {
|
|
|
2757
2826
|
*/
|
|
2758
2827
|
payto?: PaymentMethodOptions.Payto;
|
|
2759
2828
|
|
|
2829
|
+
/**
|
|
2830
|
+
* If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
|
2831
|
+
*/
|
|
2832
|
+
pix?: PaymentMethodOptions.Pix;
|
|
2833
|
+
|
|
2760
2834
|
/**
|
|
2761
2835
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2762
2836
|
*/
|
|
@@ -3286,6 +3360,70 @@ declare module 'stripe' {
|
|
|
3286
3360
|
}
|
|
3287
3361
|
}
|
|
3288
3362
|
|
|
3363
|
+
interface Pix {
|
|
3364
|
+
/**
|
|
3365
|
+
* Additional fields for mandate creation.
|
|
3366
|
+
*/
|
|
3367
|
+
mandate_options?: Pix.MandateOptions;
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
namespace Pix {
|
|
3371
|
+
interface MandateOptions {
|
|
3372
|
+
/**
|
|
3373
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
3374
|
+
*/
|
|
3375
|
+
amount?: number;
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
3379
|
+
*/
|
|
3380
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* Type of amount. Defaults to `maximum`.
|
|
3384
|
+
*/
|
|
3385
|
+
amount_type?: MandateOptions.AmountType;
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
3389
|
+
*/
|
|
3390
|
+
currency?: string;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* 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.
|
|
3394
|
+
*/
|
|
3395
|
+
end_date?: string;
|
|
3396
|
+
|
|
3397
|
+
/**
|
|
3398
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
3399
|
+
*/
|
|
3400
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
3404
|
+
*/
|
|
3405
|
+
reference?: string;
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* 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.
|
|
3409
|
+
*/
|
|
3410
|
+
start_date?: string;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
namespace MandateOptions {
|
|
3414
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
3415
|
+
|
|
3416
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3417
|
+
|
|
3418
|
+
type PaymentSchedule =
|
|
3419
|
+
| 'halfyearly'
|
|
3420
|
+
| 'monthly'
|
|
3421
|
+
| 'quarterly'
|
|
3422
|
+
| 'weekly'
|
|
3423
|
+
| 'yearly';
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3289
3427
|
interface SepaDebit {
|
|
3290
3428
|
/**
|
|
3291
3429
|
* Additional fields for Mandate creation
|
|
@@ -4466,6 +4604,11 @@ declare module 'stripe' {
|
|
|
4466
4604
|
*/
|
|
4467
4605
|
payto?: PaymentMethodOptions.Payto;
|
|
4468
4606
|
|
|
4607
|
+
/**
|
|
4608
|
+
* If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
|
4609
|
+
*/
|
|
4610
|
+
pix?: PaymentMethodOptions.Pix;
|
|
4611
|
+
|
|
4469
4612
|
/**
|
|
4470
4613
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
4471
4614
|
*/
|
|
@@ -4995,6 +5138,70 @@ declare module 'stripe' {
|
|
|
4995
5138
|
}
|
|
4996
5139
|
}
|
|
4997
5140
|
|
|
5141
|
+
interface Pix {
|
|
5142
|
+
/**
|
|
5143
|
+
* Additional fields for mandate creation.
|
|
5144
|
+
*/
|
|
5145
|
+
mandate_options?: Pix.MandateOptions;
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
namespace Pix {
|
|
5149
|
+
interface MandateOptions {
|
|
5150
|
+
/**
|
|
5151
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
5152
|
+
*/
|
|
5153
|
+
amount?: number;
|
|
5154
|
+
|
|
5155
|
+
/**
|
|
5156
|
+
* Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
5157
|
+
*/
|
|
5158
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
5159
|
+
|
|
5160
|
+
/**
|
|
5161
|
+
* Type of amount. Defaults to `maximum`.
|
|
5162
|
+
*/
|
|
5163
|
+
amount_type?: MandateOptions.AmountType;
|
|
5164
|
+
|
|
5165
|
+
/**
|
|
5166
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
5167
|
+
*/
|
|
5168
|
+
currency?: string;
|
|
5169
|
+
|
|
5170
|
+
/**
|
|
5171
|
+
* 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.
|
|
5172
|
+
*/
|
|
5173
|
+
end_date?: string;
|
|
5174
|
+
|
|
5175
|
+
/**
|
|
5176
|
+
* Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
5177
|
+
*/
|
|
5178
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
5179
|
+
|
|
5180
|
+
/**
|
|
5181
|
+
* Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
5182
|
+
*/
|
|
5183
|
+
reference?: string;
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* 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.
|
|
5187
|
+
*/
|
|
5188
|
+
start_date?: string;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
namespace MandateOptions {
|
|
5192
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
5193
|
+
|
|
5194
|
+
type AmountType = 'fixed' | 'maximum';
|
|
5195
|
+
|
|
5196
|
+
type PaymentSchedule =
|
|
5197
|
+
| 'halfyearly'
|
|
5198
|
+
| 'monthly'
|
|
5199
|
+
| 'quarterly'
|
|
5200
|
+
| 'weekly'
|
|
5201
|
+
| 'yearly';
|
|
5202
|
+
}
|
|
5203
|
+
}
|
|
5204
|
+
|
|
4998
5205
|
interface SepaDebit {
|
|
4999
5206
|
/**
|
|
5000
5207
|
* Additional fields for Mandate creation
|
|
@@ -455,6 +455,13 @@ declare module 'stripe' {
|
|
|
455
455
|
*/
|
|
456
456
|
discounts: Array<AddInvoiceItem.Discount>;
|
|
457
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
460
|
+
*/
|
|
461
|
+
metadata: Stripe.Metadata | null;
|
|
462
|
+
|
|
463
|
+
period: AddInvoiceItem.Period;
|
|
464
|
+
|
|
458
465
|
/**
|
|
459
466
|
* ID of the price used to generate the invoice item.
|
|
460
467
|
*/
|
|
@@ -507,6 +514,46 @@ declare module 'stripe' {
|
|
|
507
514
|
type: 'timestamp';
|
|
508
515
|
}
|
|
509
516
|
}
|
|
517
|
+
|
|
518
|
+
interface Period {
|
|
519
|
+
end: Period.End;
|
|
520
|
+
|
|
521
|
+
start: Period.Start;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
namespace Period {
|
|
525
|
+
interface End {
|
|
526
|
+
/**
|
|
527
|
+
* A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
|
528
|
+
*/
|
|
529
|
+
timestamp?: number;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Select how to calculate the end of the invoice item period.
|
|
533
|
+
*/
|
|
534
|
+
type: End.Type;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
namespace End {
|
|
538
|
+
type Type = 'min_item_period_end' | 'phase_end' | 'timestamp';
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
interface Start {
|
|
542
|
+
/**
|
|
543
|
+
* A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
|
544
|
+
*/
|
|
545
|
+
timestamp?: number;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Select how to calculate the start of the invoice item period.
|
|
549
|
+
*/
|
|
550
|
+
type: Start.Type;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
namespace Start {
|
|
554
|
+
type Type = 'max_item_period_start' | 'phase_start' | 'timestamp';
|
|
555
|
+
}
|
|
556
|
+
}
|
|
510
557
|
}
|
|
511
558
|
|
|
512
559
|
interface AutomaticTax {
|