stripe 8.190.0 → 8.191.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 +8 -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/Issuing/Cards.d.ts +56 -0
- package/types/2020-08-27/PaymentIntents.d.ts +26 -1
- package/types/2020-08-27/TaxRates.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.191.0 - 2021-11-19
|
|
4
|
+
* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
|
|
5
|
+
* Add support for `wallets` on `Issuing.Card`
|
|
6
|
+
|
|
7
|
+
* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates
|
|
8
|
+
* Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
9
|
+
* Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type`
|
|
10
|
+
|
|
3
11
|
## 8.190.0 - 2021-11-17
|
|
4
12
|
* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
|
|
5
13
|
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.191.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.
|
|
707
|
+
* If the account is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.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.
|
|
184
|
+
* If the capability is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.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
|
*
|
|
@@ -110,6 +110,11 @@ declare module 'stripe' {
|
|
|
110
110
|
* The type of the card.
|
|
111
111
|
*/
|
|
112
112
|
type: Card.Type;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Information relating to digital wallets (like Apple Pay and Google Pay).
|
|
116
|
+
*/
|
|
117
|
+
wallets: Card.Wallets | null;
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
namespace Card {
|
|
@@ -1101,6 +1106,57 @@ declare module 'stripe' {
|
|
|
1101
1106
|
type Status = 'active' | 'canceled' | 'inactive';
|
|
1102
1107
|
|
|
1103
1108
|
type Type = 'physical' | 'virtual';
|
|
1109
|
+
|
|
1110
|
+
interface Wallets {
|
|
1111
|
+
apple_pay: Wallets.ApplePay;
|
|
1112
|
+
|
|
1113
|
+
google_pay: Wallets.GooglePay;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Unique identifier for a card used with digital wallets
|
|
1117
|
+
*/
|
|
1118
|
+
primary_account_identifier: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
namespace Wallets {
|
|
1122
|
+
interface ApplePay {
|
|
1123
|
+
/**
|
|
1124
|
+
* Apple Pay Eligibility
|
|
1125
|
+
*/
|
|
1126
|
+
eligible: boolean;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Reason the card is ineligible for Apple Pay
|
|
1130
|
+
*/
|
|
1131
|
+
ineligible_reason: ApplePay.IneligibleReason | null;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
namespace ApplePay {
|
|
1135
|
+
type IneligibleReason =
|
|
1136
|
+
| 'missing_agreement'
|
|
1137
|
+
| 'missing_cardholder_contact'
|
|
1138
|
+
| 'unsupported_region';
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface GooglePay {
|
|
1142
|
+
/**
|
|
1143
|
+
* Google Pay Eligibility
|
|
1144
|
+
*/
|
|
1145
|
+
eligible: boolean;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Reason the card is ineligible for Google Pay
|
|
1149
|
+
*/
|
|
1150
|
+
ineligible_reason: GooglePay.IneligibleReason | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
namespace GooglePay {
|
|
1154
|
+
type IneligibleReason =
|
|
1155
|
+
| 'missing_agreement'
|
|
1156
|
+
| 'missing_cardholder_contact'
|
|
1157
|
+
| 'unsupported_region';
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1104
1160
|
}
|
|
1105
1161
|
|
|
1106
1162
|
interface CardCreateParams {
|
|
@@ -521,6 +521,8 @@ declare module 'stripe' {
|
|
|
521
521
|
|
|
522
522
|
ideal?: PaymentMethodOptions.Ideal;
|
|
523
523
|
|
|
524
|
+
interac_present?: PaymentMethodOptions.InteracPresent;
|
|
525
|
+
|
|
524
526
|
klarna?: PaymentMethodOptions.Klarna;
|
|
525
527
|
|
|
526
528
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
@@ -698,6 +700,8 @@ declare module 'stripe' {
|
|
|
698
700
|
|
|
699
701
|
interface Ideal {}
|
|
700
702
|
|
|
703
|
+
interface InteracPresent {}
|
|
704
|
+
|
|
701
705
|
interface Klarna {
|
|
702
706
|
/**
|
|
703
707
|
* Preferred locale of the Klarna checkout page that the customer is redirected to.
|
|
@@ -1477,6 +1481,11 @@ declare module 'stripe' {
|
|
|
1477
1481
|
*/
|
|
1478
1482
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
1479
1483
|
|
|
1484
|
+
/**
|
|
1485
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
1486
|
+
*/
|
|
1487
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
1488
|
+
|
|
1480
1489
|
/**
|
|
1481
1490
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
1482
1491
|
*/
|
|
@@ -1669,6 +1678,8 @@ declare module 'stripe' {
|
|
|
1669
1678
|
|
|
1670
1679
|
interface Ideal {}
|
|
1671
1680
|
|
|
1681
|
+
interface InteracPresent {}
|
|
1682
|
+
|
|
1672
1683
|
interface Klarna {
|
|
1673
1684
|
/**
|
|
1674
1685
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -2390,6 +2401,11 @@ declare module 'stripe' {
|
|
|
2390
2401
|
*/
|
|
2391
2402
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
2392
2403
|
|
|
2404
|
+
/**
|
|
2405
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
2406
|
+
*/
|
|
2407
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
2408
|
+
|
|
2393
2409
|
/**
|
|
2394
2410
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
2395
2411
|
*/
|
|
@@ -2582,6 +2598,8 @@ declare module 'stripe' {
|
|
|
2582
2598
|
|
|
2583
2599
|
interface Ideal {}
|
|
2584
2600
|
|
|
2601
|
+
interface InteracPresent {}
|
|
2602
|
+
|
|
2585
2603
|
interface Klarna {
|
|
2586
2604
|
/**
|
|
2587
2605
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -3417,6 +3435,11 @@ declare module 'stripe' {
|
|
|
3417
3435
|
*/
|
|
3418
3436
|
ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
|
|
3419
3437
|
|
|
3438
|
+
/**
|
|
3439
|
+
* If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
3440
|
+
*/
|
|
3441
|
+
interac_present?: Stripe.Emptyable<PaymentMethodOptions.InteracPresent>;
|
|
3442
|
+
|
|
3420
3443
|
/**
|
|
3421
3444
|
* If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
|
|
3422
3445
|
*/
|
|
@@ -3609,6 +3632,8 @@ declare module 'stripe' {
|
|
|
3609
3632
|
|
|
3610
3633
|
interface Ideal {}
|
|
3611
3634
|
|
|
3635
|
+
interface InteracPresent {}
|
|
3636
|
+
|
|
3612
3637
|
interface Klarna {
|
|
3613
3638
|
/**
|
|
3614
3639
|
* Preferred language of the Klarna authorization page that the customer is redirected to
|
|
@@ -3800,7 +3825,7 @@ declare module 'stripe' {
|
|
|
3800
3825
|
list(options?: RequestOptions): ApiListPromise<Stripe.PaymentIntent>;
|
|
3801
3826
|
|
|
3802
3827
|
/**
|
|
3803
|
-
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, or
|
|
3828
|
+
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action, or processing.
|
|
3804
3829
|
*
|
|
3805
3830
|
* Once canceled, no additional charges will be made by the PaymentIntent and any operations on the PaymentIntent will fail with an error. For PaymentIntents with status='requires_capture', the remaining amount_capturable will automatically be refunded.
|
|
3806
3831
|
*/
|
|
@@ -81,6 +81,7 @@ declare module 'stripe' {
|
|
|
81
81
|
type TaxType =
|
|
82
82
|
| 'gst'
|
|
83
83
|
| 'hst'
|
|
84
|
+
| 'jct'
|
|
84
85
|
| 'pst'
|
|
85
86
|
| 'qst'
|
|
86
87
|
| 'rst'
|
|
@@ -149,6 +150,7 @@ declare module 'stripe' {
|
|
|
149
150
|
type TaxType =
|
|
150
151
|
| 'gst'
|
|
151
152
|
| 'hst'
|
|
153
|
+
| 'jct'
|
|
152
154
|
| 'pst'
|
|
153
155
|
| 'qst'
|
|
154
156
|
| 'rst'
|
|
@@ -214,6 +216,7 @@ declare module 'stripe' {
|
|
|
214
216
|
type TaxType =
|
|
215
217
|
| 'gst'
|
|
216
218
|
| 'hst'
|
|
219
|
+
| 'jct'
|
|
217
220
|
| 'pst'
|
|
218
221
|
| 'qst'
|
|
219
222
|
| 'rst'
|