stripe 17.2.0-beta.2 → 17.2.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.
- package/CHANGELOG.md +117 -899
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/Webhooks.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/cjs/resources/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- package/cjs/stripe.core.js +1 -1
- package/esm/Webhooks.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/esm/resources/V2/Core/Events.js +50 -7
- package/esm/resources.js +0 -29
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -75
- package/types/AccountSessionsResource.d.ts +5 -354
- package/types/Accounts.d.ts +3 -127
- package/types/AccountsResource.d.ts +2 -296
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +0 -2
- package/types/Charges.d.ts +0 -152
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +5 -309
- package/types/Checkout/SessionsResource.d.ts +5 -356
- package/types/ConfirmationTokens.d.ts +0 -137
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +2 -22
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +2 -564
- package/types/Events.d.ts +0 -91
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/Forwarding/Requests.d.ts +0 -5
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -31
- package/types/Invoices.d.ts +3 -134
- package/types/InvoicesResource.d.ts +1836 -5515
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -85
- package/types/PaymentIntents.d.ts +1 -643
- package/types/PaymentIntentsResource.d.ts +3463 -7739
- package/types/PaymentLinks.d.ts +0 -3
- package/types/PaymentLinksResource.d.ts +0 -6
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
- package/types/PaymentMethods.d.ts +0 -137
- package/types/PaymentMethodsResource.d.ts +0 -158
- package/types/Persons.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/SetupAttempts.d.ts +0 -19
- package/types/SetupIntents.d.ts +1 -112
- package/types/SetupIntentsResource.d.ts +3 -669
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -82
- package/types/SubscriptionsResource.d.ts +3 -348
- package/types/Tax/CalculationLineItems.d.ts +0 -1
- package/types/Tax/Calculations.d.ts +1 -33
- package/types/Tax/CalculationsResource.d.ts +1 -7
- package/types/Tax/Registrations.d.ts +0 -82
- package/types/Tax/RegistrationsResource.d.ts +0 -109
- package/types/Tax/Transactions.d.ts +1 -8
- package/types/TaxIds.d.ts +1 -7
- package/types/TaxIdsResource.d.ts +1 -7
- package/types/TaxRates.d.ts +0 -25
- package/types/TaxRatesResource.d.ts +0 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
- package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
- package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
- package/types/V2/Billing/MeterEvents.d.ts +1 -1
- package/types/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -66
- package/types/index.d.ts +0 -53
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -138
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1154
- package/types/OrdersResource.d.ts +0 -2911
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1596
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
package/types/Events.d.ts
CHANGED
|
@@ -21,59 +21,6 @@ declare module 'stripe' {
|
|
|
21
21
|
interface PreviousAttributes {}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
interface Reason {
|
|
25
|
-
automation_action?: Reason.AutomationAction;
|
|
26
|
-
|
|
27
|
-
request?: Reason.Request;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The type of the reason for the event.
|
|
31
|
-
*/
|
|
32
|
-
type: Reason.Type;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
namespace Reason {
|
|
36
|
-
interface AutomationAction {
|
|
37
|
-
stripe_send_webhook_custom_event?: AutomationAction.StripeSendWebhookCustomEvent;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* The trigger name of the automation that triggered this action.
|
|
41
|
-
* Please visit [Revenue and retention automations](https://docs.stripe.com/billing/automations#choose-a-trigger) for all possible trigger names.
|
|
42
|
-
*/
|
|
43
|
-
trigger: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The type of the `automation_action`.
|
|
47
|
-
*/
|
|
48
|
-
type: 'stripe_send_webhook_custom_event';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
namespace AutomationAction {
|
|
52
|
-
interface StripeSendWebhookCustomEvent {
|
|
53
|
-
/**
|
|
54
|
-
* Set of key-value pairs attached to the action when creating an Automation.
|
|
55
|
-
*/
|
|
56
|
-
custom_data: {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
} | null;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface Request {
|
|
63
|
-
/**
|
|
64
|
-
* ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
65
|
-
*/
|
|
66
|
-
id: string | null;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
|
70
|
-
*/
|
|
71
|
-
idempotency_key: string | null;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type Type = 'automation_action' | 'request';
|
|
75
|
-
}
|
|
76
|
-
|
|
77
24
|
interface Request {
|
|
78
25
|
/**
|
|
79
26
|
* ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
@@ -93,27 +40,15 @@ declare module 'stripe' {
|
|
|
93
40
|
| 'account.external_account.deleted'
|
|
94
41
|
| 'account.external_account.updated'
|
|
95
42
|
| 'account.updated'
|
|
96
|
-
| 'account_notice.created'
|
|
97
|
-
| 'account_notice.updated'
|
|
98
43
|
| 'application_fee.created'
|
|
99
44
|
| 'application_fee.refund.updated'
|
|
100
45
|
| 'application_fee.refunded'
|
|
101
46
|
| 'balance.available'
|
|
102
47
|
| 'billing.alert.triggered'
|
|
103
|
-
| 'billing.meter_error_report.triggered'
|
|
104
48
|
| 'billing_portal.configuration.created'
|
|
105
49
|
| 'billing_portal.configuration.updated'
|
|
106
50
|
| 'billing_portal.session.created'
|
|
107
51
|
| 'capability.updated'
|
|
108
|
-
| 'capital.financing_offer.accepted'
|
|
109
|
-
| 'capital.financing_offer.canceled'
|
|
110
|
-
| 'capital.financing_offer.created'
|
|
111
|
-
| 'capital.financing_offer.expired'
|
|
112
|
-
| 'capital.financing_offer.fully_repaid'
|
|
113
|
-
| 'capital.financing_offer.paid_out'
|
|
114
|
-
| 'capital.financing_offer.rejected'
|
|
115
|
-
| 'capital.financing_offer.replacement_created'
|
|
116
|
-
| 'capital.financing_transaction.created'
|
|
117
52
|
| 'cash_balance.funds_available'
|
|
118
53
|
| 'charge.captured'
|
|
119
54
|
| 'charge.dispute.closed'
|
|
@@ -154,15 +89,11 @@ declare module 'stripe' {
|
|
|
154
89
|
| 'customer.source.deleted'
|
|
155
90
|
| 'customer.source.expiring'
|
|
156
91
|
| 'customer.source.updated'
|
|
157
|
-
| 'customer.subscription.collection_paused'
|
|
158
|
-
| 'customer.subscription.collection_resumed'
|
|
159
92
|
| 'customer.subscription.created'
|
|
160
|
-
| 'customer.subscription.custom_event'
|
|
161
93
|
| 'customer.subscription.deleted'
|
|
162
94
|
| 'customer.subscription.paused'
|
|
163
95
|
| 'customer.subscription.pending_update_applied'
|
|
164
96
|
| 'customer.subscription.pending_update_expired'
|
|
165
|
-
| 'customer.subscription.price_migration_failed'
|
|
166
97
|
| 'customer.subscription.resumed'
|
|
167
98
|
| 'customer.subscription.trial_will_end'
|
|
168
99
|
| 'customer.subscription.updated'
|
|
@@ -178,10 +109,8 @@ declare module 'stripe' {
|
|
|
178
109
|
| 'financial_connections.account.disconnected'
|
|
179
110
|
| 'financial_connections.account.reactivated'
|
|
180
111
|
| 'financial_connections.account.refreshed_balance'
|
|
181
|
-
| 'financial_connections.account.refreshed_inferred_balances'
|
|
182
112
|
| 'financial_connections.account.refreshed_ownership'
|
|
183
113
|
| 'financial_connections.account.refreshed_transactions'
|
|
184
|
-
| 'financial_connections.session.updated'
|
|
185
114
|
| 'identity.verification_session.canceled'
|
|
186
115
|
| 'identity.verification_session.created'
|
|
187
116
|
| 'identity.verification_session.processing'
|
|
@@ -195,7 +124,6 @@ declare module 'stripe' {
|
|
|
195
124
|
| 'invoice.marked_uncollectible'
|
|
196
125
|
| 'invoice.overdue'
|
|
197
126
|
| 'invoice.paid'
|
|
198
|
-
| 'invoice.payment.overpaid'
|
|
199
127
|
| 'invoice.payment_action_required'
|
|
200
128
|
| 'invoice.payment_failed'
|
|
201
129
|
| 'invoice.payment_succeeded'
|
|
@@ -219,14 +147,10 @@ declare module 'stripe' {
|
|
|
219
147
|
| 'issuing_dispute.funds_rescinded'
|
|
220
148
|
| 'issuing_dispute.submitted'
|
|
221
149
|
| 'issuing_dispute.updated'
|
|
222
|
-
| 'issuing_dispute_settlement_detail.created'
|
|
223
|
-
| 'issuing_dispute_settlement_detail.updated'
|
|
224
150
|
| 'issuing_personalization_design.activated'
|
|
225
151
|
| 'issuing_personalization_design.deactivated'
|
|
226
152
|
| 'issuing_personalization_design.rejected'
|
|
227
153
|
| 'issuing_personalization_design.updated'
|
|
228
|
-
| 'issuing_settlement.created'
|
|
229
|
-
| 'issuing_settlement.updated'
|
|
230
154
|
| 'issuing_token.created'
|
|
231
155
|
| 'issuing_token.updated'
|
|
232
156
|
| 'issuing_transaction.created'
|
|
@@ -266,20 +190,13 @@ declare module 'stripe' {
|
|
|
266
190
|
| 'product.updated'
|
|
267
191
|
| 'promotion_code.created'
|
|
268
192
|
| 'promotion_code.updated'
|
|
269
|
-
| 'quote.accept_failed'
|
|
270
193
|
| 'quote.accepted'
|
|
271
|
-
| 'quote.accepting'
|
|
272
194
|
| 'quote.canceled'
|
|
273
195
|
| 'quote.created'
|
|
274
|
-
| 'quote.draft'
|
|
275
196
|
| 'quote.finalized'
|
|
276
|
-
| 'quote.reestimate_failed'
|
|
277
|
-
| 'quote.reestimated'
|
|
278
|
-
| 'quote.stale'
|
|
279
197
|
| 'radar.early_fraud_warning.created'
|
|
280
198
|
| 'radar.early_fraud_warning.updated'
|
|
281
199
|
| 'refund.created'
|
|
282
|
-
| 'refund.failed'
|
|
283
200
|
| 'refund.updated'
|
|
284
201
|
| 'reporting.report_run.failed'
|
|
285
202
|
| 'reporting.report_run.succeeded'
|
|
@@ -304,16 +221,13 @@ declare module 'stripe' {
|
|
|
304
221
|
| 'subscription_schedule.completed'
|
|
305
222
|
| 'subscription_schedule.created'
|
|
306
223
|
| 'subscription_schedule.expiring'
|
|
307
|
-
| 'subscription_schedule.price_migration_failed'
|
|
308
224
|
| 'subscription_schedule.released'
|
|
309
225
|
| 'subscription_schedule.updated'
|
|
310
|
-
| 'tax.form.updated'
|
|
311
226
|
| 'tax.settings.updated'
|
|
312
227
|
| 'tax_rate.created'
|
|
313
228
|
| 'tax_rate.updated'
|
|
314
229
|
| 'terminal.reader.action_failed'
|
|
315
230
|
| 'terminal.reader.action_succeeded'
|
|
316
|
-
| 'terminal.reader.action_updated'
|
|
317
231
|
| 'test_helpers.test_clock.advancing'
|
|
318
232
|
| 'test_helpers.test_clock.created'
|
|
319
233
|
| 'test_helpers.test_clock.deleted'
|
|
@@ -429,11 +343,6 @@ declare module 'stripe' {
|
|
|
429
343
|
*/
|
|
430
344
|
pending_webhooks: number;
|
|
431
345
|
|
|
432
|
-
/**
|
|
433
|
-
* Information about the action that causes the event. Only present when the event is triggered by an API request or an [Automation](https://docs.stripe.com/billing/automations) action.
|
|
434
|
-
*/
|
|
435
|
-
reason?: Event.Reason | null;
|
|
436
|
-
|
|
437
346
|
/**
|
|
438
347
|
* Information on the API request that triggers the event.
|
|
439
348
|
*/
|
|
@@ -47,11 +47,6 @@ declare module 'stripe' {
|
|
|
47
47
|
*/
|
|
48
48
|
display_name: string | null;
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* The state of the most recent attempt to refresh the account's inferred balance history.
|
|
52
|
-
*/
|
|
53
|
-
inferred_balances_refresh?: Account.InferredBalancesRefresh | null;
|
|
54
|
-
|
|
55
50
|
/**
|
|
56
51
|
* The name of the institution that holds this account.
|
|
57
52
|
*/
|
|
@@ -108,7 +103,7 @@ declare module 'stripe' {
|
|
|
108
103
|
/**
|
|
109
104
|
* The list of data refresh subscriptions requested on this account.
|
|
110
105
|
*/
|
|
111
|
-
subscriptions: Array<
|
|
106
|
+
subscriptions: Array<'transactions'> | null;
|
|
112
107
|
|
|
113
108
|
/**
|
|
114
109
|
* The [PaymentMethod type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.
|
|
@@ -225,27 +220,6 @@ declare module 'stripe' {
|
|
|
225
220
|
|
|
226
221
|
type Category = 'cash' | 'credit' | 'investment' | 'other';
|
|
227
222
|
|
|
228
|
-
interface InferredBalancesRefresh {
|
|
229
|
-
/**
|
|
230
|
-
* The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
|
|
231
|
-
*/
|
|
232
|
-
last_attempted_at: number;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch.
|
|
236
|
-
*/
|
|
237
|
-
next_refresh_available_at: number | null;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The status of the last refresh attempt.
|
|
241
|
-
*/
|
|
242
|
-
status: InferredBalancesRefresh.Status;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
namespace InferredBalancesRefresh {
|
|
246
|
-
type Status = 'failed' | 'pending' | 'succeeded';
|
|
247
|
-
}
|
|
248
|
-
|
|
249
223
|
interface OwnershipRefresh {
|
|
250
224
|
/**
|
|
251
225
|
* The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
|
|
@@ -283,8 +257,6 @@ declare module 'stripe' {
|
|
|
283
257
|
| 'other'
|
|
284
258
|
| 'savings';
|
|
285
259
|
|
|
286
|
-
type Subscription = 'balance' | 'inferred_balances' | 'transactions';
|
|
287
|
-
|
|
288
260
|
type SupportedPaymentMethodType = 'link' | 'us_bank_account';
|
|
289
261
|
|
|
290
262
|
interface TransactionRefresh {
|
|
@@ -48,13 +48,6 @@ declare module 'stripe' {
|
|
|
48
48
|
expand?: Array<string>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
interface AccountListInferredBalancesParams extends PaginationParams {
|
|
52
|
-
/**
|
|
53
|
-
* Specifies which fields in the response should be expanded.
|
|
54
|
-
*/
|
|
55
|
-
expand?: Array<string>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
51
|
interface AccountListOwnersParams extends PaginationParams {
|
|
59
52
|
/**
|
|
60
53
|
* The ID of the ownership object to fetch owners from.
|
|
@@ -80,18 +73,14 @@ declare module 'stripe' {
|
|
|
80
73
|
}
|
|
81
74
|
|
|
82
75
|
namespace AccountRefreshParams {
|
|
83
|
-
type Feature =
|
|
84
|
-
| 'balance'
|
|
85
|
-
| 'inferred_balances'
|
|
86
|
-
| 'ownership'
|
|
87
|
-
| 'transactions';
|
|
76
|
+
type Feature = 'balance' | 'ownership' | 'transactions';
|
|
88
77
|
}
|
|
89
78
|
|
|
90
79
|
interface AccountSubscribeParams {
|
|
91
80
|
/**
|
|
92
81
|
* The list of account features to which you would like to subscribe.
|
|
93
82
|
*/
|
|
94
|
-
features: Array<
|
|
83
|
+
features: Array<'transactions'>;
|
|
95
84
|
|
|
96
85
|
/**
|
|
97
86
|
* Specifies which fields in the response should be expanded.
|
|
@@ -99,15 +88,11 @@ declare module 'stripe' {
|
|
|
99
88
|
expand?: Array<string>;
|
|
100
89
|
}
|
|
101
90
|
|
|
102
|
-
namespace AccountSubscribeParams {
|
|
103
|
-
type Feature = 'balance' | 'inferred_balances' | 'transactions';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
91
|
interface AccountUnsubscribeParams {
|
|
107
92
|
/**
|
|
108
93
|
* The list of account features from which you would like to unsubscribe.
|
|
109
94
|
*/
|
|
110
|
-
features: Array<
|
|
95
|
+
features: Array<'transactions'>;
|
|
111
96
|
|
|
112
97
|
/**
|
|
113
98
|
* Specifies which fields in the response should be expanded.
|
|
@@ -115,10 +100,6 @@ declare module 'stripe' {
|
|
|
115
100
|
expand?: Array<string>;
|
|
116
101
|
}
|
|
117
102
|
|
|
118
|
-
namespace AccountUnsubscribeParams {
|
|
119
|
-
type Feature = 'balance' | 'inferred_balances' | 'transactions';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
103
|
class AccountsResource {
|
|
123
104
|
/**
|
|
124
105
|
* Retrieves the details of an Financial Connections Account.
|
|
@@ -157,19 +138,6 @@ declare module 'stripe' {
|
|
|
157
138
|
options?: RequestOptions
|
|
158
139
|
): Promise<Stripe.Response<Stripe.FinancialConnections.Account>>;
|
|
159
140
|
|
|
160
|
-
/**
|
|
161
|
-
* Lists the recorded inferred balances for a Financial Connections Account.
|
|
162
|
-
*/
|
|
163
|
-
listInferredBalances(
|
|
164
|
-
id: string,
|
|
165
|
-
params?: AccountListInferredBalancesParams,
|
|
166
|
-
options?: RequestOptions
|
|
167
|
-
): ApiListPromise<Stripe.FinancialConnections.AccountInferredBalance>;
|
|
168
|
-
listInferredBalances(
|
|
169
|
-
id: string,
|
|
170
|
-
options?: RequestOptions
|
|
171
|
-
): ApiListPromise<Stripe.FinancialConnections.AccountInferredBalance>;
|
|
172
|
-
|
|
173
141
|
/**
|
|
174
142
|
* Lists all owners for a given Account
|
|
175
143
|
*/
|
|
@@ -34,15 +34,11 @@ declare module 'stripe' {
|
|
|
34
34
|
|
|
35
35
|
filters?: Session.Filters;
|
|
36
36
|
|
|
37
|
-
limits?: Session.Limits;
|
|
38
|
-
|
|
39
37
|
/**
|
|
40
38
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
41
39
|
*/
|
|
42
40
|
livemode: boolean;
|
|
43
41
|
|
|
44
|
-
manual_entry?: Session.ManualEntry;
|
|
45
|
-
|
|
46
42
|
/**
|
|
47
43
|
* Permissions requested for accounts collected during this session.
|
|
48
44
|
*/
|
|
@@ -57,13 +53,6 @@ declare module 'stripe' {
|
|
|
57
53
|
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
58
54
|
*/
|
|
59
55
|
return_url?: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The current state of the session.
|
|
63
|
-
*/
|
|
64
|
-
status?: Session.Status;
|
|
65
|
-
|
|
66
|
-
status_details?: Session.StatusDetails;
|
|
67
56
|
}
|
|
68
57
|
|
|
69
58
|
namespace Session {
|
|
@@ -98,11 +87,6 @@ declare module 'stripe' {
|
|
|
98
87
|
* List of countries from which to filter accounts.
|
|
99
88
|
*/
|
|
100
89
|
countries: Array<string> | null;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Stripe ID of the institution with which the customer should be directed to log in.
|
|
104
|
-
*/
|
|
105
|
-
institution?: string;
|
|
106
90
|
}
|
|
107
91
|
|
|
108
92
|
namespace Filters {
|
|
@@ -114,45 +98,13 @@ declare module 'stripe' {
|
|
|
114
98
|
| 'savings';
|
|
115
99
|
}
|
|
116
100
|
|
|
117
|
-
interface Limits {
|
|
118
|
-
/**
|
|
119
|
-
* The number of accounts that can be linked in this Session.
|
|
120
|
-
*/
|
|
121
|
-
accounts: number;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface ManualEntry {}
|
|
125
|
-
|
|
126
101
|
type Permission =
|
|
127
102
|
| 'balances'
|
|
128
103
|
| 'ownership'
|
|
129
104
|
| 'payment_method'
|
|
130
105
|
| 'transactions';
|
|
131
106
|
|
|
132
|
-
type Prefetch =
|
|
133
|
-
| 'balances'
|
|
134
|
-
| 'inferred_balances'
|
|
135
|
-
| 'ownership'
|
|
136
|
-
| 'transactions';
|
|
137
|
-
|
|
138
|
-
type Status = 'cancelled' | 'failed' | 'pending' | 'succeeded';
|
|
139
|
-
|
|
140
|
-
interface StatusDetails {
|
|
141
|
-
cancelled?: StatusDetails.Cancelled;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
namespace StatusDetails {
|
|
145
|
-
interface Cancelled {
|
|
146
|
-
/**
|
|
147
|
-
* The reason for the Session being cancelled.
|
|
148
|
-
*/
|
|
149
|
-
reason: Cancelled.Reason;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
namespace Cancelled {
|
|
153
|
-
type Reason = 'custom_manual_entry' | 'other';
|
|
154
|
-
}
|
|
155
|
-
}
|
|
107
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
156
108
|
}
|
|
157
109
|
}
|
|
158
110
|
}
|
|
@@ -26,16 +26,6 @@ declare module 'stripe' {
|
|
|
26
26
|
*/
|
|
27
27
|
filters?: SessionCreateParams.Filters;
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* Settings for configuring Session-specific limits.
|
|
31
|
-
*/
|
|
32
|
-
limits?: SessionCreateParams.Limits;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Settings for configuring manual entry of account details for this Session.
|
|
36
|
-
*/
|
|
37
|
-
manual_entry?: SessionCreateParams.ManualEntry;
|
|
38
|
-
|
|
39
29
|
/**
|
|
40
30
|
* List of data features that you would like to retrieve upon account creation.
|
|
41
31
|
*/
|
|
@@ -79,11 +69,6 @@ declare module 'stripe' {
|
|
|
79
69
|
* List of countries from which to collect accounts.
|
|
80
70
|
*/
|
|
81
71
|
countries?: Array<string>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Stripe ID of the institution with which the customer should be directed to log in.
|
|
85
|
-
*/
|
|
86
|
-
institution?: string;
|
|
87
72
|
}
|
|
88
73
|
|
|
89
74
|
namespace Filters {
|
|
@@ -95,35 +80,13 @@ declare module 'stripe' {
|
|
|
95
80
|
| 'savings';
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
interface Limits {
|
|
99
|
-
/**
|
|
100
|
-
* The number of accounts that can be linked in this Session.
|
|
101
|
-
*/
|
|
102
|
-
accounts: number;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface ManualEntry {
|
|
106
|
-
/**
|
|
107
|
-
* Whether manual entry will be handled by Stripe during the Session.
|
|
108
|
-
*/
|
|
109
|
-
mode?: ManualEntry.Mode;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
namespace ManualEntry {
|
|
113
|
-
type Mode = 'automatic' | 'custom';
|
|
114
|
-
}
|
|
115
|
-
|
|
116
83
|
type Permission =
|
|
117
84
|
| 'balances'
|
|
118
85
|
| 'ownership'
|
|
119
86
|
| 'payment_method'
|
|
120
87
|
| 'transactions';
|
|
121
88
|
|
|
122
|
-
type Prefetch =
|
|
123
|
-
| 'balances'
|
|
124
|
-
| 'inferred_balances'
|
|
125
|
-
| 'ownership'
|
|
126
|
-
| 'transactions';
|
|
89
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
127
90
|
}
|
|
128
91
|
|
|
129
92
|
interface SessionRetrieveParams {
|
|
@@ -42,11 +42,6 @@ declare module 'stripe' {
|
|
|
42
42
|
*/
|
|
43
43
|
livemode: boolean;
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
47
|
-
*/
|
|
48
|
-
metadata?: Stripe.Metadata | null;
|
|
49
|
-
|
|
50
45
|
/**
|
|
51
46
|
* The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
|
|
52
47
|
*/
|
package/types/InvoiceItems.d.ts
CHANGED
|
@@ -96,11 +96,6 @@ declare module 'stripe' {
|
|
|
96
96
|
*/
|
|
97
97
|
livemode: boolean;
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* The margins which apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
101
|
-
*/
|
|
102
|
-
margins?: Array<string | Stripe.Margin> | null;
|
|
103
|
-
|
|
104
99
|
/**
|
|
105
100
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
106
101
|
*/
|
|
@@ -43,11 +43,6 @@ declare module 'stripe' {
|
|
|
43
43
|
*/
|
|
44
44
|
invoice?: string;
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
48
|
-
*/
|
|
49
|
-
margins?: Array<string>;
|
|
50
|
-
|
|
51
46
|
/**
|
|
52
47
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
53
48
|
*/
|
|
@@ -116,56 +111,12 @@ declare module 'stripe' {
|
|
|
116
111
|
*/
|
|
117
112
|
discount?: string;
|
|
118
113
|
|
|
119
|
-
/**
|
|
120
|
-
* Details to determine how long the discount should be applied for.
|
|
121
|
-
*/
|
|
122
|
-
discount_end?: Discount.DiscountEnd;
|
|
123
|
-
|
|
124
114
|
/**
|
|
125
115
|
* ID of the promotion code to create a new discount for.
|
|
126
116
|
*/
|
|
127
117
|
promotion_code?: string;
|
|
128
118
|
}
|
|
129
119
|
|
|
130
|
-
namespace Discount {
|
|
131
|
-
interface DiscountEnd {
|
|
132
|
-
/**
|
|
133
|
-
* Time span for the redeemed discount.
|
|
134
|
-
*/
|
|
135
|
-
duration?: DiscountEnd.Duration;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
139
|
-
*/
|
|
140
|
-
timestamp?: number;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The type of calculation made to determine when the discount ends.
|
|
144
|
-
*/
|
|
145
|
-
type: DiscountEnd.Type;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
namespace DiscountEnd {
|
|
149
|
-
interface Duration {
|
|
150
|
-
/**
|
|
151
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
152
|
-
*/
|
|
153
|
-
interval: Duration.Interval;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
157
|
-
*/
|
|
158
|
-
interval_count: number;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
namespace Duration {
|
|
162
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
type Type = 'duration' | 'timestamp';
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
120
|
interface Period {
|
|
170
121
|
/**
|
|
171
122
|
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
|
|
@@ -245,11 +196,6 @@ declare module 'stripe' {
|
|
|
245
196
|
*/
|
|
246
197
|
expand?: Array<string>;
|
|
247
198
|
|
|
248
|
-
/**
|
|
249
|
-
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
|
|
250
|
-
*/
|
|
251
|
-
margins?: Stripe.Emptyable<Array<string>>;
|
|
252
|
-
|
|
253
199
|
/**
|
|
254
200
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
255
201
|
*/
|
|
@@ -313,56 +259,12 @@ declare module 'stripe' {
|
|
|
313
259
|
*/
|
|
314
260
|
discount?: string;
|
|
315
261
|
|
|
316
|
-
/**
|
|
317
|
-
* Details to determine how long the discount should be applied for.
|
|
318
|
-
*/
|
|
319
|
-
discount_end?: Discount.DiscountEnd;
|
|
320
|
-
|
|
321
262
|
/**
|
|
322
263
|
* ID of the promotion code to create a new discount for.
|
|
323
264
|
*/
|
|
324
265
|
promotion_code?: string;
|
|
325
266
|
}
|
|
326
267
|
|
|
327
|
-
namespace Discount {
|
|
328
|
-
interface DiscountEnd {
|
|
329
|
-
/**
|
|
330
|
-
* Time span for the redeemed discount.
|
|
331
|
-
*/
|
|
332
|
-
duration?: DiscountEnd.Duration;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
336
|
-
*/
|
|
337
|
-
timestamp?: number;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* The type of calculation made to determine when the discount ends.
|
|
341
|
-
*/
|
|
342
|
-
type: DiscountEnd.Type;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
namespace DiscountEnd {
|
|
346
|
-
interface Duration {
|
|
347
|
-
/**
|
|
348
|
-
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
349
|
-
*/
|
|
350
|
-
interval: Duration.Interval;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
354
|
-
*/
|
|
355
|
-
interval_count: number;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
namespace Duration {
|
|
359
|
-
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
type Type = 'duration' | 'timestamp';
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
268
|
interface Period {
|
|
367
269
|
/**
|
|
368
270
|
* The end of the period, which must be greater than or equal to the start. This value is inclusive.
|