|
4 | 4 |
|
5 | 5 | class PriceRuleFields extends AbstractObjectEnum |
6 | 6 | { |
| 7 | + const ALLOCATION_METHOD = 'allocation_method'; |
7 | 8 | const CREATED_AT = 'created_at'; |
| 9 | + const CUSTOMER_SELECTION = 'customer_selection'; |
| 10 | + const ENDS_AT = 'ends_at'; |
| 11 | + const ENTITLED_COLLECTION_IDS = 'entitled_collection_ids'; |
| 12 | + const ENTITLED_COUNTRY_IDS = 'entitled_country_ids'; |
| 13 | + const ENTITLED_PRODUCT_IDS = 'entitled_product_ids'; |
| 14 | + const ENTITLED_VARIANT_IDS = 'entitled_variant_ids'; |
8 | 15 | const ID = 'id'; |
9 | | - const TITLE = 'title'; |
10 | | - const TARGET_TYPE = 'target_type'; |
11 | | - const TARGET_SELECTIN = 'target_selection'; |
12 | | - const ALLOCATION_METHOD = 'allocation_method'; |
13 | | - const VALUE_TYPE = 'value_type'; |
14 | | - const VALUE = 'value'; |
15 | 16 | const ONCE_PER_CUSTOMER = 'once_per_customer'; |
16 | | - const USAGE_LIMIT = 'usage_limit'; |
17 | | - const CUSTOMER_SELECTION = 'customer_selection'; |
| 17 | + const PREREQUISITE_CUSTOMER_IDS = 'prerequisite_customer_ids'; |
| 18 | + const PREREQUISITE_QUANTITY_RANGE = 'prerequisite_quantity_range'; |
18 | 19 | const PREREQUISITE_SAVED_SEARCH_IDS = 'prerequisite_saved_search_ids'; |
19 | | - const PREREQUISITE_SUBTOTAL_RANGE = 'prerequisite_subtotal_range'; |
20 | 20 | const PREREQUISITE_SHIPPING_PRICE_RANGE = 'prerequisite_shipping_price_range'; |
21 | | - const ENTITLED_PRODUCT_IDS = 'entitled_product_ids'; |
22 | | - const ENTITLED_COLLECTION_IDS = 'entitled_collection_ids'; |
23 | | - const ENTITLED_COUNTRY_IDS = 'entitled_country_ids'; |
| 21 | + const PREREQUISITE_SUBTOTAL_RANGE = 'prerequisite_subtotal_range'; |
24 | 22 | const STARTS_AT = 'starts_at'; |
25 | | - const ENDS_AT = 'ends_at'; |
| 23 | + const TARGET_SELECTION = 'target_selection'; |
| 24 | + const TARGET_TYPE = 'target_type'; |
| 25 | + const TITLE = 'title'; |
| 26 | + const USAGE_LIMIT = 'usage_limit'; |
| 27 | + const PREREQUISITE_PRODUCT_IDS = 'prerequisite_product_ids'; |
| 28 | + const PREREQUISITE_VARIANT_IDS = 'prerequisite_variant_ids'; |
| 29 | + const PREREQUISITE_COLLECTION_IDS = 'prerequisite_collection_ids'; |
| 30 | + const VALUE_TYPE = 'value_type'; |
| 31 | + const VALUE = 'value'; |
| 32 | + const PREREQUISITE_TO_ENTITLEMENT_QUANTITY_RATIO = 'prerequisite_to_entitlement_quantity_ratio'; |
26 | 33 |
|
27 | 34 | public function getFieldTypes() |
28 | 35 | { |
29 | 36 | return array( |
| 37 | + 'allocation_method' => 'string', |
30 | 38 | 'created_at' => 'DateTime', |
| 39 | + 'customer_selection' => 'string', |
| 40 | + 'ends_at' => 'DateTime', |
| 41 | + 'entitled_collection_ids' => 'array', |
| 42 | + 'entitled_country_ids' => 'array', |
| 43 | + 'entitled_product_ids' => 'array', |
| 44 | + 'entitled_variant_ids' => 'array', |
31 | 45 | 'id' => 'integer', |
32 | | - 'title' => 'string', |
33 | | - 'target_type' => 'string', |
34 | | - 'target_selection' => 'string', |
35 | | - 'allocation_method' => 'string', |
36 | | - 'value_type' => 'string', |
37 | | - 'value' => "string", |
38 | 46 | 'once_per_customer' => 'boolean', |
39 | | - 'usage_limit' => 'integer', |
40 | | - 'customer_selection' => 'string', |
| 47 | + 'prerequisite_customer_ids' => 'array', |
| 48 | + 'prerequisite_quantity_range' => 'array', |
41 | 49 | 'prerequisite_saved_search_ids' => 'array', |
| 50 | + 'prerequisite_shipping_price_range' => 'object', |
42 | 51 | 'prerequisite_subtotal_range' => 'object', |
43 | | - 'entitled_product_ids' => 'array', |
44 | | - 'entitled_variant_ids' => 'array', |
45 | | - 'entitled_collection_ids' => 'array', |
46 | | - 'entitled_country_ids' => 'array', |
47 | 52 | 'starts_at' => 'DateTime', |
48 | | - 'ends_at' => 'DateTime' |
| 53 | + 'target_selection' => 'string', |
| 54 | + 'target_type' => 'string', |
| 55 | + 'title' => 'string', |
| 56 | + 'usage_limit' => 'integer', |
| 57 | + 'prerequisite_product_ids' => 'array', |
| 58 | + 'prerequisite_variant_ids' => 'array', |
| 59 | + 'prerequisite_collection_ids' => 'array', |
| 60 | + 'value' => "string", |
| 61 | + 'value_type' => 'string', |
| 62 | + 'prerequisite_to_entitlement_quantity_ratio' => 'object' |
49 | 63 | ); |
50 | 64 | } |
51 | 65 | } |
0 commit comments