mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
[@types/stripe] Update IEvent previous_attributes type (#40942)
* [@types/stripe] Added breaking test for previous_attributes * [@types/stripe] Updated previous_attributes type to hash
This commit is contained in:
Vendored
+1
-1
@@ -3868,7 +3868,7 @@ declare namespace Stripe {
|
||||
*/
|
||||
object: IObject;
|
||||
|
||||
previous_attributes?: {};
|
||||
previous_attributes?: { [key: string]: any };
|
||||
};
|
||||
|
||||
livemode: boolean;
|
||||
|
||||
@@ -1029,6 +1029,9 @@ stripe.customers.listTaxIds('cus_FhdWgak8aeNfht', (err, taxIds) => {
|
||||
//#region Events tests
|
||||
// ##################################################################################
|
||||
|
||||
const fakeEvent: Stripe.events.IEvent = stripe.webhooks.constructEvent('', '', '');
|
||||
const previousStatus = fakeEvent.data.previous_attributes && fakeEvent.data.previous_attributes.status;
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region File Uploads tests
|
||||
|
||||
Reference in New Issue
Block a user