stripe 17.6.0 → 17.7.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 (179) hide show
  1. package/CHANGELOG.md +1068 -109
  2. package/OPENAPI_VERSION +1 -0
  3. package/README.md +1 -0
  4. package/VERSION +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.js +48 -10
  29. package/cjs/stripe.core.js +1 -1
  30. package/esm/resources/AccountNotices.js +18 -0
  31. package/esm/resources/Capital/FinancingOffers.js +18 -0
  32. package/esm/resources/Capital/FinancingSummary.js +9 -0
  33. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  34. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  35. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  36. package/esm/resources/GiftCards/Cards.js +20 -0
  37. package/esm/resources/GiftCards/Transactions.js +30 -0
  38. package/esm/resources/Invoices.js +17 -0
  39. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  40. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  41. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  42. package/esm/resources/Margins.js +19 -0
  43. package/esm/resources/Orders.js +21 -0
  44. package/esm/resources/PaymentAttemptRecords.js +14 -0
  45. package/esm/resources/PaymentIntents.js +8 -0
  46. package/esm/resources/PaymentRecords.js +26 -0
  47. package/esm/resources/Quotes.js +32 -0
  48. package/esm/resources/SubscriptionSchedules.js +4 -0
  49. package/esm/resources/Tax/Associations.js +6 -0
  50. package/esm/resources/Tax/Forms.js +17 -0
  51. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  52. package/esm/resources/Terminal/Readers.js +12 -0
  53. package/esm/resources.js +33 -0
  54. package/esm/stripe.core.js +1 -1
  55. package/package.json +1 -1
  56. package/types/AccountLinksResource.d.ts +5 -1
  57. package/types/AccountNotices.d.ts +113 -0
  58. package/types/AccountNoticesResource.d.ts +98 -0
  59. package/types/AccountSessions.d.ts +45 -0
  60. package/types/AccountSessionsResource.d.ts +243 -0
  61. package/types/Accounts.d.ts +205 -1
  62. package/types/AccountsResource.d.ts +526 -2
  63. package/types/Balance.d.ts +18 -18
  64. package/types/Billing/CreditBalanceSummaryResource.d.ts +14 -0
  65. package/types/Billing/CreditGrants.d.ts +15 -1
  66. package/types/Billing/CreditGrantsResource.d.ts +14 -0
  67. package/types/Billing/MeterErrorReports.d.ts +106 -0
  68. package/types/Billing/MeterEventSummaries.d.ts +2 -0
  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 +5 -0
  76. package/types/Charges.d.ts +151 -3
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +362 -9
  79. package/types/Checkout/SessionsResource.d.ts +465 -5
  80. package/types/ConfirmationTokens.d.ts +103 -4
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNotes.d.ts +23 -2
  84. package/types/CreditNotesResource.d.ts +51 -0
  85. package/types/CustomersResource.d.ts +7 -0
  86. package/types/EventTypes.d.ts +596 -0
  87. package/types/Events.d.ts +93 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/GiftCards/Cards.d.ts +118 -0
  96. package/types/GiftCards/CardsResource.d.ts +159 -0
  97. package/types/GiftCards/Transactions.d.ts +129 -0
  98. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  99. package/types/InvoiceItems.d.ts +5 -0
  100. package/types/InvoiceItemsResource.d.ts +98 -0
  101. package/types/InvoiceLineItems.d.ts +28 -1
  102. package/types/InvoicePayments.d.ts +113 -0
  103. package/types/Invoices.d.ts +139 -4
  104. package/types/InvoicesResource.d.ts +4618 -933
  105. package/types/Issuing/Authorizations.d.ts +1 -0
  106. package/types/Issuing/CardholdersResource.d.ts +2 -1
  107. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  108. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  109. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  110. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  111. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  112. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +34 -2
  117. package/types/Mandates.d.ts +77 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1179 -0
  121. package/types/OrdersResource.d.ts +2961 -0
  122. package/types/PaymentAttemptRecords.d.ts +242 -0
  123. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  124. package/types/PaymentIntents.d.ts +644 -1
  125. package/types/PaymentIntentsResource.d.ts +8027 -3740
  126. package/types/PaymentLinks.d.ts +6 -0
  127. package/types/PaymentLinksResource.d.ts +12 -0
  128. package/types/PaymentMethodConfigurations.d.ts +180 -0
  129. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  130. package/types/PaymentMethods.d.ts +103 -4
  131. package/types/PaymentMethodsResource.d.ts +133 -0
  132. package/types/PaymentRecords.d.ts +242 -0
  133. package/types/PaymentRecordsResource.d.ts +455 -0
  134. package/types/Prices.d.ts +22 -0
  135. package/types/PricesResource.d.ts +22 -0
  136. package/types/Products.d.ts +39 -0
  137. package/types/ProductsResource.d.ts +36 -0
  138. package/types/QuoteLines.d.ts +634 -0
  139. package/types/QuotePreviewInvoices.d.ts +1658 -0
  140. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  141. package/types/Quotes.d.ts +597 -7
  142. package/types/QuotesResource.d.ts +2526 -194
  143. package/types/Refunds.d.ts +16 -2
  144. package/types/SetupAttempts.d.ts +38 -0
  145. package/types/SetupIntents.d.ts +111 -1
  146. package/types/SetupIntentsResource.d.ts +648 -6
  147. package/types/Sources.d.ts +29 -0
  148. package/types/SubscriptionItems.d.ts +21 -0
  149. package/types/SubscriptionItemsResource.d.ts +109 -0
  150. package/types/SubscriptionSchedules.d.ts +200 -0
  151. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  152. package/types/Subscriptions.d.ts +91 -1
  153. package/types/SubscriptionsResource.d.ts +369 -2
  154. package/types/Tax/Associations.d.ts +126 -0
  155. package/types/Tax/AssociationsResource.d.ts +29 -0
  156. package/types/Tax/CalculationLineItems.d.ts +1 -1
  157. package/types/Tax/Calculations.d.ts +1 -1
  158. package/types/Tax/Forms.d.ts +220 -0
  159. package/types/Tax/FormsResource.d.ts +107 -0
  160. package/types/Tax/Transactions.d.ts +1 -1
  161. package/types/TaxRates.d.ts +3 -3
  162. package/types/TaxRatesResource.d.ts +2 -2
  163. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  164. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  165. package/types/Terminal/Readers.d.ts +290 -0
  166. package/types/Terminal/ReadersResource.d.ts +215 -0
  167. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  168. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  169. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  170. package/types/TokensResource.d.ts +3 -1
  171. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  172. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  173. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  174. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  175. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  176. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  177. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  178. package/types/WebhookEndpointsResource.d.ts +70 -0
  179. package/types/index.d.ts +62 -0
