@stripe/stripe-js 3.1.0 → 3.2.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.
@@ -82,6 +82,14 @@ export interface ConfirmationTokenCreateParams {
82
82
  * The customer's billing details.
83
83
  */
84
84
  billing_details?: PaymentMethodCreateParams.BillingDetails;
85
+
86
+ /**
87
+ * Requires beta access:
88
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
89
+ *
90
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
91
+ */
92
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
85
93
  };
86
94
 
87
95
  /**
@@ -82,6 +82,14 @@ export interface ConfirmationTokenCreateParams {
82
82
  * The customer's billing details.
83
83
  */
84
84
  billing_details?: PaymentMethodCreateParams.BillingDetails;
85
+
86
+ /**
87
+ * Requires beta access:
88
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
89
+ *
90
+ * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
91
+ */
92
+ allow_redisplay?: 'always' | 'limited' | 'unspecified';
85
93
  };
86
94
 
87
95
  /**
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
42
42
 
43
43
  stripe._registerWrapper({
44
44
  name: 'stripe-js',
45
- version: "3.1.0",
45
+ version: "3.2.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "3.1.0",
41
+ version: "3.2.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/pure.js CHANGED
@@ -58,7 +58,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
58
58
 
59
59
  stripe._registerWrapper({
60
60
  name: 'stripe-js',
61
- version: "3.1.0",
61
+ version: "3.2.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
package/dist/pure.mjs CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "3.1.0",
57
+ version: "3.2.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
@@ -904,6 +904,20 @@ export interface StripeElementsUpdateOptions {
904
904
  * @docs https://stripe.com/docs/payments/payment-methods/overview
905
905
  */
906
906
  paymentMethodTypes?: string[];
907
+
908
+ /**
909
+ * The Stripe account ID which is the business of record.
910
+ *
911
+ * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
912
+ */
913
+ onBehalfOf?: string;
914
+
915
+ /**
916
+ * The Stripe account ID which is the business of record.
917
+ *
918
+ * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
919
+ */
920
+ on_behalf_of?: string;
907
921
  }
908
922
 
909
923
  /*
@@ -904,6 +904,20 @@ export interface StripeElementsUpdateOptions {
904
904
  * @docs https://stripe.com/docs/payments/payment-methods/overview
905
905
  */
906
906
  paymentMethodTypes?: string[];
907
+
908
+ /**
909
+ * The Stripe account ID which is the business of record.
910
+ *
911
+ * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
912
+ */
913
+ onBehalfOf?: string;
914
+
915
+ /**
916
+ * The Stripe account ID which is the business of record.
917
+ *
918
+ * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
919
+ */
920
+ on_behalf_of?: string;
907
921
  }
908
922
 
909
923
  /*
@@ -1424,6 +1424,9 @@ export interface ConfirmPaymentData extends PaymentIntentConfirmParams {
1424
1424
  billing_details?: PaymentMethodCreateParams.BillingDetails;
1425
1425
 
1426
1426
  /**
1427
+ * Requires beta access:
1428
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
1429
+ *
1427
1430
  * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
1428
1431
  */
1429
1432
  allow_redisplay?: 'always' | 'limited' | 'unspecified';
@@ -1424,6 +1424,9 @@ export interface ConfirmPaymentData extends PaymentIntentConfirmParams {
1424
1424
  billing_details?: PaymentMethodCreateParams.BillingDetails;
1425
1425
 
1426
1426
  /**
1427
+ * Requires beta access:
1428
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
1429
+ *
1427
1430
  * Specifies if the PaymentMethod should be redisplayed when using the Saved Payment Method feature
1428
1431
  */
1429
1432
  allow_redisplay?: 'always' | 'limited' | 'unspecified';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",