stripe 8.178.0 → 8.182.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,31 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.182.0 - 2021-10-14
4
+ * [#1271](https://github.com/stripe/stripe-node/pull/1271) API Updates
5
+ * Change `Charge.payment_method_details.klarna.payment_method_category`, `Charge.payment_method_details.klarna.preferred_locale`, `Checkout.Session.customer_details.phone`, and `PaymentMethod.klarna.dob` to be required
6
+ * Add support for new value `klarna` on enum `CheckoutSessionCreateParams.payment_method_types[]`
7
+
8
+ ## 8.181.0 - 2021-10-11
9
+ * [#1269](https://github.com/stripe/stripe-node/pull/1269) API Updates
10
+ * Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna`
11
+ * Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type`
12
+ * Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod`
13
+ * Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type`
14
+ * Add support for new value `klarna` on enum `PaymentMethodCreateParams.type`
15
+ * Add support for new value `klarna` on enum `PaymentMethod.type`
16
+
17
+ ## 8.180.0 - 2021-10-11
18
+ * [#1266](https://github.com/stripe/stripe-node/pull/1266) API Updates
19
+ * Add support for `list_payment_methods` method on resource `Customer`
20
+
21
+ ## 8.179.0 - 2021-10-07
22
+ * [#1265](https://github.com/stripe/stripe-node/pull/1265) API Updates
23
+ * Add support for `phone_number_collection` on `CheckoutSessionCreateParams` and `Checkout.Session`
24
+ * Add support for `phone` on `Checkout.Session.customer_details`
25
+ * Change `PaymentMethodListParams.customer` to be optional
26
+ * Add support for new value `customer_id` on enums `RadarValueListCreateParams.item_type` and `Radar.ValueList.item_type`
27
+ * Add support for new value `bbpos_wisepos_e` on enums `TerminalReaderListParams.device_type` and `Terminal.Reader.device_type`
28
+
3
29
  ## 8.178.0 - 2021-09-29
4
30
  * [#1261](https://github.com/stripe/stripe-node/pull/1261) API Updates
5
31
  * Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.178.0
1
+ 8.182.0
@@ -39,6 +39,12 @@ module.exports = StripeResource.extend({
39
39
  path: '/{customer}/discount',
40
40
  }),
41
41
 
42
+ listPaymentMethods: stripeMethod({
43
+ method: 'GET',
44
+ path: '/{customer}/payment_methods',
45
+ methodType: 'list',
46
+ }),
47
+
42
48
  createBalanceTransaction: stripeMethod({
43
49
  method: 'POST',
44
50
  path: '/{customer}/balance_transactions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.178.0",
3
+ "version": "8.182.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -20,7 +20,7 @@
20
20
  "type": "git",
21
21
  "url": "git://github.com/stripe/stripe-node.git"
22
22
  },
23
- "bugs:": "https://github.com/stripe/stripe-node/issues",
23
+ "bugs": "https://github.com/stripe/stripe-node/issues",
24
24
  "engines": {
25
25
  "node": "^8.1 || >=10.*"
26
26
  },
@@ -1043,7 +1043,7 @@ declare module 'stripe' {
1043
1043
  documents?: AccountCreateParams.Documents;
1044
1044
 
1045
1045
  /**
1046
- * The email address of the account holder. This is only to make the account easier to identify to you. Stripe will never directly email Custom accounts.
1046
+ * The email address of the account holder. This is only to make the account easier to identify to you. Stripe only emails Custom accounts with your consent.
1047
1047
  */
1048
1048
  email?: string;
1049
1049
 
@@ -2084,7 +2084,7 @@ declare module 'stripe' {
2084
2084
  documents?: AccountUpdateParams.Documents;
2085
2085
 
2086
2086
  /**
2087
- * The email address of the account holder. This is only to make the account easier to identify to you. Stripe will never directly email Custom accounts.
2087
+ * The email address of the account holder. This is only to make the account easier to identify to you. Stripe only emails Custom accounts with your consent.
2088
2088
  */
2089
2089
  email?: string;
2090
2090
 
@@ -1404,7 +1404,19 @@ declare module 'stripe' {
1404
1404
  }
1405
1405
  }
1406
1406
 
1407
- interface Klarna {}
1407
+ interface Klarna {
1408
+ /**
1409
+ * The Klarna payment method used for this transaction.
1410
+ * Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
1411
+ */
1412
+ payment_method_category: string | null;
1413
+
1414
+ /**
1415
+ * Preferred language of the Klarna authorization page that the customer is redirected to.
1416
+ * Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `it-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
1417
+ */
1418
+ preferred_locale: string | null;
1419
+ }
1408
1420
 
1409
1421
  interface Multibanco {
1410
1422
  /**
@@ -147,6 +147,8 @@ declare module 'stripe' {
147
147
  */
148
148
  payment_status: Session.PaymentStatus;
149
149
 
150
+ phone_number_collection?: Session.PhoneNumberCollection;
151
+
150
152
  /**
151
153
  * The ID of the original expired Checkout Session that triggered the recovery flow.
152
154
  */
@@ -279,6 +281,11 @@ declare module 'stripe' {
279
281
  */
280
282
  email: string | null;
281
283
 
284
+ /**
285
+ * The customer's phone number at the time of checkout
286
+ */
287
+ phone: string | null;
288
+
282
289
  /**
283
290
  * The customer's tax exempt status at time of checkout.
284
291
  */
@@ -471,6 +478,13 @@ declare module 'stripe' {
471
478
 
472
479
  type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
473
480
 
481
+ interface PhoneNumberCollection {
482
+ /**
483
+ * Indicates whether phone number collection is enabled for the session
484
+ */
485
+ enabled: boolean;
486
+ }
487
+
474
488
  interface Shipping {
475
489
  address?: Stripe.Address;
476
490
 
@@ -954,6 +968,14 @@ declare module 'stripe' {
954
968
  */
955
969
  payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
956
970
 
971
+ /**
972
+ * Controls phone number collection settings for the session.
973
+ *
974
+ * We recommend that you review your privacy policy and check with your legal contacts
975
+ * before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/docs/payments/checkout/phone-numbers).
976
+ */
977
+ phone_number_collection?: SessionCreateParams.PhoneNumberCollection;
978
+
957
979
  /**
958
980
  * A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
959
981
  */
@@ -1539,12 +1561,20 @@ declare module 'stripe' {
1539
1561
  | 'giropay'
1540
1562
  | 'grabpay'
1541
1563
  | 'ideal'
1564
+ | 'klarna'
1542
1565
  | 'oxxo'
1543
1566
  | 'p24'
1544
1567
  | 'sepa_debit'
1545
1568
  | 'sofort'
1546
1569
  | 'wechat_pay';
1547
1570
 
1571
+ interface PhoneNumberCollection {
1572
+ /**
1573
+ * Set to `true` to enable phone number collection.
1574
+ */
1575
+ enabled: boolean;
1576
+ }
1577
+
1548
1578
  interface SetupIntentData {
1549
1579
  /**
1550
1580
  * An arbitrary string attached to the object. Often useful for displaying to users.
@@ -664,6 +664,42 @@ declare module 'stripe' {
664
664
 
665
665
  interface CustomerDeleteDiscountParams {}
666
666
 
667
+ interface CustomerListPaymentMethodsParams extends PaginationParams {
668
+ /**
669
+ * A required filter on the list, based on the object `type` field.
670
+ */
671
+ type: CustomerListPaymentMethodsParams.Type;
672
+
673
+ /**
674
+ * Specifies which fields in the response should be expanded.
675
+ */
676
+ expand?: Array<string>;
677
+ }
678
+
679
+ namespace CustomerListPaymentMethodsParams {
680
+ type Type =
681
+ | 'acss_debit'
682
+ | 'afterpay_clearpay'
683
+ | 'alipay'
684
+ | 'au_becs_debit'
685
+ | 'bacs_debit'
686
+ | 'bancontact'
687
+ | 'boleto'
688
+ | 'card'
689
+ | 'card_present'
690
+ | 'eps'
691
+ | 'fpx'
692
+ | 'giropay'
693
+ | 'grabpay'
694
+ | 'ideal'
695
+ | 'klarna'
696
+ | 'oxxo'
697
+ | 'p24'
698
+ | 'sepa_debit'
699
+ | 'sofort'
700
+ | 'wechat_pay';
701
+ }
702
+
667
703
  class CustomersResource {
668
704
  /**
669
705
  * Creates a new customer object.
@@ -735,6 +771,15 @@ declare module 'stripe' {
735
771
  options?: RequestOptions
736
772
  ): Promise<Stripe.Response<Stripe.DeletedDiscount>>;
737
773
 
774
+ /**
775
+ * Returns a list of PaymentMethods for a given Customer
776
+ */
777
+ listPaymentMethods(
778
+ id: string,
779
+ params: CustomerListPaymentMethodsParams,
780
+ options?: RequestOptions
781
+ ): ApiListPromise<Stripe.PaymentMethod>;
782
+
738
783
  /**
739
784
  * Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).
740
785
  */
@@ -509,6 +509,8 @@ declare module 'stripe' {
509
509
 
510
510
  ideal?: PaymentMethodOptions.Ideal;
511
511
 
512
+ klarna?: PaymentMethodOptions.Klarna;
513
+
512
514
  oxxo?: PaymentMethodOptions.Oxxo;
513
515
 
514
516
  p24?: PaymentMethodOptions.P24;
@@ -684,6 +686,13 @@ declare module 'stripe' {
684
686
 
685
687
  interface Ideal {}
686
688
 
689
+ interface Klarna {
690
+ /**
691
+ * Preferred locale of the Klarna checkout page that the customer is redirected to.
692
+ */
693
+ preferred_locale: string | null;
694
+ }
695
+
687
696
  interface Oxxo {
688
697
  /**
689
698
  * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1065,6 +1074,11 @@ declare module 'stripe' {
1065
1074
  */
1066
1075
  interac_present?: PaymentMethodData.InteracPresent;
1067
1076
 
1077
+ /**
1078
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1079
+ */
1080
+ klarna?: PaymentMethodData.Klarna;
1081
+
1068
1082
  /**
1069
1083
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1070
1084
  */
@@ -1290,6 +1304,32 @@ declare module 'stripe' {
1290
1304
 
1291
1305
  interface InteracPresent {}
1292
1306
 
1307
+ interface Klarna {
1308
+ /**
1309
+ * Customer's date of birth
1310
+ */
1311
+ dob?: Klarna.Dob;
1312
+ }
1313
+
1314
+ namespace Klarna {
1315
+ interface Dob {
1316
+ /**
1317
+ * The day of birth, between 1 and 31.
1318
+ */
1319
+ day: number;
1320
+
1321
+ /**
1322
+ * The month of birth, between 1 and 12.
1323
+ */
1324
+ month: number;
1325
+
1326
+ /**
1327
+ * The four-digit year of birth.
1328
+ */
1329
+ year: number;
1330
+ }
1331
+ }
1332
+
1293
1333
  interface Oxxo {}
1294
1334
 
1295
1335
  interface P24 {
@@ -1359,6 +1399,7 @@ declare module 'stripe' {
1359
1399
  | 'giropay'
1360
1400
  | 'grabpay'
1361
1401
  | 'ideal'
1402
+ | 'klarna'
1362
1403
  | 'oxxo'
1363
1404
  | 'p24'
1364
1405
  | 'sepa_debit'
@@ -1411,6 +1452,11 @@ declare module 'stripe' {
1411
1452
  */
1412
1453
  ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
1413
1454
 
1455
+ /**
1456
+ * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
1457
+ */
1458
+ klarna?: Stripe.Emptyable<PaymentMethodOptions.Klarna>;
1459
+
1414
1460
  /**
1415
1461
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
1416
1462
  */
@@ -1598,6 +1644,38 @@ declare module 'stripe' {
1598
1644
 
1599
1645
  interface Ideal {}
1600
1646
 
1647
+ interface Klarna {
1648
+ /**
1649
+ * Preferred language of the Klarna authorization page that the customer is redirected to
1650
+ */
1651
+ preferred_locale?: Klarna.PreferredLocale;
1652
+ }
1653
+
1654
+ namespace Klarna {
1655
+ type PreferredLocale =
1656
+ | 'da-DK'
1657
+ | 'de-AT'
1658
+ | 'de-DE'
1659
+ | 'en-AT'
1660
+ | 'en-DE'
1661
+ | 'en-DK'
1662
+ | 'en-FI'
1663
+ | 'en-GB'
1664
+ | 'en-NL'
1665
+ | 'en-NO'
1666
+ | 'en-SE'
1667
+ | 'en-US'
1668
+ | 'es-ES'
1669
+ | 'fi-FI'
1670
+ | 'fr-BE'
1671
+ | 'it-IT'
1672
+ | 'nb-NO'
1673
+ | 'nl-BE'
1674
+ | 'nl-NL'
1675
+ | 'sv-FI'
1676
+ | 'sv-SE';
1677
+ }
1678
+
1601
1679
  interface Oxxo {
1602
1680
  /**
1603
1681
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -1905,6 +1983,11 @@ declare module 'stripe' {
1905
1983
  */
1906
1984
  interac_present?: PaymentMethodData.InteracPresent;
1907
1985
 
1986
+ /**
1987
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
1988
+ */
1989
+ klarna?: PaymentMethodData.Klarna;
1990
+
1908
1991
  /**
1909
1992
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1910
1993
  */
@@ -2130,6 +2213,32 @@ declare module 'stripe' {
2130
2213
 
2131
2214
  interface InteracPresent {}
2132
2215
 
2216
+ interface Klarna {
2217
+ /**
2218
+ * Customer's date of birth
2219
+ */
2220
+ dob?: Klarna.Dob;
2221
+ }
2222
+
2223
+ namespace Klarna {
2224
+ interface Dob {
2225
+ /**
2226
+ * The day of birth, between 1 and 31.
2227
+ */
2228
+ day: number;
2229
+
2230
+ /**
2231
+ * The month of birth, between 1 and 12.
2232
+ */
2233
+ month: number;
2234
+
2235
+ /**
2236
+ * The four-digit year of birth.
2237
+ */
2238
+ year: number;
2239
+ }
2240
+ }
2241
+
2133
2242
  interface Oxxo {}
2134
2243
 
2135
2244
  interface P24 {
@@ -2199,6 +2308,7 @@ declare module 'stripe' {
2199
2308
  | 'giropay'
2200
2309
  | 'grabpay'
2201
2310
  | 'ideal'
2311
+ | 'klarna'
2202
2312
  | 'oxxo'
2203
2313
  | 'p24'
2204
2314
  | 'sepa_debit'
@@ -2251,6 +2361,11 @@ declare module 'stripe' {
2251
2361
  */
2252
2362
  ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
2253
2363
 
2364
+ /**
2365
+ * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
2366
+ */
2367
+ klarna?: Stripe.Emptyable<PaymentMethodOptions.Klarna>;
2368
+
2254
2369
  /**
2255
2370
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
2256
2371
  */
@@ -2438,6 +2553,38 @@ declare module 'stripe' {
2438
2553
 
2439
2554
  interface Ideal {}
2440
2555
 
2556
+ interface Klarna {
2557
+ /**
2558
+ * Preferred language of the Klarna authorization page that the customer is redirected to
2559
+ */
2560
+ preferred_locale?: Klarna.PreferredLocale;
2561
+ }
2562
+
2563
+ namespace Klarna {
2564
+ type PreferredLocale =
2565
+ | 'da-DK'
2566
+ | 'de-AT'
2567
+ | 'de-DE'
2568
+ | 'en-AT'
2569
+ | 'en-DE'
2570
+ | 'en-DK'
2571
+ | 'en-FI'
2572
+ | 'en-GB'
2573
+ | 'en-NL'
2574
+ | 'en-NO'
2575
+ | 'en-SE'
2576
+ | 'en-US'
2577
+ | 'es-ES'
2578
+ | 'fi-FI'
2579
+ | 'fr-BE'
2580
+ | 'it-IT'
2581
+ | 'nb-NO'
2582
+ | 'nl-BE'
2583
+ | 'nl-NL'
2584
+ | 'sv-FI'
2585
+ | 'sv-SE';
2586
+ }
2587
+
2441
2588
  interface Oxxo {
2442
2589
  /**
2443
2590
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -2859,6 +3006,11 @@ declare module 'stripe' {
2859
3006
  */
2860
3007
  interac_present?: PaymentMethodData.InteracPresent;
2861
3008
 
3009
+ /**
3010
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
3011
+ */
3012
+ klarna?: PaymentMethodData.Klarna;
3013
+
2862
3014
  /**
2863
3015
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2864
3016
  */
@@ -3084,6 +3236,32 @@ declare module 'stripe' {
3084
3236
 
3085
3237
  interface InteracPresent {}
3086
3238
 
3239
+ interface Klarna {
3240
+ /**
3241
+ * Customer's date of birth
3242
+ */
3243
+ dob?: Klarna.Dob;
3244
+ }
3245
+
3246
+ namespace Klarna {
3247
+ interface Dob {
3248
+ /**
3249
+ * The day of birth, between 1 and 31.
3250
+ */
3251
+ day: number;
3252
+
3253
+ /**
3254
+ * The month of birth, between 1 and 12.
3255
+ */
3256
+ month: number;
3257
+
3258
+ /**
3259
+ * The four-digit year of birth.
3260
+ */
3261
+ year: number;
3262
+ }
3263
+ }
3264
+
3087
3265
  interface Oxxo {}
3088
3266
 
3089
3267
  interface P24 {
@@ -3153,6 +3331,7 @@ declare module 'stripe' {
3153
3331
  | 'giropay'
3154
3332
  | 'grabpay'
3155
3333
  | 'ideal'
3334
+ | 'klarna'
3156
3335
  | 'oxxo'
3157
3336
  | 'p24'
3158
3337
  | 'sepa_debit'
@@ -3205,6 +3384,11 @@ declare module 'stripe' {
3205
3384
  */
3206
3385
  ideal?: Stripe.Emptyable<PaymentMethodOptions.Ideal>;
3207
3386
 
3387
+ /**
3388
+ * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
3389
+ */
3390
+ klarna?: Stripe.Emptyable<PaymentMethodOptions.Klarna>;
3391
+
3208
3392
  /**
3209
3393
  * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
3210
3394
  */
@@ -3392,6 +3576,38 @@ declare module 'stripe' {
3392
3576
 
3393
3577
  interface Ideal {}
3394
3578
 
3579
+ interface Klarna {
3580
+ /**
3581
+ * Preferred language of the Klarna authorization page that the customer is redirected to
3582
+ */
3583
+ preferred_locale?: Klarna.PreferredLocale;
3584
+ }
3585
+
3586
+ namespace Klarna {
3587
+ type PreferredLocale =
3588
+ | 'da-DK'
3589
+ | 'de-AT'
3590
+ | 'de-DE'
3591
+ | 'en-AT'
3592
+ | 'en-DE'
3593
+ | 'en-DK'
3594
+ | 'en-FI'
3595
+ | 'en-GB'
3596
+ | 'en-NL'
3597
+ | 'en-NO'
3598
+ | 'en-SE'
3599
+ | 'en-US'
3600
+ | 'es-ES'
3601
+ | 'fi-FI'
3602
+ | 'fr-BE'
3603
+ | 'it-IT'
3604
+ | 'nb-NO'
3605
+ | 'nl-BE'
3606
+ | 'nl-NL'
3607
+ | 'sv-FI'
3608
+ | 'sv-SE';
3609
+ }
3610
+
3395
3611
  interface Oxxo {
3396
3612
  /**
3397
3613
  * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
@@ -58,6 +58,8 @@ declare module 'stripe' {
58
58
 
59
59
  interac_present?: PaymentMethod.InteracPresent;
60
60
 
61
+ klarna?: PaymentMethod.Klarna;
62
+
61
63
  /**
62
64
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
63
65
  */
@@ -507,6 +509,32 @@ declare module 'stripe' {
507
509
 
508
510
  interface InteracPresent {}
509
511
 
512
+ interface Klarna {
513
+ /**
514
+ * The customer's date of birth, if provided.
515
+ */
516
+ dob: Klarna.Dob | null;
517
+ }
518
+
519
+ namespace Klarna {
520
+ interface Dob {
521
+ /**
522
+ * The day of birth, between 1 and 31.
523
+ */
524
+ day: number | null;
525
+
526
+ /**
527
+ * The month of birth, between 1 and 12.
528
+ */
529
+ month: number | null;
530
+
531
+ /**
532
+ * The four-digit year of birth.
533
+ */
534
+ year: number | null;
535
+ }
536
+ }
537
+
510
538
  interface Oxxo {}
511
539
 
512
540
  interface P24 {
@@ -614,6 +642,7 @@ declare module 'stripe' {
614
642
  | 'grabpay'
615
643
  | 'ideal'
616
644
  | 'interac_present'
645
+ | 'klarna'
617
646
  | 'oxxo'
618
647
  | 'p24'
619
648
  | 'sepa_debit'
@@ -709,6 +738,11 @@ declare module 'stripe' {
709
738
  */
710
739
  interac_present?: PaymentMethodCreateParams.InteracPresent;
711
740
 
741
+ /**
742
+ * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
743
+ */
744
+ klarna?: PaymentMethodCreateParams.Klarna;
745
+
712
746
  /**
713
747
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
714
748
  */
@@ -965,6 +999,32 @@ declare module 'stripe' {
965
999
 
966
1000
  interface InteracPresent {}
967
1001
 
1002
+ interface Klarna {
1003
+ /**
1004
+ * Customer's date of birth
1005
+ */
1006
+ dob?: Klarna.Dob;
1007
+ }
1008
+
1009
+ namespace Klarna {
1010
+ interface Dob {
1011
+ /**
1012
+ * The day of birth, between 1 and 31.
1013
+ */
1014
+ day: number;
1015
+
1016
+ /**
1017
+ * The month of birth, between 1 and 12.
1018
+ */
1019
+ month: number;
1020
+
1021
+ /**
1022
+ * The four-digit year of birth.
1023
+ */
1024
+ year: number;
1025
+ }
1026
+ }
1027
+
968
1028
  interface Oxxo {}
969
1029
 
970
1030
  interface P24 {
@@ -1035,6 +1095,7 @@ declare module 'stripe' {
1035
1095
  | 'giropay'
1036
1096
  | 'grabpay'
1037
1097
  | 'ideal'
1098
+ | 'klarna'
1038
1099
  | 'oxxo'
1039
1100
  | 'p24'
1040
1101
  | 'sepa_debit'
@@ -1145,14 +1206,14 @@ declare module 'stripe' {
1145
1206
 
1146
1207
  interface PaymentMethodListParams extends PaginationParams {
1147
1208
  /**
1148
- * The ID of the customer whose PaymentMethods will be retrieved.
1209
+ * A required filter on the list, based on the object `type` field.
1149
1210
  */
1150
- customer: string;
1211
+ type: PaymentMethodListParams.Type;
1151
1212
 
1152
1213
  /**
1153
- * A required filter on the list, based on the object `type` field.
1214
+ * The ID of the customer whose PaymentMethods will be retrieved.
1154
1215
  */
1155
- type: PaymentMethodListParams.Type;
1216
+ customer?: string;
1156
1217
 
1157
1218
  /**
1158
1219
  * Specifies which fields in the response should be expanded.
@@ -1176,6 +1237,7 @@ declare module 'stripe' {
1176
1237
  | 'giropay'
1177
1238
  | 'grabpay'
1178
1239
  | 'ideal'
1240
+ | 'klarna'
1179
1241
  | 'oxxo'
1180
1242
  | 'p24'
1181
1243
  | 'sepa_debit'
@@ -35,7 +35,7 @@ declare module 'stripe' {
35
35
  deleted?: void;
36
36
 
37
37
  /**
38
- * The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, or `case_sensitive_string`.
38
+ * The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`.
39
39
  */
40
40
  item_type: ValueList.ItemType;
41
41
 
@@ -66,6 +66,7 @@ declare module 'stripe' {
66
66
  | 'card_fingerprint'
67
67
  | 'case_sensitive_string'
68
68
  | 'country'
69
+ | 'customer_id'
69
70
  | 'email'
70
71
  | 'ip_address'
71
72
  | 'string';
@@ -108,7 +109,7 @@ declare module 'stripe' {
108
109
  expand?: Array<string>;
109
110
 
110
111
  /**
111
- * Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, or `case_sensitive_string`. Use `string` if the item type is unknown or mixed.
112
+ * Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`. Use `string` if the item type is unknown or mixed.
112
113
  */
113
114
  item_type?: ValueListCreateParams.ItemType;
114
115
 
@@ -124,6 +125,7 @@ declare module 'stripe' {
124
125
  | 'card_fingerprint'
125
126
  | 'case_sensitive_string'
126
127
  | 'country'
128
+ | 'customer_id'
127
129
  | 'email'
128
130
  | 'ip_address'
129
131
  | 'string';
@@ -25,7 +25,7 @@ declare module 'stripe' {
25
25
  device_sw_version: string | null;
26
26
 
27
27
  /**
28
- * Type of reader, one of `bbpos_chipper2x` or `verifone_P400`.
28
+ * Type of reader, one of `bbpos_chipper2x`, `bbpos_wisepos_e`, or `verifone_P400`.
29
29
  */
30
30
  device_type: Reader.DeviceType;
31
31
 
@@ -66,7 +66,10 @@ declare module 'stripe' {
66
66
  }
67
67
 
68
68
  namespace Reader {
69
- type DeviceType = 'bbpos_chipper2x' | 'verifone_P400';
69
+ type DeviceType =
70
+ | 'bbpos_chipper2x'
71
+ | 'bbpos_wisepos_e'
72
+ | 'verifone_P400';
70
73
  }
71
74
 
72
75
  /**
@@ -163,7 +166,10 @@ declare module 'stripe' {
163
166
  }
164
167
 
165
168
  namespace ReaderListParams {
166
- type DeviceType = 'bbpos_chipper2x' | 'verifone_P400';
169
+ type DeviceType =
170
+ | 'bbpos_chipper2x'
171
+ | 'bbpos_wisepos_e'
172
+ | 'verifone_P400';
167
173
 
168
174
  type Status = 'offline' | 'online';
169
175
  }