@@ -3233,6 +3233,11 @@ declare namespace Shopify {
3233
3233
| 'customers/update'
3234
3234
| 'customers_email_marketing_consent/update'
3235
3235
| 'customers_marketing_consent/update'
3236
+ | 'discounts/create'
3237
+ | 'discounts/delete'
3238
+ | 'discounts/redeemcode_added'
3239
+ | 'discounts/redeemcode_removed'
3240
+ | 'discounts/update'
3236
3241
| 'disputes/create'
3237
3242
| 'disputes/update'
3238
3243
| 'domains/create'
@@ -3399,6 +3404,16 @@ declare namespace Shopify {
3399
3404
? ICustomerSavedSearch
3400
3405
: T extends 'customer_groups/delete'
3401
3406
? IDeletedItem
3407
+ : T extends 'discounts/create'
3408
+ ? IDiscountUpsertWebhook
3409
+ : T extends 'discounts/delete'
3410
+ ? IDiscountDeleteWebhook
3411
+ : T extends 'discounts/redeemcode_added'
3412
+ ? IDiscountRedeemCodeWebhook
3413
+ : T extends 'discounts/redeemcode_removed'
3414
+ ? IDiscountRedeemCodeWebhook
3415
+ : T extends 'discounts/update'
3416
+ ? IDiscountUpsertWebhook
3402
3417
: T extends 'draft_orders/create'
3403
3418
? IDraftOrder
3404
3419
: T extends 'draft_orders/update'
@@ -3528,4 +3543,28 @@ declare namespace Shopify {
3528
3543
min_delivery_date ?: string ;
3529
3544
max_delivery_date ?: string ;
3530
3545
}
3546
+
3547
+ type DiscountStatus = 'ACTIVE' | 'EXPIRED' | 'SCHEDULED' ;
3548
+
3549
+ interface IDiscountUpsertWebhook {
3550
+ admin_graphql_api_id : string ;
3551
+ title : string ;
3552
+ status : DiscountStatus ;
3553
+ created_at : string ;
3554
+ updated_at : string ;
3555
+ }
3556
+
3557
+ interface IDiscountDeleteWebhook {
3558
+ admin_graphql_api_id : string ;
3559
+ deleted_at : string ;
3560
+ }
3561
+
3562
+ interface IDiscountRedeemCodeWebhook {
3563
+ admin_graphql_api_id : string ;
3564
+ redeem_code : {
3565
+ id : string ;
3566
+ code : string ;
3567
+ } ;
3568
+ updated_at : string ;
3569
+ }
3531
3570
}
0 commit comments