stripe 16.9.0-beta.1 → 16.9.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 (174) hide show
  1. package/CHANGELOG.md +132 -809
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -17
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -40
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +4 -33
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -17
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -26
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +2 -30
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +2 -6
  34. package/types/AccountSessions.d.ts +0 -45
  35. package/types/AccountSessionsResource.d.ts +0 -260
  36. package/types/Accounts.d.ts +1 -106
  37. package/types/AccountsResource.d.ts +0 -246
  38. package/types/Charges.d.ts +3 -68
  39. package/types/ChargesResource.d.ts +6 -1296
  40. package/types/Checkout/Sessions.d.ts +6 -186
  41. package/types/Checkout/SessionsResource.d.ts +9 -351
  42. package/types/ConfirmationTokens.d.ts +0 -62
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomerSessions.d.ts +4 -0
  48. package/types/CustomersResource.d.ts +4 -4
  49. package/types/Disputes.d.ts +0 -158
  50. package/types/DisputesResource.d.ts +0 -120
  51. package/types/EventTypes.d.ts +0 -460
  52. package/types/Events.d.ts +0 -85
  53. package/types/FileLinksResource.d.ts +1 -1
  54. package/types/Files.d.ts +1 -0
  55. package/types/FilesResource.d.ts +3 -1
  56. package/types/FinancialConnections/Accounts.d.ts +1 -29
  57. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  58. package/types/FinancialConnections/Sessions.d.ts +1 -49
  59. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  60. package/types/InvoiceItems.d.ts +0 -5
  61. package/types/InvoiceItemsResource.d.ts +0 -98
  62. package/types/InvoiceLineItems.d.ts +3 -23
  63. package/types/Invoices.d.ts +3 -117
  64. package/types/InvoicesResource.d.ts +1759 -5414
  65. package/types/Issuing/CardholdersResource.d.ts +1 -2
  66. package/types/Issuing/Cards.d.ts +1 -1
  67. package/types/LineItems.d.ts +1 -8
  68. package/types/Mandates.d.ts +0 -77
  69. package/types/PaymentIntents.d.ts +4 -488
  70. package/types/PaymentIntentsResource.d.ts +3460 -6970
  71. package/types/PaymentLinks.d.ts +0 -1
  72. package/types/PaymentLinksResource.d.ts +8 -6
  73. package/types/PaymentMethodConfigurations.d.ts +0 -36
  74. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  75. package/types/PaymentMethods.d.ts +0 -62
  76. package/types/PaymentMethodsResource.d.ts +0 -110
  77. package/types/Prices.d.ts +0 -22
  78. package/types/PricesResource.d.ts +0 -22
  79. package/types/Products.d.ts +0 -39
  80. package/types/ProductsResource.d.ts +0 -36
  81. package/types/Quotes.d.ts +1 -596
  82. package/types/QuotesResource.d.ts +266 -3175
  83. package/types/SetupAttempts.d.ts +0 -9
  84. package/types/SetupIntents.d.ts +1 -110
  85. package/types/SetupIntentsResource.d.ts +3 -498
  86. package/types/Sources.d.ts +0 -23
  87. package/types/SubscriptionItems.d.ts +0 -21
  88. package/types/SubscriptionItemsResource.d.ts +0 -109
  89. package/types/SubscriptionSchedules.d.ts +0 -200
  90. package/types/SubscriptionSchedulesResource.d.ts +15 -1233
  91. package/types/Subscriptions.d.ts +1 -82
  92. package/types/SubscriptionsResource.d.ts +4 -349
  93. package/types/Tax/Calculations.d.ts +2 -1
  94. package/types/Tax/CalculationsResource.d.ts +3 -2
  95. package/types/Tax/Transactions.d.ts +2 -1
  96. package/types/TaxIds.d.ts +2 -1
  97. package/types/TaxIdsResource.d.ts +2 -1
  98. package/types/Terminal/Readers.d.ts +0 -278
  99. package/types/Terminal/ReadersResource.d.ts +0 -208
  100. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  101. package/types/TestHelpers/TestClocks.d.ts +15 -0
  102. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  103. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  104. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  105. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  106. package/types/Treasury/InboundTransfers.d.ts +3 -1
  107. package/types/Treasury/OutboundPayments.d.ts +3 -1
  108. package/types/Treasury/OutboundTransfers.d.ts +3 -27
  109. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  110. package/types/Treasury/ReceivedCredits.d.ts +3 -27
  111. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  112. package/types/Treasury/TransactionEntries.d.ts +9 -3
  113. package/types/Treasury/Transactions.d.ts +9 -3
  114. package/types/WebhookEndpointsResource.d.ts +0 -54
  115. package/types/Webhooks.d.ts +37 -28
  116. package/types/index.d.ts +0 -67
  117. package/types/lib.d.ts +0 -12
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  123. package/cjs/resources/GiftCards/Cards.js +0 -23
  124. package/cjs/resources/GiftCards/Transactions.js +0 -33
  125. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  126. package/cjs/resources/Margins.js +0 -22
  127. package/cjs/resources/Orders.js +0 -24
  128. package/cjs/resources/QuotePhases.js +0 -22
  129. package/cjs/resources/Tax/Associations.js +0 -9
  130. package/cjs/resources/Tax/Forms.js +0 -20
  131. package/esm/resources/AccountNotices.js +0 -18
  132. package/esm/resources/Capital/FinancingOffers.js +0 -18
  133. package/esm/resources/Capital/FinancingSummary.js +0 -9
  134. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  135. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  136. package/esm/resources/GiftCards/Cards.js +0 -20
  137. package/esm/resources/GiftCards/Transactions.js +0 -30
  138. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/QuotePhases.js +0 -19
  142. package/esm/resources/Tax/Associations.js +0 -6
  143. package/esm/resources/Tax/Forms.js +0 -17
  144. package/types/AccountNotices.d.ts +0 -113
  145. package/types/AccountNoticesResource.d.ts +0 -98
  146. package/types/Capital/FinancingOffers.d.ts +0 -188
  147. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  148. package/types/Capital/FinancingSummary.d.ts +0 -106
  149. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  150. package/types/Capital/FinancingTransactions.d.ts +0 -135
  151. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  152. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  153. package/types/FinancialConnections/Institutions.d.ts +0 -93
  154. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  155. package/types/GiftCards/Cards.d.ts +0 -118
  156. package/types/GiftCards/CardsResource.d.ts +0 -159
  157. package/types/GiftCards/Transactions.d.ts +0 -129
  158. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  159. package/types/InvoicePayments.d.ts +0 -138
  160. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  161. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  162. package/types/Margins.d.ts +0 -56
  163. package/types/MarginsResource.d.ts +0 -114
  164. package/types/Orders.d.ts +0 -1083
  165. package/types/OrdersResource.d.ts +0 -2763
  166. package/types/QuoteLines.d.ts +0 -634
  167. package/types/QuotePhases.d.ts +0 -198
  168. package/types/QuotePhasesResource.d.ts +0 -67
  169. package/types/QuotePreviewInvoices.d.ts +0 -1530
  170. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  171. package/types/Tax/Associations.d.ts +0 -126
  172. package/types/Tax/AssociationsResource.d.ts +0 -29
  173. package/types/Tax/Forms.d.ts +0 -133
  174. package/types/Tax/FormsResource.d.ts +0 -90
