stripe 9.0.0 → 9.3.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/VERSION +1 -1
  3. package/lib/resources/Apps/Secrets.js +31 -0
  4. package/lib/resources/Customers.js +5 -0
  5. package/lib/resources/FinancialConnections/Accounts.js +12 -0
  6. package/lib/resources/TestHelpers/Treasury/InboundTransfers.js +25 -0
  7. package/lib/resources/TestHelpers/Treasury/OutboundPayments.js +25 -0
  8. package/lib/resources/TestHelpers/Treasury/OutboundTransfers.js +25 -0
  9. package/lib/resources/TestHelpers/Treasury/ReceivedCredits.js +15 -0
  10. package/lib/resources/TestHelpers/Treasury/ReceivedDebits.js +15 -0
  11. package/lib/resources/Treasury/CreditReversals.js +26 -0
  12. package/lib/resources/Treasury/DebitReversals.js +26 -0
  13. package/lib/resources/Treasury/FinancialAccounts.js +41 -0
  14. package/lib/resources/Treasury/InboundTransfers.js +31 -0
  15. package/lib/resources/Treasury/OutboundPayments.js +31 -0
  16. package/lib/resources/Treasury/OutboundTransfers.js +31 -0
  17. package/lib/resources/Treasury/ReceivedCredits.js +21 -0
  18. package/lib/resources/Treasury/ReceivedDebits.js +21 -0
  19. package/lib/resources/Treasury/TransactionEntries.js +21 -0
  20. package/lib/resources/Treasury/Transactions.js +21 -0
  21. package/lib/resources.js +22 -0
  22. package/package.json +1 -1
  23. package/types/2020-08-27/Accounts.d.ts +5 -5
  24. package/types/2020-08-27/Apps/Secrets.d.ts +241 -0
  25. package/types/2020-08-27/BillingPortal/Configurations.d.ts +1 -1
  26. package/types/2020-08-27/BillingPortal/Sessions.d.ts +1 -1
  27. package/types/2020-08-27/Charges.d.ts +8 -0
  28. package/types/2020-08-27/Checkout/Sessions.d.ts +51 -3
  29. package/types/2020-08-27/Customers.d.ts +24 -0
  30. package/types/2020-08-27/Discounts.d.ts +4 -4
  31. package/types/2020-08-27/FinancialConnections/Accounts.d.ts +63 -0
  32. package/types/2020-08-27/Invoices.d.ts +3 -0
  33. package/types/2020-08-27/Issuing/Authorizations.d.ts +22 -0
  34. package/types/2020-08-27/Issuing/Cards.d.ts +7 -0
  35. package/types/2020-08-27/Issuing/Disputes.d.ts +29 -0
  36. package/types/2020-08-27/Issuing/Transactions.d.ts +17 -0
  37. package/types/2020-08-27/LineItems.d.ts +2 -3
  38. package/types/2020-08-27/Mandates.d.ts +4 -0
  39. package/types/2020-08-27/Orders.d.ts +84 -4
  40. package/types/2020-08-27/PaymentIntents.d.ts +332 -2
  41. package/types/2020-08-27/PaymentLinks.d.ts +167 -0
  42. package/types/2020-08-27/PaymentMethods.d.ts +73 -0
  43. package/types/2020-08-27/PromotionCodes.d.ts +2 -2
  44. package/types/2020-08-27/Quotes.d.ts +6 -9
  45. package/types/2020-08-27/Refunds.d.ts +1 -1
  46. package/types/2020-08-27/SetupAttempts.d.ts +4 -0
  47. package/types/2020-08-27/SetupIntents.d.ts +157 -0
  48. package/types/2020-08-27/SubscriptionSchedules.d.ts +15 -0
  49. package/types/2020-08-27/Subscriptions.d.ts +41 -2
  50. package/types/2020-08-27/Terminal/Configurations.d.ts +63 -0
  51. package/types/2020-08-27/TestHelpers/Treasury/InboundTransfers.d.ts +108 -0
  52. package/types/2020-08-27/TestHelpers/Treasury/OutboundPayments.d.ts +105 -0
  53. package/types/2020-08-27/TestHelpers/Treasury/OutboundTransfers.d.ts +105 -0
  54. package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +93 -0
  55. package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +91 -0
  56. package/types/2020-08-27/Tokens.d.ts +2 -2
  57. package/types/2020-08-27/Treasury/CreditReversals.d.ts +168 -0
  58. package/types/2020-08-27/Treasury/DebitReversals.d.ts +187 -0
  59. package/types/2020-08-27/Treasury/FinancialAccountFeatures.d.ts +622 -0
  60. package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +833 -0
  61. package/types/2020-08-27/Treasury/InboundTransfers.d.ts +349 -0
  62. package/types/2020-08-27/Treasury/OutboundPayments.d.ts +550 -0
  63. package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +385 -0
  64. package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +303 -0
  65. package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +231 -0
  66. package/types/2020-08-27/Treasury/TransactionEntries.d.ts +257 -0
  67. package/types/2020-08-27/Treasury/Transactions.d.ts +268 -0
  68. package/types/2020-08-27/WebhookEndpoints.d.ts +62 -2
  69. package/types/2020-08-27/index.d.ts +39 -0
