stripe 18.2.0-beta.1 → 18.3.0-beta.1

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 (141) hide show
  1. package/CHANGELOG.md +229 -31
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +11 -11
  4. package/VERSION +1 -1
  5. package/cjs/RequestSender.js +2 -2
  6. package/cjs/StripeResource.js +1 -1
  7. package/cjs/apiVersion.js +1 -1
  8. package/cjs/resources/Subscriptions.js +4 -0
  9. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  10. package/cjs/resources.js +15 -17
  11. package/cjs/stripe.core.js +1 -1
  12. package/cjs/utils.js +5 -0
  13. package/esm/RequestSender.js +2 -2
  14. package/esm/StripeResource.js +1 -1
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/Subscriptions.js +4 -0
  17. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  18. package/esm/resources.js +4 -6
  19. package/esm/stripe.core.js +1 -1
  20. package/esm/utils.js +5 -0
  21. package/package.json +1 -1
  22. package/types/AccountSessions.d.ts +65 -0
  23. package/types/AccountSessionsResource.d.ts +41 -0
  24. package/types/Accounts.d.ts +22 -15
  25. package/types/AccountsResource.d.ts +81 -57
  26. package/types/Balance.d.ts +83 -1
  27. package/types/BalanceResource.d.ts +1 -1
  28. package/types/BalanceSettings.d.ts +1 -1
  29. package/types/BalanceSettingsResource.d.ts +5 -5
  30. package/types/BalanceTransactions.d.ts +10 -0
  31. package/types/BankAccounts.d.ts +3 -3
  32. package/types/Billing/Alerts.d.ts +1 -1
  33. package/types/Billing/AlertsResource.d.ts +2 -2
  34. package/types/BillingPortal/Sessions.d.ts +1 -1
  35. package/types/Capabilities.d.ts +1 -1
  36. package/types/Cards.d.ts +2 -2
  37. package/types/Charges.d.ts +20 -0
  38. package/types/ChargesResource.d.ts +96 -4
  39. package/types/Checkout/Sessions.d.ts +123 -108
  40. package/types/Checkout/SessionsResource.d.ts +125 -116
  41. package/types/ConfirmationTokens.d.ts +4 -4
  42. package/types/CountrySpecs.d.ts +1 -1
  43. package/types/CreditNotes.d.ts +11 -5
  44. package/types/CreditNotesResource.d.ts +7 -8
  45. package/types/CustomerSessions.d.ts +3 -3
  46. package/types/CustomersResource.d.ts +7 -7
  47. package/types/Disputes.d.ts +1 -1
  48. package/types/DisputesResource.d.ts +1 -1
  49. package/types/EventTypes.d.ts +17 -17
  50. package/types/Events.d.ts +4 -1
  51. package/types/ExternalAccountsResource.d.ts +1 -1
  52. package/types/Files.d.ts +1 -1
  53. package/types/FilesResource.d.ts +1 -1
  54. package/types/FinancialConnections/Accounts.d.ts +5 -0
  55. package/types/FinancialConnections/Institutions.d.ts +5 -0
  56. package/types/Identity/VerificationReports.d.ts +17 -0
  57. package/types/Identity/VerificationSessions.d.ts +19 -2
  58. package/types/Identity/VerificationSessionsResource.d.ts +5 -5
  59. package/types/InvoiceItems.d.ts +1 -1
  60. package/types/InvoiceLineItems.d.ts +1 -1
  61. package/types/InvoicePayments.d.ts +9 -2
  62. package/types/Invoices.d.ts +7 -9
  63. package/types/InvoicesResource.d.ts +60 -18
  64. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  65. package/types/Issuing/CardsResource.d.ts +3 -0
  66. package/types/Issuing/DisputesResource.d.ts +2 -2
  67. package/types/LineItems.d.ts +2 -2
  68. package/types/Orders.d.ts +43 -83
  69. package/types/OrdersResource.d.ts +85 -119
  70. package/types/PaymentAttemptRecords.d.ts +21 -1
  71. package/types/PaymentIntentAmountDetailsLineItems.d.ts +6 -0
  72. package/types/PaymentIntents.d.ts +224 -173
  73. package/types/PaymentIntentsResource.d.ts +819 -584
  74. package/types/PaymentMethodConfigurations.d.ts +180 -0
  75. package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
  76. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  77. package/types/PaymentMethods.d.ts +4 -4
  78. package/types/PaymentMethodsResource.d.ts +8 -8
  79. package/types/PaymentRecords.d.ts +21 -1
  80. package/types/PaymentRecordsResource.d.ts +5 -5
  81. package/types/Payouts.d.ts +2 -2
  82. package/types/PayoutsResource.d.ts +2 -2
  83. package/types/Persons.d.ts +10 -10
  84. package/types/PlansResource.d.ts +1 -1
  85. package/types/PricesResource.d.ts +2 -2
  86. package/types/Privacy/RedactionJobValidationErrors.d.ts +35 -5
  87. package/types/Privacy/RedactionJobs.d.ts +53 -7
  88. package/types/Privacy/RedactionJobsResource.d.ts +25 -13
  89. package/types/Products.d.ts +0 -39
  90. package/types/ProductsResource.d.ts +1 -37
  91. package/types/PromotionCodesResource.d.ts +1 -1
  92. package/types/QuotePreviewInvoices.d.ts +7 -9
  93. package/types/QuotePreviewSubscriptionSchedules.d.ts +48 -2
  94. package/types/Quotes.d.ts +7 -7
  95. package/types/QuotesResource.d.ts +1 -1
  96. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  97. package/types/Refunds.d.ts +6 -1
  98. package/types/Reviews.d.ts +1 -1
  99. package/types/SetupAttempts.d.ts +1 -3
  100. package/types/SetupIntents.d.ts +2 -4
  101. package/types/SetupIntentsResource.d.ts +3 -3
  102. package/types/SourcesResource.d.ts +1 -1
  103. package/types/SubscriptionItems.d.ts +21 -0
  104. package/types/SubscriptionItemsResource.d.ts +28 -0
  105. package/types/SubscriptionSchedules.d.ts +48 -2
  106. package/types/SubscriptionSchedulesResource.d.ts +100 -4
  107. package/types/Subscriptions.d.ts +32 -3
  108. package/types/SubscriptionsResource.d.ts +104 -17
  109. package/types/Tax/Associations.d.ts +19 -63
  110. package/types/Tax/CalculationLineItems.d.ts +5 -0
  111. package/types/Tax/CalculationsResource.d.ts +5 -0
  112. package/types/Tax/RegistrationsResource.d.ts +1 -1
  113. package/types/TaxRates.d.ts +2 -2
  114. package/types/Terminal/LocationsResource.d.ts +1 -1
  115. package/types/Terminal/Readers.d.ts +21 -1
  116. package/types/Terminal/ReadersResource.d.ts +20 -0
  117. package/types/Tokens.d.ts +3 -3
  118. package/types/TokensResource.d.ts +8 -8
  119. package/types/TransferReversals.d.ts +1 -1
  120. package/types/TransfersResource.d.ts +2 -2
  121. package/types/Treasury/ReceivedCredits.d.ts +2 -2
  122. package/types/V2/Core/Accounts.d.ts +5 -5
  123. package/types/V2/EventTypes.d.ts +102 -11
  124. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -1
  125. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -43
  126. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -49
  127. package/types/V2/Payments/OffSessionPayments.d.ts +167 -0
  128. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
  129. package/types/WebhookEndpointsResource.d.ts +4 -3
  130. package/types/index.d.ts +5 -9
  131. package/types/lib.d.ts +1 -1
  132. package/types/test/typescriptTest.ts +3 -3
  133. package/cjs/resources/GiftCards/Cards.js +0 -23
  134. package/cjs/resources/GiftCards/Transactions.js +0 -33
  135. package/esm/resources/GiftCards/Cards.js +0 -20
  136. package/esm/resources/GiftCards/Transactions.js +0 -30
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/GiftCards/Cards.d.ts +0 -118
  139. package/types/GiftCards/CardsResource.d.ts +0 -159
  140. package/types/GiftCards/Transactions.d.ts +0 -129
  141. package/types/GiftCards/TransactionsResource.d.ts +0 -201
