stripe 15.0.0 → 15.1.0
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 +19 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +46 -1
- package/types/AccountSessionsResource.d.ts +58 -1
- package/types/Accounts.d.ts +2 -2
- package/types/BankAccounts.d.ts +2 -2
- package/types/Billing/MeterEventAdjustments.d.ts +7 -4
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +9 -9
- package/types/Billing/Meters.d.ts +1 -1
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/BillingPortal/SessionsResource.d.ts +1 -1
- package/types/Capabilities.d.ts +2 -2
- package/types/Charges.d.ts +6 -2
- package/types/ChargesResource.d.ts +2 -2
- package/types/Checkout/Sessions.d.ts +10 -2
- package/types/Checkout/SessionsResource.d.ts +22 -1
- package/types/ConfirmationTokens.d.ts +5 -0
- package/types/CustomersResource.d.ts +11 -2
- package/types/FinancialConnections/Accounts.d.ts +5 -0
- package/types/Invoices.d.ts +15 -3
- package/types/InvoicesResource.d.ts +12 -4
- package/types/PaymentIntents.d.ts +14 -1
- package/types/PaymentIntentsResource.d.ts +114 -3
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentMethodsResource.d.ts +9 -0
- package/types/Persons.d.ts +2 -2
- package/types/Refunds.d.ts +4 -0
- package/types/SetupAttempts.d.ts +4 -0
- package/types/SetupIntents.d.ts +9 -1
- package/types/SetupIntentsResource.d.ts +48 -3
- package/types/Subscriptions.d.ts +6 -2
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/Tax/Calculations.d.ts +5 -1
- package/types/Tax/CalculationsResource.d.ts +5 -1
- package/types/Tax/Transactions.d.ts +5 -1
- package/types/TaxIds.d.ts +5 -1
- package/types/TaxIdsResource.d.ts +5 -1
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
- package/types/TransferReversals.d.ts +1 -1
- package/types/UsageRecords.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 15.1.0 - 2024-04-11
|
|
4
|
+
* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code
|
|
5
|
+
* Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
6
|
+
* Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features`
|
|
7
|
+
* Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
|
8
|
+
* Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional
|
|
9
|
+
* Change `Billing.MeterEventAdjustmentCreateParams.type` to be required
|
|
10
|
+
* Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null`
|
|
11
|
+
* Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
|
12
|
+
* Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`
|
|
13
|
+
* Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]`
|
|
14
|
+
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
15
|
+
* Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
|
|
16
|
+
* Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
17
|
+
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
18
|
+
* Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
19
|
+
* Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh`
|
|
20
|
+
* Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]`
|
|
21
|
+
|
|
3
22
|
## 15.0.0 - 2024-04-10
|
|
4
23
|
* [#2057](https://github.com/stripe/stripe-node/pull/2057)
|
|
5
24
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
15.
|
|
1
|
+
15.1.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '15.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '15.1.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '15.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '15.1.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -46,10 +46,14 @@ declare module 'stripe' {
|
|
|
46
46
|
|
|
47
47
|
namespace AccountSession {
|
|
48
48
|
interface Components {
|
|
49
|
+
account_management: Components.AccountManagement;
|
|
50
|
+
|
|
49
51
|
account_onboarding: Components.AccountOnboarding;
|
|
50
52
|
|
|
51
53
|
documents: Components.Documents;
|
|
52
54
|
|
|
55
|
+
notification_banner: Components.NotificationBanner;
|
|
56
|
+
|
|
53
57
|
payment_details: Components.PaymentDetails;
|
|
54
58
|
|
|
55
59
|
payments: Components.Payments;
|
|
@@ -58,6 +62,24 @@ declare module 'stripe' {
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
namespace Components {
|
|
65
|
+
interface AccountManagement {
|
|
66
|
+
/**
|
|
67
|
+
* Whether the embedded component is enabled.
|
|
68
|
+
*/
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
|
|
71
|
+
features: AccountManagement.Features;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace AccountManagement {
|
|
75
|
+
interface Features {
|
|
76
|
+
/**
|
|
77
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
78
|
+
*/
|
|
79
|
+
external_account_collection: boolean;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
61
83
|
interface AccountOnboarding {
|
|
62
84
|
/**
|
|
63
85
|
* Whether the embedded component is enabled.
|
|
@@ -68,7 +90,12 @@ declare module 'stripe' {
|
|
|
68
90
|
}
|
|
69
91
|
|
|
70
92
|
namespace AccountOnboarding {
|
|
71
|
-
interface Features {
|
|
93
|
+
interface Features {
|
|
94
|
+
/**
|
|
95
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
96
|
+
*/
|
|
97
|
+
external_account_collection: boolean;
|
|
98
|
+
}
|
|
72
99
|
}
|
|
73
100
|
|
|
74
101
|
interface Documents {
|
|
@@ -84,6 +111,24 @@ declare module 'stripe' {
|
|
|
84
111
|
interface Features {}
|
|
85
112
|
}
|
|
86
113
|
|
|
114
|
+
interface NotificationBanner {
|
|
115
|
+
/**
|
|
116
|
+
* Whether the embedded component is enabled.
|
|
117
|
+
*/
|
|
118
|
+
enabled: boolean;
|
|
119
|
+
|
|
120
|
+
features: NotificationBanner.Features;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
namespace NotificationBanner {
|
|
124
|
+
interface Features {
|
|
125
|
+
/**
|
|
126
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
127
|
+
*/
|
|
128
|
+
external_account_collection: boolean;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
87
132
|
interface PaymentDetails {
|
|
88
133
|
/**
|
|
89
134
|
* Whether the embedded component is enabled.
|
|
@@ -21,6 +21,11 @@ declare module 'stripe' {
|
|
|
21
21
|
|
|
22
22
|
namespace AccountSessionCreateParams {
|
|
23
23
|
interface Components {
|
|
24
|
+
/**
|
|
25
|
+
* Configuration for the account management embedded component.
|
|
26
|
+
*/
|
|
27
|
+
account_management?: Components.AccountManagement;
|
|
28
|
+
|
|
24
29
|
/**
|
|
25
30
|
* Configuration for the account onboarding embedded component.
|
|
26
31
|
*/
|
|
@@ -31,6 +36,11 @@ declare module 'stripe' {
|
|
|
31
36
|
*/
|
|
32
37
|
documents?: Components.Documents;
|
|
33
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for the notification banner embedded component.
|
|
41
|
+
*/
|
|
42
|
+
notification_banner?: Components.NotificationBanner;
|
|
43
|
+
|
|
34
44
|
/**
|
|
35
45
|
* Configuration for the payment details embedded component.
|
|
36
46
|
*/
|
|
@@ -48,6 +58,27 @@ declare module 'stripe' {
|
|
|
48
58
|
}
|
|
49
59
|
|
|
50
60
|
namespace Components {
|
|
61
|
+
interface AccountManagement {
|
|
62
|
+
/**
|
|
63
|
+
* Whether the embedded component is enabled.
|
|
64
|
+
*/
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The list of features enabled in the embedded component.
|
|
69
|
+
*/
|
|
70
|
+
features?: AccountManagement.Features;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
namespace AccountManagement {
|
|
74
|
+
interface Features {
|
|
75
|
+
/**
|
|
76
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
77
|
+
*/
|
|
78
|
+
external_account_collection?: boolean;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
51
82
|
interface AccountOnboarding {
|
|
52
83
|
/**
|
|
53
84
|
* Whether the embedded component is enabled.
|
|
@@ -61,7 +92,12 @@ declare module 'stripe' {
|
|
|
61
92
|
}
|
|
62
93
|
|
|
63
94
|
namespace AccountOnboarding {
|
|
64
|
-
interface Features {
|
|
95
|
+
interface Features {
|
|
96
|
+
/**
|
|
97
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
98
|
+
*/
|
|
99
|
+
external_account_collection?: boolean;
|
|
100
|
+
}
|
|
65
101
|
}
|
|
66
102
|
|
|
67
103
|
interface Documents {
|
|
@@ -80,6 +116,27 @@ declare module 'stripe' {
|
|
|
80
116
|
interface Features {}
|
|
81
117
|
}
|
|
82
118
|
|
|
119
|
+
interface NotificationBanner {
|
|
120
|
+
/**
|
|
121
|
+
* Whether the embedded component is enabled.
|
|
122
|
+
*/
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The list of features enabled in the embedded component.
|
|
127
|
+
*/
|
|
128
|
+
features?: NotificationBanner.Features;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
namespace NotificationBanner {
|
|
132
|
+
interface Features {
|
|
133
|
+
/**
|
|
134
|
+
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
|
|
135
|
+
*/
|
|
136
|
+
external_account_collection?: boolean;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
83
140
|
interface PaymentDetails {
|
|
84
141
|
/**
|
|
85
142
|
* Whether the embedded component is enabled.
|
package/types/Accounts.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ declare module 'stripe' {
|
|
|
829
829
|
past_due: Array<string> | null;
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
|
-
* Fields that
|
|
832
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
833
833
|
*/
|
|
834
834
|
pending_verification: Array<string> | null;
|
|
835
835
|
}
|
|
@@ -994,7 +994,7 @@ declare module 'stripe' {
|
|
|
994
994
|
past_due: Array<string> | null;
|
|
995
995
|
|
|
996
996
|
/**
|
|
997
|
-
* Fields that
|
|
997
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
998
998
|
*/
|
|
999
999
|
pending_verification: Array<string> | null;
|
|
1000
1000
|
}
|
package/types/BankAccounts.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ declare module 'stripe' {
|
|
|
137
137
|
past_due: Array<string> | null;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* Fields that
|
|
140
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
141
141
|
*/
|
|
142
142
|
pending_verification: Array<string> | null;
|
|
143
143
|
}
|
|
@@ -270,7 +270,7 @@ declare module 'stripe' {
|
|
|
270
270
|
past_due: Array<string> | null;
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* Fields that
|
|
273
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
274
274
|
*/
|
|
275
275
|
pending_verification: Array<string> | null;
|
|
276
276
|
}
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
* A billing meter event adjustment
|
|
7
|
+
* A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
|
|
8
8
|
*/
|
|
9
9
|
interface MeterEventAdjustment {
|
|
10
10
|
/**
|
|
@@ -12,7 +12,10 @@ declare module 'stripe' {
|
|
|
12
12
|
*/
|
|
13
13
|
object: 'billing.meter_event_adjustment';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Specifies which event to cancel.
|
|
17
|
+
*/
|
|
18
|
+
cancel: MeterEventAdjustment.Cancel | null;
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
@@ -30,7 +33,7 @@ declare module 'stripe' {
|
|
|
30
33
|
status: MeterEventAdjustment.Status;
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
|
-
* Specifies whether to cancel a single event or a range of events for a time period.
|
|
36
|
+
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
|
34
37
|
*/
|
|
35
38
|
type: 'cancel';
|
|
36
39
|
}
|
|
@@ -40,7 +43,7 @@ declare module 'stripe' {
|
|
|
40
43
|
/**
|
|
41
44
|
* Unique identifier for the event.
|
|
42
45
|
*/
|
|
43
|
-
identifier: string;
|
|
46
|
+
identifier: string | null;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
type Status = 'complete' | 'pending';
|
|
@@ -5,24 +5,24 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace Billing {
|
|
6
6
|
interface MeterEventAdjustmentCreateParams {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
event_name: string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
type: 'cancel';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Specifies which
|
|
18
|
+
* Specifies which event to cancel.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
cancel?: MeterEventAdjustmentCreateParams.Cancel;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Specifies
|
|
23
|
+
* Specifies which fields in the response should be expanded.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
expand?: Array<string>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
namespace MeterEventAdjustmentCreateParams {
|
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
/**
|
|
31
31
|
* Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
|
32
32
|
*/
|
|
33
|
-
identifier
|
|
33
|
+
identifier?: string;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then
|
|
7
|
+
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make.
|
|
8
8
|
*/
|
|
9
9
|
interface Meter {
|
|
10
10
|
/**
|
|
@@ -61,7 +61,7 @@ declare module 'stripe' {
|
|
|
61
61
|
locale: Session.Locale | null;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#
|
|
64
|
+
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
|
65
65
|
*/
|
|
66
66
|
on_behalf_of: string | null;
|
|
67
67
|
|
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
locale?: SessionCreateParams.Locale;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#
|
|
33
|
+
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
|
34
34
|
*/
|
|
35
35
|
on_behalf_of?: string;
|
|
36
36
|
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ declare module 'stripe' {
|
|
|
81
81
|
past_due: Array<string>;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Fields that
|
|
84
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
85
85
|
*/
|
|
86
86
|
pending_verification: Array<string>;
|
|
87
87
|
}
|
|
@@ -252,7 +252,7 @@ declare module 'stripe' {
|
|
|
252
252
|
past_due: Array<string>;
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* Fields that
|
|
255
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
256
256
|
*/
|
|
257
257
|
pending_verification: Array<string>;
|
|
258
258
|
}
|
package/types/Charges.d.ts
CHANGED
|
@@ -40,12 +40,12 @@ declare module 'stripe' {
|
|
|
40
40
|
application: string | Stripe.Application | null;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#
|
|
43
|
+
* The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
|
|
44
44
|
*/
|
|
45
45
|
application_fee: string | Stripe.ApplicationFee | null;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#
|
|
48
|
+
* The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
|
|
49
49
|
*/
|
|
50
50
|
application_fee_amount: number | null;
|
|
51
51
|
|
|
@@ -378,6 +378,8 @@ declare module 'stripe' {
|
|
|
378
378
|
|
|
379
379
|
alipay?: PaymentMethodDetails.Alipay;
|
|
380
380
|
|
|
381
|
+
amazon_pay?: PaymentMethodDetails.AmazonPay;
|
|
382
|
+
|
|
381
383
|
au_becs_debit?: PaymentMethodDetails.AuBecsDebit;
|
|
382
384
|
|
|
383
385
|
bacs_debit?: PaymentMethodDetails.BacsDebit;
|
|
@@ -580,6 +582,8 @@ declare module 'stripe' {
|
|
|
580
582
|
transaction_id: string | null;
|
|
581
583
|
}
|
|
582
584
|
|
|
585
|
+
interface AmazonPay {}
|
|
586
|
+
|
|
583
587
|
interface AuBecsDebit {
|
|
584
588
|
/**
|
|
585
589
|
* Bank-State-Branch number of the bank account.
|
|
@@ -11,7 +11,7 @@ declare module 'stripe' {
|
|
|
11
11
|
application_fee?: number;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#
|
|
14
|
+
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collect-fees).
|
|
15
15
|
*/
|
|
16
16
|
application_fee_amount?: number;
|
|
17
17
|
|
|
@@ -48,7 +48,7 @@ declare module 'stripe' {
|
|
|
48
48
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#
|
|
51
|
+
* The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
|
|
52
52
|
*/
|
|
53
53
|
on_behalf_of?: string;
|
|
54
54
|
|
|
@@ -485,7 +485,7 @@ declare module 'stripe' {
|
|
|
485
485
|
|
|
486
486
|
interface TaxId {
|
|
487
487
|
/**
|
|
488
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`
|
|
488
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, or `unknown`
|
|
489
489
|
*/
|
|
490
490
|
type: TaxId.Type;
|
|
491
491
|
|
|
@@ -503,6 +503,7 @@ declare module 'stripe' {
|
|
|
503
503
|
| 'au_abn'
|
|
504
504
|
| 'au_arn'
|
|
505
505
|
| 'bg_uic'
|
|
506
|
+
| 'bh_vat'
|
|
506
507
|
| 'bo_tin'
|
|
507
508
|
| 'br_cnpj'
|
|
508
509
|
| 'br_cpf'
|
|
@@ -536,14 +537,17 @@ declare module 'stripe' {
|
|
|
536
537
|
| 'jp_trn'
|
|
537
538
|
| 'ke_pin'
|
|
538
539
|
| 'kr_brn'
|
|
540
|
+
| 'kz_bin'
|
|
539
541
|
| 'li_uid'
|
|
540
542
|
| 'mx_rfc'
|
|
541
543
|
| 'my_frp'
|
|
542
544
|
| 'my_itn'
|
|
543
545
|
| 'my_sst'
|
|
546
|
+
| 'ng_tin'
|
|
544
547
|
| 'no_vat'
|
|
545
548
|
| 'no_voec'
|
|
546
549
|
| 'nz_gst'
|
|
550
|
+
| 'om_vat'
|
|
547
551
|
| 'pe_ruc'
|
|
548
552
|
| 'ph_tin'
|
|
549
553
|
| 'ro_tin'
|
|
@@ -876,6 +880,8 @@ declare module 'stripe' {
|
|
|
876
880
|
|
|
877
881
|
alipay?: PaymentMethodOptions.Alipay;
|
|
878
882
|
|
|
883
|
+
amazon_pay?: PaymentMethodOptions.AmazonPay;
|
|
884
|
+
|
|
879
885
|
au_becs_debit?: PaymentMethodOptions.AuBecsDebit;
|
|
880
886
|
|
|
881
887
|
bacs_debit?: PaymentMethodOptions.BacsDebit;
|
|
@@ -1027,6 +1033,8 @@ declare module 'stripe' {
|
|
|
1027
1033
|
setup_future_usage?: 'none';
|
|
1028
1034
|
}
|
|
1029
1035
|
|
|
1036
|
+
interface AmazonPay {}
|
|
1037
|
+
|
|
1030
1038
|
interface AuBecsDebit {
|
|
1031
1039
|
/**
|
|
1032
1040
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1457,7 +1465,7 @@ declare module 'stripe' {
|
|
|
1457
1465
|
| 'payment_method'
|
|
1458
1466
|
| 'transactions';
|
|
1459
1467
|
|
|
1460
|
-
type Prefetch = 'balances' | 'transactions';
|
|
1468
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1461
1469
|
}
|
|
1462
1470
|
|
|
1463
1471
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -968,6 +968,11 @@ declare module 'stripe' {
|
|
|
968
968
|
*/
|
|
969
969
|
alipay?: PaymentMethodOptions.Alipay;
|
|
970
970
|
|
|
971
|
+
/**
|
|
972
|
+
* contains details about the AmazonPay payment method options.
|
|
973
|
+
*/
|
|
974
|
+
amazon_pay?: PaymentMethodOptions.AmazonPay;
|
|
975
|
+
|
|
971
976
|
/**
|
|
972
977
|
* contains details about the AU Becs Debit payment method options.
|
|
973
978
|
*/
|
|
@@ -1204,6 +1209,21 @@ declare module 'stripe' {
|
|
|
1204
1209
|
setup_future_usage?: 'none';
|
|
1205
1210
|
}
|
|
1206
1211
|
|
|
1212
|
+
interface AmazonPay {
|
|
1213
|
+
/**
|
|
1214
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1215
|
+
*
|
|
1216
|
+
* Providing this parameter will [attach the payment method](https://stripe.com/docs/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. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
|
|
1217
|
+
*
|
|
1218
|
+
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
|
|
1219
|
+
*/
|
|
1220
|
+
setup_future_usage?: AmazonPay.SetupFutureUsage;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
namespace AmazonPay {
|
|
1224
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1207
1227
|
interface AuBecsDebit {
|
|
1208
1228
|
/**
|
|
1209
1229
|
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1686,7 +1706,7 @@ declare module 'stripe' {
|
|
|
1686
1706
|
| 'payment_method'
|
|
1687
1707
|
| 'transactions';
|
|
1688
1708
|
|
|
1689
|
-
type Prefetch = 'balances' | 'transactions';
|
|
1709
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1690
1710
|
}
|
|
1691
1711
|
|
|
1692
1712
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -1725,6 +1745,7 @@ declare module 'stripe' {
|
|
|
1725
1745
|
| 'affirm'
|
|
1726
1746
|
| 'afterpay_clearpay'
|
|
1727
1747
|
| 'alipay'
|
|
1748
|
+
| 'amazon_pay'
|
|
1728
1749
|
| 'au_becs_debit'
|
|
1729
1750
|
| 'bacs_debit'
|
|
1730
1751
|
| 'bancontact'
|
|
@@ -125,6 +125,8 @@ declare module 'stripe' {
|
|
|
125
125
|
|
|
126
126
|
alipay?: PaymentMethodPreview.Alipay;
|
|
127
127
|
|
|
128
|
+
amazon_pay?: PaymentMethodPreview.AmazonPay;
|
|
129
|
+
|
|
128
130
|
au_becs_debit?: PaymentMethodPreview.AuBecsDebit;
|
|
129
131
|
|
|
130
132
|
bacs_debit?: PaymentMethodPreview.BacsDebit;
|
|
@@ -231,6 +233,8 @@ declare module 'stripe' {
|
|
|
231
233
|
|
|
232
234
|
interface Alipay {}
|
|
233
235
|
|
|
236
|
+
interface AmazonPay {}
|
|
237
|
+
|
|
234
238
|
interface AuBecsDebit {
|
|
235
239
|
/**
|
|
236
240
|
* Six-digit number identifying bank and branch associated with this bank account.
|
|
@@ -1001,6 +1005,7 @@ declare module 'stripe' {
|
|
|
1001
1005
|
| 'affirm'
|
|
1002
1006
|
| 'afterpay_clearpay'
|
|
1003
1007
|
| 'alipay'
|
|
1008
|
+
| 'amazon_pay'
|
|
1004
1009
|
| 'au_becs_debit'
|
|
1005
1010
|
| 'bacs_debit'
|
|
1006
1011
|
| 'bancontact'
|