@@ -186,8 +186,12 @@ declare module 'stripe' {
186
186
 
187
187
  giropay?: PaymentMethodPreview.Giropay;
188
188
 
189
+ gopay?: PaymentMethodPreview.Gopay;
190
+
189
191
  grabpay?: PaymentMethodPreview.Grabpay;
190
192
 
193
+ id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
194
+
191
195
  ideal?: PaymentMethodPreview.Ideal;
192
196
 
193
197
  interac_present?: PaymentMethodPreview.InteracPresent;
@@ -202,6 +206,8 @@ declare module 'stripe' {
202
206
 
203
207
  link?: PaymentMethodPreview.Link;
204
208
 
209
+ mb_way?: PaymentMethodPreview.MbWay;
210
+
205
211
  mobilepay?: PaymentMethodPreview.Mobilepay;
206
212
 
207
213
  multibanco?: PaymentMethodPreview.Multibanco;
@@ -220,16 +226,24 @@ declare module 'stripe' {
220
226
 
221
227
  paypal?: PaymentMethodPreview.Paypal;
222
228
 
229
+ payto?: PaymentMethodPreview.Payto;
230
+
223
231
  pix?: PaymentMethodPreview.Pix;
224
232
 
225
233
  promptpay?: PaymentMethodPreview.Promptpay;
226
234
 
235
+ qris?: PaymentMethodPreview.Qris;
236
+
237
+ rechnung?: PaymentMethodPreview.Rechnung;
238
+
227
239
  revolut_pay?: PaymentMethodPreview.RevolutPay;
228
240
 
229
241
  samsung_pay?: PaymentMethodPreview.SamsungPay;
230
242
 
231
243
  sepa_debit?: PaymentMethodPreview.SepaDebit;
232
244
 
245
+ shopeepay?: PaymentMethodPreview.Shopeepay;
246
+
233
247
  sofort?: PaymentMethodPreview.Sofort;
234
248
 
235
249
  swish?: PaymentMethodPreview.Swish;
@@ -584,7 +598,7 @@ declare module 'stripe' {
584
598
  network: string | null;
585
599
 
586
600
  /**
587
- * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
601
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
588
602
  */
589
603
  network_transaction_id: string | null;
590
604
 
@@ -711,7 +725,7 @@ declare module 'stripe' {
711
725
 
712
726
  interface Networks {
713
727
  /**
714
- * All available networks for the card.
728
+ * 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).
715
729
  */
716
730
  available: Array<string>;
717
731
 
@@ -911,7 +925,7 @@ declare module 'stripe' {
911
925
  namespace CardPresent {
912
926
  interface Networks {
913
927
  /**
914
- * All available networks for the card.
928
+ * 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).
915
929
  */
916
930
  available: Array<string>;
917
931
 
@@ -1047,8 +1061,24 @@ declare module 'stripe' {
1047
1061
 
1048
1062
  interface Giropay {}
1049
1063
 
1064
+ interface Gopay {}
1065
+
1050
1066
  interface Grabpay {}
1051
1067
 
1068
+ interface IdBankTransfer {
1069
+ bank: IdBankTransfer.Bank | null;
1070
+
1071
+ bank_code: string | null;
1072
+
1073
+ bank_name: string | null;
1074
+
1075
+ display_name: string | null;
1076
+ }
1077
+
1078
+ namespace IdBankTransfer {
1079
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1080
+ }
1081
+
1052
1082
  interface Ideal {
1053
1083
  /**
1054
1084
  * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
@@ -1177,7 +1207,7 @@ declare module 'stripe' {
1177
1207
  namespace InteracPresent {
1178
1208
  interface Networks {
1179
1209
  /**
1180
- * All available networks for the card.
1210
+ * 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).
1181
1211
  */
1182
1212
  available: Array<string>;
1183
1213
 
@@ -1276,6 +1306,8 @@ declare module 'stripe' {
1276
1306
  persistent_token?: string;
1277
1307
  }
1278
1308
 
1309
+ interface MbWay {}
1310
+
1279
1311
  interface Mobilepay {}
1280
1312
 
1281
1313
  interface Multibanco {}
@@ -1342,6 +1374,11 @@ declare module 'stripe' {
1342
1374
  */
1343
1375
  country: string | null;
1344
1376
 
1377
+ /**
1378
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
1379
+ */
1380
+ fingerprint?: string | null;
1381
+
1345
1382
  /**
1346
1383
  * Owner's email. Values are provided by PayPal directly
1347
1384
  * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1352,12 +1389,60 @@ declare module 'stripe' {
1352
1389
  * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1353
1390
  */
1354
1391
  payer_id: string | null;
1392
+
1393
+ /**
1394
+ * Owner's verified email. Values are verified or provided by PayPal directly
1395
+ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1396
+ */
1397
+ verified_email?: string | null;
1398
+ }
1399
+
1400
+ interface Payto {
1401
+ /**
1402
+ * Bank-State-Branch number of the bank account.
1403
+ */
1404
+ bsb_number: string | null;
1405
+
1406
+ /**
1407
+ * Last four digits of the bank account number.
1408
+ */
1409
+ last4: string | null;
1410
+
1411
+ /**
1412
+ * The PayID alias for the bank account.
1413
+ */
1414
+ pay_id: string | null;
1355
1415
  }
1356
1416
 
1357
1417
  interface Pix {}
1358
1418
 
1359
1419
  interface Promptpay {}
1360
1420
 
1421
+ interface Qris {}
1422
+
1423
+ interface Rechnung {
1424
+ dob?: Rechnung.Dob;
1425
+ }
1426
+
1427
+ namespace Rechnung {
1428
+ interface Dob {
1429
+ /**
1430
+ * The day of birth, between 1 and 31.
1431
+ */
1432
+ day: number;
1433
+
1434
+ /**
1435
+ * The month of birth, between 1 and 12.
1436
+ */
1437
+ month: number;
1438
+
1439
+ /**
1440
+ * The four-digit year of birth.
1441
+ */
1442
+ year: number;
1443
+ }
1444
+ }
1445
+
1361
1446
  interface RevolutPay {}
1362
1447
 
1363
1448
  interface SamsungPay {}
@@ -1408,6 +1493,8 @@ declare module 'stripe' {
1408
1493
  }
1409
1494
  }
1410
1495
 
1496
+ interface Shopeepay {}
1497
+
1411
1498
  interface Sofort {
1412
1499
  /**
1413
1500
  * Two-letter ISO code representing the country the bank account is located in.
@@ -1438,7 +1525,9 @@ declare module 'stripe' {
1438
1525
  | 'eps'
1439
1526
  | 'fpx'
1440
1527
  | 'giropay'
1528
+ | 'gopay'
1441
1529
  | 'grabpay'
1530
+ | 'id_bank_transfer'
1442
1531
  | 'ideal'
1443
1532
  | 'interac_present'
1444
1533
  | 'kakao_pay'
@@ -1446,6 +1535,7 @@ declare module 'stripe' {
1446
1535
  | 'konbini'
1447
1536
  | 'kr_card'
1448
1537
  | 'link'
1538
+ | 'mb_way'
1449
1539
  | 'mobilepay'
1450
1540
  | 'multibanco'
1451
1541
  | 'naver_pay'
@@ -1455,11 +1545,15 @@ declare module 'stripe' {
1455
1545
  | 'payco'
1456
1546
  | 'paynow'
1457
1547
  | 'paypal'
1548
+ | 'payto'
1458
1549
  | 'pix'
1459
1550
  | 'promptpay'
1551
+ | 'qris'
1552
+ | 'rechnung'
1460
1553
  | 'revolut_pay'
1461
1554
  | 'samsung_pay'
1462
1555
  | 'sepa_debit'
1556
+ | 'shopeepay'
1463
1557
  | 'sofort'
1464
1558
  | 'swish'
1465
1559
  | 'twint'
@@ -1473,6 +1567,11 @@ declare module 'stripe' {
1473
1567
  */
1474
1568
  account_holder_type: UsBankAccount.AccountHolderType | null;
1475
1569
 
1570
+ /**
1571
+ * Account number of the bank account.
1572
+ */
1573
+ account_number?: string | null;
1574
+
1476
1575
  /**
1477
1576
  * Account type: checkings or savings. Defaults to checking if omitted.
1478
1577
  */
@@ -113,7 +113,7 @@ declare module 'stripe' {
113
113
  amount_off: number;
114
114
  }
115
115
 
116
- type Duration = 'forever' | 'once' | 'repeating';
116
+ type Duration = 'forever' | 'once' | 'repeating' | 'variable';
117
117
  }
118
118
 
119
119
  /**
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  amount_off: number;
87
87
  }
88
88
 
89
- type Duration = 'forever' | 'once' | 'repeating';
89
+ type Duration = 'forever' | 'once' | 'repeating' | 'variable';
90
90
  }
91
91
 
92
92
  interface CouponRetrieveParams {
@@ -106,6 +106,10 @@ declare module 'stripe' {
106
106
  */
107
107
  pdf: string;
108
108
 
109
+ post_payment_amount?: number;
110
+
111
+ pre_payment_amount?: number;
112
+
109
113
  /**
110
114
  * The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
111
115
  */
@@ -121,6 +125,11 @@ declare module 'stripe' {
121
125
  */
122
126
  refund: string | Stripe.Refund | null;
123
127
 
128
+ /**
129
+ * Refunds related to this credit note.
130
+ */
131
+ refunds?: Array<CreditNote.Refund>;
132
+
124
133
  /**
125
134
  * The details of the cost of shipping, including the ShippingRate applied to the invoice.
126
135
  */
@@ -214,6 +223,18 @@ declare module 'stripe' {
214
223
  | 'order_change'
215
224
  | 'product_unsatisfactory';
216
225
 
226
+ interface Refund {
227
+ /**
228
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent).
229
+ */
230
+ amount_refunded: number;
231
+
232
+ /**
233
+ * ID of the refund.
234
+ */
235
+ refund: string | Stripe.Refund;
236
+ }
237
+
217
238
  interface ShippingCost {
218
239
  /**
219
240
  * Total shipping cost before any taxes are applied.
@@ -249,9 +270,9 @@ declare module 'stripe' {
249
270
  amount: number;
250
271
 
251
272
  /**
252
- * Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
273
+ * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
253
274
  *
254
- * Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
275
+ * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
255
276
  */
256
277
  rate: Stripe.TaxRate;
257
278
 
@@ -68,6 +68,11 @@ declare module 'stripe' {
68
68
  */
69
69
  refund_amount?: number;
70
70
 
71
+ /**
72
+ * Refunds to link to this credit note.
73
+ */
74
+ refunds?: Array<CreditNoteCreateParams.Refund>;
75
+
71
76
  /**
72
77
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
73
78
  */
@@ -151,6 +156,18 @@ declare module 'stripe' {
151
156
  | 'order_change'
152
157
  | 'product_unsatisfactory';
153
158
 
159
+ interface Refund {
160
+ /**
161
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
162
+ */
163
+ amount_refunded?: number;
164
+
165
+ /**
166
+ * ID of an existing refund to link this credit note to.
167
+ */
168
+ refund?: string;
169
+ }
170
+
154
171
  interface ShippingCost {
155
172
  /**
156
173
  * The ID of the shipping rate to use for this order.
@@ -278,6 +295,11 @@ declare module 'stripe' {
278
295
  */
279
296
  refund_amount?: number;
280
297
 
298
+ /**
299
+ * Refunds to link to this credit note.
300
+ */
301
+ refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
302
+
281
303
  /**
282
304
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
283
305
  */
@@ -361,6 +383,18 @@ declare module 'stripe' {
361
383
  | 'order_change'
362
384
  | 'product_unsatisfactory';
363
385
 
386
+ interface Refund {
387
+ /**
388
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
389
+ */
390
+ amount_refunded?: number;
391
+
392
+ /**
393
+ * ID of an existing refund to link this credit note to.
394
+ */
395
+ refund?: string;
396
+ }
397
+
364
398
  interface ShippingCost {
365
399
  /**
366
400
  * The ID of the shipping rate to use for this order.
@@ -435,6 +469,11 @@ declare module 'stripe' {
435
469
  */
436
470
  refund_amount?: number;
437
471
 
472
+ /**
473
+ * Refunds to link to this credit note.
474
+ */
475
+ refunds?: Array<CreditNotePreviewParams.Refund>;
476
+
438
477
  /**
439
478
  * When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
440
479
  */
@@ -518,6 +557,18 @@ declare module 'stripe' {
518
557
  | 'order_change'
519
558
  | 'product_unsatisfactory';
520
559
 
560
+ interface Refund {
561
+ /**
562
+ * Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
563
+ */
564
+ amount_refunded?: number;
565
+
566
+ /**
567
+ * ID of an existing refund to link this credit note to.
568
+ */
569
+ refund?: string;
570
+ }
571
+
521
572
  interface ShippingCost {
522
573
  /**
523
574
  * The ID of the shipping rate to use for this order.
@@ -872,13 +872,16 @@ declare module 'stripe' {
872
872
  | 'eps'
873
873
  | 'fpx'
874
874
  | 'giropay'
875
+ | 'gopay'
875
876
  | 'grabpay'
877
+ | 'id_bank_transfer'
876
878
  | 'ideal'
877
879
  | 'kakao_pay'
878
880
  | 'klarna'
879
881
  | 'konbini'
880
882
  | 'kr_card'
881
883
  | 'link'
884
+ | 'mb_way'
882
885
  | 'mobilepay'
883
886
  | 'multibanco'
884
887
  | 'naver_pay'
@@ -888,11 +891,15 @@ declare module 'stripe' {
888
891
  | 'payco'
889
892
  | 'paynow'
890
893
  | 'paypal'
894
+ | 'payto'
891
895
  | 'pix'
892
896
  | 'promptpay'
897
+ | 'qris'
898
+ | 'rechnung'
893
899
  | 'revolut_pay'
894
900
  | 'samsung_pay'
895
901
  | 'sepa_debit'
902
+ | 'shopeepay'
896
903
  | 'sofort'
897
904
  | 'swish'
898
905
  | 'twint'