stripe 16.4.0 → 16.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +794 -109
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +66 -5
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -1
- package/cjs/multipart.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Alerts.js +27 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/Checkout/Sessions.js +4 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/QuotePhases.js +22 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +6 -3
- package/cjs/utils.js +30 -3
- package/esm/RequestSender.js +67 -6
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -0
- package/esm/multipart.js +2 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Alerts.js +24 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/Checkout/Sessions.js +4 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/QuotePhases.js +19 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +28 -0
- package/esm/stripe.core.js +6 -3
- package/esm/utils.js +27 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +205 -0
- package/types/Accounts.d.ts +109 -4
- package/types/AccountsResource.d.ts +272 -26
- package/types/Billing/AlertTriggereds.d.ts +42 -0
- package/types/Billing/Alerts.d.ts +80 -0
- package/types/Billing/AlertsResource.d.ts +176 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +106 -3
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +28 -1
- package/types/Checkout/SessionsResource.d.ts +36 -1
- package/types/ConfirmationTokens.d.ts +80 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +2 -0
- package/types/Disputes.d.ts +177 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +477 -0
- package/types/Events.d.ts +86 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +22 -0
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +116 -1
- package/types/InvoicesResource.d.ts +5395 -1818
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1057 -0
- package/types/OrdersResource.d.ts +2711 -0
- package/types/PaymentIntents.d.ts +491 -2
- package/types/PaymentIntentsResource.d.ts +6884 -3356
- package/types/PaymentMethodConfigurations.d.ts +72 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
- package/types/PaymentMethods.d.ts +80 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePhases.d.ts +198 -0
- package/types/QuotePhasesResource.d.ts +67 -0
- package/types/QuotePreviewInvoices.d.ts +1528 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
- package/types/Quotes.d.ts +578 -1
- package/types/QuotesResource.d.ts +3174 -265
- package/types/RefundsResource.d.ts +1 -1
- package/types/SetupAttempts.d.ts +9 -0
- package/types/SetupIntents.d.ts +110 -1
- package/types/SetupIntentsResource.d.ts +498 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +164 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +46 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Calculations.d.ts +1 -1
- package/types/Tax/CalculationsResource.d.ts +1 -3
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +208 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +7 -7
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +56 -0
- package/types/index.d.ts +71 -0
- package/types/lib.d.ts +12 -0
package/types/EventTypes.d.ts
CHANGED
|
@@ -9,14 +9,26 @@ declare module 'stripe' {
|
|
|
9
9
|
| AccountExternalAccountDeletedEvent
|
|
10
10
|
| AccountExternalAccountUpdatedEvent
|
|
11
11
|
| AccountUpdatedEvent
|
|
12
|
+
| AccountNoticeCreatedEvent
|
|
13
|
+
| AccountNoticeUpdatedEvent
|
|
12
14
|
| ApplicationFeeCreatedEvent
|
|
13
15
|
| ApplicationFeeRefundUpdatedEvent
|
|
14
16
|
| ApplicationFeeRefundedEvent
|
|
15
17
|
| BalanceAvailableEvent
|
|
18
|
+
| BillingAlertTriggeredEvent
|
|
16
19
|
| BillingPortalConfigurationCreatedEvent
|
|
17
20
|
| BillingPortalConfigurationUpdatedEvent
|
|
18
21
|
| BillingPortalSessionCreatedEvent
|
|
19
22
|
| CapabilityUpdatedEvent
|
|
23
|
+
| CapitalFinancingOfferAcceptedEvent
|
|
24
|
+
| CapitalFinancingOfferCanceledEvent
|
|
25
|
+
| CapitalFinancingOfferCreatedEvent
|
|
26
|
+
| CapitalFinancingOfferExpiredEvent
|
|
27
|
+
| CapitalFinancingOfferFullyRepaidEvent
|
|
28
|
+
| CapitalFinancingOfferPaidOutEvent
|
|
29
|
+
| CapitalFinancingOfferRejectedEvent
|
|
30
|
+
| CapitalFinancingOfferReplacementCreatedEvent
|
|
31
|
+
| CapitalFinancingTransactionCreatedEvent
|
|
20
32
|
| CashBalanceFundsAvailableEvent
|
|
21
33
|
| ChargeCapturedEvent
|
|
22
34
|
| ChargeDisputeClosedEvent
|
|
@@ -57,7 +69,10 @@ declare module 'stripe' {
|
|
|
57
69
|
| CustomerSourceDeletedEvent
|
|
58
70
|
| CustomerSourceExpiringEvent
|
|
59
71
|
| CustomerSourceUpdatedEvent
|
|
72
|
+
| CustomerSubscriptionCollectionPausedEvent
|
|
73
|
+
| CustomerSubscriptionCollectionResumedEvent
|
|
60
74
|
| CustomerSubscriptionCreatedEvent
|
|
75
|
+
| CustomerSubscriptionCustomEventEvent
|
|
61
76
|
| CustomerSubscriptionDeletedEvent
|
|
62
77
|
| CustomerSubscriptionPausedEvent
|
|
63
78
|
| CustomerSubscriptionPendingUpdateAppliedEvent
|
|
@@ -77,8 +92,10 @@ declare module 'stripe' {
|
|
|
77
92
|
| FinancialConnectionsAccountDisconnectedEvent
|
|
78
93
|
| FinancialConnectionsAccountReactivatedEvent
|
|
79
94
|
| FinancialConnectionsAccountRefreshedBalanceEvent
|
|
95
|
+
| FinancialConnectionsAccountRefreshedInferredBalancesEvent
|
|
80
96
|
| FinancialConnectionsAccountRefreshedOwnershipEvent
|
|
81
97
|
| FinancialConnectionsAccountRefreshedTransactionsEvent
|
|
98
|
+
| FinancialConnectionsSessionUpdatedEvent
|
|
82
99
|
| IdentityVerificationSessionCanceledEvent
|
|
83
100
|
| IdentityVerificationSessionCreatedEvent
|
|
84
101
|
| IdentityVerificationSessionProcessingEvent
|
|
@@ -90,7 +107,9 @@ declare module 'stripe' {
|
|
|
90
107
|
| InvoiceFinalizationFailedEvent
|
|
91
108
|
| InvoiceFinalizedEvent
|
|
92
109
|
| InvoiceMarkedUncollectibleEvent
|
|
110
|
+
| InvoiceOverdueEvent
|
|
93
111
|
| InvoicePaidEvent
|
|
112
|
+
| InvoicePaymentOverpaidEvent
|
|
94
113
|
| InvoicePaymentActionRequiredEvent
|
|
95
114
|
| InvoicePaymentFailedEvent
|
|
96
115
|
| InvoicePaymentSucceededEvent
|
|
@@ -98,6 +117,7 @@ declare module 'stripe' {
|
|
|
98
117
|
| InvoiceUpcomingEvent
|
|
99
118
|
| InvoiceUpdatedEvent
|
|
100
119
|
| InvoiceVoidedEvent
|
|
120
|
+
| InvoiceWillBeDueEvent
|
|
101
121
|
| InvoiceItemCreatedEvent
|
|
102
122
|
| InvoiceItemDeletedEvent
|
|
103
123
|
| IssuingAuthorizationCreatedEvent
|
|
@@ -156,10 +176,16 @@ declare module 'stripe' {
|
|
|
156
176
|
| ProductUpdatedEvent
|
|
157
177
|
| PromotionCodeCreatedEvent
|
|
158
178
|
| PromotionCodeUpdatedEvent
|
|
179
|
+
| QuoteAcceptFailedEvent
|
|
159
180
|
| QuoteAcceptedEvent
|
|
181
|
+
| QuoteAcceptingEvent
|
|
160
182
|
| QuoteCanceledEvent
|
|
161
183
|
| QuoteCreatedEvent
|
|
184
|
+
| QuoteDraftEvent
|
|
162
185
|
| QuoteFinalizedEvent
|
|
186
|
+
| QuoteReestimateFailedEvent
|
|
187
|
+
| QuoteReestimatedEvent
|
|
188
|
+
| QuoteStaleEvent
|
|
163
189
|
| RadarEarlyFraudWarningCreatedEvent
|
|
164
190
|
| RadarEarlyFraudWarningUpdatedEvent
|
|
165
191
|
| RefundCreatedEvent
|
|
@@ -189,11 +215,13 @@ declare module 'stripe' {
|
|
|
189
215
|
| SubscriptionScheduleExpiringEvent
|
|
190
216
|
| SubscriptionScheduleReleasedEvent
|
|
191
217
|
| SubscriptionScheduleUpdatedEvent
|
|
218
|
+
| TaxFormUpdatedEvent
|
|
192
219
|
| TaxSettingsUpdatedEvent
|
|
193
220
|
| TaxRateCreatedEvent
|
|
194
221
|
| TaxRateUpdatedEvent
|
|
195
222
|
| TerminalReaderActionFailedEvent
|
|
196
223
|
| TerminalReaderActionSucceededEvent
|
|
224
|
+
| TerminalReaderActionUpdatedEvent
|
|
197
225
|
| TestHelpersTestClockAdvancingEvent
|
|
198
226
|
| TestHelpersTestClockCreatedEvent
|
|
199
227
|
| TestHelpersTestClockDeletedEvent
|
|
@@ -334,6 +362,38 @@ declare module 'stripe' {
|
|
|
334
362
|
}
|
|
335
363
|
}
|
|
336
364
|
|
|
365
|
+
/**
|
|
366
|
+
* Occurs whenever an AccountNotice is created.
|
|
367
|
+
*/
|
|
368
|
+
interface AccountNoticeCreatedEvent extends EventBase {
|
|
369
|
+
type: 'account_notice.created';
|
|
370
|
+
data: AccountNoticeCreatedEvent.Data;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
namespace AccountNoticeCreatedEvent {
|
|
374
|
+
interface Data extends Stripe.Event.Data {
|
|
375
|
+
object: Stripe.AccountNotice;
|
|
376
|
+
|
|
377
|
+
previous_attributes?: Partial<Stripe.AccountNotice>;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Occurs whenever an AccountNotice is updated.
|
|
383
|
+
*/
|
|
384
|
+
interface AccountNoticeUpdatedEvent extends EventBase {
|
|
385
|
+
type: 'account_notice.updated';
|
|
386
|
+
data: AccountNoticeUpdatedEvent.Data;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
namespace AccountNoticeUpdatedEvent {
|
|
390
|
+
interface Data extends Stripe.Event.Data {
|
|
391
|
+
object: Stripe.AccountNotice;
|
|
392
|
+
|
|
393
|
+
previous_attributes?: Partial<Stripe.AccountNotice>;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
337
397
|
/**
|
|
338
398
|
* Occurs whenever an application fee is created on a charge.
|
|
339
399
|
*/
|
|
@@ -398,6 +458,22 @@ declare module 'stripe' {
|
|
|
398
458
|
}
|
|
399
459
|
}
|
|
400
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Occurs whenever your custom alert threshold is met.
|
|
463
|
+
*/
|
|
464
|
+
interface BillingAlertTriggeredEvent extends EventBase {
|
|
465
|
+
type: 'billing.alert.triggered';
|
|
466
|
+
data: BillingAlertTriggeredEvent.Data;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
namespace BillingAlertTriggeredEvent {
|
|
470
|
+
interface Data extends Stripe.Event.Data {
|
|
471
|
+
object: Stripe.Billing.AlertTriggered;
|
|
472
|
+
|
|
473
|
+
previous_attributes?: Partial<Stripe.Billing.AlertTriggered>;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
401
477
|
/**
|
|
402
478
|
* Occurs whenever a portal configuration is created.
|
|
403
479
|
*/
|
|
@@ -462,6 +538,150 @@ declare module 'stripe' {
|
|
|
462
538
|
}
|
|
463
539
|
}
|
|
464
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Occurs whenever a connected account accepts a financing offer.
|
|
543
|
+
*/
|
|
544
|
+
interface CapitalFinancingOfferAcceptedEvent extends EventBase {
|
|
545
|
+
type: 'capital.financing_offer.accepted';
|
|
546
|
+
data: CapitalFinancingOfferAcceptedEvent.Data;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
namespace CapitalFinancingOfferAcceptedEvent {
|
|
550
|
+
interface Data extends Stripe.Event.Data {
|
|
551
|
+
object: Stripe.Capital.FinancingOffer;
|
|
552
|
+
|
|
553
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Occurs whenever a financing offer is canceled.
|
|
559
|
+
*/
|
|
560
|
+
interface CapitalFinancingOfferCanceledEvent extends EventBase {
|
|
561
|
+
type: 'capital.financing_offer.canceled';
|
|
562
|
+
data: CapitalFinancingOfferCanceledEvent.Data;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
namespace CapitalFinancingOfferCanceledEvent {
|
|
566
|
+
interface Data extends Stripe.Event.Data {
|
|
567
|
+
object: Stripe.Capital.FinancingOffer;
|
|
568
|
+
|
|
569
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Occurs whenever a new financing offer is created for a connected account.
|
|
575
|
+
*/
|
|
576
|
+
interface CapitalFinancingOfferCreatedEvent extends EventBase {
|
|
577
|
+
type: 'capital.financing_offer.created';
|
|
578
|
+
data: CapitalFinancingOfferCreatedEvent.Data;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
namespace CapitalFinancingOfferCreatedEvent {
|
|
582
|
+
interface Data extends Stripe.Event.Data {
|
|
583
|
+
object: Stripe.Capital.FinancingOffer;
|
|
584
|
+
|
|
585
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Occurs whenever a financing offer expires.
|
|
591
|
+
*/
|
|
592
|
+
interface CapitalFinancingOfferExpiredEvent extends EventBase {
|
|
593
|
+
type: 'capital.financing_offer.expired';
|
|
594
|
+
data: CapitalFinancingOfferExpiredEvent.Data;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
namespace CapitalFinancingOfferExpiredEvent {
|
|
598
|
+
interface Data extends Stripe.Event.Data {
|
|
599
|
+
object: Stripe.Capital.FinancingOffer;
|
|
600
|
+
|
|
601
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Occurs whenever a financing offer is fully repaid.
|
|
607
|
+
*/
|
|
608
|
+
interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
|
|
609
|
+
type: 'capital.financing_offer.fully_repaid';
|
|
610
|
+
data: CapitalFinancingOfferFullyRepaidEvent.Data;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
namespace CapitalFinancingOfferFullyRepaidEvent {
|
|
614
|
+
interface Data extends Stripe.Event.Data {
|
|
615
|
+
object: Stripe.Capital.FinancingOffer;
|
|
616
|
+
|
|
617
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Occurs whenever a financing offer is paid out.
|
|
623
|
+
*/
|
|
624
|
+
interface CapitalFinancingOfferPaidOutEvent extends EventBase {
|
|
625
|
+
type: 'capital.financing_offer.paid_out';
|
|
626
|
+
data: CapitalFinancingOfferPaidOutEvent.Data;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
namespace CapitalFinancingOfferPaidOutEvent {
|
|
630
|
+
interface Data extends Stripe.Event.Data {
|
|
631
|
+
object: Stripe.Capital.FinancingOffer;
|
|
632
|
+
|
|
633
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Occurs whenever a financing offer is rejected.
|
|
639
|
+
*/
|
|
640
|
+
interface CapitalFinancingOfferRejectedEvent extends EventBase {
|
|
641
|
+
type: 'capital.financing_offer.rejected';
|
|
642
|
+
data: CapitalFinancingOfferRejectedEvent.Data;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
namespace CapitalFinancingOfferRejectedEvent {
|
|
646
|
+
interface Data extends Stripe.Event.Data {
|
|
647
|
+
object: Stripe.Capital.FinancingOffer;
|
|
648
|
+
|
|
649
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Occurs whenever a replacement for a financing offer has been created.
|
|
655
|
+
*/
|
|
656
|
+
interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
|
|
657
|
+
type: 'capital.financing_offer.replacement_created';
|
|
658
|
+
data: CapitalFinancingOfferReplacementCreatedEvent.Data;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
namespace CapitalFinancingOfferReplacementCreatedEvent {
|
|
662
|
+
interface Data extends Stripe.Event.Data {
|
|
663
|
+
object: Stripe.Capital.FinancingOffer;
|
|
664
|
+
|
|
665
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Occurs whenever a financing transaction is created.
|
|
671
|
+
*/
|
|
672
|
+
interface CapitalFinancingTransactionCreatedEvent extends EventBase {
|
|
673
|
+
type: 'capital.financing_transaction.created';
|
|
674
|
+
data: CapitalFinancingTransactionCreatedEvent.Data;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
namespace CapitalFinancingTransactionCreatedEvent {
|
|
678
|
+
interface Data extends Stripe.Event.Data {
|
|
679
|
+
object: Stripe.Capital.FinancingTransaction;
|
|
680
|
+
|
|
681
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
465
685
|
/**
|
|
466
686
|
* Occurs whenever there is a positive remaining cash balance after Stripe automatically reconciles new funds into the cash balance. If you enabled manual reconciliation, this webhook will fire whenever there are new funds into the cash balance.
|
|
467
687
|
*/
|
|
@@ -1102,6 +1322,38 @@ declare module 'stripe' {
|
|
|
1102
1322
|
}
|
|
1103
1323
|
}
|
|
1104
1324
|
|
|
1325
|
+
/**
|
|
1326
|
+
* Occurs whenever collection is paused on a customer's subscription. Only applies when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is paused, not when subscriptions enter `status=paused`.
|
|
1327
|
+
*/
|
|
1328
|
+
interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
|
|
1329
|
+
type: 'customer.subscription.collection_paused';
|
|
1330
|
+
data: CustomerSubscriptionCollectionPausedEvent.Data;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
namespace CustomerSubscriptionCollectionPausedEvent {
|
|
1334
|
+
interface Data extends Stripe.Event.Data {
|
|
1335
|
+
object: Stripe.Subscription;
|
|
1336
|
+
|
|
1337
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Occurs whenever collection is resumed on a customer's subscription that is currently paused. Only applies when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed, not when subscriptions exit `status=paused`.
|
|
1343
|
+
*/
|
|
1344
|
+
interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
|
|
1345
|
+
type: 'customer.subscription.collection_resumed';
|
|
1346
|
+
data: CustomerSubscriptionCollectionResumedEvent.Data;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
namespace CustomerSubscriptionCollectionResumedEvent {
|
|
1350
|
+
interface Data extends Stripe.Event.Data {
|
|
1351
|
+
object: Stripe.Subscription;
|
|
1352
|
+
|
|
1353
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1105
1357
|
/**
|
|
1106
1358
|
* Occurs whenever a customer is signed up for a new plan.
|
|
1107
1359
|
*/
|
|
@@ -1118,6 +1370,22 @@ declare module 'stripe' {
|
|
|
1118
1370
|
}
|
|
1119
1371
|
}
|
|
1120
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
|
|
1375
|
+
*/
|
|
1376
|
+
interface CustomerSubscriptionCustomEventEvent extends EventBase {
|
|
1377
|
+
type: 'customer.subscription.custom_event';
|
|
1378
|
+
data: CustomerSubscriptionCustomEventEvent.Data;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
namespace CustomerSubscriptionCustomEventEvent {
|
|
1382
|
+
interface Data extends Stripe.Event.Data {
|
|
1383
|
+
object: Stripe.Subscription;
|
|
1384
|
+
|
|
1385
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1121
1389
|
/**
|
|
1122
1390
|
* Occurs whenever a customer's subscription ends.
|
|
1123
1391
|
*/
|
|
@@ -1426,6 +1694,23 @@ declare module 'stripe' {
|
|
|
1426
1694
|
}
|
|
1427
1695
|
}
|
|
1428
1696
|
|
|
1697
|
+
/**
|
|
1698
|
+
* Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1699
|
+
*/
|
|
1700
|
+
interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
|
|
1701
|
+
extends EventBase {
|
|
1702
|
+
type: 'financial_connections.account.refreshed_inferred_balances';
|
|
1703
|
+
data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
|
|
1707
|
+
interface Data extends Stripe.Event.Data {
|
|
1708
|
+
object: Stripe.FinancialConnections.Account;
|
|
1709
|
+
|
|
1710
|
+
previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1429
1714
|
/**
|
|
1430
1715
|
* Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1431
1716
|
*/
|
|
@@ -1460,6 +1745,22 @@ declare module 'stripe' {
|
|
|
1460
1745
|
}
|
|
1461
1746
|
}
|
|
1462
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
|
|
1750
|
+
*/
|
|
1751
|
+
interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
|
|
1752
|
+
type: 'financial_connections.session.updated';
|
|
1753
|
+
data: FinancialConnectionsSessionUpdatedEvent.Data;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
namespace FinancialConnectionsSessionUpdatedEvent {
|
|
1757
|
+
interface Data extends Stripe.Event.Data {
|
|
1758
|
+
object: Stripe.FinancialConnections.Session;
|
|
1759
|
+
|
|
1760
|
+
previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1463
1764
|
/**
|
|
1464
1765
|
* Occurs whenever a VerificationSession is canceled
|
|
1465
1766
|
*/
|
|
@@ -1636,6 +1937,22 @@ declare module 'stripe' {
|
|
|
1636
1937
|
}
|
|
1637
1938
|
}
|
|
1638
1939
|
|
|
1940
|
+
/**
|
|
1941
|
+
* Occurs X number of days after an invoice becomes due—where X is determined by Automations
|
|
1942
|
+
*/
|
|
1943
|
+
interface InvoiceOverdueEvent extends EventBase {
|
|
1944
|
+
type: 'invoice.overdue';
|
|
1945
|
+
data: InvoiceOverdueEvent.Data;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
namespace InvoiceOverdueEvent {
|
|
1949
|
+
interface Data extends Stripe.Event.Data {
|
|
1950
|
+
object: Stripe.Invoice;
|
|
1951
|
+
|
|
1952
|
+
previous_attributes?: Partial<Stripe.Invoice>;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1639
1956
|
/**
|
|
1640
1957
|
* Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band.
|
|
1641
1958
|
*/
|
|
@@ -1652,6 +1969,22 @@ declare module 'stripe' {
|
|
|
1652
1969
|
}
|
|
1653
1970
|
}
|
|
1654
1971
|
|
|
1972
|
+
/**
|
|
1973
|
+
* Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
|
|
1974
|
+
*/
|
|
1975
|
+
interface InvoicePaymentOverpaidEvent extends EventBase {
|
|
1976
|
+
type: 'invoice.payment.overpaid';
|
|
1977
|
+
data: InvoicePaymentOverpaidEvent.Data;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
namespace InvoicePaymentOverpaidEvent {
|
|
1981
|
+
interface Data extends Stripe.Event.Data {
|
|
1982
|
+
object: Stripe.InvoicePayment;
|
|
1983
|
+
|
|
1984
|
+
previous_attributes?: Partial<Stripe.InvoicePayment>;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1655
1988
|
/**
|
|
1656
1989
|
* Occurs whenever an invoice payment attempt requires further user action to complete.
|
|
1657
1990
|
*/
|
|
@@ -1764,6 +2097,22 @@ declare module 'stripe' {
|
|
|
1764
2097
|
}
|
|
1765
2098
|
}
|
|
1766
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* Occurs X number of days before an invoice becomes due—where X is determined by Automations
|
|
2102
|
+
*/
|
|
2103
|
+
interface InvoiceWillBeDueEvent extends EventBase {
|
|
2104
|
+
type: 'invoice.will_be_due';
|
|
2105
|
+
data: InvoiceWillBeDueEvent.Data;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
namespace InvoiceWillBeDueEvent {
|
|
2109
|
+
interface Data extends Stripe.Event.Data {
|
|
2110
|
+
object: Stripe.Invoice;
|
|
2111
|
+
|
|
2112
|
+
previous_attributes?: Partial<Stripe.Invoice>;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
|
|
1767
2116
|
/**
|
|
1768
2117
|
* Occurs whenever an invoice item is created.
|
|
1769
2118
|
*/
|
|
@@ -2692,6 +3041,22 @@ declare module 'stripe' {
|
|
|
2692
3041
|
}
|
|
2693
3042
|
}
|
|
2694
3043
|
|
|
3044
|
+
/**
|
|
3045
|
+
* Occurs whenever a quote acceptance fails
|
|
3046
|
+
*/
|
|
3047
|
+
interface QuoteAcceptFailedEvent extends EventBase {
|
|
3048
|
+
type: 'quote.accept_failed';
|
|
3049
|
+
data: QuoteAcceptFailedEvent.Data;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
namespace QuoteAcceptFailedEvent {
|
|
3053
|
+
interface Data extends Stripe.Event.Data {
|
|
3054
|
+
object: Stripe.Quote;
|
|
3055
|
+
|
|
3056
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
|
|
2695
3060
|
/**
|
|
2696
3061
|
* Occurs whenever a quote is accepted.
|
|
2697
3062
|
*/
|
|
@@ -2708,6 +3073,22 @@ declare module 'stripe' {
|
|
|
2708
3073
|
}
|
|
2709
3074
|
}
|
|
2710
3075
|
|
|
3076
|
+
/**
|
|
3077
|
+
* Occurs whenever a quote's status changes to accepting
|
|
3078
|
+
*/
|
|
3079
|
+
interface QuoteAcceptingEvent extends EventBase {
|
|
3080
|
+
type: 'quote.accepting';
|
|
3081
|
+
data: QuoteAcceptingEvent.Data;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
namespace QuoteAcceptingEvent {
|
|
3085
|
+
interface Data extends Stripe.Event.Data {
|
|
3086
|
+
object: Stripe.Quote;
|
|
3087
|
+
|
|
3088
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
|
|
2711
3092
|
/**
|
|
2712
3093
|
* Occurs whenever a quote is canceled.
|
|
2713
3094
|
*/
|
|
@@ -2740,6 +3121,22 @@ declare module 'stripe' {
|
|
|
2740
3121
|
}
|
|
2741
3122
|
}
|
|
2742
3123
|
|
|
3124
|
+
/**
|
|
3125
|
+
* Occurs when a quote's status changes from stale to draft
|
|
3126
|
+
*/
|
|
3127
|
+
interface QuoteDraftEvent extends EventBase {
|
|
3128
|
+
type: 'quote.draft';
|
|
3129
|
+
data: QuoteDraftEvent.Data;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
namespace QuoteDraftEvent {
|
|
3133
|
+
interface Data extends Stripe.Event.Data {
|
|
3134
|
+
object: Stripe.Quote;
|
|
3135
|
+
|
|
3136
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
|
|
2743
3140
|
/**
|
|
2744
3141
|
* Occurs whenever a quote is finalized.
|
|
2745
3142
|
*/
|
|
@@ -2756,6 +3153,54 @@ declare module 'stripe' {
|
|
|
2756
3153
|
}
|
|
2757
3154
|
}
|
|
2758
3155
|
|
|
3156
|
+
/**
|
|
3157
|
+
* Occurs whenever a quote reestimate fails
|
|
3158
|
+
*/
|
|
3159
|
+
interface QuoteReestimateFailedEvent extends EventBase {
|
|
3160
|
+
type: 'quote.reestimate_failed';
|
|
3161
|
+
data: QuoteReestimateFailedEvent.Data;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
namespace QuoteReestimateFailedEvent {
|
|
3165
|
+
interface Data extends Stripe.Event.Data {
|
|
3166
|
+
object: Stripe.Quote;
|
|
3167
|
+
|
|
3168
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
|
|
3174
|
+
*/
|
|
3175
|
+
interface QuoteReestimatedEvent extends EventBase {
|
|
3176
|
+
type: 'quote.reestimated';
|
|
3177
|
+
data: QuoteReestimatedEvent.Data;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
namespace QuoteReestimatedEvent {
|
|
3181
|
+
interface Data extends Stripe.Event.Data {
|
|
3182
|
+
object: Stripe.Quote;
|
|
3183
|
+
|
|
3184
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* Occurs whenever a quote's status changes to stale
|
|
3190
|
+
*/
|
|
3191
|
+
interface QuoteStaleEvent extends EventBase {
|
|
3192
|
+
type: 'quote.stale';
|
|
3193
|
+
data: QuoteStaleEvent.Data;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
namespace QuoteStaleEvent {
|
|
3197
|
+
interface Data extends Stripe.Event.Data {
|
|
3198
|
+
object: Stripe.Quote;
|
|
3199
|
+
|
|
3200
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
|
|
2759
3204
|
/**
|
|
2760
3205
|
* Occurs whenever an early fraud warning is created.
|
|
2761
3206
|
*/
|
|
@@ -3220,6 +3665,22 @@ declare module 'stripe' {
|
|
|
3220
3665
|
}
|
|
3221
3666
|
}
|
|
3222
3667
|
|
|
3668
|
+
/**
|
|
3669
|
+
* Occurs when a tax form is updated.
|
|
3670
|
+
*/
|
|
3671
|
+
interface TaxFormUpdatedEvent extends EventBase {
|
|
3672
|
+
type: 'tax.form.updated';
|
|
3673
|
+
data: TaxFormUpdatedEvent.Data;
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
namespace TaxFormUpdatedEvent {
|
|
3677
|
+
interface Data extends Stripe.Event.Data {
|
|
3678
|
+
object: Stripe.Tax.Form;
|
|
3679
|
+
|
|
3680
|
+
previous_attributes?: Partial<Stripe.Tax.Form>;
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3223
3684
|
/**
|
|
3224
3685
|
* Occurs whenever tax settings is updated.
|
|
3225
3686
|
*/
|
|
@@ -3300,6 +3761,22 @@ declare module 'stripe' {
|
|
|
3300
3761
|
}
|
|
3301
3762
|
}
|
|
3302
3763
|
|
|
3764
|
+
/**
|
|
3765
|
+
* Occurs whenever an action sent to a Terminal reader is updated.
|
|
3766
|
+
*/
|
|
3767
|
+
interface TerminalReaderActionUpdatedEvent extends EventBase {
|
|
3768
|
+
type: 'terminal.reader.action_updated';
|
|
3769
|
+
data: TerminalReaderActionUpdatedEvent.Data;
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
namespace TerminalReaderActionUpdatedEvent {
|
|
3773
|
+
interface Data extends Stripe.Event.Data {
|
|
3774
|
+
object: Stripe.Terminal.Reader;
|
|
3775
|
+
|
|
3776
|
+
previous_attributes?: Partial<Stripe.Terminal.Reader>;
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3303
3780
|
/**
|
|
3304
3781
|
* Occurs whenever a test clock starts advancing.
|
|
3305
3782
|
*/
|