stripe 8.193.0 → 8.194.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.194.0 - 2021-12-15
4
+ * [#1309](https://github.com/stripe/stripe-node/pull/1309) API Updates
5
+ * Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient`
6
+ * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card`
7
+
3
8
  ## 8.193.0 - 2021-12-09
4
9
  * [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates
5
10
  * Add support for `metadata` on `BillingPortalConfigurationCreateParams`, `BillingPortalConfigurationUpdateParams`, and `BillingPortal.Configuration`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.193.0
1
+ 8.194.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.193.0",
3
+ "version": "8.194.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -715,7 +715,7 @@ declare module 'stripe' {
715
715
  ): Promise<Stripe.Response<Stripe.Customer>>;
716
716
 
717
717
  /**
718
- * Retrieves the details of an existing customer. You need only supply the unique customer identifier that was returned upon customer creation.
718
+ * Retrieves a Customer object.
719
719
  */
720
720
  retrieve(
721
721
  id: string,
@@ -24,7 +24,7 @@ declare module 'stripe' {
24
24
  /**
25
25
  * A coupon contains information about a percent-off or amount-off discount you
26
26
  * might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or
27
- * [orders](https://stripe.com/docs/api#create_order-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
27
+ * [orders](https://stripe.com/docs/api#create_order_legacy-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
28
28
  */
29
29
  coupon: Stripe.Coupon;
30
30
 
@@ -88,7 +88,7 @@ declare module 'stripe' {
88
88
  /**
89
89
  * A coupon contains information about a percent-off or amount-off discount you
90
90
  * might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or
91
- * [orders](https://stripe.com/docs/api#create_order-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
91
+ * [orders](https://stripe.com/docs/api#create_order_legacy-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
92
92
  */
93
93
  coupon: Stripe.Coupon;
94
94
 
@@ -625,6 +625,15 @@ declare module 'stripe' {
625
625
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
626
626
  */
627
627
  request_three_d_secure: Card.RequestThreeDSecure | null;
628
+
629
+ /**
630
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
631
+ *
632
+ * 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.
633
+ *
634
+ * 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).
635
+ */
636
+ setup_future_usage?: Card.SetupFutureUsage;
628
637
  }
629
638
 
630
639
  namespace Card {
@@ -696,6 +705,8 @@ declare module 'stripe' {
696
705
  | 'visa';
697
706
 
698
707
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only';
708
+
709
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
699
710
  }
700
711
 
701
712
  interface CardPresent {}
@@ -1630,6 +1641,17 @@ declare module 'stripe' {
1630
1641
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1631
1642
  */
1632
1643
  request_three_d_secure?: Card.RequestThreeDSecure;
1644
+
1645
+ /**
1646
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1647
+ *
1648
+ * 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.
1649
+ *
1650
+ * 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).
1651
+ *
1652
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
1653
+ */
1654
+ setup_future_usage?: Stripe.Emptyable<Card.SetupFutureUsage>;
1633
1655
  }
1634
1656
 
1635
1657
  namespace Card {
@@ -1681,6 +1703,8 @@ declare module 'stripe' {
1681
1703
  | 'visa';
1682
1704
 
1683
1705
  type RequestThreeDSecure = 'any' | 'automatic';
1706
+
1707
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1684
1708
  }
1685
1709
 
1686
1710
  interface CardPresent {}
@@ -2558,6 +2582,17 @@ declare module 'stripe' {
2558
2582
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
2559
2583
  */
2560
2584
  request_three_d_secure?: Card.RequestThreeDSecure;
2585
+
2586
+ /**
2587
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2588
+ *
2589
+ * 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.
2590
+ *
2591
+ * 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).
2592
+ *
2593
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
2594
+ */
2595
+ setup_future_usage?: Stripe.Emptyable<Card.SetupFutureUsage>;
2561
2596
  }
2562
2597
 
2563
2598
  namespace Card {
@@ -2609,6 +2644,8 @@ declare module 'stripe' {
2609
2644
  | 'visa';
2610
2645
 
2611
2646
  type RequestThreeDSecure = 'any' | 'automatic';
2647
+
2648
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2612
2649
  }
2613
2650
 
2614
2651
  interface CardPresent {}
@@ -3600,6 +3637,17 @@ declare module 'stripe' {
3600
3637
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
3601
3638
  */
3602
3639
  request_three_d_secure?: Card.RequestThreeDSecure;
3640
+
3641
+ /**
3642
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3643
+ *
3644
+ * 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.
3645
+ *
3646
+ * 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).
3647
+ *
3648
+ * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
3649
+ */
3650
+ setup_future_usage?: Stripe.Emptyable<Card.SetupFutureUsage>;
3603
3651
  }
3604
3652
 
3605
3653
  namespace Card {
@@ -3651,6 +3699,8 @@ declare module 'stripe' {
3651
3699
  | 'visa';
3652
3700
 
3653
3701
  type RequestThreeDSecure = 'any' | 'automatic';
3702
+
3703
+ type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
3654
3704
  }
3655
3705
 
3656
3706
  interface CardPresent {}
@@ -345,7 +345,7 @@ declare module 'stripe' {
345
345
 
346
346
  interface Relationship {
347
347
  /**
348
- * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
348
+ * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
349
349
  */
350
350
  director: boolean | null;
351
351
 
@@ -769,7 +769,7 @@ declare module 'stripe' {
769
769
 
770
770
  interface Relationship {
771
771
  /**
772
- * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
772
+ * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
773
773
  */
774
774
  director?: boolean;
775
775
 
@@ -1036,7 +1036,7 @@ declare module 'stripe' {
1036
1036
 
1037
1037
  interface Relationship {
1038
1038
  /**
1039
- * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1039
+ * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1040
1040
  */
1041
1041
  director?: boolean;
1042
1042
 
@@ -29,7 +29,7 @@ declare module 'stripe' {
29
29
  /**
30
30
  * A coupon contains information about a percent-off or amount-off discount you
31
31
  * might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or
32
- * [orders](https://stripe.com/docs/api#create_order-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
32
+ * [orders](https://stripe.com/docs/api#create_order_legacy-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
33
33
  */
34
34
  coupon: Stripe.Coupon;
35
35
 
@@ -222,7 +222,7 @@ declare module 'stripe' {
222
222
  ): Promise<Stripe.Response<Stripe.PromotionCode>>;
223
223
 
224
224
  /**
225
- * Retrieves the promotion code with the given ID.
225
+ * Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
226
226
  */
227
227
  retrieve(
228
228
  id: string,
@@ -712,7 +712,7 @@ declare module 'stripe' {
712
712
 
713
713
  interface Relationship {
714
714
  /**
715
- * Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
715
+ * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
716
716
  */
717
717
  director?: boolean;
718
718