@stripe/stripe-js 9.8.0 → 9.9.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/README.md CHANGED
@@ -171,5 +171,6 @@ The `loadStripe.setLoadParameters` function is only available when importing
171
171
 
172
172
  ## Contributing
173
173
 
174
- If you would like to contribute to Stripe.js, please make sure to read our
175
- [contributor guidelines](CONTRIBUTING.md).
174
+ This project is maintained by Stripe and does not accept external pull requests.
175
+ If you have feedback or ideas, please
176
+ [open an issue](https://github.com/stripe/stripe-js/issues/new/choose).
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "9.8.0",
74
+ version: "9.9.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.9.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "9.8.0",
70
+ version: "9.9.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.9.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "9.8.0",
74
+ version: "9.9.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.9.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "9.8.0",
70
+ version: "9.9.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.9.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  var stripe = maybeStripe.apply(undefined, args);
@@ -170,7 +170,6 @@ export type StripeCheckoutLineItem = {
170
170
  recurring: {
171
171
  interval: StripeCheckoutBillingInterval;
172
172
  intervalCount: number;
173
- isProrated: boolean;
174
173
  usageType: 'metered' | 'licensed';
175
174
  } | null;
176
175
  adjustableQuantity: StripeCheckoutAdjustableQuantity | null;
@@ -180,6 +179,7 @@ export type StripeCheckoutLineItem = {
180
179
  export type StripeCheckoutRecurring = {
181
180
  interval: StripeCheckoutBillingInterval;
182
181
  intervalCount: number;
182
+ isProrated: boolean;
183
183
  dueNext: StripeCheckoutDueNext;
184
184
  trial: StripeCheckoutTrial | null;
185
185
  };
@@ -170,7 +170,6 @@ export type StripeCheckoutLineItem = {
170
170
  recurring: {
171
171
  interval: StripeCheckoutBillingInterval;
172
172
  intervalCount: number;
173
- isProrated: boolean;
174
173
  usageType: 'metered' | 'licensed';
175
174
  } | null;
176
175
  adjustableQuantity: StripeCheckoutAdjustableQuantity | null;
@@ -180,6 +179,7 @@ export type StripeCheckoutLineItem = {
180
179
  export type StripeCheckoutRecurring = {
181
180
  interval: StripeCheckoutBillingInterval;
182
181
  intervalCount: number;
182
+ isProrated: boolean;
183
183
  dueNext: StripeCheckoutDueNext;
184
184
  trial: StripeCheckoutTrial | null;
185
185
  };
@@ -196,26 +196,118 @@ export interface DefaultValuesOption {
196
196
 
197
197
  export type FieldOption = 'auto' | 'never';
198
198
 
199
- export interface FieldsOption {
200
- billingDetails?:
201
- | FieldOption
202
- | {
203
- name?: FieldOption;
204
- email?: FieldOption;
205
- phone?: FieldOption;
206
- address?:
207
- | FieldOption
208
- | 'if_required'
209
- | {
210
- country?: FieldOption;
211
- postalCode?: FieldOption;
212
- state?: FieldOption;
213
- city?: FieldOption;
214
- line1?: FieldOption;
215
- line2?: FieldOption;
216
- };
217
- };
218
- }
199
+ /**
200
+ * Requires beta access:
201
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
202
+ */
203
+ export type FieldOptionWithAlways = FieldOption | 'always';
204
+
205
+ export type BillingDetailsFieldsOption =
206
+ | FieldOption
207
+ | {
208
+ name?: FieldOptionWithAlways;
209
+ email?: FieldOption;
210
+ phone?: FieldOption;
211
+ address?:
212
+ | FieldOption
213
+ | 'if_required'
214
+ | {
215
+ country?: FieldOption;
216
+ postalCode?: FieldOption;
217
+ state?: FieldOption;
218
+ city?: FieldOption;
219
+ line1?: FieldOption;
220
+ line2?: FieldOption;
221
+ };
222
+ };
223
+
224
+ export type PaymentElementPaymentMethodType =
225
+ | 'acss_debit'
226
+ | 'affirm'
227
+ | 'afterpay_clearpay'
228
+ | 'alipay'
229
+ | 'alma'
230
+ | 'amazon_pay'
231
+ | 'apple_pay'
232
+ | 'au_becs_debit'
233
+ | 'bacs_debit'
234
+ | 'bancontact'
235
+ | 'billie'
236
+ | 'bizum'
237
+ | 'blik'
238
+ | 'boleto'
239
+ | 'capchase_pay'
240
+ | 'card'
241
+ | 'cashapp'
242
+ | 'crypto'
243
+ | 'customer_balance'
244
+ | 'eps'
245
+ | 'fpx'
246
+ | 'gcash'
247
+ | 'giropay'
248
+ | 'google_pay'
249
+ | 'grabpay'
250
+ | 'gopay'
251
+ | 'id_bank_transfer'
252
+ | 'ideal'
253
+ | 'kakao_pay'
254
+ | 'klarna'
255
+ | 'konbini'
256
+ | 'kr_card'
257
+ | 'kr_market'
258
+ | 'kriya'
259
+ | 'link'
260
+ | 'mb_way'
261
+ | 'mobilepay'
262
+ | 'momo'
263
+ | 'mondu'
264
+ | 'multibanco'
265
+ | 'naver_pay'
266
+ | 'ng_bank'
267
+ | 'ng_bank_transfer'
268
+ | 'ng_card'
269
+ | 'ng_market'
270
+ | 'ng_ussd'
271
+ | 'ng_wallet'
272
+ | 'nz_bank_account'
273
+ | 'oxxo'
274
+ | 'p24'
275
+ | 'pay_by_bank'
276
+ | 'payco'
277
+ | 'paynow'
278
+ | 'paypay'
279
+ | 'paypal'
280
+ | 'payto'
281
+ | 'pix'
282
+ | 'promptpay'
283
+ | 'qris'
284
+ | 'rechnung'
285
+ | 'revolut_pay'
286
+ | 'satispay'
287
+ | 'samsung_pay'
288
+ | 'scalapay'
289
+ | 'sepa_debit'
290
+ | 'sequra'
291
+ | 'shopeepay'
292
+ | 'sofort'
293
+ | 'south_korea_market'
294
+ | 'sunbit'
295
+ | 'swish'
296
+ | 'twint'
297
+ | 'upi'
298
+ | 'vipps'
299
+ | 'us_bank_account'
300
+ | 'wero'
301
+ | 'wechat_pay'
302
+ | 'zip';
303
+
304
+ export type FieldsOption = {
305
+ billingDetails?: BillingDetailsFieldsOption;
306
+ } & {
307
+ [K in PaymentElementPaymentMethodType]?: {
308
+ billingDetails?: BillingDetailsFieldsOption;
309
+ };
310
+ };
219
311
 
220
312
  export type TermOption = 'auto' | 'always' | 'never';
221
313
 
@@ -196,26 +196,118 @@ export interface DefaultValuesOption {
196
196
 
197
197
  export type FieldOption = 'auto' | 'never';
198
198
 
199
- export interface FieldsOption {
200
- billingDetails?:
201
- | FieldOption
202
- | {
203
- name?: FieldOption;
204
- email?: FieldOption;
205
- phone?: FieldOption;
206
- address?:
207
- | FieldOption
208
- | 'if_required'
209
- | {
210
- country?: FieldOption;
211
- postalCode?: FieldOption;
212
- state?: FieldOption;
213
- city?: FieldOption;
214
- line1?: FieldOption;
215
- line2?: FieldOption;
216
- };
217
- };
218
- }
199
+ /**
200
+ * Requires beta access:
201
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
202
+ */
203
+ export type FieldOptionWithAlways = FieldOption | 'always';
204
+
205
+ export type BillingDetailsFieldsOption =
206
+ | FieldOption
207
+ | {
208
+ name?: FieldOptionWithAlways;
209
+ email?: FieldOption;
210
+ phone?: FieldOption;
211
+ address?:
212
+ | FieldOption
213
+ | 'if_required'
214
+ | {
215
+ country?: FieldOption;
216
+ postalCode?: FieldOption;
217
+ state?: FieldOption;
218
+ city?: FieldOption;
219
+ line1?: FieldOption;
220
+ line2?: FieldOption;
221
+ };
222
+ };
223
+
224
+ export type PaymentElementPaymentMethodType =
225
+ | 'acss_debit'
226
+ | 'affirm'
227
+ | 'afterpay_clearpay'
228
+ | 'alipay'
229
+ | 'alma'
230
+ | 'amazon_pay'
231
+ | 'apple_pay'
232
+ | 'au_becs_debit'
233
+ | 'bacs_debit'
234
+ | 'bancontact'
235
+ | 'billie'
236
+ | 'bizum'
237
+ | 'blik'
238
+ | 'boleto'
239
+ | 'capchase_pay'
240
+ | 'card'
241
+ | 'cashapp'
242
+ | 'crypto'
243
+ | 'customer_balance'
244
+ | 'eps'
245
+ | 'fpx'
246
+ | 'gcash'
247
+ | 'giropay'
248
+ | 'google_pay'
249
+ | 'grabpay'
250
+ | 'gopay'
251
+ | 'id_bank_transfer'
252
+ | 'ideal'
253
+ | 'kakao_pay'
254
+ | 'klarna'
255
+ | 'konbini'
256
+ | 'kr_card'
257
+ | 'kr_market'
258
+ | 'kriya'
259
+ | 'link'
260
+ | 'mb_way'
261
+ | 'mobilepay'
262
+ | 'momo'
263
+ | 'mondu'
264
+ | 'multibanco'
265
+ | 'naver_pay'
266
+ | 'ng_bank'
267
+ | 'ng_bank_transfer'
268
+ | 'ng_card'
269
+ | 'ng_market'
270
+ | 'ng_ussd'
271
+ | 'ng_wallet'
272
+ | 'nz_bank_account'
273
+ | 'oxxo'
274
+ | 'p24'
275
+ | 'pay_by_bank'
276
+ | 'payco'
277
+ | 'paynow'
278
+ | 'paypay'
279
+ | 'paypal'
280
+ | 'payto'
281
+ | 'pix'
282
+ | 'promptpay'
283
+ | 'qris'
284
+ | 'rechnung'
285
+ | 'revolut_pay'
286
+ | 'satispay'
287
+ | 'samsung_pay'
288
+ | 'scalapay'
289
+ | 'sepa_debit'
290
+ | 'sequra'
291
+ | 'shopeepay'
292
+ | 'sofort'
293
+ | 'south_korea_market'
294
+ | 'sunbit'
295
+ | 'swish'
296
+ | 'twint'
297
+ | 'upi'
298
+ | 'vipps'
299
+ | 'us_bank_account'
300
+ | 'wero'
301
+ | 'wechat_pay'
302
+ | 'zip';
303
+
304
+ export type FieldsOption = {
305
+ billingDetails?: BillingDetailsFieldsOption;
306
+ } & {
307
+ [K in PaymentElementPaymentMethodType]?: {
308
+ billingDetails?: BillingDetailsFieldsOption;
309
+ };
310
+ };
219
311
 
220
312
  export type TermOption = 'auto' | 'always' | 'never';
221
313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "9.8.0",
3
+ "version": "9.9.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",