feat(types,utils): add promotions create with application method (#5945)

What:

- Promotions can be created with its bare attributes
- Promotions one to one relationship with ApplicationMethod can be created with its attributes + validation

RESOLVES CORE-1592
RESOLVES CORE-1595
This commit is contained in:
Riqwan Thamir
2023-12-21 11:04:50 +00:00
committed by GitHub
parent c41f3002f3
commit 890e76a5c5
38 changed files with 1497 additions and 55 deletions
+20
View File
@@ -0,0 +1,20 @@
export enum PromotionType {
STANDARD = "standard",
BUYGET = "buyget",
}
export enum ApplicationMethodType {
FIXED = "fixed",
PERCENTAGE = "percentage",
}
export enum ApplicationMethodTargetType {
ORDER = "order",
SHIPPING = "shipping",
ITEM = "item",
}
export enum ApplicationMethodAllocation {
EACH = "each",
ACROSS = "across",
}