[@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:
Fabien O'Carroll
2019-12-10 14:01:23 -05:00
committed by Orta
parent 3d9ff934a5
commit d3d089db11
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -3868,7 +3868,7 @@ declare namespace Stripe {
*/
object: IObject;
previous_attributes?: {};
previous_attributes?: { [key: string]: any };
};
livemode: boolean;
+3
View File
@@ -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