stripe 8.197.0 → 8.198.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,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.198.0 - 2022-01-19
4
+ * [#1331](https://github.com/stripe/stripe-node/pull/1331) API Updates
5
+ * Change type of `Charge.status` from `string` to `enum('failed'|'pending'|'succeeded')`
6
+ * Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
7
+ * Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code`
8
+
3
9
  ## 8.197.0 - 2022-01-13
4
10
  * [#1329](https://github.com/stripe/stripe-node/pull/1329) API Updates
5
11
  * Add support for `paid_out_of_band` on `Invoice`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.197.0
1
+ 8.198.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.197.0",
3
+ "version": "8.198.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -230,7 +230,7 @@ declare module 'stripe' {
230
230
  /**
231
231
  * The status of the payment is either `succeeded`, `pending`, or `failed`.
232
232
  */
233
- status: string;
233
+ status: Charge.Status;
234
234
 
235
235
  /**
236
236
  * ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter).
@@ -1641,6 +1641,8 @@ declare module 'stripe' {
1641
1641
  tracking_number?: string | null;
1642
1642
  }
1643
1643
 
1644
+ type Status = 'failed' | 'pending' | 'succeeded';
1645
+
1644
1646
  interface TransferData {
1645
1647
  /**
1646
1648
  * The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
@@ -462,6 +462,16 @@ declare module 'stripe' {
462
462
  * The base64 image data for a pre-generated QR code
463
463
  */
464
464
  image_data_url: string;
465
+
466
+ /**
467
+ * The image_url_png string used to render QR code, can be used as <img src="…" />
468
+ */
469
+ image_url_png: string;
470
+
471
+ /**
472
+ * The image_url_svg string used to render QR code, can be used as <img src="…" />
473
+ */
474
+ image_url_svg: string;
465
475
  }
466
476
 
467
477
  interface WechatPayRedirectToAndroidApp {
@@ -518,6 +528,8 @@ declare module 'stripe' {
518
528
 
519
529
  au_becs_debit?: PaymentMethodOptions.AuBecsDebit;
520
530
 
531
+ bacs_debit?: PaymentMethodOptions.BacsDebit;
532
+
521
533
  bancontact?: PaymentMethodOptions.Bancontact;
522
534
 
523
535
  boleto?: PaymentMethodOptions.Boleto;
@@ -526,6 +538,8 @@ declare module 'stripe' {
526
538
 
527
539
  card_present?: PaymentMethodOptions.CardPresent;
528
540
 
541
+ eps?: PaymentMethodOptions.Eps;
542
+
529
543
  fpx?: PaymentMethodOptions.Fpx;
530
544
 
531
545
  giropay?: PaymentMethodOptions.Giropay;
@@ -603,6 +617,8 @@ declare module 'stripe' {
603
617
 
604
618
  interface AuBecsDebit {}
605
619
 
620
+ interface BacsDebit {}
621
+
606
622
  interface Bancontact {
607
623
  /**
608
624
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -724,6 +740,8 @@ declare module 'stripe' {
724
740
 
725
741
  interface CardPresent {}
726
742
 
743
+ interface Eps {}
744
+
727
745
  interface Fpx {}
728
746
 
729
747
  interface Giropay {}
@@ -1506,6 +1524,11 @@ declare module 'stripe' {
1506
1524
  */
1507
1525
  au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;
1508
1526
 
1527
+ /**
1528
+ * If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
1529
+ */
1530
+ bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;
1531
+
1509
1532
  /**
1510
1533
  * If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
1511
1534
  */
@@ -1526,6 +1549,11 @@ declare module 'stripe' {
1526
1549
  */
1527
1550
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
1528
1551
 
1552
+ /**
1553
+ * If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
1554
+ */
1555
+ eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;
1556
+
1529
1557
  /**
1530
1558
  * If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
1531
1559
  */
@@ -1641,6 +1669,8 @@ declare module 'stripe' {
1641
1669
 
1642
1670
  interface AuBecsDebit {}
1643
1671
 
1672
+ interface BacsDebit {}
1673
+
1644
1674
  interface Bancontact {
1645
1675
  /**
1646
1676
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -1756,6 +1786,8 @@ declare module 'stripe' {
1756
1786
 
1757
1787
  interface CardPresent {}
1758
1788
 
1789
+ interface Eps {}
1790
+
1759
1791
  interface Fpx {}
1760
1792
 
1761
1793
  interface Giropay {}
@@ -2471,6 +2503,11 @@ declare module 'stripe' {
2471
2503
  */
2472
2504
  au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;
2473
2505
 
2506
+ /**
2507
+ * If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
2508
+ */
2509
+ bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;
2510
+
2474
2511
  /**
2475
2512
  * If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
2476
2513
  */
@@ -2491,6 +2528,11 @@ declare module 'stripe' {
2491
2528
  */
2492
2529
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
2493
2530
 
2531
+ /**
2532
+ * If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
2533
+ */
2534
+ eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;
2535
+
2494
2536
  /**
2495
2537
  * If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
2496
2538
  */
@@ -2606,6 +2648,8 @@ declare module 'stripe' {
2606
2648
 
2607
2649
  interface AuBecsDebit {}
2608
2650
 
2651
+ interface BacsDebit {}
2652
+
2609
2653
  interface Bancontact {
2610
2654
  /**
2611
2655
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -2721,6 +2765,8 @@ declare module 'stripe' {
2721
2765
 
2722
2766
  interface CardPresent {}
2723
2767
 
2768
+ interface Eps {}
2769
+
2724
2770
  interface Fpx {}
2725
2771
 
2726
2772
  interface Giropay {}
@@ -3550,6 +3596,11 @@ declare module 'stripe' {
3550
3596
  */
3551
3597
  au_becs_debit?: Stripe.Emptyable<PaymentMethodOptions.AuBecsDebit>;
3552
3598
 
3599
+ /**
3600
+ * If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
3601
+ */
3602
+ bacs_debit?: Stripe.Emptyable<PaymentMethodOptions.BacsDebit>;
3603
+
3553
3604
  /**
3554
3605
  * If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
3555
3606
  */
@@ -3570,6 +3621,11 @@ declare module 'stripe' {
3570
3621
  */
3571
3622
  card_present?: Stripe.Emptyable<PaymentMethodOptions.CardPresent>;
3572
3623
 
3624
+ /**
3625
+ * If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
3626
+ */
3627
+ eps?: Stripe.Emptyable<PaymentMethodOptions.Eps>;
3628
+
3573
3629
  /**
3574
3630
  * If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
3575
3631
  */
@@ -3685,6 +3741,8 @@ declare module 'stripe' {
3685
3741
 
3686
3742
  interface AuBecsDebit {}
3687
3743
 
3744
+ interface BacsDebit {}
3745
+
3688
3746
  interface Bancontact {
3689
3747
  /**
3690
3748
  * Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -3800,6 +3858,8 @@ declare module 'stripe' {
3800
3858
 
3801
3859
  interface CardPresent {}
3802
3860
 
3861
+ interface Eps {}
3862
+
3803
3863
  interface Fpx {}
3804
3864
 
3805
3865
  interface Giropay {}