stripe 16.6.0 → 16.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +787 -116
- 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/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 +17 -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/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 +17 -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 +15 -0
- package/types/AccountSessionsResource.d.ts +215 -0
- package/types/Accounts.d.ts +106 -1
- package/types/AccountsResource.d.ts +246 -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 +67 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +28 -1
- package/types/Checkout/SessionsResource.d.ts +15 -1
- package/types/ConfirmationTokens.d.ts +62 -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 +158 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +460 -0
- package/types/Events.d.ts +85 -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 +5455 -1797
- 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 +1083 -0
- package/types/OrdersResource.d.ts +2763 -0
- package/types/PaymentIntents.d.ts +492 -1
- package/types/PaymentIntentsResource.d.ts +6992 -3461
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +62 -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 +1529 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +596 -1
- package/types/QuotesResource.d.ts +3174 -265
- 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 +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -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/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/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 +54 -0
- package/types/index.d.ts +69 -0
- package/types/lib.d.ts +12 -0
package/types/EventTypes.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ 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
|
|
@@ -18,6 +20,15 @@ declare module 'stripe' {
|
|
|
18
20
|
| BillingPortalConfigurationUpdatedEvent
|
|
19
21
|
| BillingPortalSessionCreatedEvent
|
|
20
22
|
| CapabilityUpdatedEvent
|
|
23
|
+
| CapitalFinancingOfferAcceptedEvent
|
|
24
|
+
| CapitalFinancingOfferCanceledEvent
|
|
25
|
+
| CapitalFinancingOfferCreatedEvent
|
|
26
|
+
| CapitalFinancingOfferExpiredEvent
|
|
27
|
+
| CapitalFinancingOfferFullyRepaidEvent
|
|
28
|
+
| CapitalFinancingOfferPaidOutEvent
|
|
29
|
+
| CapitalFinancingOfferRejectedEvent
|
|
30
|
+
| CapitalFinancingOfferReplacementCreatedEvent
|
|
31
|
+
| CapitalFinancingTransactionCreatedEvent
|
|
21
32
|
| CashBalanceFundsAvailableEvent
|
|
22
33
|
| ChargeCapturedEvent
|
|
23
34
|
| ChargeDisputeClosedEvent
|
|
@@ -58,11 +69,15 @@ declare module 'stripe' {
|
|
|
58
69
|
| CustomerSourceDeletedEvent
|
|
59
70
|
| CustomerSourceExpiringEvent
|
|
60
71
|
| CustomerSourceUpdatedEvent
|
|
72
|
+
| CustomerSubscriptionCollectionPausedEvent
|
|
73
|
+
| CustomerSubscriptionCollectionResumedEvent
|
|
61
74
|
| CustomerSubscriptionCreatedEvent
|
|
75
|
+
| CustomerSubscriptionCustomEventEvent
|
|
62
76
|
| CustomerSubscriptionDeletedEvent
|
|
63
77
|
| CustomerSubscriptionPausedEvent
|
|
64
78
|
| CustomerSubscriptionPendingUpdateAppliedEvent
|
|
65
79
|
| CustomerSubscriptionPendingUpdateExpiredEvent
|
|
80
|
+
| CustomerSubscriptionPriceMigrationFailedEvent
|
|
66
81
|
| CustomerSubscriptionResumedEvent
|
|
67
82
|
| CustomerSubscriptionTrialWillEndEvent
|
|
68
83
|
| CustomerSubscriptionUpdatedEvent
|
|
@@ -78,8 +93,10 @@ declare module 'stripe' {
|
|
|
78
93
|
| FinancialConnectionsAccountDisconnectedEvent
|
|
79
94
|
| FinancialConnectionsAccountReactivatedEvent
|
|
80
95
|
| FinancialConnectionsAccountRefreshedBalanceEvent
|
|
96
|
+
| FinancialConnectionsAccountRefreshedInferredBalancesEvent
|
|
81
97
|
| FinancialConnectionsAccountRefreshedOwnershipEvent
|
|
82
98
|
| FinancialConnectionsAccountRefreshedTransactionsEvent
|
|
99
|
+
| FinancialConnectionsSessionUpdatedEvent
|
|
83
100
|
| IdentityVerificationSessionCanceledEvent
|
|
84
101
|
| IdentityVerificationSessionCreatedEvent
|
|
85
102
|
| IdentityVerificationSessionProcessingEvent
|
|
@@ -93,6 +110,7 @@ declare module 'stripe' {
|
|
|
93
110
|
| InvoiceMarkedUncollectibleEvent
|
|
94
111
|
| InvoiceOverdueEvent
|
|
95
112
|
| InvoicePaidEvent
|
|
113
|
+
| InvoicePaymentOverpaidEvent
|
|
96
114
|
| InvoicePaymentActionRequiredEvent
|
|
97
115
|
| InvoicePaymentFailedEvent
|
|
98
116
|
| InvoicePaymentSucceededEvent
|
|
@@ -159,10 +177,16 @@ declare module 'stripe' {
|
|
|
159
177
|
| ProductUpdatedEvent
|
|
160
178
|
| PromotionCodeCreatedEvent
|
|
161
179
|
| PromotionCodeUpdatedEvent
|
|
180
|
+
| QuoteAcceptFailedEvent
|
|
162
181
|
| QuoteAcceptedEvent
|
|
182
|
+
| QuoteAcceptingEvent
|
|
163
183
|
| QuoteCanceledEvent
|
|
164
184
|
| QuoteCreatedEvent
|
|
185
|
+
| QuoteDraftEvent
|
|
165
186
|
| QuoteFinalizedEvent
|
|
187
|
+
| QuoteReestimateFailedEvent
|
|
188
|
+
| QuoteReestimatedEvent
|
|
189
|
+
| QuoteStaleEvent
|
|
166
190
|
| RadarEarlyFraudWarningCreatedEvent
|
|
167
191
|
| RadarEarlyFraudWarningUpdatedEvent
|
|
168
192
|
| RefundCreatedEvent
|
|
@@ -190,13 +214,16 @@ declare module 'stripe' {
|
|
|
190
214
|
| SubscriptionScheduleCompletedEvent
|
|
191
215
|
| SubscriptionScheduleCreatedEvent
|
|
192
216
|
| SubscriptionScheduleExpiringEvent
|
|
217
|
+
| SubscriptionSchedulePriceMigrationFailedEvent
|
|
193
218
|
| SubscriptionScheduleReleasedEvent
|
|
194
219
|
| SubscriptionScheduleUpdatedEvent
|
|
220
|
+
| TaxFormUpdatedEvent
|
|
195
221
|
| TaxSettingsUpdatedEvent
|
|
196
222
|
| TaxRateCreatedEvent
|
|
197
223
|
| TaxRateUpdatedEvent
|
|
198
224
|
| TerminalReaderActionFailedEvent
|
|
199
225
|
| TerminalReaderActionSucceededEvent
|
|
226
|
+
| TerminalReaderActionUpdatedEvent
|
|
200
227
|
| TestHelpersTestClockAdvancingEvent
|
|
201
228
|
| TestHelpersTestClockCreatedEvent
|
|
202
229
|
| TestHelpersTestClockDeletedEvent
|
|
@@ -337,6 +364,38 @@ declare module 'stripe' {
|
|
|
337
364
|
}
|
|
338
365
|
}
|
|
339
366
|
|
|
367
|
+
/**
|
|
368
|
+
* Occurs whenever an AccountNotice is created.
|
|
369
|
+
*/
|
|
370
|
+
interface AccountNoticeCreatedEvent extends EventBase {
|
|
371
|
+
type: 'account_notice.created';
|
|
372
|
+
data: AccountNoticeCreatedEvent.Data;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
namespace AccountNoticeCreatedEvent {
|
|
376
|
+
interface Data extends Stripe.Event.Data {
|
|
377
|
+
object: Stripe.AccountNotice;
|
|
378
|
+
|
|
379
|
+
previous_attributes?: Partial<Stripe.AccountNotice>;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Occurs whenever an AccountNotice is updated.
|
|
385
|
+
*/
|
|
386
|
+
interface AccountNoticeUpdatedEvent extends EventBase {
|
|
387
|
+
type: 'account_notice.updated';
|
|
388
|
+
data: AccountNoticeUpdatedEvent.Data;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
namespace AccountNoticeUpdatedEvent {
|
|
392
|
+
interface Data extends Stripe.Event.Data {
|
|
393
|
+
object: Stripe.AccountNotice;
|
|
394
|
+
|
|
395
|
+
previous_attributes?: Partial<Stripe.AccountNotice>;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
340
399
|
/**
|
|
341
400
|
* Occurs whenever an application fee is created on a charge.
|
|
342
401
|
*/
|
|
@@ -481,6 +540,150 @@ declare module 'stripe' {
|
|
|
481
540
|
}
|
|
482
541
|
}
|
|
483
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Occurs whenever a connected account accepts a financing offer.
|
|
545
|
+
*/
|
|
546
|
+
interface CapitalFinancingOfferAcceptedEvent extends EventBase {
|
|
547
|
+
type: 'capital.financing_offer.accepted';
|
|
548
|
+
data: CapitalFinancingOfferAcceptedEvent.Data;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
namespace CapitalFinancingOfferAcceptedEvent {
|
|
552
|
+
interface Data extends Stripe.Event.Data {
|
|
553
|
+
object: Stripe.Capital.FinancingOffer;
|
|
554
|
+
|
|
555
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Occurs whenever a financing offer is canceled.
|
|
561
|
+
*/
|
|
562
|
+
interface CapitalFinancingOfferCanceledEvent extends EventBase {
|
|
563
|
+
type: 'capital.financing_offer.canceled';
|
|
564
|
+
data: CapitalFinancingOfferCanceledEvent.Data;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
namespace CapitalFinancingOfferCanceledEvent {
|
|
568
|
+
interface Data extends Stripe.Event.Data {
|
|
569
|
+
object: Stripe.Capital.FinancingOffer;
|
|
570
|
+
|
|
571
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Occurs whenever a new financing offer is created for a connected account.
|
|
577
|
+
*/
|
|
578
|
+
interface CapitalFinancingOfferCreatedEvent extends EventBase {
|
|
579
|
+
type: 'capital.financing_offer.created';
|
|
580
|
+
data: CapitalFinancingOfferCreatedEvent.Data;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
namespace CapitalFinancingOfferCreatedEvent {
|
|
584
|
+
interface Data extends Stripe.Event.Data {
|
|
585
|
+
object: Stripe.Capital.FinancingOffer;
|
|
586
|
+
|
|
587
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Occurs whenever a financing offer expires.
|
|
593
|
+
*/
|
|
594
|
+
interface CapitalFinancingOfferExpiredEvent extends EventBase {
|
|
595
|
+
type: 'capital.financing_offer.expired';
|
|
596
|
+
data: CapitalFinancingOfferExpiredEvent.Data;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
namespace CapitalFinancingOfferExpiredEvent {
|
|
600
|
+
interface Data extends Stripe.Event.Data {
|
|
601
|
+
object: Stripe.Capital.FinancingOffer;
|
|
602
|
+
|
|
603
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Occurs whenever a financing offer is fully repaid.
|
|
609
|
+
*/
|
|
610
|
+
interface CapitalFinancingOfferFullyRepaidEvent extends EventBase {
|
|
611
|
+
type: 'capital.financing_offer.fully_repaid';
|
|
612
|
+
data: CapitalFinancingOfferFullyRepaidEvent.Data;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
namespace CapitalFinancingOfferFullyRepaidEvent {
|
|
616
|
+
interface Data extends Stripe.Event.Data {
|
|
617
|
+
object: Stripe.Capital.FinancingOffer;
|
|
618
|
+
|
|
619
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Occurs whenever a financing offer is paid out.
|
|
625
|
+
*/
|
|
626
|
+
interface CapitalFinancingOfferPaidOutEvent extends EventBase {
|
|
627
|
+
type: 'capital.financing_offer.paid_out';
|
|
628
|
+
data: CapitalFinancingOfferPaidOutEvent.Data;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
namespace CapitalFinancingOfferPaidOutEvent {
|
|
632
|
+
interface Data extends Stripe.Event.Data {
|
|
633
|
+
object: Stripe.Capital.FinancingOffer;
|
|
634
|
+
|
|
635
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Occurs whenever a financing offer is rejected.
|
|
641
|
+
*/
|
|
642
|
+
interface CapitalFinancingOfferRejectedEvent extends EventBase {
|
|
643
|
+
type: 'capital.financing_offer.rejected';
|
|
644
|
+
data: CapitalFinancingOfferRejectedEvent.Data;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
namespace CapitalFinancingOfferRejectedEvent {
|
|
648
|
+
interface Data extends Stripe.Event.Data {
|
|
649
|
+
object: Stripe.Capital.FinancingOffer;
|
|
650
|
+
|
|
651
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Occurs whenever a replacement for a financing offer has been created.
|
|
657
|
+
*/
|
|
658
|
+
interface CapitalFinancingOfferReplacementCreatedEvent extends EventBase {
|
|
659
|
+
type: 'capital.financing_offer.replacement_created';
|
|
660
|
+
data: CapitalFinancingOfferReplacementCreatedEvent.Data;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
namespace CapitalFinancingOfferReplacementCreatedEvent {
|
|
664
|
+
interface Data extends Stripe.Event.Data {
|
|
665
|
+
object: Stripe.Capital.FinancingOffer;
|
|
666
|
+
|
|
667
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingOffer>;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Occurs whenever a financing transaction is created.
|
|
673
|
+
*/
|
|
674
|
+
interface CapitalFinancingTransactionCreatedEvent extends EventBase {
|
|
675
|
+
type: 'capital.financing_transaction.created';
|
|
676
|
+
data: CapitalFinancingTransactionCreatedEvent.Data;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
namespace CapitalFinancingTransactionCreatedEvent {
|
|
680
|
+
interface Data extends Stripe.Event.Data {
|
|
681
|
+
object: Stripe.Capital.FinancingTransaction;
|
|
682
|
+
|
|
683
|
+
previous_attributes?: Partial<Stripe.Capital.FinancingTransaction>;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
484
687
|
/**
|
|
485
688
|
* 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.
|
|
486
689
|
*/
|
|
@@ -1121,6 +1324,38 @@ declare module 'stripe' {
|
|
|
1121
1324
|
}
|
|
1122
1325
|
}
|
|
1123
1326
|
|
|
1327
|
+
/**
|
|
1328
|
+
* 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`.
|
|
1329
|
+
*/
|
|
1330
|
+
interface CustomerSubscriptionCollectionPausedEvent extends EventBase {
|
|
1331
|
+
type: 'customer.subscription.collection_paused';
|
|
1332
|
+
data: CustomerSubscriptionCollectionPausedEvent.Data;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
namespace CustomerSubscriptionCollectionPausedEvent {
|
|
1336
|
+
interface Data extends Stripe.Event.Data {
|
|
1337
|
+
object: Stripe.Subscription;
|
|
1338
|
+
|
|
1339
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* 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`.
|
|
1345
|
+
*/
|
|
1346
|
+
interface CustomerSubscriptionCollectionResumedEvent extends EventBase {
|
|
1347
|
+
type: 'customer.subscription.collection_resumed';
|
|
1348
|
+
data: CustomerSubscriptionCollectionResumedEvent.Data;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
namespace CustomerSubscriptionCollectionResumedEvent {
|
|
1352
|
+
interface Data extends Stripe.Event.Data {
|
|
1353
|
+
object: Stripe.Subscription;
|
|
1354
|
+
|
|
1355
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1124
1359
|
/**
|
|
1125
1360
|
* Occurs whenever a customer is signed up for a new plan.
|
|
1126
1361
|
*/
|
|
@@ -1137,6 +1372,22 @@ declare module 'stripe' {
|
|
|
1137
1372
|
}
|
|
1138
1373
|
}
|
|
1139
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* An ad-hoc custom event that is sent based on user configured [Automation](https://docs.stripe.com/billing/automations#send-custom-webhook-event-action).
|
|
1377
|
+
*/
|
|
1378
|
+
interface CustomerSubscriptionCustomEventEvent extends EventBase {
|
|
1379
|
+
type: 'customer.subscription.custom_event';
|
|
1380
|
+
data: CustomerSubscriptionCustomEventEvent.Data;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
namespace CustomerSubscriptionCustomEventEvent {
|
|
1384
|
+
interface Data extends Stripe.Event.Data {
|
|
1385
|
+
object: Stripe.Subscription;
|
|
1386
|
+
|
|
1387
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1140
1391
|
/**
|
|
1141
1392
|
* Occurs whenever a customer's subscription ends.
|
|
1142
1393
|
*/
|
|
@@ -1201,6 +1452,22 @@ declare module 'stripe' {
|
|
|
1201
1452
|
}
|
|
1202
1453
|
}
|
|
1203
1454
|
|
|
1455
|
+
/**
|
|
1456
|
+
* Occurs whenever a price migration failed to transition prices on a subscription.
|
|
1457
|
+
*/
|
|
1458
|
+
interface CustomerSubscriptionPriceMigrationFailedEvent extends EventBase {
|
|
1459
|
+
type: 'customer.subscription.price_migration_failed';
|
|
1460
|
+
data: CustomerSubscriptionPriceMigrationFailedEvent.Data;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
namespace CustomerSubscriptionPriceMigrationFailedEvent {
|
|
1464
|
+
interface Data extends Stripe.Event.Data {
|
|
1465
|
+
object: Stripe.Subscription;
|
|
1466
|
+
|
|
1467
|
+
previous_attributes?: Partial<Stripe.Subscription>;
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1204
1471
|
/**
|
|
1205
1472
|
* Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://docs.stripe.com/api/subscriptions/resume), not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed.
|
|
1206
1473
|
*/
|
|
@@ -1445,6 +1712,23 @@ declare module 'stripe' {
|
|
|
1445
1712
|
}
|
|
1446
1713
|
}
|
|
1447
1714
|
|
|
1715
|
+
/**
|
|
1716
|
+
* Occurs when an Account’s `inferred_balances_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1717
|
+
*/
|
|
1718
|
+
interface FinancialConnectionsAccountRefreshedInferredBalancesEvent
|
|
1719
|
+
extends EventBase {
|
|
1720
|
+
type: 'financial_connections.account.refreshed_inferred_balances';
|
|
1721
|
+
data: FinancialConnectionsAccountRefreshedInferredBalancesEvent.Data;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
namespace FinancialConnectionsAccountRefreshedInferredBalancesEvent {
|
|
1725
|
+
interface Data extends Stripe.Event.Data {
|
|
1726
|
+
object: Stripe.FinancialConnections.Account;
|
|
1727
|
+
|
|
1728
|
+
previous_attributes?: Partial<Stripe.FinancialConnections.Account>;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1448
1732
|
/**
|
|
1449
1733
|
* Occurs when an Account’s `ownership_refresh` status transitions from `pending` to either `succeeded` or `failed`.
|
|
1450
1734
|
*/
|
|
@@ -1479,6 +1763,22 @@ declare module 'stripe' {
|
|
|
1479
1763
|
}
|
|
1480
1764
|
}
|
|
1481
1765
|
|
|
1766
|
+
/**
|
|
1767
|
+
* Occurs when a Financial Connections Session `status` transitions from `pending` to `failed`, `cancelled`, or `completed`.
|
|
1768
|
+
*/
|
|
1769
|
+
interface FinancialConnectionsSessionUpdatedEvent extends EventBase {
|
|
1770
|
+
type: 'financial_connections.session.updated';
|
|
1771
|
+
data: FinancialConnectionsSessionUpdatedEvent.Data;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
namespace FinancialConnectionsSessionUpdatedEvent {
|
|
1775
|
+
interface Data extends Stripe.Event.Data {
|
|
1776
|
+
object: Stripe.FinancialConnections.Session;
|
|
1777
|
+
|
|
1778
|
+
previous_attributes?: Partial<Stripe.FinancialConnections.Session>;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1482
1782
|
/**
|
|
1483
1783
|
* Occurs whenever a VerificationSession is canceled
|
|
1484
1784
|
*/
|
|
@@ -1687,6 +1987,22 @@ declare module 'stripe' {
|
|
|
1687
1987
|
}
|
|
1688
1988
|
}
|
|
1689
1989
|
|
|
1990
|
+
/**
|
|
1991
|
+
* Occurs when an InvoicePayment transitions to paid with a non-zero amount_overpaid.
|
|
1992
|
+
*/
|
|
1993
|
+
interface InvoicePaymentOverpaidEvent extends EventBase {
|
|
1994
|
+
type: 'invoice.payment.overpaid';
|
|
1995
|
+
data: InvoicePaymentOverpaidEvent.Data;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
namespace InvoicePaymentOverpaidEvent {
|
|
1999
|
+
interface Data extends Stripe.Event.Data {
|
|
2000
|
+
object: Stripe.InvoicePayment;
|
|
2001
|
+
|
|
2002
|
+
previous_attributes?: Partial<Stripe.InvoicePayment>;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
1690
2006
|
/**
|
|
1691
2007
|
* Occurs whenever an invoice payment attempt requires further user action to complete.
|
|
1692
2008
|
*/
|
|
@@ -2743,6 +3059,22 @@ declare module 'stripe' {
|
|
|
2743
3059
|
}
|
|
2744
3060
|
}
|
|
2745
3061
|
|
|
3062
|
+
/**
|
|
3063
|
+
* Occurs whenever a quote acceptance fails
|
|
3064
|
+
*/
|
|
3065
|
+
interface QuoteAcceptFailedEvent extends EventBase {
|
|
3066
|
+
type: 'quote.accept_failed';
|
|
3067
|
+
data: QuoteAcceptFailedEvent.Data;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
namespace QuoteAcceptFailedEvent {
|
|
3071
|
+
interface Data extends Stripe.Event.Data {
|
|
3072
|
+
object: Stripe.Quote;
|
|
3073
|
+
|
|
3074
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
|
|
2746
3078
|
/**
|
|
2747
3079
|
* Occurs whenever a quote is accepted.
|
|
2748
3080
|
*/
|
|
@@ -2759,6 +3091,22 @@ declare module 'stripe' {
|
|
|
2759
3091
|
}
|
|
2760
3092
|
}
|
|
2761
3093
|
|
|
3094
|
+
/**
|
|
3095
|
+
* Occurs whenever a quote's status changes to accepting
|
|
3096
|
+
*/
|
|
3097
|
+
interface QuoteAcceptingEvent extends EventBase {
|
|
3098
|
+
type: 'quote.accepting';
|
|
3099
|
+
data: QuoteAcceptingEvent.Data;
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
namespace QuoteAcceptingEvent {
|
|
3103
|
+
interface Data extends Stripe.Event.Data {
|
|
3104
|
+
object: Stripe.Quote;
|
|
3105
|
+
|
|
3106
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
|
|
2762
3110
|
/**
|
|
2763
3111
|
* Occurs whenever a quote is canceled.
|
|
2764
3112
|
*/
|
|
@@ -2791,6 +3139,22 @@ declare module 'stripe' {
|
|
|
2791
3139
|
}
|
|
2792
3140
|
}
|
|
2793
3141
|
|
|
3142
|
+
/**
|
|
3143
|
+
* Occurs when a quote's status changes from stale to draft
|
|
3144
|
+
*/
|
|
3145
|
+
interface QuoteDraftEvent extends EventBase {
|
|
3146
|
+
type: 'quote.draft';
|
|
3147
|
+
data: QuoteDraftEvent.Data;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
namespace QuoteDraftEvent {
|
|
3151
|
+
interface Data extends Stripe.Event.Data {
|
|
3152
|
+
object: Stripe.Quote;
|
|
3153
|
+
|
|
3154
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
|
|
2794
3158
|
/**
|
|
2795
3159
|
* Occurs whenever a quote is finalized.
|
|
2796
3160
|
*/
|
|
@@ -2807,6 +3171,54 @@ declare module 'stripe' {
|
|
|
2807
3171
|
}
|
|
2808
3172
|
}
|
|
2809
3173
|
|
|
3174
|
+
/**
|
|
3175
|
+
* Occurs whenever a quote reestimate fails
|
|
3176
|
+
*/
|
|
3177
|
+
interface QuoteReestimateFailedEvent extends EventBase {
|
|
3178
|
+
type: 'quote.reestimate_failed';
|
|
3179
|
+
data: QuoteReestimateFailedEvent.Data;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
namespace QuoteReestimateFailedEvent {
|
|
3183
|
+
interface Data extends Stripe.Event.Data {
|
|
3184
|
+
object: Stripe.Quote;
|
|
3185
|
+
|
|
3186
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* Occurs whenever an async job to compute preview subscription schedules/upcoming invoices for the quote has completed.
|
|
3192
|
+
*/
|
|
3193
|
+
interface QuoteReestimatedEvent extends EventBase {
|
|
3194
|
+
type: 'quote.reestimated';
|
|
3195
|
+
data: QuoteReestimatedEvent.Data;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
namespace QuoteReestimatedEvent {
|
|
3199
|
+
interface Data extends Stripe.Event.Data {
|
|
3200
|
+
object: Stripe.Quote;
|
|
3201
|
+
|
|
3202
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* Occurs whenever a quote's status changes to stale
|
|
3208
|
+
*/
|
|
3209
|
+
interface QuoteStaleEvent extends EventBase {
|
|
3210
|
+
type: 'quote.stale';
|
|
3211
|
+
data: QuoteStaleEvent.Data;
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3214
|
+
namespace QuoteStaleEvent {
|
|
3215
|
+
interface Data extends Stripe.Event.Data {
|
|
3216
|
+
object: Stripe.Quote;
|
|
3217
|
+
|
|
3218
|
+
previous_attributes?: Partial<Stripe.Quote>;
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
|
|
2810
3222
|
/**
|
|
2811
3223
|
* Occurs whenever an early fraud warning is created.
|
|
2812
3224
|
*/
|
|
@@ -3239,6 +3651,22 @@ declare module 'stripe' {
|
|
|
3239
3651
|
}
|
|
3240
3652
|
}
|
|
3241
3653
|
|
|
3654
|
+
/**
|
|
3655
|
+
* Occurs whenever a price migration failed to transition prices on a subscription schedule.
|
|
3656
|
+
*/
|
|
3657
|
+
interface SubscriptionSchedulePriceMigrationFailedEvent extends EventBase {
|
|
3658
|
+
type: 'subscription_schedule.price_migration_failed';
|
|
3659
|
+
data: SubscriptionSchedulePriceMigrationFailedEvent.Data;
|
|
3660
|
+
}
|
|
3661
|
+
|
|
3662
|
+
namespace SubscriptionSchedulePriceMigrationFailedEvent {
|
|
3663
|
+
interface Data extends Stripe.Event.Data {
|
|
3664
|
+
object: Stripe.SubscriptionSchedule;
|
|
3665
|
+
|
|
3666
|
+
previous_attributes?: Partial<Stripe.SubscriptionSchedule>;
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3242
3670
|
/**
|
|
3243
3671
|
* Occurs whenever a new subscription schedule is released.
|
|
3244
3672
|
*/
|
|
@@ -3271,6 +3699,22 @@ declare module 'stripe' {
|
|
|
3271
3699
|
}
|
|
3272
3700
|
}
|
|
3273
3701
|
|
|
3702
|
+
/**
|
|
3703
|
+
* Occurs when a tax form is updated.
|
|
3704
|
+
*/
|
|
3705
|
+
interface TaxFormUpdatedEvent extends EventBase {
|
|
3706
|
+
type: 'tax.form.updated';
|
|
3707
|
+
data: TaxFormUpdatedEvent.Data;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
namespace TaxFormUpdatedEvent {
|
|
3711
|
+
interface Data extends Stripe.Event.Data {
|
|
3712
|
+
object: Stripe.Tax.Form;
|
|
3713
|
+
|
|
3714
|
+
previous_attributes?: Partial<Stripe.Tax.Form>;
|
|
3715
|
+
}
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3274
3718
|
/**
|
|
3275
3719
|
* Occurs whenever tax settings is updated.
|
|
3276
3720
|
*/
|
|
@@ -3351,6 +3795,22 @@ declare module 'stripe' {
|
|
|
3351
3795
|
}
|
|
3352
3796
|
}
|
|
3353
3797
|
|
|
3798
|
+
/**
|
|
3799
|
+
* Occurs whenever an action sent to a Terminal reader is updated.
|
|
3800
|
+
*/
|
|
3801
|
+
interface TerminalReaderActionUpdatedEvent extends EventBase {
|
|
3802
|
+
type: 'terminal.reader.action_updated';
|
|
3803
|
+
data: TerminalReaderActionUpdatedEvent.Data;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
namespace TerminalReaderActionUpdatedEvent {
|
|
3807
|
+
interface Data extends Stripe.Event.Data {
|
|
3808
|
+
object: Stripe.Terminal.Reader;
|
|
3809
|
+
|
|
3810
|
+
previous_attributes?: Partial<Stripe.Terminal.Reader>;
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3354
3814
|
/**
|
|
3355
3815
|
* Occurs whenever a test clock starts advancing.
|
|
3356
3816
|
*/
|