@stripe/stripe-js 4.5.0 → 4.7.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.
@@ -131,17 +131,25 @@ export namespace SetupIntent {
131
131
  }
132
132
 
133
133
  export interface NextAction {
134
- redirect_to_url?: NextAction.RedirectToUrl;
135
-
136
134
  /**
137
- * Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
135
+ * Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, or `verify_with_microdeposits`.
138
136
  */
139
137
  type: string;
140
138
 
139
+ /**
140
+ * Contains instructions for authenticating a payment by redirecting your customer to another page or application.
141
+ */
142
+ redirect_to_url?: NextAction.RedirectToUrl;
143
+
141
144
  /**
142
145
  * When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
143
146
  */
144
147
  use_stripe_sdk?: NextAction.UseStripeSdk;
148
+
149
+ /**
150
+ * Contains details describing microdeposits verification flow.
151
+ */
152
+ verify_with_microdeposits?: NextAction.VerifyWithMicrodeposits;
145
153
  }
146
154
 
147
155
  export namespace NextAction {
@@ -158,6 +166,23 @@ export namespace SetupIntent {
158
166
  }
159
167
 
160
168
  export interface UseStripeSdk {}
169
+
170
+ export interface VerifyWithMicrodeposits {
171
+ /**
172
+ * The timestamp when the microdeposits are expected to land.
173
+ */
174
+ arrival_date: number;
175
+
176
+ /**
177
+ * The URL for the hosted verification page, which allows customers to verify their bank account.
178
+ */
179
+ hosted_verification_url: string;
180
+
181
+ /**
182
+ * The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
183
+ */
184
+ microdeposit_type: string | null;
185
+ }
161
186
  }
162
187
 
163
188
  export type Status =
@@ -131,17 +131,25 @@ export namespace SetupIntent {
131
131
  }
132
132
 
133
133
  export interface NextAction {
134
- redirect_to_url?: NextAction.RedirectToUrl;
135
-
136
134
  /**
137
- * Type of the next action to perform, one of `redirect_to_url` or `use_stripe_sdk`.
135
+ * Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk`, or `verify_with_microdeposits`.
138
136
  */
139
137
  type: string;
140
138
 
139
+ /**
140
+ * Contains instructions for authenticating a payment by redirecting your customer to another page or application.
141
+ */
142
+ redirect_to_url?: NextAction.RedirectToUrl;
143
+
141
144
  /**
142
145
  * When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
143
146
  */
144
147
  use_stripe_sdk?: NextAction.UseStripeSdk;
148
+
149
+ /**
150
+ * Contains details describing microdeposits verification flow.
151
+ */
152
+ verify_with_microdeposits?: NextAction.VerifyWithMicrodeposits;
145
153
  }
146
154
 
147
155
  export namespace NextAction {
@@ -158,6 +166,23 @@ export namespace SetupIntent {
158
166
  }
159
167
 
160
168
  export interface UseStripeSdk {}
169
+
170
+ export interface VerifyWithMicrodeposits {
171
+ /**
172
+ * The timestamp when the microdeposits are expected to land.
173
+ */
174
+ arrival_date: number;
175
+
176
+ /**
177
+ * The URL for the hosted verification page, which allows customers to verify their bank account.
178
+ */
179
+ hosted_verification_url: string;
180
+
181
+ /**
182
+ * The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
183
+ */
184
+ microdeposit_type: string | null;
185
+ }
161
186
  }
162
187
 
163
188
  export type Status =
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: "4.4.0",
45
+ version: "4.6.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: "4.4.0",
41
+ version: "4.6.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: "4.4.0",
61
+ version: "4.6.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: "4.4.0",
57
+ version: "4.6.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
@@ -900,6 +900,11 @@ export interface StripeElementsUpdateOptions {
900
900
  * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
901
901
  */
902
902
  on_behalf_of?: string;
903
+
904
+ /**
905
+ * Display saved PaymentMethods and Customer information.
906
+ */
907
+ customerSessionClientSecret?: string;
903
908
  }
904
909
 
905
910
  /*
@@ -900,6 +900,11 @@ export interface StripeElementsUpdateOptions {
900
900
  * @docs https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-onBehalfOf
901
901
  */
902
902
  on_behalf_of?: string;
903
+
904
+ /**
905
+ * Display saved PaymentMethods and Customer information.
906
+ */
907
+ customerSessionClientSecret?: string;
903
908
  }
904
909
 
905
910
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "4.5.0",
3
+ "version": "4.7.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",