@@ -96,10 +96,14 @@ declare module 'stripe' {
96
96
 
97
97
  jcb?: PaymentMethodConfiguration.Jcb;
98
98
 
99
+ kakao_pay?: PaymentMethodConfiguration.KakaoPay;
100
+
99
101
  klarna?: PaymentMethodConfiguration.Klarna;
100
102
 
101
103
  konbini?: PaymentMethodConfiguration.Konbini;
102
104
 
105
+ kr_card?: PaymentMethodConfiguration.KrCard;
106
+
103
107
  link?: PaymentMethodConfiguration.Link;
104
108
 
105
109
  /**
@@ -116,6 +120,8 @@ declare module 'stripe' {
116
120
  */
117
121
  name: string;
118
122
 
123
+ naver_pay?: PaymentMethodConfiguration.NaverPay;
124
+
119
125
  nz_bank_account?: PaymentMethodConfiguration.NzBankAccount;
120
126
 
121
127
  oxxo?: PaymentMethodConfiguration.Oxxo;
@@ -129,6 +135,8 @@ declare module 'stripe' {
129
135
 
130
136
  pay_by_bank?: PaymentMethodConfiguration.PayByBank;
131
137
 
138
+ payco?: PaymentMethodConfiguration.Payco;
139
+
132
140
  paynow?: PaymentMethodConfiguration.Paynow;
133
141
 
134
142
  paypal?: PaymentMethodConfiguration.Paypal;
@@ -143,6 +151,8 @@ declare module 'stripe' {
143
151
 
144
152
  revolut_pay?: PaymentMethodConfiguration.RevolutPay;
145
153
 
154
+ samsung_pay?: PaymentMethodConfiguration.SamsungPay;
155
+
146
156
  satispay?: PaymentMethodConfiguration.Satispay;
147
157
 
148
158
  sepa_debit?: PaymentMethodConfiguration.SepaDebit;
@@ -1047,6 +1057,40 @@ declare module 'stripe' {
1047
1057
  }
1048
1058
  }
1049
1059
 
1060
+ interface KakaoPay {
1061
+ /**
1062
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1063
+ */
1064
+ available: boolean;
1065
+
1066
+ display_preference: KakaoPay.DisplayPreference;
1067
+ }
1068
+
1069
+ namespace KakaoPay {
1070
+ interface DisplayPreference {
1071
+ /**
1072
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1073
+ */
1074
+ overridable: boolean | null;
1075
+
1076
+ /**
1077
+ * The account's display preference.
1078
+ */
1079
+ preference: DisplayPreference.Preference;
1080
+
1081
+ /**
1082
+ * The effective display preference value.
1083
+ */
1084
+ value: DisplayPreference.Value;
1085
+ }
1086
+
1087
+ namespace DisplayPreference {
1088
+ type Preference = 'none' | 'off' | 'on';
1089
+
1090
+ type Value = 'off' | 'on';
1091
+ }
1092
+ }
1093
+
1050
1094
  interface Klarna {
1051
1095
  /**
1052
1096
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1115,6 +1159,40 @@ declare module 'stripe' {
1115
1159
  }
1116
1160
  }
1117
1161
 
1162
+ interface KrCard {
1163
+ /**
1164
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1165
+ */
1166
+ available: boolean;
1167
+
1168
+ display_preference: KrCard.DisplayPreference;
1169
+ }
1170
+
1171
+ namespace KrCard {
1172
+ interface DisplayPreference {
1173
+ /**
1174
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1175
+ */
1176
+ overridable: boolean | null;
1177
+
1178
+ /**
1179
+ * The account's display preference.
1180
+ */
1181
+ preference: DisplayPreference.Preference;
1182
+
1183
+ /**
1184
+ * The effective display preference value.
1185
+ */
1186
+ value: DisplayPreference.Value;
1187
+ }
1188
+
1189
+ namespace DisplayPreference {
1190
+ type Preference = 'none' | 'off' | 'on';
1191
+
1192
+ type Value = 'off' | 'on';
1193
+ }
1194
+ }
1195
+
1118
1196
  interface Link {
1119
1197
  /**
1120
1198
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1217,6 +1295,40 @@ declare module 'stripe' {
1217
1295
  }
1218
1296
  }
1219
1297
 
1298
+ interface NaverPay {
1299
+ /**
1300
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1301
+ */
1302
+ available: boolean;
1303
+
1304
+ display_preference: NaverPay.DisplayPreference;
1305
+ }
1306
+
1307
+ namespace NaverPay {
1308
+ interface DisplayPreference {
1309
+ /**
1310
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1311
+ */
1312
+ overridable: boolean | null;
1313
+
1314
+ /**
1315
+ * The account's display preference.
1316
+ */
1317
+ preference: DisplayPreference.Preference;
1318
+
1319
+ /**
1320
+ * The effective display preference value.
1321
+ */
1322
+ value: DisplayPreference.Value;
1323
+ }
1324
+
1325
+ namespace DisplayPreference {
1326
+ type Preference = 'none' | 'off' | 'on';
1327
+
1328
+ type Value = 'off' | 'on';
1329
+ }
1330
+ }
1331
+
1220
1332
  interface NzBankAccount {
1221
1333
  /**
1222
1334
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1353,6 +1465,40 @@ declare module 'stripe' {
1353
1465
  }
1354
1466
  }
1355
1467
 
1468
+ interface Payco {
1469
+ /**
1470
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1471
+ */
1472
+ available: boolean;
1473
+
1474
+ display_preference: Payco.DisplayPreference;
1475
+ }
1476
+
1477
+ namespace Payco {
1478
+ interface DisplayPreference {
1479
+ /**
1480
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1481
+ */
1482
+ overridable: boolean | null;
1483
+
1484
+ /**
1485
+ * The account's display preference.
1486
+ */
1487
+ preference: DisplayPreference.Preference;
1488
+
1489
+ /**
1490
+ * The effective display preference value.
1491
+ */
1492
+ value: DisplayPreference.Value;
1493
+ }
1494
+
1495
+ namespace DisplayPreference {
1496
+ type Preference = 'none' | 'off' | 'on';
1497
+
1498
+ type Value = 'off' | 'on';
1499
+ }
1500
+ }
1501
+
1356
1502
  interface Paynow {
1357
1503
  /**
1358
1504
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1591,6 +1737,40 @@ declare module 'stripe' {
1591
1737
  }
1592
1738
  }
1593
1739
 
1740
+ interface SamsungPay {
1741
+ /**
1742
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1743
+ */
1744
+ available: boolean;
1745
+
1746
+ display_preference: SamsungPay.DisplayPreference;
1747
+ }
1748
+
1749
+ namespace SamsungPay {
1750
+ interface DisplayPreference {
1751
+ /**
1752
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1753
+ */
1754
+ overridable: boolean | null;
1755
+
1756
+ /**
1757
+ * The account's display preference.
1758
+ */
1759
+ preference: DisplayPreference.Preference;
1760
+
1761
+ /**
1762
+ * The effective display preference value.
1763
+ */
1764
+ value: DisplayPreference.Value;
1765
+ }
1766
+
1767
+ namespace DisplayPreference {
1768
+ type Preference = 'none' | 'off' | 'on';
1769
+
1770
+ type Value = 'off' | 'on';
1771
+ }
1772
+ }
1773
+
1594
1774
  interface Satispay {
1595
1775
  /**
1596
1776
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -59,7 +59,7 @@ declare module 'stripe' {
59
59
  bancontact?: PaymentMethodConfigurationCreateParams.Bancontact;
60
60
 
61
61
  /**
62
- * Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
62
+ * Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
63
63
  */
64
64
  billie?: PaymentMethodConfigurationCreateParams.Billie;
65
65
 
@@ -143,6 +143,11 @@ declare module 'stripe' {
143
143
  */
144
144
  jcb?: PaymentMethodConfigurationCreateParams.Jcb;
145
145
 
146
+ /**
147
+ * Kakao Pay is a popular local wallet available in South Korea.
148
+ */
149
+ kakao_pay?: PaymentMethodConfigurationCreateParams.KakaoPay;
150
+
146
151
  /**
147
152
  * Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
148
153
  */
@@ -153,6 +158,11 @@ declare module 'stripe' {
153
158
  */
154
159
  konbini?: PaymentMethodConfigurationCreateParams.Konbini;
155
160
 
161
+ /**
162
+ * Korean cards let users pay using locally issued cards from South Korea.
163
+ */
164
+ kr_card?: PaymentMethodConfigurationCreateParams.KrCard;
165
+
156
166
  /**
157
167
  * [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
158
168
  */
@@ -173,6 +183,11 @@ declare module 'stripe' {
173
183
  */
174
184
  name?: string;
175
185
 
186
+ /**
187
+ * Naver Pay is a popular local wallet available in South Korea.
188
+ */
189
+ naver_pay?: PaymentMethodConfigurationCreateParams.NaverPay;
190
+
176
191
  /**
177
192
  * Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
178
193
  */
@@ -198,6 +213,11 @@ declare module 'stripe' {
198
213
  */
199
214
  pay_by_bank?: PaymentMethodConfigurationCreateParams.PayByBank;
200
215
 
216
+ /**
217
+ * PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
218
+ */
219
+ payco?: PaymentMethodConfigurationCreateParams.Payco;
220
+
201
221
  /**
202
222
  * PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
203
223
  */
@@ -234,7 +254,12 @@ declare module 'stripe' {
234
254
  revolut_pay?: PaymentMethodConfigurationCreateParams.RevolutPay;
235
255
 
236
256
  /**
237
- * Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
257
+ * Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
258
+ */
259
+ samsung_pay?: PaymentMethodConfigurationCreateParams.SamsungPay;
260
+
261
+ /**
262
+ * Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
238
263
  */
239
264
  satispay?: PaymentMethodConfigurationCreateParams.Satispay;
240
265
 
@@ -820,6 +845,26 @@ declare module 'stripe' {
820
845
  }
821
846
  }
822
847
 
848
+ interface KakaoPay {
849
+ /**
850
+ * Whether or not the payment method should be displayed.
851
+ */
852
+ display_preference?: KakaoPay.DisplayPreference;
853
+ }
854
+
855
+ namespace KakaoPay {
856
+ interface DisplayPreference {
857
+ /**
858
+ * The account's preference for whether or not to display this payment method.
859
+ */
860
+ preference?: DisplayPreference.Preference;
861
+ }
862
+
863
+ namespace DisplayPreference {
864
+ type Preference = 'none' | 'off' | 'on';
865
+ }
866
+ }
867
+
823
868
  interface Klarna {
824
869
  /**
825
870
  * Whether or not the payment method should be displayed.
@@ -860,6 +905,26 @@ declare module 'stripe' {
860
905
  }
861
906
  }
862
907
 
908
+ interface KrCard {
909
+ /**
910
+ * Whether or not the payment method should be displayed.
911
+ */
912
+ display_preference?: KrCard.DisplayPreference;
913
+ }
914
+
915
+ namespace KrCard {
916
+ interface DisplayPreference {
917
+ /**
918
+ * The account's preference for whether or not to display this payment method.
919
+ */
920
+ preference?: DisplayPreference.Preference;
921
+ }
922
+
923
+ namespace DisplayPreference {
924
+ type Preference = 'none' | 'off' | 'on';
925
+ }
926
+ }
927
+
863
928
  interface Link {
864
929
  /**
865
930
  * Whether or not the payment method should be displayed.
@@ -920,6 +985,26 @@ declare module 'stripe' {
920
985
  }
921
986
  }
922
987
 
988
+ interface NaverPay {
989
+ /**
990
+ * Whether or not the payment method should be displayed.
991
+ */
992
+ display_preference?: NaverPay.DisplayPreference;
993
+ }
994
+
995
+ namespace NaverPay {
996
+ interface DisplayPreference {
997
+ /**
998
+ * The account's preference for whether or not to display this payment method.
999
+ */
1000
+ preference?: DisplayPreference.Preference;
1001
+ }
1002
+
1003
+ namespace DisplayPreference {
1004
+ type Preference = 'none' | 'off' | 'on';
1005
+ }
1006
+ }
1007
+
923
1008
  interface NzBankAccount {
924
1009
  /**
925
1010
  * Whether or not the payment method should be displayed.
@@ -1000,6 +1085,26 @@ declare module 'stripe' {
1000
1085
  }
1001
1086
  }
1002
1087
 
1088
+ interface Payco {
1089
+ /**
1090
+ * Whether or not the payment method should be displayed.
1091
+ */
1092
+ display_preference?: Payco.DisplayPreference;
1093
+ }
1094
+
1095
+ namespace Payco {
1096
+ interface DisplayPreference {
1097
+ /**
1098
+ * The account's preference for whether or not to display this payment method.
1099
+ */
1100
+ preference?: DisplayPreference.Preference;
1101
+ }
1102
+
1103
+ namespace DisplayPreference {
1104
+ type Preference = 'none' | 'off' | 'on';
1105
+ }
1106
+ }
1107
+
1003
1108
  interface Paynow {
1004
1109
  /**
1005
1110
  * Whether or not the payment method should be displayed.
@@ -1140,6 +1245,26 @@ declare module 'stripe' {
1140
1245
  }
1141
1246
  }
1142
1247
 
1248
+ interface SamsungPay {
1249
+ /**
1250
+ * Whether or not the payment method should be displayed.
1251
+ */
1252
+ display_preference?: SamsungPay.DisplayPreference;
1253
+ }
1254
+
1255
+ namespace SamsungPay {
1256
+ interface DisplayPreference {
1257
+ /**
1258
+ * The account's preference for whether or not to display this payment method.
1259
+ */
1260
+ preference?: DisplayPreference.Preference;
1261
+ }
1262
+
1263
+ namespace DisplayPreference {
1264
+ type Preference = 'none' | 'off' | 'on';
1265
+ }
1266
+ }
1267
+
1143
1268
  interface Satispay {
1144
1269
  /**
1145
1270
  * Whether or not the payment method should be displayed.
@@ -1390,7 +1515,7 @@ declare module 'stripe' {
1390
1515
  bancontact?: PaymentMethodConfigurationUpdateParams.Bancontact;
1391
1516
 
1392
1517
  /**
1393
- * Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1518
+ * Billie is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method that offers businesses Pay by Invoice where they offer payment terms ranging from 7-120 days. Customers are redirected from your website or app, authorize the payment with Billie, then return to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1394
1519
  */
1395
1520
  billie?: PaymentMethodConfigurationUpdateParams.Billie;
1396
1521
 
@@ -1474,6 +1599,11 @@ declare module 'stripe' {
1474
1599
  */
1475
1600
  jcb?: PaymentMethodConfigurationUpdateParams.Jcb;
1476
1601
 
1602
+ /**
1603
+ * Kakao Pay is a popular local wallet available in South Korea.
1604
+ */
1605
+ kakao_pay?: PaymentMethodConfigurationUpdateParams.KakaoPay;
1606
+
1477
1607
  /**
1478
1608
  * Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
1479
1609
  */
@@ -1484,6 +1614,11 @@ declare module 'stripe' {
1484
1614
  */
1485
1615
  konbini?: PaymentMethodConfigurationUpdateParams.Konbini;
1486
1616
 
1617
+ /**
1618
+ * Korean cards let users pay using locally issued cards from South Korea.
1619
+ */
1620
+ kr_card?: PaymentMethodConfigurationUpdateParams.KrCard;
1621
+
1487
1622
  /**
1488
1623
  * [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
1489
1624
  */
@@ -1504,6 +1639,11 @@ declare module 'stripe' {
1504
1639
  */
1505
1640
  name?: string;
1506
1641
 
1642
+ /**
1643
+ * Naver Pay is a popular local wallet available in South Korea.
1644
+ */
1645
+ naver_pay?: PaymentMethodConfigurationUpdateParams.NaverPay;
1646
+
1507
1647
  /**
1508
1648
  * Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
1509
1649
  */
@@ -1524,6 +1664,11 @@ declare module 'stripe' {
1524
1664
  */
1525
1665
  pay_by_bank?: PaymentMethodConfigurationUpdateParams.PayByBank;
1526
1666
 
1667
+ /**
1668
+ * PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1669
+ */
1670
+ payco?: PaymentMethodConfigurationUpdateParams.Payco;
1671
+
1527
1672
  /**
1528
1673
  * PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
1529
1674
  */
@@ -1560,7 +1705,12 @@ declare module 'stripe' {
1560
1705
  revolut_pay?: PaymentMethodConfigurationUpdateParams.RevolutPay;
1561
1706
 
1562
1707
  /**
1563
- * Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1708
+ * Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1709
+ */
1710
+ samsung_pay?: PaymentMethodConfigurationUpdateParams.SamsungPay;
1711
+
1712
+ /**
1713
+ * Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](https://docs.stripe.com/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](https://docs.stripe.com/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1564
1714
  */
1565
1715
  satispay?: PaymentMethodConfigurationUpdateParams.Satispay;
1566
1716
 
@@ -2146,6 +2296,26 @@ declare module 'stripe' {
2146
2296
  }
2147
2297
  }
2148
2298
 
2299
+ interface KakaoPay {
2300
+ /**
2301
+ * Whether or not the payment method should be displayed.
2302
+ */
2303
+ display_preference?: KakaoPay.DisplayPreference;
2304
+ }
2305
+
2306
+ namespace KakaoPay {
2307
+ interface DisplayPreference {
2308
+ /**
2309
+ * The account's preference for whether or not to display this payment method.
2310
+ */
2311
+ preference?: DisplayPreference.Preference;
2312
+ }
2313
+
2314
+ namespace DisplayPreference {
2315
+ type Preference = 'none' | 'off' | 'on';
2316
+ }
2317
+ }
2318
+
2149
2319
  interface Klarna {
2150
2320
  /**
2151
2321
  * Whether or not the payment method should be displayed.
@@ -2186,6 +2356,26 @@ declare module 'stripe' {
2186
2356
  }
2187
2357
  }
2188
2358
 
2359
+ interface KrCard {
2360
+ /**
2361
+ * Whether or not the payment method should be displayed.
2362
+ */
2363
+ display_preference?: KrCard.DisplayPreference;
2364
+ }
2365
+
2366
+ namespace KrCard {
2367
+ interface DisplayPreference {
2368
+ /**
2369
+ * The account's preference for whether or not to display this payment method.
2370
+ */
2371
+ preference?: DisplayPreference.Preference;
2372
+ }
2373
+
2374
+ namespace DisplayPreference {
2375
+ type Preference = 'none' | 'off' | 'on';
2376
+ }
2377
+ }
2378
+
2189
2379
  interface Link {
2190
2380
  /**
2191
2381
  * Whether or not the payment method should be displayed.
@@ -2246,6 +2436,26 @@ declare module 'stripe' {
2246
2436
  }
2247
2437
  }
2248
2438
 
2439
+ interface NaverPay {
2440
+ /**
2441
+ * Whether or not the payment method should be displayed.
2442
+ */
2443
+ display_preference?: NaverPay.DisplayPreference;
2444
+ }
2445
+
2446
+ namespace NaverPay {
2447
+ interface DisplayPreference {
2448
+ /**
2449
+ * The account's preference for whether or not to display this payment method.
2450
+ */
2451
+ preference?: DisplayPreference.Preference;
2452
+ }
2453
+
2454
+ namespace DisplayPreference {
2455
+ type Preference = 'none' | 'off' | 'on';
2456
+ }
2457
+ }
2458
+
2249
2459
  interface NzBankAccount {
2250
2460
  /**
2251
2461
  * Whether or not the payment method should be displayed.
@@ -2326,6 +2536,26 @@ declare module 'stripe' {
2326
2536
  }
2327
2537
  }
2328
2538
 
2539
+ interface Payco {
2540
+ /**
2541
+ * Whether or not the payment method should be displayed.
2542
+ */
2543
+ display_preference?: Payco.DisplayPreference;
2544
+ }
2545
+
2546
+ namespace Payco {
2547
+ interface DisplayPreference {
2548
+ /**
2549
+ * The account's preference for whether or not to display this payment method.
2550
+ */
2551
+ preference?: DisplayPreference.Preference;
2552
+ }
2553
+
2554
+ namespace DisplayPreference {
2555
+ type Preference = 'none' | 'off' | 'on';
2556
+ }
2557
+ }
2558
+
2329
2559
  interface Paynow {
2330
2560
  /**
2331
2561
  * Whether or not the payment method should be displayed.
@@ -2466,6 +2696,26 @@ declare module 'stripe' {
2466
2696
  }
2467
2697
  }
2468
2698
 
2699
+ interface SamsungPay {
2700
+ /**
2701
+ * Whether or not the payment method should be displayed.
2702
+ */
2703
+ display_preference?: SamsungPay.DisplayPreference;
2704
+ }
2705
+
2706
+ namespace SamsungPay {
2707
+ interface DisplayPreference {
2708
+ /**
2709
+ * The account's preference for whether or not to display this payment method.
2710
+ */
2711
+ preference?: DisplayPreference.Preference;
2712
+ }
2713
+
2714
+ namespace DisplayPreference {
2715
+ type Preference = 'none' | 'off' | 'on';
2716
+ }
2717
+ }
2718
+
2469
2719
  interface Satispay {
2470
2720
  /**
2471
2721
  * Whether or not the payment method should be displayed.
@@ -110,7 +110,7 @@ declare module 'stripe' {
110
110
  *
111
111
  * To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
112
112
  *
113
- * Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
113
+ * Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
114
114
  */
115
115
  validate(
116
116
  id: string,
@@ -649,7 +649,7 @@ declare module 'stripe' {
649
649
 
650
650
  interface Networks {
651
651
  /**
652
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
652
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
653
653
  */
654
654
  available: Array<string>;
655
655
 
@@ -849,7 +849,7 @@ declare module 'stripe' {
849
849
  namespace CardPresent {
850
850
  interface Networks {
851
851
  /**
852
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
852
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
853
853
  */
854
854
  available: Array<string>;
855
855
 
@@ -1131,7 +1131,7 @@ declare module 'stripe' {
1131
1131
  namespace InteracPresent {
1132
1132
  interface Networks {
1133
1133
  /**
1134
- * All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
1134
+ * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
1135
1135
  */
1136
1136
  available: Array<string>;
1137
1137
 
@@ -1240,7 +1240,7 @@ declare module 'stripe' {
1240
1240
  /**
1241
1241
  * Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
1242
1242
  */
1243
- buyer_id?: string | null;
1243
+ buyer_id: string | null;
1244
1244
 
1245
1245
  /**
1246
1246
  * Whether to fund this transaction with Naver Pay points or a card.