@@ -73,10 +73,25 @@ declare module 'stripe' {
73
73
  * The status of the Test Clock.
74
74
  */
75
75
  status: TestClock.Status;
76
+
77
+ status_details?: TestClock.StatusDetails;
76
78
  }
77
79
 
78
80
  namespace TestClock {
79
81
  type Status = 'advancing' | 'internal_failure' | 'ready';
82
+
83
+ interface StatusDetails {
84
+ advancing?: StatusDetails.Advancing;
85
+ }
86
+
87
+ namespace StatusDetails {
88
+ interface Advancing {
89
+ /**
90
+ * The `frozen_time` that the Test Clock is advancing towards.
91
+ */
92
+ target_frozen_time: number;
93
+ }
94
+ }
80
95
  }
81
96
  }
82
97
  }
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedCredit.
45
- */
46
- network_details?: ReceivedCreditCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedCreditCreateParams {
@@ -79,27 +74,6 @@ declare module 'stripe' {
79
74
  }
80
75
 
81
76
  type Network = 'ach' | 'us_domestic_wire';
82
-
83
- interface NetworkDetails {
84
- /**
85
- * Optional fields for `ach`.
86
- */
87
- ach?: NetworkDetails.Ach;
88
-
89
- /**
90
- * The type of flow that originated the ReceivedCredit.
91
- */
92
- type: 'ach';
93
- }
94
-
95
- namespace NetworkDetails {
96
- interface Ach {
97
- /**
98
- * ACH Addenda record
99
- */
100
- addenda?: string;
101
- }
102
- }
103
77
  }
