stripe 8.189.0 → 8.190.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 +5 -0
- package/VERSION +1 -1
- package/package.json +1 -1
- package/types/2020-08-27/Accounts.d.ts +1 -1
- package/types/2020-08-27/Capabilities.d.ts +1 -1
- package/types/2020-08-27/Checkout/Sessions.d.ts +6 -6
- package/types/2020-08-27/PaymentIntents.d.ts +25 -1
- package/types/2020-08-27/SetupIntents.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.190.0 - 2021-11-17
|
|
4
|
+
* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
|
|
5
|
+
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
## 8.189.0 - 2021-11-16
|
|
4
9
|
* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
|
|
5
10
|
* Add support for new resource `ShippingRate`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.190.0
|
package/package.json
CHANGED
|
@@ -704,7 +704,7 @@ declare module 'stripe' {
|
|
|
704
704
|
currently_due: Array<string> | null;
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
|
-
* If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.
|
|
707
|
+
* If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.listed`, `rejected.terms_of_service`, `rejected.card_casher`, `rejected.auto_fraud_shutdown`, `rejected.fraud`, `rejected.dishonest_merchant`, `rejected.identity_fraud`, `rejected.platform_fraud`, `rejected.platform_terms_of_service`, `rejected.other`, `under_review`, or `other`.
|
|
708
708
|
*/
|
|
709
709
|
disabled_reason: string | null;
|
|
710
710
|
|
|
@@ -181,7 +181,7 @@ declare module 'stripe' {
|
|
|
181
181
|
currently_due: Array<string>;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* If the capability is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.
|
|
184
|
+
* If the capability is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.listed`, `rejected.terms_of_service`, `rejected.card_casher`, `rejected.auto_fraud_shutdown`, `rejected.fraud`, `rejected.dishonest_merchant`, `rejected.identity_fraud`, `rejected.platform_fraud`, `rejected.platform_terms_of_service`, `rejected.other`, `under_review`, or `other`.
|
|
185
185
|
*
|
|
186
186
|
* `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service:
|
|
187
187
|
*
|
|
@@ -1133,12 +1133,12 @@ declare module 'stripe' {
|
|
|
1133
1133
|
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
1134
1134
|
|
|
1135
1135
|
/**
|
|
1136
|
-
* The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1136
|
+
* [Deprecated] The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1137
1137
|
*/
|
|
1138
1138
|
amount?: number;
|
|
1139
1139
|
|
|
1140
1140
|
/**
|
|
1141
|
-
* 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). Required if `amount` is passed.
|
|
1141
|
+
* [Deprecated] 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). Required if `amount` is passed.
|
|
1142
1142
|
*/
|
|
1143
1143
|
currency?: string;
|
|
1144
1144
|
|
|
@@ -1155,22 +1155,22 @@ declare module 'stripe' {
|
|
|
1155
1155
|
dynamic_tax_rates?: Array<string>;
|
|
1156
1156
|
|
|
1157
1157
|
/**
|
|
1158
|
-
* A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1158
|
+
* [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1159
1159
|
*/
|
|
1160
1160
|
images?: Array<string>;
|
|
1161
1161
|
|
|
1162
1162
|
/**
|
|
1163
|
-
* The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1163
|
+
* [Deprecated] The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1164
1164
|
*/
|
|
1165
1165
|
name?: string;
|
|
1166
1166
|
|
|
1167
1167
|
/**
|
|
1168
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price
|
|
1168
|
+
* 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.
|
|
1169
1169
|
*/
|
|
1170
1170
|
price?: string;
|
|
1171
1171
|
|
|
1172
1172
|
/**
|
|
1173
|
-
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price
|
|
1173
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1174
1174
|
*/
|
|
1175
1175
|
price_data?: LineItem.PriceData;
|
|
1176
1176
|
|
|
@@ -41,6 +41,11 @@ declare module 'stripe' {
|
|
|
41
41
|
*/
|
|
42
42
|
application_fee_amount: number | null;
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
|
|
46
|
+
*/
|
|
47
|
+
automatic_payment_methods: PaymentIntent.AutomaticPaymentMethods | null;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
|
46
51
|
*/
|
|
@@ -204,6 +209,13 @@ declare module 'stripe' {
|
|
|
204
209
|
}
|
|
205
210
|
|
|
206
211
|
namespace PaymentIntent {
|
|
212
|
+
interface AutomaticPaymentMethods {
|
|
213
|
+
/**
|
|
214
|
+
* Automatically calculates compatible payment methods
|
|
215
|
+
*/
|
|
216
|
+
enabled: boolean;
|
|
217
|
+
}
|
|
218
|
+
|
|
207
219
|
type CancellationReason =
|
|
208
220
|
| 'abandoned'
|
|
209
221
|
| 'automatic'
|
|
@@ -329,7 +341,7 @@ declare module 'stripe' {
|
|
|
329
341
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
330
342
|
|
|
331
343
|
/**
|
|
332
|
-
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `
|
|
344
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
|
333
345
|
*/
|
|
334
346
|
type: string;
|
|
335
347
|
|
|
@@ -811,6 +823,11 @@ declare module 'stripe' {
|
|
|
811
823
|
*/
|
|
812
824
|
application_fee_amount?: number;
|
|
813
825
|
|
|
826
|
+
/**
|
|
827
|
+
* When enabled, this PaymentIntent will accept payment methods that you have enabled in the Dashboard and are compatible with this PaymentIntent's other parameters.
|
|
828
|
+
*/
|
|
829
|
+
automatic_payment_methods?: PaymentIntentCreateParams.AutomaticPaymentMethods;
|
|
830
|
+
|
|
814
831
|
/**
|
|
815
832
|
* Controls when the funds will be captured from the customer's account.
|
|
816
833
|
*/
|
|
@@ -948,6 +965,13 @@ declare module 'stripe' {
|
|
|
948
965
|
}
|
|
949
966
|
|
|
950
967
|
namespace PaymentIntentCreateParams {
|
|
968
|
+
interface AutomaticPaymentMethods {
|
|
969
|
+
/**
|
|
970
|
+
* Whether this feature is enabled.
|
|
971
|
+
*/
|
|
972
|
+
enabled: boolean;
|
|
973
|
+
}
|
|
974
|
+
|
|
951
975
|
type CaptureMethod = 'automatic' | 'manual';
|
|
952
976
|
|
|
953
977
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
@@ -230,7 +230,7 @@ declare module 'stripe' {
|
|
|
230
230
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
|
-
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, or `
|
|
233
|
+
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
|
234
234
|
*/
|
|
235
235
|
type: string;
|
|
236
236
|
|