stripe 17.5.0 → 17.6.0-beta.2

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 (181) hide show
  1. package/CHANGELOG.md +1052 -109
  2. package/README.md +24 -16
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/Orders.js +24 -0
  19. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  20. package/cjs/resources/PaymentIntents.js +8 -0
  21. package/cjs/resources/PaymentRecords.js +29 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Associations.js +9 -0
  25. package/cjs/resources/Tax/Forms.js +20 -0
  26. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources/Treasury/FinancialAccounts.js +4 -0
  29. package/cjs/resources.js +48 -10
  30. package/cjs/stripe.core.js +1 -1
  31. package/esm/apiVersion.js +1 -1
  32. package/esm/resources/AccountNotices.js +18 -0
  33. package/esm/resources/Capital/FinancingOffers.js +18 -0
  34. package/esm/resources/Capital/FinancingSummary.js +9 -0
  35. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  36. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  37. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  38. package/esm/resources/GiftCards/Cards.js +20 -0
  39. package/esm/resources/GiftCards/Transactions.js +30 -0
  40. package/esm/resources/Invoices.js +17 -0
  41. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  42. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  43. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  44. package/esm/resources/Margins.js +19 -0
  45. package/esm/resources/Orders.js +21 -0
  46. package/esm/resources/PaymentAttemptRecords.js +14 -0
  47. package/esm/resources/PaymentIntents.js +8 -0
  48. package/esm/resources/PaymentRecords.js +26 -0
  49. package/esm/resources/Quotes.js +32 -0
  50. package/esm/resources/SubscriptionSchedules.js +4 -0
  51. package/esm/resources/Tax/Associations.js +6 -0
  52. package/esm/resources/Tax/Forms.js +17 -0
  53. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  54. package/esm/resources/Terminal/Readers.js +12 -0
  55. package/esm/resources/Treasury/FinancialAccounts.js +4 -0
  56. package/esm/resources.js +33 -0
  57. package/esm/stripe.core.js +1 -1
  58. package/package.json +3 -15
  59. package/types/AccountLinksResource.d.ts +5 -1
  60. package/types/AccountNotices.d.ts +113 -0
  61. package/types/AccountNoticesResource.d.ts +98 -0
  62. package/types/AccountSessions.d.ts +175 -0
  63. package/types/AccountSessionsResource.d.ts +376 -0
  64. package/types/Accounts.d.ts +225 -1
  65. package/types/AccountsResource.d.ts +628 -0
  66. package/types/Billing/CreditBalanceTransactions.d.ts +1 -1
  67. package/types/Billing/MeterErrorReports.d.ts +106 -0
  68. package/types/BillingPortal/ConfigurationsResource.d.ts +2 -2
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Cards.d.ts +6 -1
  76. package/types/Charges.d.ts +159 -2
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +359 -5
  79. package/types/Checkout/SessionsResource.d.ts +456 -5
  80. package/types/ConfirmationTokens.d.ts +110 -1
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNoteLineItems.d.ts +1 -1
  84. package/types/CreditNotes.d.ts +22 -1
  85. package/types/CreditNotesResource.d.ts +51 -0
  86. package/types/CustomersResource.d.ts +8 -0
  87. package/types/EventTypes.d.ts +596 -0
  88. package/types/Events.d.ts +93 -0
  89. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  90. package/types/FinancialConnections/Accounts.d.ts +29 -1
  91. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  92. package/types/FinancialConnections/Institutions.d.ts +93 -0
  93. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  94. package/types/FinancialConnections/Sessions.d.ts +49 -1
  95. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  96. package/types/FinancialConnections/TransactionsResource.d.ts +1 -1
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +29 -2
  104. package/types/InvoicePayments.d.ts +113 -0
  105. package/types/Invoices.d.ts +143 -3
  106. package/types/InvoicesResource.d.ts +4618 -933
  107. package/types/Issuing/Authorizations.d.ts +2 -1
  108. package/types/Issuing/CardholdersResource.d.ts +2 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  114. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  115. package/types/Issuing/Settlements.d.ts +103 -0
  116. package/types/Issuing/Transactions.d.ts +3 -1
  117. package/types/Issuing/TransactionsResource.d.ts +5 -0
  118. package/types/LineItems.d.ts +32 -0
  119. package/types/Mandates.d.ts +77 -0
  120. package/types/Margins.d.ts +56 -0
  121. package/types/MarginsResource.d.ts +114 -0
  122. package/types/Orders.d.ts +1179 -0
  123. package/types/OrdersResource.d.ts +2961 -0
  124. package/types/PaymentAttemptRecords.d.ts +242 -0
  125. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  126. package/types/PaymentIntents.d.ts +653 -1
  127. package/types/PaymentIntentsResource.d.ts +8018 -3686
  128. package/types/PaymentLinks.d.ts +8 -0
  129. package/types/PaymentLinksResource.d.ts +30 -0
  130. package/types/PaymentMethodConfigurations.d.ts +216 -0
  131. package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
  132. package/types/PaymentMethods.d.ts +110 -1
  133. package/types/PaymentMethodsResource.d.ts +149 -0
  134. package/types/PaymentRecords.d.ts +242 -0
  135. package/types/PaymentRecordsResource.d.ts +455 -0
  136. package/types/Prices.d.ts +22 -0
  137. package/types/PricesResource.d.ts +22 -0
  138. package/types/Products.d.ts +39 -0
  139. package/types/ProductsResource.d.ts +36 -0
  140. package/types/QuoteLines.d.ts +634 -0
  141. package/types/QuotePreviewInvoices.d.ts +1658 -0
  142. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  143. package/types/Quotes.d.ts +591 -1
  144. package/types/QuotesResource.d.ts +2526 -194
  145. package/types/Refunds.d.ts +14 -0
  146. package/types/SetupAttempts.d.ts +43 -0
  147. package/types/SetupIntents.d.ts +116 -1
  148. package/types/SetupIntentsResource.d.ts +669 -3
  149. package/types/Sources.d.ts +29 -0
  150. package/types/SubscriptionItems.d.ts +21 -0
  151. package/types/SubscriptionItemsResource.d.ts +109 -0
  152. package/types/SubscriptionSchedules.d.ts +200 -0
  153. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  154. package/types/Subscriptions.d.ts +91 -1
  155. package/types/SubscriptionsResource.d.ts +369 -2
  156. package/types/Tax/Associations.d.ts +126 -0
  157. package/types/Tax/AssociationsResource.d.ts +29 -0
  158. package/types/Tax/Forms.d.ts +220 -0
  159. package/types/Tax/FormsResource.d.ts +107 -0
  160. package/types/Terminal/Configurations.d.ts +19 -0
  161. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  162. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  163. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  164. package/types/Terminal/Readers.d.ts +310 -0
  165. package/types/Terminal/ReadersResource.d.ts +215 -0
  166. package/types/TestHelpers/ConfirmationTokensResource.d.ts +112 -0
  167. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  168. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  169. package/types/TokensResource.d.ts +30 -0
  170. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  171. package/types/Treasury/FinancialAccounts.d.ts +12 -0
  172. package/types/Treasury/FinancialAccountsResource.d.ts +121 -0
  173. package/types/Treasury/OutboundTransfers.d.ts +43 -1
  174. package/types/Treasury/OutboundTransfersResource.d.ts +43 -0
  175. package/types/Treasury/ReceivedCredits.d.ts +36 -0
  176. package/types/Treasury/ReceivedCreditsResource.d.ts +1 -0
  177. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  178. package/types/WebhookEndpointsResource.d.ts +72 -1
  179. package/types/index.d.ts +62 -0
  180. package/types/lib.d.ts +1 -1
  181. package/types/test/typescriptTest.ts +3 -3
