diff --git a/src/endpoints/rule-promotions.js b/src/endpoints/rule-promotions.js index ea23e7d..eefe165 100644 --- a/src/endpoints/rule-promotions.js +++ b/src/endpoints/rule-promotions.js @@ -57,6 +57,10 @@ class RulePromotionsEndpoint extends CRUDExtend { ) } + CancelJob(promotionId, jobId) { + return this.request.send(`${this.endpoint}/${promotionId}/jobs/${jobId}/cancel`, 'POST') + } + AddCodes(promotionId, codes) { return this.request.send(`${this.endpoint}/${promotionId}/codes`, 'POST', { type: 'promotion_codes', diff --git a/src/types/rule-promotions.ts b/src/types/rule-promotions.ts index 108edd8..b033ac8 100644 --- a/src/types/rule-promotions.ts +++ b/src/types/rule-promotions.ts @@ -166,6 +166,8 @@ export interface RulePromotionsEndpoint body: RulePromotionCodesJob ): Promise> + CancelJob(promotionId: string, jobId: string): Promise<{}> + DeleteCode(promotionId: string, codeId: string): Promise<{}> DeleteCodes(