stripe 8.201.0 → 8.202.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
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.202.0 - 2022-02-03
|
|
4
|
+
* [#1344](https://github.com/stripe/stripe-node/pull/1344) API Updates
|
|
5
|
+
* Add support for new value `au_becs_debit` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
6
|
+
* Change type of `Refund.reason` from `string` to `enum('duplicate'|'expired_uncaptured_charge'|'fraudulent'|'requested_by_customer')`
|
|
7
|
+
|
|
3
8
|
## 8.201.0 - 2022-01-28
|
|
4
9
|
* [#1342](https://github.com/stripe/stripe-node/pull/1342) Bump nanoid from 3.1.20 to 3.2.0.
|
|
5
10
|
* [#1335](https://github.com/stripe/stripe-node/pull/1335) Fix StripeResource to successfully import TIMEOUT_ERROR_CODE.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.202.0
|
package/package.json
CHANGED
|
@@ -1364,11 +1364,7 @@ declare module 'stripe' {
|
|
|
1364
1364
|
|
|
1365
1365
|
interface PaymentIntentData {
|
|
1366
1366
|
/**
|
|
1367
|
-
* The amount of the application fee (if any) that will be requested to be applied to the payment and
|
|
1368
|
-
* transferred to the application owner's Stripe account. The amount of the application fee collected
|
|
1369
|
-
* will be capped at the total payment amount. To use an application fee, the request must be made on
|
|
1370
|
-
* behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information,
|
|
1371
|
-
* see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
|
1367
|
+
* The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
|
1372
1368
|
*/
|
|
1373
1369
|
application_fee_amount?: number;
|
|
1374
1370
|
|
|
@@ -1619,6 +1615,7 @@ declare module 'stripe' {
|
|
|
1619
1615
|
| 'acss_debit'
|
|
1620
1616
|
| 'afterpay_clearpay'
|
|
1621
1617
|
| 'alipay'
|
|
1618
|
+
| 'au_becs_debit'
|
|
1622
1619
|
| 'bacs_debit'
|
|
1623
1620
|
| 'bancontact'
|
|
1624
1621
|
| 'boleto'
|
|
@@ -69,7 +69,7 @@ declare module 'stripe' {
|
|
|
69
69
|
/**
|
|
70
70
|
* Reason for the refund, either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`).
|
|
71
71
|
*/
|
|
72
|
-
reason:
|
|
72
|
+
reason: Refund.Reason | null;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* This is the transaction number that appears on email receipts sent for this refund.
|
|
@@ -92,6 +92,14 @@ declare module 'stripe' {
|
|
|
92
92
|
transfer_reversal: string | Stripe.TransferReversal | null;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
namespace Refund {
|
|
96
|
+
type Reason =
|
|
97
|
+
| 'duplicate'
|
|
98
|
+
| 'expired_uncaptured_charge'
|
|
99
|
+
| 'fraudulent'
|
|
100
|
+
| 'requested_by_customer';
|
|
101
|
+
}
|
|
102
|
+
|
|
95
103
|
interface RefundCreateParams {
|
|
96
104
|
amount?: number;
|
|
97
105
|
|