@@ -553,20 +553,27 @@ declare module 'stripe' {
553
553
  | 'eps'
554
554
  | 'fpx'
555
555
  | 'giropay'
556
+ | 'gopay'
556
557
  | 'grabpay'
557
558
  | 'ideal'
558
559
  | 'klarna'
559
560
  | 'konbini'
560
561
  | 'link'
562
+ | 'mb_way'
561
563
  | 'mobilepay'
562
564
  | 'multibanco'
563
565
  | 'oxxo'
564
566
  | 'p24'
567
+ | 'pay_by_bank'
565
568
  | 'paynow'
566
569
  | 'paypal'
570
+ | 'payto'
567
571
  | 'pix'
568
572
  | 'promptpay'
573
+ | 'qris'
574
+ | 'rechnung'
569
575
  | 'sepa_debit'
576
+ | 'shopeepay'
570
577
  | 'sofort'
571
578
  | 'swish'
572
579
  | 'twint'
@@ -792,6 +799,7 @@ declare module 'stripe' {
792
799
  | 'SA'
793
800
  | 'SB'
794
801
  | 'SC'
802
+ | 'SD'
795
803
  | 'SE'
796
804
  | 'SG'
797
805
  | 'SH'
@@ -614,20 +614,27 @@ declare module 'stripe' {
614
614
  | 'eps'
615
615
  | 'fpx'
616
616
  | 'giropay'
617
+ | 'gopay'
617
618
  | 'grabpay'
618
619
  | 'ideal'
619
620
  | 'klarna'
620
621
  | 'konbini'
621
622
  | 'link'
623
+ | 'mb_way'
622
624
  | 'mobilepay'
623
625
  | 'multibanco'
624
626
  | 'oxxo'
625
627
  | 'p24'
628
+ | 'pay_by_bank'
626
629
  | 'paynow'
627
630
  | 'paypal'
631
+ | 'payto'
628
632
  | 'pix'
629
633
  | 'promptpay'
634
+ | 'qris'
635
+ | 'rechnung'
630
636
  | 'sepa_debit'
637
+ | 'shopeepay'
631
638
  | 'sofort'
632
639
  | 'swish'
633
640
  | 'twint'
@@ -852,6 +859,7 @@ declare module 'stripe' {
852
859
  | 'SA'
853
860
  | 'SB'
854
861
  | 'SC'
862
+ | 'SD'
855
863
  | 'SE'
856
864
  | 'SG'
857
865
  | 'SH'
@@ -1118,6 +1126,13 @@ declare module 'stripe' {
1118
1126
  Array<PaymentLinkUpdateParams.PaymentMethodType>
1119
1127
  >;
1120
1128
 
1129
+ /**
1130
+ * Controls phone number collection settings during checkout.
1131
+ *
1132
+ * We recommend that you review your privacy policy and check with your legal contacts.
1133
+ */
1134
+ phone_number_collection?: PaymentLinkUpdateParams.PhoneNumberCollection;
1135
+
1121
1136
  /**
1122
1137
  * Settings that restrict the usage of a payment link.
1123
1138
  */
@@ -1546,20 +1561,27 @@ declare module 'stripe' {
1546
1561
  | 'eps'
1547
1562
  | 'fpx'
1548
1563
  | 'giropay'
1564
+ | 'gopay'
1549
1565
  | 'grabpay'
1550
1566
  | 'ideal'
1551
1567
  | 'klarna'
1552
1568
  | 'konbini'
1553
1569
  | 'link'
1570
+ | 'mb_way'
1554
1571
  | 'mobilepay'
1555
1572
  | 'multibanco'
1556
1573
  | 'oxxo'
1557
1574
  | 'p24'
1575
+ | 'pay_by_bank'
1558
1576
  | 'paynow'
1559
1577
  | 'paypal'
1578
+ | 'payto'
1560
1579
  | 'pix'
1561
1580
  | 'promptpay'
1581
+ | 'qris'
1582
+ | 'rechnung'
1562
1583
  | 'sepa_debit'
1584
+ | 'shopeepay'
1563
1585
  | 'sofort'
1564
1586
  | 'swish'
1565
1587
  | 'twint'
@@ -1567,6 +1589,13 @@ declare module 'stripe' {
1567
1589
  | 'wechat_pay'
1568
1590
  | 'zip';
1569
1591
 
1592
+ interface PhoneNumberCollection {
1593
+ /**
1594
+ * Set to `true` to enable phone number collection.
1595
+ */
1596
+ enabled: boolean;
1597
+ }
1598
+
1570
1599
  interface Restrictions {
1571
1600
  /**
1572
1601
  * Configuration for the `completed_sessions` restriction type.
@@ -1777,6 +1806,7 @@ declare module 'stripe' {
1777
1806
  | 'SA'
1778
1807
  | 'SB'
1779
1808
  | 'SC'
1809
+ | 'SD'
1780
1810
  | 'SE'
1781
1811
  | 'SG'
1782
1812
  | 'SH'
@@ -79,8 +79,12 @@ declare module 'stripe' {
79
79
 
80
80
  google_pay?: PaymentMethodConfiguration.GooglePay;
81
81
 
82
+ gopay?: PaymentMethodConfiguration.Gopay;
83
+
82
84
  grabpay?: PaymentMethodConfiguration.Grabpay;
83
85
 
86
+ id_bank_transfer?: PaymentMethodConfiguration.IdBankTransfer;
87
+
84
88
  ideal?: PaymentMethodConfiguration.Ideal;
85
89
 
86
90
  /**
@@ -119,16 +123,24 @@ declare module 'stripe' {
119
123
  */
120
124
  parent: string | null;
121
125
 
126
+ pay_by_bank?: PaymentMethodConfiguration.PayByBank;
127
+
122
128
  paynow?: PaymentMethodConfiguration.Paynow;
123
129
 
124
130
  paypal?: PaymentMethodConfiguration.Paypal;
125
131
 
132
+ payto?: PaymentMethodConfiguration.Payto;
133
+
126
134
  promptpay?: PaymentMethodConfiguration.Promptpay;
127
135
 
136
+ qris?: PaymentMethodConfiguration.Qris;
137
+
128
138
  revolut_pay?: PaymentMethodConfiguration.RevolutPay;
129
139
 
130
140
  sepa_debit?: PaymentMethodConfiguration.SepaDebit;
131
141
 
142
+ shopeepay?: PaymentMethodConfiguration.Shopeepay;
143
+
132
144
  sofort?: PaymentMethodConfiguration.Sofort;
133
145
 
134
146
  swish?: PaymentMethodConfiguration.Swish;
@@ -823,6 +835,40 @@ declare module 'stripe' {
823
835
  }
824
836
  }
825
837
 
838
+ interface Gopay {
839
+ /**
840
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
841
+ */
842
+ available: boolean;
843
+
844
+ display_preference: Gopay.DisplayPreference;
845
+ }
846
+
847
+ namespace Gopay {
848
+ interface DisplayPreference {
849
+ /**
850
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
851
+ */
852
+ overridable: boolean | null;
853
+
854
+ /**
855
+ * The account's display preference.
856
+ */
857
+ preference: DisplayPreference.Preference;
858
+
859
+ /**
860
+ * The effective display preference value.
861
+ */
862
+ value: DisplayPreference.Value;
863
+ }
864
+
865
+ namespace DisplayPreference {
866
+ type Preference = 'none' | 'off' | 'on';
867
+
868
+ type Value = 'off' | 'on';
869
+ }
870
+ }
871
+
826
872
  interface Grabpay {
827
873
  /**
828
874
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -857,6 +903,40 @@ declare module 'stripe' {
857
903
  }
858
904
  }
859
905
 
906
+ interface IdBankTransfer {
907
+ /**
908
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
909
+ */
910
+ available: boolean;
911
+
912
+ display_preference: IdBankTransfer.DisplayPreference;
913
+ }
914
+
915
+ namespace IdBankTransfer {
916
+ interface DisplayPreference {
917
+ /**
918
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
919
+ */
920
+ overridable: boolean | null;
921
+
922
+ /**
923
+ * The account's display preference.
924
+ */
925
+ preference: DisplayPreference.Preference;
926
+
927
+ /**
928
+ * The effective display preference value.
929
+ */
930
+ value: DisplayPreference.Value;
931
+ }
932
+
933
+ namespace DisplayPreference {
934
+ type Preference = 'none' | 'off' | 'on';
935
+
936
+ type Value = 'off' | 'on';
937
+ }
938
+ }
939
+
860
940
  interface Ideal {
861
941
  /**
862
942
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1163,6 +1243,40 @@ declare module 'stripe' {
1163
1243
  }
1164
1244
  }
1165
1245
 
1246
+ interface PayByBank {
1247
+ /**
1248
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1249
+ */
1250
+ available: boolean;
1251
+
1252
+ display_preference: PayByBank.DisplayPreference;
1253
+ }
1254
+
1255
+ namespace PayByBank {
1256
+ interface DisplayPreference {
1257
+ /**
1258
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1259
+ */
1260
+ overridable: boolean | null;
1261
+
1262
+ /**
1263
+ * The account's display preference.
1264
+ */
1265
+ preference: DisplayPreference.Preference;
1266
+
1267
+ /**
1268
+ * The effective display preference value.
1269
+ */
1270
+ value: DisplayPreference.Value;
1271
+ }
1272
+
1273
+ namespace DisplayPreference {
1274
+ type Preference = 'none' | 'off' | 'on';
1275
+
1276
+ type Value = 'off' | 'on';
1277
+ }
1278
+ }
1279
+
1166
1280
  interface Paynow {
1167
1281
  /**
1168
1282
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1231,6 +1345,40 @@ declare module 'stripe' {
1231
1345
  }
1232
1346
  }
1233
1347
 
1348
+ interface Payto {
1349
+ /**
1350
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1351
+ */
1352
+ available: boolean;
1353
+
1354
+ display_preference: Payto.DisplayPreference;
1355
+ }
1356
+
1357
+ namespace Payto {
1358
+ interface DisplayPreference {
1359
+ /**
1360
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1361
+ */
1362
+ overridable: boolean | null;
1363
+
1364
+ /**
1365
+ * The account's display preference.
1366
+ */
1367
+ preference: DisplayPreference.Preference;
1368
+
1369
+ /**
1370
+ * The effective display preference value.
1371
+ */
1372
+ value: DisplayPreference.Value;
1373
+ }
1374
+
1375
+ namespace DisplayPreference {
1376
+ type Preference = 'none' | 'off' | 'on';
1377
+
1378
+ type Value = 'off' | 'on';
1379
+ }
1380
+ }
1381
+
1234
1382
  interface Promptpay {
1235
1383
  /**
1236
1384
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1265,6 +1413,40 @@ declare module 'stripe' {
1265
1413
  }
1266
1414
  }
1267
1415
 
1416
+ interface Qris {
1417
+ /**
1418
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1419
+ */
1420
+ available: boolean;
1421
+
1422
+ display_preference: Qris.DisplayPreference;
1423
+ }
1424
+
1425
+ namespace Qris {
1426
+ interface DisplayPreference {
1427
+ /**
1428
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1429
+ */
1430
+ overridable: boolean | null;
1431
+
1432
+ /**
1433
+ * The account's display preference.
1434
+ */
1435
+ preference: DisplayPreference.Preference;
1436
+
1437
+ /**
1438
+ * The effective display preference value.
1439
+ */
1440
+ value: DisplayPreference.Value;
1441
+ }
1442
+
1443
+ namespace DisplayPreference {
1444
+ type Preference = 'none' | 'off' | 'on';
1445
+
1446
+ type Value = 'off' | 'on';
1447
+ }
1448
+ }
1449
+
1268
1450
  interface RevolutPay {
1269
1451
  /**
1270
1452
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1333,6 +1515,40 @@ declare module 'stripe' {
1333
1515
  }
1334
1516
  }
1335
1517
 
1518
+ interface Shopeepay {
1519
+ /**
1520
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1521
+ */
1522
+ available: boolean;
1523
+
1524
+ display_preference: Shopeepay.DisplayPreference;
1525
+ }
1526
+
1527
+ namespace Shopeepay {
1528
+ interface DisplayPreference {
1529
+ /**
1530
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1531
+ */
1532
+ overridable: boolean | null;
1533
+
1534
+ /**
1535
+ * The account's display preference.
1536
+ */
1537
+ preference: DisplayPreference.Preference;
1538
+
1539
+ /**
1540
+ * The effective display preference value.
1541
+ */
1542
+ value: DisplayPreference.Value;
1543
+ }
1544
+
1545
+ namespace DisplayPreference {
1546
+ type Preference = 'none' | 'off' | 'on';
1547
+
1548
+ type Value = 'off' | 'on';
1549
+ }
1550
+ }
1551
+
1336
1552
  interface Sofort {
1337
1553
  /**
1338
1554
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.