stripe 9.2.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.
@@ -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 {
@@ -300,6 +300,8 @@ declare module 'stripe' {
300
300
 
301
301
  card?: PaymentMethodOptions.Card;
302
302
 
303
+ link?: PaymentMethodOptions.Link;
304
+
303
305
  sepa_debit?: PaymentMethodOptions.SepaDebit;
304
306
 
305
307
  us_bank_account?: PaymentMethodOptions.UsBankAccount;
@@ -435,6 +437,13 @@ declare module 'stripe' {
435
437
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only';
436
438
  }
437
439
 
440
+ interface Link {
441
+ /**
442
+ * Token used for persistent Link logins.
443
+ */
444
+ persistent_token: string | null;
445
+ }
446
+
438
447
  interface SepaDebit {
439
448
  mandate_options?: SepaDebit.MandateOptions;
440
449
  }
@@ -617,6 +626,11 @@ declare module 'stripe' {
617
626
  */
618
627
  acss_debit?: PaymentMethodData.AcssDebit;
619
628
 
629
+ /**
630
+ * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
631
+ */
632
+ affirm?: PaymentMethodData.Affirm;
633
+
620
634
  /**
621
635
  * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
622
636
  */
@@ -697,6 +711,11 @@ declare module 'stripe' {
697
711
  */
698
712
  konbini?: PaymentMethodData.Konbini;
699
713
 
714
+ /**
715
+ * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
716
+ */
717
+ link?: PaymentMethodData.Link;
718
+
700
719
  /**
701
720
  * 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`.
702
721
  */
@@ -761,6 +780,8 @@ declare module 'stripe' {
761
780
  transit_number: string;
762
781
  }
763
782
 
783
+ interface Affirm {}
784
+
764
785
  interface AfterpayClearpay {}
765
786
 
766
787
  interface Alipay {}
@@ -963,6 +984,8 @@ declare module 'stripe' {
963
984
 
964
985
  interface Konbini {}
965
986
 
987
+ interface Link {}
988
+
966
989
  interface Oxxo {}
967
990
 
968
991
  interface P24 {
@@ -1023,6 +1046,7 @@ declare module 'stripe' {
1023
1046
 
1024
1047
  type Type =
1025
1048
  | 'acss_debit'
1049
+ | 'affirm'
1026
1050
  | 'afterpay_clearpay'
1027
1051
  | 'alipay'
1028
1052
  | 'au_becs_debit'
@@ -1037,6 +1061,7 @@ declare module 'stripe' {
1037
1061
  | 'ideal'
1038
1062
  | 'klarna'
1039
1063
  | 'konbini'
1064
+ | 'link'
1040
1065
  | 'oxxo'
1041
1066
  | 'p24'
1042
1067
  | 'paynow'
@@ -1092,6 +1117,11 @@ declare module 'stripe' {
1092
1117
  */
1093
1118
  card?: PaymentMethodOptions.Card;
1094
1119
 
1120
+ /**
1121
+ * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1122
+ */
1123
+ link?: PaymentMethodOptions.Link;
1124
+
1095
1125
  /**
1096
1126
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1097
1127
  */
@@ -1245,6 +1275,13 @@ declare module 'stripe' {
1245
1275
  type RequestThreeDSecure = 'any' | 'automatic';
1246
1276
  }
1247
1277
 
1278
+ interface Link {
1279
+ /**
1280
+ * Token used for persistent Link logins.
1281
+ */
1282
+ persistent_token?: string;
1283
+ }
1284
+
1248
1285
  interface SepaDebit {
1249
1286
  /**
1250
1287
  * Additional fields for Mandate creation
@@ -1388,6 +1425,11 @@ declare module 'stripe' {
1388
1425
  */
1389
1426
  acss_debit?: PaymentMethodData.AcssDebit;
1390
1427
 
1428
+ /**
1429
+ * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
1430
+ */
1431
+ affirm?: PaymentMethodData.Affirm;
1432
+
1391
1433
  /**
1392
1434
  * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
1393
1435
  */
@@ -1468,6 +1510,11 @@ declare module 'stripe' {
1468
1510
  */
1469
1511
  konbini?: PaymentMethodData.Konbini;
1470
1512
 
1513
+ /**
1514
+ * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
1515
+ */
1516
+ link?: PaymentMethodData.Link;
1517
+
1471
1518
  /**
1472
1519
  * 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`.
1473
1520
  */
@@ -1532,6 +1579,8 @@ declare module 'stripe' {
1532
1579
  transit_number: string;
1533
1580
  }
1534
1581
 
1582
+ interface Affirm {}
1583
+
1535
1584
  interface AfterpayClearpay {}
1536
1585
 
1537
1586
  interface Alipay {}
@@ -1734,6 +1783,8 @@ declare module 'stripe' {
1734
1783
 
1735
1784
  interface Konbini {}
1736
1785
 
1786
+ interface Link {}
1787
+
1737
1788
  interface Oxxo {}
1738
1789
 
1739
1790
  interface P24 {
@@ -1794,6 +1845,7 @@ declare module 'stripe' {
1794
1845
 
1795
1846
  type Type =
1796
1847
  | 'acss_debit'
1848
+ | 'affirm'
1797
1849
  | 'afterpay_clearpay'
1798
1850
  | 'alipay'
1799
1851
  | 'au_becs_debit'
@@ -1808,6 +1860,7 @@ declare module 'stripe' {
1808
1860
  | 'ideal'
1809
1861
  | 'klarna'
1810
1862
  | 'konbini'
1863
+ | 'link'
1811
1864
  | 'oxxo'
1812
1865
  | 'p24'
1813
1866
  | 'paynow'
@@ -1863,6 +1916,11 @@ declare module 'stripe' {
1863
1916
  */
1864
1917
  card?: PaymentMethodOptions.Card;
1865
1918
 
1919
+ /**
1920
+ * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1921
+ */
1922
+ link?: PaymentMethodOptions.Link;
1923
+
1866
1924
  /**
1867
1925
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1868
1926
  */
@@ -2016,6 +2074,13 @@ declare module 'stripe' {
2016
2074
  type RequestThreeDSecure = 'any' | 'automatic';
2017
2075
  }
2018
2076
 
2077
+ interface Link {
2078
+ /**
2079
+ * Token used for persistent Link logins.
2080
+ */
2081
+ persistent_token?: string;
2082
+ }
2083
+
2019
2084
  interface SepaDebit {
2020
2085
  /**
2021
2086
  * Additional fields for Mandate creation
@@ -2250,6 +2315,11 @@ declare module 'stripe' {
2250
2315
  */
2251
2316
  acss_debit?: PaymentMethodData.AcssDebit;
2252
2317
 
2318
+ /**
2319
+ * If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
2320
+ */
2321
+ affirm?: PaymentMethodData.Affirm;
2322
+
2253
2323
  /**
2254
2324
  * If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
2255
2325
  */
@@ -2330,6 +2400,11 @@ declare module 'stripe' {
2330
2400
  */
2331
2401
  konbini?: PaymentMethodData.Konbini;
2332
2402
 
2403
+ /**
2404
+ * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2405
+ */
2406
+ link?: PaymentMethodData.Link;
2407
+
2333
2408
  /**
2334
2409
  * 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`.
2335
2410
  */
@@ -2394,6 +2469,8 @@ declare module 'stripe' {
2394
2469
  transit_number: string;
2395
2470
  }
2396
2471
 
2472
+ interface Affirm {}
2473
+
2397
2474
  interface AfterpayClearpay {}
2398
2475
 
2399
2476
  interface Alipay {}
@@ -2596,6 +2673,8 @@ declare module 'stripe' {
2596
2673
 
2597
2674
  interface Konbini {}
2598
2675
 
2676
+ interface Link {}
2677
+
2599
2678
  interface Oxxo {}
2600
2679
 
2601
2680
  interface P24 {
@@ -2656,6 +2735,7 @@ declare module 'stripe' {
2656
2735
 
2657
2736
  type Type =
2658
2737
  | 'acss_debit'
2738
+ | 'affirm'
2659
2739
  | 'afterpay_clearpay'
2660
2740
  | 'alipay'
2661
2741
  | 'au_becs_debit'
@@ -2670,6 +2750,7 @@ declare module 'stripe' {
2670
2750
  | 'ideal'
2671
2751
  | 'klarna'
2672
2752
  | 'konbini'
2753
+ | 'link'
2673
2754
  | 'oxxo'
2674
2755
  | 'p24'
2675
2756
  | 'paynow'
@@ -2725,6 +2806,11 @@ declare module 'stripe' {
2725
2806
  */
2726
2807
  card?: PaymentMethodOptions.Card;
2727
2808
 
2809
+ /**
2810
+ * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2811
+ */
2812
+ link?: PaymentMethodOptions.Link;
2813
+
2728
2814
  /**
2729
2815
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2730
2816
  */
@@ -2878,6 +2964,13 @@ declare module 'stripe' {
2878
2964
  type RequestThreeDSecure = 'any' | 'automatic';
2879
2965
  }
2880
2966
 
2967
+ interface Link {
2968
+ /**
2969
+ * Token used for persistent Link logins.
2970
+ */
2971
+ persistent_token?: string;
2972
+ }
2973
+
2881
2974
  interface SepaDebit {
2882
2975
  /**
2883
2976
  * Additional fields for Mandate creation
@@ -429,6 +429,7 @@ declare module 'stripe' {
429
429
  | 'grabpay'
430
430
  | 'ideal'
431
431
  | 'konbini'
432
+ | 'link'
432
433
  | 'paynow'
433
434
  | 'sepa_credit_transfer'
434
435
  | 'sepa_debit'
@@ -1046,6 +1047,7 @@ declare module 'stripe' {
1046
1047
  | 'grabpay'
1047
1048
  | 'ideal'
1048
1049
  | 'konbini'
1050
+ | 'link'
1049
1051
  | 'paynow'
1050
1052
  | 'sepa_credit_transfer'
1051
1053
  | 'sepa_debit'
@@ -1668,6 +1670,7 @@ declare module 'stripe' {
1668
1670
  | 'grabpay'
1669
1671
  | 'ideal'
1670
1672
  | 'konbini'
1673
+ | 'link'
1671
1674
  | 'paynow'
1672
1675
  | 'sepa_credit_transfer'
1673
1676
  | 'sepa_debit'
@@ -13,6 +13,7 @@
13
13
  ///<reference path='./ApplePayDomains.d.ts' />
14
14
  ///<reference path='./ApplicationFees.d.ts' />
15
15
  ///<reference path='./Applications.d.ts' />
16
+ ///<reference path='./Apps/Secrets.d.ts' />
16
17
  ///<reference path='./Balance.d.ts' />
17
18
  ///<reference path='./BalanceTransactions.d.ts' />
18
19
  ///<reference path='./BankAccounts.d.ts' />
@@ -198,6 +199,9 @@ declare module 'stripe' {
198
199
  /**
199
200
  * Namespaced Resources
200
201
  */
202
+ apps: {
203
+ secrets: Stripe.Apps.SecretsResource;
204
+ };
201
205
  billingPortal: {
202
206
  configurations: Stripe.BillingPortal.ConfigurationsResource;
203
207
  sessions: Stripe.BillingPortal.SessionsResource;