@@ -45,6 +45,16 @@ declare module 'stripe' {
45
45
  */
46
46
  billing_address_collection: PaymentLink.BillingAddressCollection;
47
47
 
48
+ /**
49
+ * When set, provides configuration to gather active consent from customers.
50
+ */
51
+ consent_collection: PaymentLink.ConsentCollection | null;
52
+
53
+ /**
54
+ * Configuration for Customer creation during checkout.
55
+ */
56
+ customer_creation: PaymentLink.CustomerCreation;
57
+
48
58
  /**
49
59
  * The line items representing what is being sold.
50
60
  */
@@ -65,6 +75,11 @@ declare module 'stripe' {
65
75
  */
66
76
  on_behalf_of: string | Stripe.Account | null;
67
77
 
78
+ /**
79
+ * Indicates the parameters to be passed to PaymentIntent creation during checkout.
80
+ */
81
+ payment_intent_data: PaymentLink.PaymentIntentData | null;
82
+
68
83
  /**
69
84
  * The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
70
85
  */
@@ -77,11 +92,23 @@ declare module 'stripe' {
77
92
  */
78
93
  shipping_address_collection: PaymentLink.ShippingAddressCollection | null;
79
94
 
95
+ /**
96
+ * The shipping rate options applied to the session.
97
+ */
98
+ shipping_options: Array<PaymentLink.ShippingOption>;
99
+
100
+ /**
101
+ * Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
102
+ */
103
+ submit_type: PaymentLink.SubmitType;
104
+
80
105
  /**
81
106
  * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
82
107
  */
83
108
  subscription_data: PaymentLink.SubscriptionData | null;
84
109
 
110
+ tax_id_collection: PaymentLink.TaxIdCollection;
111
+
85
112
  /**
86
113
  * The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
87
114
  */
@@ -132,6 +159,33 @@ declare module 'stripe' {
132
159
 
133
160
  type BillingAddressCollection = 'auto' | 'required';
134
161
 
162
+ interface ConsentCollection {
163
+ /**
164
+ * If set to `auto`, enables the collection of customer consent for promotional communications.
165
+ */
166
+ promotions: 'auto' | null;
167
+ }
168
+
169
+ type CustomerCreation = 'always' | 'if_required';
170
+
171
+ interface PaymentIntentData {
172
+ /**
173
+ * Indicates when the funds will be captured from the customer's account.
174
+ */
175
+ capture_method: PaymentIntentData.CaptureMethod | null;
176
+
177
+ /**
178
+ * Indicates that you intend to make future payments with the payment method collected during checkout.
179
+ */
180
+ setup_future_usage: PaymentIntentData.SetupFutureUsage | null;
181
+ }
182
+
183
+ namespace PaymentIntentData {
184
+ type CaptureMethod = 'automatic' | 'manual';
185
+
186
+ type SetupFutureUsage = 'off_session' | 'on_session';
187
+ }
188
+
135
189
  interface PhoneNumberCollection {
136
190
  /**
137
191
  * If `true`, a phone number will be collected during checkout.
@@ -387,6 +441,20 @@ declare module 'stripe' {
387
441
  | 'ZZ';
388
442
  }
389
443
 
444
+ interface ShippingOption {
445
+ /**
446
+ * A non-negative integer in cents representing how much to charge.
447
+ */
448
+ shipping_amount: number;
449
+
450
+ /**
451
+ * The ID of the Shipping Rate to use for this shipping option.
452
+ */
453
+ shipping_rate: string | Stripe.ShippingRate;
454
+ }
455
+
456
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
457
+
390
458
  interface SubscriptionData {
391
459
  /**
392
460
  * Integer representing the number of trial period days before the customer is charged for the first time.
@@ -394,6 +462,13 @@ declare module 'stripe' {
394
462
  trial_period_days: number | null;
395
463
  }
396
464
 
465
+ interface TaxIdCollection {
466
+ /**
467
+ * Indicates whether tax ID collection is enabled for the session.
468
+ */
469
+ enabled: boolean;
470
+ }
471
+
397
472
  interface TransferData {
398
473
  /**
399
474
  * The amount in %s that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
@@ -443,6 +518,16 @@ declare module 'stripe' {
443
518
  */
444
519
  billing_address_collection?: PaymentLinkCreateParams.BillingAddressCollection;
445
520
 
521
+ /**
522
+ * Configure fields to gather active consent from customers.
523
+ */
524
+ consent_collection?: PaymentLinkCreateParams.ConsentCollection;
525
+
526
+ /**
527
+ * Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers).
528
+ */
529
+ customer_creation?: PaymentLinkCreateParams.CustomerCreation;
530
+
446
531
  /**
447
532
  * Specifies which fields in the response should be expanded.
448
533
  */
@@ -458,6 +543,11 @@ declare module 'stripe' {
458
543
  */
459
544
  on_behalf_of?: string;
460
545
 
546
+ /**
547
+ * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
548
+ */
549
+ payment_intent_data?: PaymentLinkCreateParams.PaymentIntentData;
550
+
461
551
  /**
462
552
  * The list of payment method types that customers can use. Only `card` is supported. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support)).
463
553
  */
@@ -475,11 +565,26 @@ declare module 'stripe' {
475
565
  */
476
566
  shipping_address_collection?: PaymentLinkCreateParams.ShippingAddressCollection;
477
567
 
568
+ /**
569
+ * The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
570
+ */
571
+ shipping_options?: Array<PaymentLinkCreateParams.ShippingOption>;
572
+
573
+ /**
574
+ * Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button.
575
+ */
576
+ submit_type?: PaymentLinkCreateParams.SubmitType;
577
+
478
578
  /**
479
579
  * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
480
580
  */
481
581
  subscription_data?: PaymentLinkCreateParams.SubscriptionData;
482
582
 
583
+ /**
584
+ * Controls tax ID collection during checkout.
585
+ */
586
+ tax_id_collection?: PaymentLinkCreateParams.TaxIdCollection;
587
+
483
588
  /**
484
589
  * The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
485
590
  */
@@ -531,6 +636,17 @@ declare module 'stripe' {
531
636
 
532
637
  type BillingAddressCollection = 'auto' | 'required';
533
638
 
639
+ interface ConsentCollection {
640
+ /**
641
+ * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
642
+ * Session will determine whether to display an option to opt into promotional communication
643
+ * from the merchant depending on the customer's locale. Only available to US merchants.
644
+ */
645
+ promotions?: 'auto';
646
+ }
647
+
648
+ type CustomerCreation = 'always' | 'if_required';
649
+
534
650
  interface LineItem {
535
651
  /**
536
652
  * When set, provides configuration for this item's quantity to be adjusted by the customer during checkout.
@@ -567,6 +683,34 @@ declare module 'stripe' {
567
683
  }
568
684
  }
569
685
 
686
+ interface PaymentIntentData {
687
+ /**
688
+ * Controls when the funds will be captured from the customer's account.
689
+ */
690
+ capture_method?: PaymentIntentData.CaptureMethod;
691
+
692
+ /**
693
+ * Indicates that you intend to [make future payments](https://stripe.com/docs/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.
694
+ *
695
+ * When setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.
696
+ *
697
+ * When setting this to `off_session`, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.
698
+ *
699
+ * If a Customer has been provided or Checkout creates a new Customer,Checkout will attach the payment method to the Customer.
700
+ *
701
+ * If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
702
+ *
703
+ * When processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
704
+ */
705
+ setup_future_usage?: PaymentIntentData.SetupFutureUsage;
706
+ }
707
+
708
+ namespace PaymentIntentData {
709
+ type CaptureMethod = 'automatic' | 'manual';
710
+
711
+ type SetupFutureUsage = 'off_session' | 'on_session';
712
+ }
713
+
570
714
  interface PhoneNumberCollection {
571
715
  /**
572
716
  * Set to `true` to enable phone number collection.
@@ -823,6 +967,15 @@ declare module 'stripe' {
823
967
  | 'ZZ';
824
968
  }
825
969
 
970
+ interface ShippingOption {
971
+ /**
972
+ * The ID of the Shipping Rate to use for this shipping option.
973
+ */
974
+ shipping_rate?: string;
975
+ }
976
+
977
+ type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
978
+
826
979
  interface SubscriptionData {
827
980
  /**
828
981
  * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
@@ -830,6 +983,13 @@ declare module 'stripe' {
830
983
  trial_period_days?: number;
831
984
  }
832
985
 
986
+ interface TaxIdCollection {
987
+ /**
988
+ * Set to `true` to enable tax ID collection.
989
+ */
990
+ enabled: boolean;
991
+ }
992
+
833
993
  interface TransferData {
834
994
  /**
835
995
  * The amount that will be transferred automatically when a charge succeeds.
@@ -879,6 +1039,11 @@ declare module 'stripe' {
879
1039
  */
880
1040
  billing_address_collection?: PaymentLinkUpdateParams.BillingAddressCollection;
881
1041
 
1042
+ /**
1043
+ * Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers).
1044
+ */
1045
+ customer_creation?: PaymentLinkUpdateParams.CustomerCreation;
1046
+
882
1047
  /**
883
1048
  * Specifies which fields in the response should be expanded.
884
1049
  */
@@ -952,6 +1117,8 @@ declare module 'stripe' {
952
1117
 
953
1118
  type BillingAddressCollection = 'auto' | 'required';
954
1119
 
1120
+ type CustomerCreation = 'always' | 'if_required';
1121
+
955
1122
  interface LineItem {
956
1123
  /**
957
1124
  * When set, provides configuration for this item's quantity to be adjusted by the customer during checkout.
@@ -18,6 +18,8 @@ declare module 'stripe' {
18
18
 
19
19
  acss_debit?: PaymentMethod.AcssDebit;
20
20
 
21
+ affirm?: PaymentMethod.Affirm;
22
+
21
23
  afterpay_clearpay?: PaymentMethod.AfterpayClearpay;
22
24
 
23
25
  alipay?: PaymentMethod.Alipay;
@@ -64,6 +66,8 @@ declare module 'stripe' {
64
66
 
65
67
  konbini?: PaymentMethod.Konbini;
66
68
 
69
+ link?: PaymentMethod.Link;
70
+
67
71
  /**
68
72
  * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
69
73
  */
@@ -122,6 +126,8 @@ declare module 'stripe' {
122
126
  transit_number: string | null;
123
127
  }
124
128
 
129
+ interface Affirm {}
130
+
125
131
  interface AfterpayClearpay {}
126
132
 
127
133
  interface Alipay {}
@@ -548,6 +554,18 @@ declare module 'stripe' {
548
554
 
549
555
  interface Konbini {}
550
556
 
557
+ interface Link {
558
+ /**
559
+ * Account owner's email address.
560
+ */
561
+ email: string | null;
562
+
563
+ /**
564
+ * Token used for persistent Link logins.
565
+ */
566
+ persistent_token?: string;
567
+ }
568
+
551
569
  interface Oxxo {}
552
570
 
553
571
  interface P24 {
@@ -643,6 +661,7 @@ declare module 'stripe' {
643
661
 
644
662
  type Type =
645
663
  | 'acss_debit'
664
+ | 'affirm'
646
665
  | 'afterpay_clearpay'
647
666
  | 'alipay'
648
667
  | 'au_becs_debit'
@@ -660,6 +679,7 @@ declare module 'stripe' {
660
679
  | 'interac_present'
661
680
  | 'klarna'
662
681
  | 'konbini'
682
+ | 'link'
663
683
  | 'oxxo'
664
684
  | 'p24'
665
685
  | 'paynow'
@@ -699,6 +719,11 @@ declare module 'stripe' {
699
719
  */
700
720
  last4: string | null;
701
721
 
722
+ /**
723
+ * Contains information about US bank account networks that can be used.
724
+ */
725
+ networks?: UsBankAccount.Networks | null;
726
+
702
727
  /**
703
728
  * Routing number of the bank account.
704
729
  */
@@ -709,6 +734,22 @@ declare module 'stripe' {
709
734
  type AccountHolderType = 'company' | 'individual';
710
735
 
711
736
  type AccountType = 'checking' | 'savings';
737
+
738
+ interface Networks {
739
+ /**
740
+ * The preferred network.
741
+ */
742
+ preferred: string | null;
743
+
744
+ /**
745
+ * All supported networks.
746
+ */
747
+ supported: Array<Networks.Supported>;
748
+ }
749
+
750
+ namespace Networks {
751
+ type Supported = 'ach' | 'us_domestic_wire';
752
+ }
712
753
  }
713
754
 
714
755
  interface WechatPay {}
@@ -720,6 +761,11 @@ declare module 'stripe' {
720
761
  */
721
762
  acss_debit?: PaymentMethodCreateParams.AcssDebit;
722
763
 
764
+ /**
765
+ * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
766
+ */
767
+ affirm?: PaymentMethodCreateParams.Affirm;
768
+
723
769
  /**
724
770
  * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
725
771
  */
@@ -815,6 +861,11 @@ declare module 'stripe' {
815
861
  */
816
862
  konbini?: PaymentMethodCreateParams.Konbini;
817
863
 
864
+ /**
865
+ * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
866
+ */
867
+ link?: PaymentMethodCreateParams.Link;
868
+
818
869
  /**
819
870
  * 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`.
820
871
  */
@@ -884,6 +935,8 @@ declare module 'stripe' {
884
935
  transit_number: string;
885
936
  }
886
937
 
938
+ interface Affirm {}
939
+
887
940
  interface AfterpayClearpay {}
888
941
 
889
942
  interface Alipay {}
@@ -1112,6 +1165,8 @@ declare module 'stripe' {
1112
1165
 
1113
1166
  interface Konbini {}
1114
1167
 
1168
+ interface Link {}
1169
+
1115
1170
  interface Oxxo {}
1116
1171
 
1117
1172
  interface P24 {
@@ -1172,6 +1227,7 @@ declare module 'stripe' {
1172
1227
 
1173
1228
  type Type =
1174
1229
  | 'acss_debit'
1230
+ | 'affirm'
1175
1231
  | 'afterpay_clearpay'
1176
1232
  | 'alipay'
1177
1233
  | 'au_becs_debit'
@@ -1187,6 +1243,7 @@ declare module 'stripe' {
1187
1243
  | 'ideal'
1188
1244
  | 'klarna'
1189
1245
  | 'konbini'
1246
+ | 'link'
1190
1247
  | 'oxxo'
1191
1248
  | 'p24'
1192
1249
  | 'paynow'
@@ -1244,6 +1301,11 @@ declare module 'stripe' {
1244
1301
  */
1245
1302
  acss_debit?: PaymentMethodUpdateParams.AcssDebit;
1246
1303
 
1304
+ /**
1305
+ * This is a legacy parameter that will be removed in the future. It is a hash that does not accept any keys.
1306
+ */
1307
+ affirm?: PaymentMethodUpdateParams.Affirm;
1308
+
1247
1309
  /**
1248
1310
  * This is a legacy parameter that will be removed in the future. It is a hash that does not accept any keys.
1249
1311
  */
@@ -1269,6 +1331,11 @@ declare module 'stripe' {
1269
1331
  */
1270
1332
  expand?: Array<string>;
1271
1333
 
1334
+ /**
1335
+ * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1336
+ */
1337
+ link?: PaymentMethodUpdateParams.Link;
1338
+
1272
1339
  /**
1273
1340
  * 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`.
1274
1341
  */
@@ -1288,6 +1355,8 @@ declare module 'stripe' {
1288
1355
  namespace PaymentMethodUpdateParams {
1289
1356
  interface AcssDebit {}
1290
1357
 
1358
+ interface Affirm {}
1359
+
1291
1360
  interface AuBecsDebit {}
1292
1361
 
1293
1362
  interface BacsDebit {}
@@ -1332,6 +1401,8 @@ declare module 'stripe' {
1332
1401
  exp_year?: number;
1333
1402
  }
1334
1403
 
1404
+ interface Link {}
1405
+
1335
1406
  interface SepaDebit {}
1336
1407
 
1337
1408
  interface UsBankAccount {
@@ -1366,6 +1437,7 @@ declare module 'stripe' {
1366
1437
  namespace PaymentMethodListParams {
1367
1438
  type Type =
1368
1439
  | 'acss_debit'
1440
+ | 'affirm'
1369
1441
  | 'afterpay_clearpay'
1370
1442
  | 'alipay'
1371
1443
  | 'au_becs_debit'
@@ -1382,6 +1454,7 @@ declare module 'stripe' {
1382
1454
  | 'ideal'
1383
1455
  | 'klarna'
1384
1456
  | 'konbini'
1457
+ | 'link'
1385
1458
  | 'oxxo'
1386
1459
  | 'p24'
1387
1460
  | 'paynow'
@@ -28,8 +28,8 @@ declare module 'stripe' {
28
28
 
29
29
  /**
30
30
  * A coupon contains information about a percent-off or amount-off discount you
31
- * might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices) or
32
- * [orders](https://stripe.com/docs/api#create_order_legacy-coupon). Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge).
31
+ * might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices),
32
+ * [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
33
33
  */
34
34
  coupon: Stripe.Coupon;
35
35
 
@@ -267,9 +267,8 @@ declare module 'stripe' {
267
267
  amount: number;
268
268
 
269
269
  /**
270
- * A discount represents the actual application of a coupon to a particular
271
- * customer. It contains information about when the discount began and when it
272
- * will end.
270
+ * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
271
+ * It contains information about when the discount began, when it will end, and what it is applied to.
273
272
  *
274
273
  * Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
275
274
  */
@@ -353,9 +352,8 @@ declare module 'stripe' {
353
352
  amount: number;
354
353
 
355
354
  /**
356
- * A discount represents the actual application of a coupon to a particular
357
- * customer. It contains information about when the discount began and when it
358
- * will end.
355
+ * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
356
+ * It contains information about when the discount began, when it will end, and what it is applied to.
359
357
  *
360
358
  * Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
361
359
  */
@@ -470,9 +468,8 @@ declare module 'stripe' {
470
468
  amount: number;
471
469
 
472
470
  /**
473
- * A discount represents the actual application of a coupon to a particular
474
- * customer. It contains information about when the discount began and when it
475
- * will end.
471
+ * A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
472
+ * It contains information about when the discount began, when it will end, and what it is applied to.
476
473
  *
477
474
  * Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
478
475
  */
@@ -89,7 +89,7 @@ declare module 'stripe' {
89
89
  source_transfer_reversal: string | Stripe.TransferReversal | null;
90
90
 
91
91
  /**
92
- * Status of the refund. For credit card refunds, this can be `pending`, `succeeded`, or `failed`. For other types of refunds, it can be `pending`, `succeeded`, `failed`, or `canceled`. Refer to our [refunds](https://stripe.com/docs/refunds#failed-refunds) documentation for more details.
92
+ * Status of the refund. For credit card refunds, this can be `pending`, `succeeded`, or `failed`. For other types of refunds, it can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Refer to our [refunds](https://stripe.com/docs/refunds#failed-refunds) documentation for more details.
93
93
  */
94
94
  status: string | null;
95
95
 
@@ -87,6 +87,8 @@ declare module 'stripe' {
87
87
 
88
88
  ideal?: PaymentMethodDetails.Ideal;
89
89
 
90
+ link?: PaymentMethodDetails.Link;
91
+
90
92
  sepa_debit?: PaymentMethodDetails.SepaDebit;
91
93
 
92
94
  sofort?: PaymentMethodDetails.Sofort;
@@ -283,6 +285,8 @@ declare module 'stripe' {
283
285
  | 'TRIONL2U';
284
286
  }
285
287
 
288
+ interface Link {}
289
+
286
290
  interface SepaDebit {}
287
291
 
288
292
  interface Sofort {