stripe 17.6.0-beta.3 → 17.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/CHANGELOG.md +124 -1040
  2. package/README.md +0 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -8
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources.js +10 -48
  11. package/cjs/stripe.core.js +1 -1
  12. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  13. package/esm/resources/Invoices.js +0 -17
  14. package/esm/resources/PaymentIntents.js +0 -8
  15. package/esm/resources/Quotes.js +0 -32
  16. package/esm/resources/SubscriptionSchedules.js +0 -4
  17. package/esm/resources/Terminal/Readers.js +0 -12
  18. package/esm/resources.js +0 -33
  19. package/esm/stripe.core.js +1 -1
  20. package/package.json +1 -1
  21. package/types/AccountLinksResource.d.ts +1 -5
  22. package/types/AccountSessions.d.ts +0 -45
  23. package/types/AccountSessionsResource.d.ts +0 -222
  24. package/types/Accounts.d.ts +1 -190
  25. package/types/AccountsResource.d.ts +0 -520
  26. package/types/Cards.d.ts +0 -5
  27. package/types/Charges.d.ts +3 -141
  28. package/types/ChargesResource.d.ts +0 -1294
  29. package/types/Checkout/Sessions.d.ts +4 -340
  30. package/types/Checkout/SessionsResource.d.ts +5 -445
  31. package/types/ConfirmationTokens.d.ts +1 -100
  32. package/types/Coupons.d.ts +1 -1
  33. package/types/CouponsResource.d.ts +1 -1
  34. package/types/CreditNotes.d.ts +0 -21
  35. package/types/CreditNotesResource.d.ts +0 -51
  36. package/types/CustomersResource.d.ts +0 -7
  37. package/types/EventTypes.d.ts +0 -596
  38. package/types/Events.d.ts +0 -93
  39. package/types/FinancialConnections/Accounts.d.ts +1 -29
  40. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  41. package/types/FinancialConnections/Sessions.d.ts +1 -49
  42. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  43. package/types/InvoiceItems.d.ts +0 -5
  44. package/types/InvoiceItemsResource.d.ts +0 -98
  45. package/types/InvoiceLineItems.d.ts +1 -28
  46. package/types/Invoices.d.ts +2 -137
  47. package/types/InvoicesResource.d.ts +1882 -5567
  48. package/types/Issuing/Authorizations.d.ts +0 -1
  49. package/types/Issuing/CardholdersResource.d.ts +1 -2
  50. package/types/Issuing/Transactions.d.ts +0 -2
  51. package/types/Issuing/TransactionsResource.d.ts +0 -5
  52. package/types/LineItems.d.ts +0 -32
  53. package/types/Mandates.d.ts +0 -77
  54. package/types/PaymentIntents.d.ts +1 -644
  55. package/types/PaymentIntentsResource.d.ts +3734 -8021
  56. package/types/PaymentLinks.d.ts +0 -6
  57. package/types/PaymentLinksResource.d.ts +0 -12
  58. package/types/PaymentMethodConfigurations.d.ts +0 -180
  59. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  60. package/types/PaymentMethods.d.ts +1 -100
  61. package/types/PaymentMethodsResource.d.ts +0 -133
  62. package/types/Prices.d.ts +0 -22
  63. package/types/PricesResource.d.ts +0 -22
  64. package/types/Products.d.ts +0 -39
  65. package/types/ProductsResource.d.ts +0 -36
  66. package/types/Quotes.d.ts +1 -591
  67. package/types/QuotesResource.d.ts +199 -2531
  68. package/types/Refunds.d.ts +2 -16
  69. package/types/SetupAttempts.d.ts +0 -38
  70. package/types/SetupIntents.d.ts +1 -111
  71. package/types/SetupIntentsResource.d.ts +3 -645
  72. package/types/Sources.d.ts +0 -29
  73. package/types/SubscriptionItems.d.ts +0 -21
  74. package/types/SubscriptionItemsResource.d.ts +0 -109
  75. package/types/SubscriptionSchedules.d.ts +0 -200
  76. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  77. package/types/Subscriptions.d.ts +1 -91
  78. package/types/SubscriptionsResource.d.ts +2 -369
  79. package/types/Terminal/Readers.d.ts +0 -290
  80. package/types/Terminal/ReadersResource.d.ts +0 -215
  81. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  82. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  83. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  84. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  85. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  86. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  87. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  88. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  89. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  90. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  91. package/types/WebhookEndpointsResource.d.ts +0 -70
  92. package/types/index.d.ts +0 -62
  93. package/cjs/resources/AccountNotices.js +0 -21
  94. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  95. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  96. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  97. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  98. package/cjs/resources/GiftCards/Cards.js +0 -23
  99. package/cjs/resources/GiftCards/Transactions.js +0 -33
  100. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  101. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  102. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  103. package/cjs/resources/Margins.js +0 -22
  104. package/cjs/resources/Orders.js +0 -24
  105. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  106. package/cjs/resources/PaymentRecords.js +0 -29
  107. package/cjs/resources/Tax/Associations.js +0 -9
  108. package/cjs/resources/Tax/Forms.js +0 -20
  109. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  110. package/esm/resources/AccountNotices.js +0 -18
  111. package/esm/resources/Capital/FinancingOffers.js +0 -18
  112. package/esm/resources/Capital/FinancingSummary.js +0 -9
  113. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  114. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  115. package/esm/resources/GiftCards/Cards.js +0 -20
  116. package/esm/resources/GiftCards/Transactions.js +0 -30
  117. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  118. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  119. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  120. package/esm/resources/Margins.js +0 -19
  121. package/esm/resources/Orders.js +0 -21
  122. package/esm/resources/PaymentAttemptRecords.js +0 -14
  123. package/esm/resources/PaymentRecords.js +0 -26
  124. package/esm/resources/Tax/Associations.js +0 -6
  125. package/esm/resources/Tax/Forms.js +0 -17
  126. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  127. package/types/AccountNotices.d.ts +0 -113
  128. package/types/AccountNoticesResource.d.ts +0 -98
  129. package/types/Billing/MeterErrorReports.d.ts +0 -106
  130. package/types/Capital/FinancingOffers.d.ts +0 -188
  131. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  132. package/types/Capital/FinancingSummary.d.ts +0 -106
  133. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  134. package/types/Capital/FinancingTransactions.d.ts +0 -135
  135. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  136. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  137. package/types/FinancialConnections/Institutions.d.ts +0 -93
  138. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  139. package/types/GiftCards/Cards.d.ts +0 -118
  140. package/types/GiftCards/CardsResource.d.ts +0 -159
  141. package/types/GiftCards/Transactions.d.ts +0 -129
  142. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  143. package/types/InvoicePayments.d.ts +0 -113
  144. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  145. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  146. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  147. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  148. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  149. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  150. package/types/Issuing/Settlements.d.ts +0 -103
  151. package/types/Margins.d.ts +0 -56
  152. package/types/MarginsResource.d.ts +0 -114
  153. package/types/Orders.d.ts +0 -1179
  154. package/types/OrdersResource.d.ts +0 -2961
  155. package/types/PaymentAttemptRecords.d.ts +0 -242
  156. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  157. package/types/PaymentRecords.d.ts +0 -242
  158. package/types/PaymentRecordsResource.d.ts +0 -455
  159. package/types/QuoteLines.d.ts +0 -634
  160. package/types/QuotePreviewInvoices.d.ts +0 -1658
  161. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  162. package/types/Tax/Associations.d.ts +0 -126
  163. package/types/Tax/AssociationsResource.d.ts +0 -29
  164. package/types/Tax/Forms.d.ts +0 -220
  165. package/types/Tax/FormsResource.d.ts +0 -107
  166. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  167. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
