@stripe/stripe-js 1.27.0 → 1.28.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/dist/pure.esm.js CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "1.27.0",
57
+ version: "1.28.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
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: "1.27.0",
61
+ version: "1.28.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "1.27.0",
41
+ version: "1.28.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/stripe.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: "1.27.0",
45
+ version: "1.28.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "main": "dist/stripe.js",
6
6
  "module": "dist/stripe.esm.js",
@@ -77,9 +77,9 @@ export interface PaymentIntent {
77
77
  next_action: PaymentIntent.NextAction | null;
78
78
 
79
79
  /**
80
- * ID of the payment method used in this PaymentIntent.
80
+ * ID of the payment method used in this PaymentIntent, or the PaymentMethod itself if this field is expanded.
81
81
  */
82
- payment_method: string | null;
82
+ payment_method: string | null | PaymentMethod;
83
83
 
84
84
  /**
85
85
  * The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
@@ -52,9 +52,9 @@ export interface SetupIntent {
52
52
  next_action: SetupIntent.NextAction | null;
53
53
 
54
54
  /**
55
- * ID of the payment method used with this SetupIntent.
55
+ * ID of the payment method used with this SetupIntent, or the PaymentMethod itself if this field is expanded.
56
56
  */
57
- payment_method: string | null;
57
+ payment_method: string | null | PaymentMethod;
58
58
 
59
59
  /**
60
60
  * The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
@@ -40,6 +40,12 @@ export interface StripeElements {
40
40
  */
41
41
  update(options: StripeElementsUpdateOptions): void;
42
42
 
43
+ /**
44
+ * Fetches updates from the associated PaymentIntent or SetupIntent on an existing
45
+ * instance of Elements, and reflects these updates in the Payment Element.
46
+ */
47
+ fetchUpdates(): Promise<{error?: {message: string; status?: string}}>;
48
+
43
49
  /////////////////////////////
44
50
  /// affirmMessage
45
51
  /////////////////////////////
@@ -1303,6 +1303,11 @@ export interface ConfirmPaymentData extends PaymentIntentConfirmParams {
1303
1303
  */
1304
1304
  billing_details?: PaymentMethodCreateParams.BillingDetails;
1305
1305
  };
1306
+
1307
+ /**
1308
+ * Specifies which fields in the response should be expanded.
1309
+ */
1310
+ expand?: Array<string>;
1306
1311
  }
1307
1312
 
1308
1313
  /**
@@ -1325,4 +1330,9 @@ export interface CollectBankAccountForPaymentOptions {
1325
1330
  clientSecret: string;
1326
1331
 
1327
1332
  params: CollectBankAccountParams;
1333
+
1334
+ /**
1335
+ * Specifies which fields in the response should be expanded.
1336
+ */
1337
+ expand?: Array<string>;
1328
1338
  }
@@ -210,4 +210,9 @@ export interface CollectBankAccountForSetupOptions {
210
210
  clientSecret: string;
211
211
 
212
212
  params: CollectBankAccountParams;
213
+
214
+ /**
215
+ * Specifies which fields in the response should be expanded.
216
+ */
217
+ expand?: Array<string>;
213
218
  }