|
1
|
{ |
|
2
|
"CampaignBudget": { |
|
3
|
"filePath": "packages/modules/promotion/src/models/campaign-budget.ts", |
|
4
|
"properties": { |
|
5
|
"id": "The ID of the campaign budget.", |
|
6
|
"type": "The type of the campaign budget", |
|
7
|
"currency_code": "The currency code of the campaign budget.\n\n@example usd", |
|
8
|
"limit": "The limit of the campaign budget", |
|
9
|
"used": "How much of the budget has been used. if the `limit` is `spend`, this property holds the total amount discounted so far. if the `limit` is `usage`, it holds the number of times the campaign's promotions have been used so far.", |
|
10
|
"campaign": "The associated campaign.\n\n@expandable", |
|
11
|
"attribute": "The attribute of the campaign budget\n\n@since 2.11.0", |
|
12
|
"usages": "The associated usages.\n\n@expandable\n\n@since 2.11.0" |
|
13
|
}, |
|
14
|
"deprecated": { |
|
15
|
"is_deprecated": false |
|
16
|
} |
|
17
|
}, |
|
18
|
"Campaign": { |
|
19
|
"filePath": "packages/modules/promotion/src/models/campaign.ts", |
|
20
|
"properties": { |
|
21
|
"id": "The ID of the campaign.", |
|
22
|
"name": "The name of the campaign", |
|
23
|
"description": "The description of the campaign", |
|
24
|
"campaign_identifier": "The campaign's identifier, such as a Google Tag ID.", |
|
25
|
"starts_at": "The date that the campaign starts.", |
|
26
|
"ends_at": "The date that the campaign ends.", |
|
27
|
"budget": "The associated budget.\n\n@expandable", |
|
28
|
"promotions": "The associated promotions.\n\n@expandable" |
|
29
|
}, |
|
30
|
"deprecated": { |
|
31
|
"is_deprecated": false |
|
32
|
} |
|
33
|
}, |
|
34
|
"PromotionRuleValue": { |
|
35
|
"filePath": "packages/modules/promotion/src/models/promotion-rule-value.ts", |
|
36
|
"properties": { |
|
37
|
"id": "The ID of the promotion rule value.", |
|
38
|
"value": "The value of the promotion rule.", |
|
39
|
"promotion_rule": "The associated promotion rule.\n\n@expandable" |
|
40
|
}, |
|
41
|
"deprecated": { |
|
42
|
"is_deprecated": false |
|
43
|
} |
|
44
|
}, |
|
45
|
"PromotionRule": { |
|
46
|
"filePath": "packages/modules/promotion/src/models/promotion-rule.ts", |
|
47
|
"properties": { |
|
48
|
"id": "The ID of the promotion rule.", |
|
49
|
"description": "The description of the promotion rule", |
|
50
|
"attribute": "The attribute of the promotion rule.\n\n@example customer_group_id", |
|
51
|
"operator": "The operator of the promotion rule.\n\n@example in", |
|
52
|
"values": "The associated values.\n\n@expandable", |
|
53
|
"promotions": "The associated promotions.\n\n@expandable", |
|
54
|
"method_target_rules": "The associated method target rules.\n\n@expandable", |
|
55
|
"method_buy_rules": "The associated method buy rules.\n\n@expandable" |
|
56
|
}, |
|
57
|
"deprecated": { |
|
58
|
"is_deprecated": false |
|
59
|
} |
|
60
|
}, |
|
61
|
"Promotion": { |
|
62
|
"filePath": "packages/modules/promotion/src/models/promotion.ts", |
|
63
|
"properties": { |
|
64
|
"id": "The ID of the promotion.", |
|
65
|
"code": "The code of the promotion", |
|
66
|
"is_automatic": "Whether the promotion is applied automatic. If disabled, the customer must enter the code during checkout.", |
|
67
|
"type": "The type of the promotion", |
|
68
|
"campaign": "The associated campaign.\n\n@expandable", |
|
69
|
"application_method": "The associated application method.\n\n@expandable", |
|
70
|
"rules": "The associated rules.\n\n@expandable", |
|
71
|
"status": "The status of the promotion", |
|
72
|
"is_tax_inclusive": "Whether the promotion is tax inclusive.", |
|
73
|
"limit": "The limit of the promotion\n\n@since v2.12.0", |
|
74
|
"used": "How much of the limit has been used.\n\n@since v2.12.0", |
|
75
|
"metadata": "Holds custom data in key-value pairs.\n\n@since v2.12.0" |
|
76
|
}, |
|
77
|
"deprecated": { |
|
78
|
"is_deprecated": false |
|
79
|
} |
|
80
|
}, |
|
81
|
"ApplicationMethod": { |
|
82
|
"filePath": "packages/modules/promotion/src/models/application-method.ts", |
|
83
|
"properties": { |
|
84
|
"id": "The ID of the application method.", |
|
85
|
"value": "The value of the application method", |
|
86
|
"currency_code": "The currency code of the application method.\n\n@example usd", |
|
87
|
"max_quantity": "The max quantity allowed in the cart for the associated promotion to be applied.", |
|
88
|
"apply_to_quantity": "The quantity that results from matching the `buyget` promotion's condition. For example, if the promotion is a \"Buy 2 shirts get 1 free\", the value of this attribute is `1`.", |
|
89
|
"buy_rules_min_quantity": "The minimum quantity required for a `buyget` promotion to be applied. For example, if the promotion is a \"Buy 2 shirts get 1 free\", the value of this attribute is `2`.", |
|
90
|
"type": "The application method's type. If it's `fixed`, the promotion discounts a fixed amount. If it's `percentage`, the promotion discounts a percentage.", |
|
91
|
"target_type": "Which item does the promotion apply to. `items` mean the promotion applies to the cart's items; `shipping_methods` means the promotion applies to the cart's shipping methods; `order` means the promotion applies on the entire order.", |
|
92
|
"allocation": "How is the promotion amount discounted. `each` means the discounted amount is applied on each applicable item; `across` means the discounted amount is split accross the applicable items.", |
|
93
|
"promotion": "The associated promotion.\n\n@expandable", |
|
94
|
"target_rules": "The associated target rules.\n\n@expandable", |
|
95
|
"buy_rules": "The associated buy rules.\n\n@expandable" |
|
96
|
}, |
|
97
|
"deprecated": { |
|
98
|
"is_deprecated": false |
|
99
|
} |
|
100
|
}, |
|
101
|
"CampaignBudgetUsage": { |
|
102
|
"filePath": "packages/modules/promotion/src/models/campaign-budget-usage.ts", |
|
103
|
"properties": { |
|
104
|
"id": "The ID of the campaign budget usage.", |
|
105
|
"attribute_value": "The attribute value of the campaign budget usage", |
|
106
|
"used": "The used of the campaign budget usage", |
|
107
|
"budget": "The associated budget.\n\n@expandable" |
|
108
|
}, |
|
109
|
"since": "2.11.0", |
|
110
|
"deprecated": { |
|
111
|
"is_deprecated": false |
|
112
|
} |
|
113
|
} |
|
114
|
} |