package/types/Cards.d.ts CHANGED
@@ -80,11 +80,6 @@ declare module 'stripe' {
80
80
  */
81
81
  brand: string;
82
82
 
83
- /**
84
- * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
85
- */
86
- brand_product?: string | null;
87
-
88
83
  /**
89
84
  * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
90
85
  */
@@ -428,12 +428,8 @@ declare module 'stripe' {
428
428
 
429
429
  giropay?: PaymentMethodDetails.Giropay;
430
430
 
431
- gopay?: PaymentMethodDetails.Gopay;
432
-
433
431
  grabpay?: PaymentMethodDetails.Grabpay;
434
432
 
435
- id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
436
-
437
433
  ideal?: PaymentMethodDetails.Ideal;
438
434
 
439
435
  interac_present?: PaymentMethodDetails.InteracPresent;
@@ -448,8 +444,6 @@ declare module 'stripe' {
448
444
 
449
445
  link?: PaymentMethodDetails.Link;
450
446
 
451
- mb_way?: PaymentMethodDetails.MbWay;
452
-
453
447
  mobilepay?: PaymentMethodDetails.Mobilepay;
454
448
 
455
449
  multibanco?: PaymentMethodDetails.Multibanco;
@@ -468,16 +462,10 @@ declare module 'stripe' {
468
462
 
469
463
  paypal?: PaymentMethodDetails.Paypal;
470
464
 
471
- payto?: PaymentMethodDetails.Payto;
472
-
473
465
  pix?: PaymentMethodDetails.Pix;
474
466
 
475
467
  promptpay?: PaymentMethodDetails.Promptpay;
476
468
 
477
- qris?: PaymentMethodDetails.Qris;
478
-
479
- rechnung?: PaymentMethodDetails.Rechnung;
480
-
481
469
  revolut_pay?: PaymentMethodDetails.RevolutPay;
482
470
 
483
471
  samsung_pay?: PaymentMethodDetails.SamsungPay;
@@ -486,8 +474,6 @@ declare module 'stripe' {
486
474
 
487
475
  sepa_debit?: PaymentMethodDetails.SepaDebit;
488
476
 
489
- shopeepay?: PaymentMethodDetails.Shopeepay;
490
-
491
477
  sofort?: PaymentMethodDetails.Sofort;
492
478
 
493
479
  stripe_account?: PaymentMethodDetails.StripeAccount;
@@ -802,11 +788,6 @@ declare module 'stripe' {
802
788
  */
803
789
  amount_authorized: number | null;
804
790
 
805
- /**
806
- * The latest amount intended to be authorized by this charge.
807
- */
808
- amount_requested?: number | null;
809
-
810
791
  /**
811
792
  * Authorization code on the charge.
812
793
  */
@@ -832,8 +813,6 @@ declare module 'stripe' {
832
813
  */
833
814
  country: string | null;
834
815
 
835
- decremental_authorization?: Card.DecrementalAuthorization;
836
-
837
816
  /**
838
817
  * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
839
818
  */
@@ -910,14 +889,12 @@ declare module 'stripe' {
910
889
  network_token?: Card.NetworkToken | null;
911
890
 
912
891
  /**
913
- * 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.
892
+ * 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.
914
893
  */
915
894
  network_transaction_id: string | null;
916
895
 
917
896
  overcapture?: Card.Overcapture;
918
897
 
919
- partial_authorization?: Card.PartialAuthorization;
920
-
921
898
  /**
922
899
  * Status of a card based on the card issuer.
923
900
  */
@@ -952,17 +929,6 @@ declare module 'stripe' {
952
929
  cvc_check: string | null;
953
930
  }
954
931
 
955
- interface DecrementalAuthorization {
956
- /**
957
- * Indicates whether or not the decremental authorization feature is supported.
958
- */
959
- status: DecrementalAuthorization.Status;
960
- }
961
-
962
- namespace DecrementalAuthorization {
963
- type Status = 'available' | 'unavailable';
964
- }
965
-
966
932
  interface ExtendedAuthorization {
967
933
  /**
968
934
  * Indicates whether or not the capture window is extended beyond the standard authorization.
@@ -1046,21 +1012,6 @@ declare module 'stripe' {
1046
1012
  type Status = 'available' | 'unavailable';
1047
1013
  }
1048
1014
 
1049
- interface PartialAuthorization {
1050
- /**
1051
- * Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
1052
- */
1053
- status: PartialAuthorization.Status;
1054
- }
1055
-
1056
- namespace PartialAuthorization {
1057
- type Status =
1058
- | 'declined'
1059
- | 'fully_authorized'
1060
- | 'not_requested'
1061
- | 'partially_authorized';
1062
- }
1063
-
1064
1015
  type RegulatedStatus = 'regulated' | 'unregulated';
1065
1016
 
1066
1017
  interface ThreeDSecure {
@@ -1323,7 +1274,7 @@ declare module 'stripe' {
1323
1274
  network: string | null;
1324
1275
 
1325
1276
  /**
1326
- * 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.
1277
+ * 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.
1327
1278
  */
1328
1279
  network_transaction_id: string | null;
1329
1280
 
@@ -1567,8 +1518,6 @@ declare module 'stripe' {
1567
1518
  verified_name: string | null;
1568
1519
  }
1569
1520
 
1570
- interface Gopay {}
1571
-
1572
1521
  interface Grabpay {
1573
1522
  /**
1574
1523
  * Unique transaction id generated by GrabPay
@@ -1576,37 +1525,6 @@ declare module 'stripe' {
1576
1525
  transaction_id: string | null;
1577
1526
  }
1578
1527
 
1579
- interface IdBankTransfer {
1580
- /**
1581
- * Account number of the bank account to transfer funds to.
1582
- */
1583
- account_number: string;
1584
-
1585
- /**
1586
- * Bank where the account is located.
1587
- */
1588
- bank: IdBankTransfer.Bank;
1589
-
1590
- /**
1591
- * Local bank code of the bank.
1592
- */
1593
- bank_code?: string;
1594
-
1595
- /**
1596
- * Name of the bank associated with the bank account.
1597
- */
1598
- bank_name?: string;
1599
-
1600
- /**
1601
- * Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1602
- */
1603
- display_name?: string;
1604
- }
1605
-
1606
- namespace IdBankTransfer {
1607
- type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
1608
- }
1609
-
1610
1528
  interface Ideal {
1611
1529
  /**
1612
1530
  * The customer's bank. 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`.
@@ -1753,7 +1671,7 @@ declare module 'stripe' {
1753
1671
  network: string | null;
1754
1672
 
1755
1673
  /**
1756
- * 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.
1674
+ * 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.
1757
1675
  */
1758
1676
  network_transaction_id: string | null;
1759
1677
 
@@ -1948,8 +1866,6 @@ declare module 'stripe' {
1948
1866
  country: string | null;
1949
1867
  }
1950
1868
 
1951
- interface MbWay {}
1952
-
1953
1869
  interface Mobilepay {
1954
1870
  /**
1955
1871
  * Internal card details
@@ -2105,36 +2021,10 @@ declare module 'stripe' {
2105
2021
  */
2106
2022
  seller_protection: Paypal.SellerProtection | null;
2107
2023
 
2108
- /**
2109
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2110
- * execution. This shipping address will not be updated if the merchant updates the shipping
2111
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2112
- */
2113
- shipping?: Stripe.Address | null;
2114
-
2115
2024
  /**
2116
2025
  * A unique ID generated by PayPal for this transaction.
2117
2026
  */
2118
2027
  transaction_id: string | null;
2119
-
2120
- /**
2121
- * The shipping address for the customer, as supplied by the merchant at the point of payment
2122
- * execution. This shipping address will not be updated if the merchant updates the shipping
2123
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
2124
- */
2125
- verified_address?: Stripe.Address | null;
2126
-
2127
- /**
2128
- * Owner's verified email. Values are verified or provided by PayPal directly
2129
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2130
- */
2131
- verified_email?: string | null;
2132
-
2133
- /**
2134
- * Owner's verified full name. Values are verified or provided by PayPal directly
2135
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
2136
- */
2137
- verified_name?: string | null;
2138
2028
  }
2139
2029
 
2140
2030
  namespace Paypal {
@@ -2157,28 +2047,6 @@ declare module 'stripe' {
2157
2047
  }
2158
2048
  }
2159
2049
 
2160
- interface Payto {
2161
- /**
2162
- * Bank-State-Branch number of the bank account.
2163
- */
2164
- bsb_number: string | null;
2165
-
2166
- /**
2167
- * Last four digits of the bank account number.
2168
- */
2169
- last4: string | null;
2170
-
2171
- /**
2172
- * ID of the mandate used to make this payment.
2173
- */
2174
- mandate?: string;
2175
-
2176
- /**
2177
- * The PayID alias for the bank account.
2178
- */
2179
- pay_id: string | null;
2180
- }
2181
-
2182
2050
  interface Pix {
2183
2051
  /**
2184
2052
  * Unique transaction id generated by BCB
@@ -2193,10 +2061,6 @@ declare module 'stripe' {
2193
2061
  reference: string | null;
2194
2062
  }
2195
2063
 
2196
- interface Qris {}
2197
-
2198
- interface Rechnung {}
2199
-
2200
2064
  interface RevolutPay {
2201
2065
  funding?: RevolutPay.Funding;
2202
2066
  }
@@ -2302,8 +2166,6 @@ declare module 'stripe' {
2302
2166
  mandate: string | null;
2303
2167
  }
2304
2168
 
2305
- interface Shopeepay {}
2306
-
2307
2169
  interface Sofort {
2308
2170
  /**
2309
2171
  * Bank code of bank associated with the bank account.