104
78
  }
105
79
 
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedDebit.
45
- */
46
- network_details?: ReceivedDebitCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedDebitCreateParams {
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  routing_number?: string;
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the ReceivedDebit.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this ReceivedDebit.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
  }
103
77
 
@@ -38,11 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  created: number;
40
40
 
41
- /**
42
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
43
- */
44
- display_name?: string | null;
45
-
46
41
  /**
47
42
  * Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
48
43
  * Stripe or the platform can control Features via the requested field.
@@ -9,11 +9,6 @@ declare module 'stripe' {
9
9
  */
10
10
  supported_currencies: Array<string>;
11
11
 
12
- /**
13
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
14
- */
15
- display_name?: Stripe.Emptyable<string>;
16
-
17
12
  /**
18
13
  * Specifies which fields in the response should be expanded.
19
14
  */
@@ -211,11 +206,6 @@ declare module 'stripe' {
211
206
  }
212
207
 
213
208
  interface FinancialAccountUpdateParams {
214
- /**
215
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
216
- */
217
- display_name?: Stripe.Emptyable<string>;
218
-
219
209
  /**
220
210
  * Specifies which fields in the response should be expanded.
221
211
  */
@@ -4,7 +4,9 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace Treasury {
6
6
  /**
7
- * Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
7
+ * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
8
+ *
9
+ * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
8
10
  */
9
11
  interface InboundTransfer {
10
12
  /**
@@ -4,9 +4,11 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace Treasury {
6
6
  /**
7
- * Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
7
+ * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
8
8
  *
9
9
  * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
10
+ *
11
+ * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
10
12
  */
11
13
  interface OutboundPayment {
12
14
  /**
@@ -4,9 +4,11 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace Treasury {
6
6
  /**
7
- * Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
7
+ * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
8
8
  *
9
9
  * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
10
+ *
11
+ * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
10
12
  */
11
13
  interface OutboundTransfer {
12
14
  /**
@@ -76,11 +78,6 @@ declare module 'stripe' {
76
78
  */
77
79
  metadata: Stripe.Metadata;
78
80
 
79
- /**
80
- * Details about the network used for the OutboundTransfer.
81
- */
82
- network_details?: OutboundTransfer.NetworkDetails | null;
83
-
84
81
  /**
85
82
  * Details about a returned OutboundTransfer. Only set when the status is `returned`.
86
83
  */
@@ -187,27 +184,6 @@ declare module 'stripe' {
187
184
  }
188
185
  }
189
186
 
190
- interface NetworkDetails {
191
- /**
192
- * Details about an ACH transaction.
193
- */
194
- ach?: NetworkDetails.Ach | null;
195
-
196
- /**
197
- * The type of flow that originated the OutboundTransfer.
198
- */
199
- type: 'ach';
200
- }
201
-
202
- namespace NetworkDetails {
203
- interface Ach {
204
- /**
205
- * ACH Addenda record
206
- */
207
- addenda: string | null;
208
- }
209
- }
210
-
211
187
  interface ReturnedDetails {
212
188
  /**
213
189
  * Reason for the return.
@@ -44,11 +44,6 @@ declare module 'stripe' {
44
44
  */
45
45
  metadata?: Stripe.MetadataParam;
46
46
 
47
- /**
48
- * Details about the network used for the OutboundTransfer.
49
- */
50
- network_details?: OutboundTransferCreateParams.NetworkDetails;
51
-
52
47
  /**
53
48
  * Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer".
54
49
  */
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  type Network = 'ach' | 'us_domestic_wire';
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the OutboundTransfer.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this OutboundTransfer.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
 
103
77
  interface OutboundTransferRetrieveParams {
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedCredit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedCredit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedCredit may be reversed.
76
71
  */
@@ -205,9 +200,11 @@ declare module 'stripe' {
205
200
  credit_reversal?: Stripe.Treasury.CreditReversal;
206
201
 
207
202
  /**
208
- * Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
203
+ * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
209
204
  *
210
205
  * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
206
+ *
207
+ * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
211
208
  */
212
209
  outbound_payment?: Stripe.Treasury.OutboundPayment;
213
210
 
@@ -240,27 +237,6 @@ declare module 'stripe' {
240
237
 
241
238
  type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
242
239
 
243
- interface NetworkDetails {
244
- /**
245
- * Details about an ACH transaction.
246
- */
247
- ach?: NetworkDetails.Ach | null;
248
-
249
- /**
250
- * The type of flow that originated the ReceivedCredit.
251
- */
252
- type: 'ach';
253
- }
254
-
255
- namespace NetworkDetails {
256
- interface Ach {
257
- /**
258
- * ACH Addenda record
259
- */
260
- addenda: string | null;
261
- }
262
- }
263
-
264
240
  interface ReversalDetails {
265
241
  /**
266
242
  * Time before which a ReceivedCredit can be reversed.
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedDebit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedDebit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedDebit might be reversed.
76
71
  */
@@ -194,36 +189,10 @@ declare module 'stripe' {
194
189
  * Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
195
190
  */
196
191
  payout: string | null;
197
-
198
- /**
199
- * The ReceivedCredit that Capital withheld from
200
- */
201
- received_credit_capital_withholding?: string | null;
202
192
  }
203
193
 
204
194
  type Network = 'ach' | 'card' | 'stripe';
205
195
 
206
- interface NetworkDetails {
207
- /**
208
- * Details about an ACH transaction.
209
- */
210
- ach?: NetworkDetails.Ach | null;
211
-
212
- /**
213
- * The type of flow that originated the ReceivedDebit.
214
- */
215
- type: 'ach';
216
- }
217
-
218
- namespace NetworkDetails {
219
- interface Ach {
220
- /**
221
- * ACH Addenda record
222
- */
223
- addenda: string | null;
224
- }
225
- }
226
-
227
196
  interface ReversalDetails {
228
197
  /**
229
198
  * Time before which a ReceivedDebit can be reversed.
@@ -103,7 +103,9 @@ declare module 'stripe' {
103
103
  debit_reversal?: Stripe.Treasury.DebitReversal;
104
104
 
105
105
  /**
106
- * Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
106
+ * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
107
+ *
108
+ * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
107
109
  */
108
110
  inbound_transfer?: Stripe.Treasury.InboundTransfer;
109
111
 
@@ -117,16 +119,20 @@ declare module 'stripe' {
117
119
  issuing_authorization?: Stripe.Issuing.Authorization;
118
120
 
119
121
  /**
120
- * Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
122
+ * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
121
123
  *
122
124
  * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
125
+ *
126
+ * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
123
127
  */
124
128
  outbound_payment?: Stripe.Treasury.OutboundPayment;
125
129
 
126
130
  /**
127
- * Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
131
+ * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
128
132
  *
129
133
  * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
134
+ *
135
+ * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
130
136
  */
131
137
  outbound_transfer?: Stripe.Treasury.OutboundTransfer;
132
138
 
@@ -110,7 +110,9 @@ declare module 'stripe' {
110
110
  debit_reversal?: Stripe.Treasury.DebitReversal;
111
111
 
112
112
  /**
113
- * Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
113
+ * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
114
+ *
115
+ * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
114
116
  */
115
117
  inbound_transfer?: Stripe.Treasury.InboundTransfer;
116
118
 
@@ -124,16 +126,20 @@ declare module 'stripe' {
124
126
  issuing_authorization?: Stripe.Issuing.Authorization;
125
127
 
126
128
  /**
127
- * Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
129
+ * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
128
130
  *
129
131
  * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
132
+ *
133
+ * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
130
134
  */
131
135
  outbound_payment?: Stripe.Treasury.OutboundPayment;
132
136
 
133
137
  /**
134
- * Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
138
+ * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
135
139
  *
136
140
  * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
141
+ *
142
+ * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
137
143
  */
138
144
  outbound_transfer?: Stripe.Treasury.OutboundTransfer;
139
145
 
@@ -152,8 +152,6 @@ declare module 'stripe' {
152
152
  | 'account.external_account.deleted'
153
153
  | 'account.external_account.updated'
154
154
  | 'account.updated'
155
- | 'account_notice.created'
156
- | 'account_notice.updated'
157
155
  | 'application_fee.created'
158
156
  | 'application_fee.refund.updated'
159
157
  | 'application_fee.refunded'
@@ -163,15 +161,6 @@ declare module 'stripe' {
163
161
  | 'billing_portal.configuration.updated'
164
162
  | 'billing_portal.session.created'
165
163
  | 'capability.updated'
166
- | 'capital.financing_offer.accepted'
167
- | 'capital.financing_offer.canceled'
168
- | 'capital.financing_offer.created'
169
- | 'capital.financing_offer.expired'
170
- | 'capital.financing_offer.fully_repaid'
171
- | 'capital.financing_offer.paid_out'
172
- | 'capital.financing_offer.rejected'
173
- | 'capital.financing_offer.replacement_created'
174
- | 'capital.financing_transaction.created'
175
164
  | 'cash_balance.funds_available'
176
165
  | 'charge.captured'
177
166
  | 'charge.dispute.closed'
@@ -212,15 +201,11 @@ declare module 'stripe' {
212
201
  | 'customer.source.deleted'
213
202
  | 'customer.source.expiring'
214
203
  | 'customer.source.updated'
215
- | 'customer.subscription.collection_paused'
216
- | 'customer.subscription.collection_resumed'
217
204
  | 'customer.subscription.created'
218
- | 'customer.subscription.custom_event'
219
205
  | 'customer.subscription.deleted'
220
206
  | 'customer.subscription.paused'
221
207
  | 'customer.subscription.pending_update_applied'
222
208
  | 'customer.subscription.pending_update_expired'
223
- | 'customer.subscription.price_migration_failed'
224
209
  | 'customer.subscription.resumed'
225
210
  | 'customer.subscription.trial_will_end'
226
211
  | 'customer.subscription.updated'
@@ -236,10 +221,8 @@ declare module 'stripe' {
236
221
  | 'financial_connections.account.disconnected'
237
222
  | 'financial_connections.account.reactivated'
238
223
  | 'financial_connections.account.refreshed_balance'
239
- | 'financial_connections.account.refreshed_inferred_balances'
240
224
  | 'financial_connections.account.refreshed_ownership'
241
225
  | 'financial_connections.account.refreshed_transactions'
242
- | 'financial_connections.session.updated'
243
226
  | 'identity.verification_session.canceled'
244
227
  | 'identity.verification_session.created'
245
228
  | 'identity.verification_session.processing'
@@ -253,7 +236,6 @@ declare module 'stripe' {
253
236
  | 'invoice.marked_uncollectible'
254
237
  | 'invoice.overdue'
255
238
  | 'invoice.paid'
256
- | 'invoice.payment.overpaid'
257
239
  | 'invoice.payment_action_required'
258
240
  | 'invoice.payment_failed'
259
241
  | 'invoice.payment_succeeded'
@@ -320,16 +302,10 @@ declare module 'stripe' {
320
302
  | 'product.updated'
321
303
  | 'promotion_code.created'
322
304
  | 'promotion_code.updated'
323
- | 'quote.accept_failed'
324
305
  | 'quote.accepted'
325
- | 'quote.accepting'
326
306
  | 'quote.canceled'
327
307
  | 'quote.created'
328
- | 'quote.draft'
329
308
  | 'quote.finalized'
330
- | 'quote.reestimate_failed'
331
- | 'quote.reestimated'
332
- | 'quote.stale'
333
309
  | 'radar.early_fraud_warning.created'
334
310
  | 'radar.early_fraud_warning.updated'
335
311
  | 'refund.created'
@@ -357,16 +333,13 @@ declare module 'stripe' {
357
333
  | 'subscription_schedule.completed'
358
334
  | 'subscription_schedule.created'
359
335
  | 'subscription_schedule.expiring'
360
- | 'subscription_schedule.price_migration_failed'
361
336
  | 'subscription_schedule.released'
362
337
  | 'subscription_schedule.updated'
363
- | 'tax.form.updated'
364
338
  | 'tax.settings.updated'
365
339
  | 'tax_rate.created'
366
340
  | 'tax_rate.updated'
367
341
  | 'terminal.reader.action_failed'
368
342
  | 'terminal.reader.action_succeeded'
369
- | 'terminal.reader.action_updated'
370
343
  | 'test_helpers.test_clock.advancing'
371
344
  | 'test_helpers.test_clock.created'
372
345
  | 'test_helpers.test_clock.deleted'
@@ -460,8 +433,6 @@ declare module 'stripe' {
460
433
  | 'account.external_account.deleted'
461
434
  | 'account.external_account.updated'
462
435
  | 'account.updated'
463
- | 'account_notice.created'
464
- | 'account_notice.updated'
465
436
  | 'application_fee.created'
466
437
  | 'application_fee.refund.updated'
467
438
  | 'application_fee.refunded'
@@ -471,15 +442,6 @@ declare module 'stripe' {
471
442
  | 'billing_portal.configuration.updated'
472
443
  | 'billing_portal.session.created'
473
444
  | 'capability.updated'
474
- | 'capital.financing_offer.accepted'
475
- | 'capital.financing_offer.canceled'
476
- | 'capital.financing_offer.created'
477
- | 'capital.financing_offer.expired'
478
- | 'capital.financing_offer.fully_repaid'
479
- | 'capital.financing_offer.paid_out'
480
- | 'capital.financing_offer.rejected'
481
- | 'capital.financing_offer.replacement_created'
482
- | 'capital.financing_transaction.created'
483
445
  | 'cash_balance.funds_available'
484
446
  | 'charge.captured'
485
447
  | 'charge.dispute.closed'
@@ -520,15 +482,11 @@ declare module 'stripe' {
520
482
  | 'customer.source.deleted'
521
483
  | 'customer.source.expiring'
522
484
  | 'customer.source.updated'
523
- | 'customer.subscription.collection_paused'
524
- | 'customer.subscription.collection_resumed'
525
485
  | 'customer.subscription.created'
526
- | 'customer.subscription.custom_event'
527
486
  | 'customer.subscription.deleted'
528
487
  | 'customer.subscription.paused'
529
488
  | 'customer.subscription.pending_update_applied'
530
489
  | 'customer.subscription.pending_update_expired'
531
- | 'customer.subscription.price_migration_failed'
532
490
  | 'customer.subscription.resumed'
533
491
  | 'customer.subscription.trial_will_end'
534
492
  | 'customer.subscription.updated'
@@ -544,10 +502,8 @@ declare module 'stripe' {
544
502
  | 'financial_connections.account.disconnected'
545
503
  | 'financial_connections.account.reactivated'
546
504
  | 'financial_connections.account.refreshed_balance'
547
- | 'financial_connections.account.refreshed_inferred_balances'
548
505
  | 'financial_connections.account.refreshed_ownership'
549
506
  | 'financial_connections.account.refreshed_transactions'
550
- | 'financial_connections.session.updated'
551
507
  | 'identity.verification_session.canceled'
552
508
  | 'identity.verification_session.created'
553
509
  | 'identity.verification_session.processing'
@@ -561,7 +517,6 @@ declare module 'stripe' {
561
517
  | 'invoice.marked_uncollectible'
562
518
  | 'invoice.overdue'
563
519
  | 'invoice.paid'
564
- | 'invoice.payment.overpaid'
565
520
  | 'invoice.payment_action_required'
566
521
  | 'invoice.payment_failed'
567
522
  | 'invoice.payment_succeeded'
@@ -628,16 +583,10 @@ declare module 'stripe' {
628
583
  | 'product.updated'
629
584
  | 'promotion_code.created'
630
585
  | 'promotion_code.updated'
631
- | 'quote.accept_failed'
632
586
  | 'quote.accepted'
633
- | 'quote.accepting'
634
587
  | 'quote.canceled'
635
588
  | 'quote.created'
636
- | 'quote.draft'
637
589
  | 'quote.finalized'
638
- | 'quote.reestimate_failed'
639
- | 'quote.reestimated'
640
- | 'quote.stale'
641
590
  | 'radar.early_fraud_warning.created'
642
591
  | 'radar.early_fraud_warning.updated'
643
592
  | 'refund.created'
@@ -665,16 +614,13 @@ declare module 'stripe' {
665
614
  | 'subscription_schedule.completed'
666
615
  | 'subscription_schedule.created'
667
616
  | 'subscription_schedule.expiring'
668
- | 'subscription_schedule.price_migration_failed'
669
617
  | 'subscription_schedule.released'
670
618
  | 'subscription_schedule.updated'
671
- | 'tax.form.updated'
672
619
  | 'tax.settings.updated'
673
620
  | 'tax_rate.created'
674
621
  | 'tax_rate.updated'
675
622
  | 'terminal.reader.action_failed'
676
623
  | 'terminal.reader.action_succeeded'
677
- | 'terminal.reader.action_updated'
678
624
  | 'test_helpers.test_clock.advancing'
679
625
  | 'test_helpers.test_clock.created'
680
626
  | 'test_helpers.test_clock.deleted'