1 | <?php |
||
11 | class UserListPricing |
||
12 | { |
||
13 | use TransmapHydratable; |
||
14 | |||
15 | const COST_TYPE_CPC = 'CPC'; |
||
16 | const COST_TYPE_CPM = 'CPM'; |
||
17 | |||
18 | const SALE_TYPE_DIRECT = 'DIRECT'; |
||
19 | const SALE_TYPE_SALE_FOR_RESALE = 'SALE_FOR_RESALE'; |
||
20 | |||
21 | const APPROVAL_STATE_UNAPPROVED = 'UNAPPROVED'; |
||
22 | const APPROVAL_STATE_APPROVED = 'APPROVED'; |
||
23 | const APPROVAL_STATE_REJECTED = 'REJECTED'; |
||
24 | |||
25 | /** |
||
26 | * @var string Readonly |
||
27 | * @Validate(type="string", mandatory=true) |
||
28 | */ |
||
29 | protected $startDate; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * @Validate(type="string", mandatory=true) |
||
34 | */ |
||
35 | protected $endDate; |
||
36 | |||
37 | /** |
||
38 | * @var string IS0-4217 |
||
39 | * @Validate(type="string", regex="#^[a-zA-Z]{3}$#", mandatory=true) |
||
40 | */ |
||
41 | protected $currencyCodeString; |
||
42 | |||
43 | /** |
||
44 | * @var int |
||
45 | * @see COST_TYPE_* |
||
46 | * @Validate(type="int", mandatory=true) |
||
47 | */ |
||
48 | protected $userListCost; |
||
49 | |||
50 | /** |
||
51 | * @var string Readonly |
||
52 | * @Validate(type="string", mandatory=true) |
||
53 | */ |
||
54 | protected $creationTime; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | * @Validate(type="string", mandatory=true) |
||
59 | */ |
||
60 | protected $costType; |
||
61 | |||
62 | /** |
||
63 | * @var string |
||
64 | * @see SALE_TYPE_* |
||
65 | * @Validate(type="string", mandatory=true) |
||
66 | */ |
||
67 | protected $saleType; |
||
68 | |||
69 | /** |
||
70 | * @var bool |
||
71 | * @Validate(type="bool", mandatory=true) |
||
72 | */ |
||
73 | protected $isPricingActive; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | * @see APPROVAL_STATE_* |
||
78 | * @Validate(type="string", mandatory=true) |
||
79 | */ |
||
80 | protected $approvalState; |
||
81 | |||
82 | /** |
||
83 | * @var string |
||
84 | * @Validate(type="string", mandatory=false) |
||
85 | */ |
||
86 | protected $rejectionReason; |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getStartDate() |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getEndDate() |
||
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getCurrencyCodeString() |
||
111 | |||
112 | /** |
||
113 | * @return int |
||
114 | */ |
||
115 | public function getUserListCost() |
||
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getCreationTime() |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getCostType() |
||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getSaleType() |
||
143 | |||
144 | /** |
||
145 | * @return bool |
||
146 | */ |
||
147 | public function isPricingActive() |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getApprovalState() |
||
159 | |||
160 | /** |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getRejectionReason() |
||
167 | |||
168 | /** |
||
169 | * @param string $startDate |
||
170 | */ |
||
171 | public function setStartDate(string $startDate) |
||
175 | |||
176 | /** |
||
177 | * @param string $endDate |
||
178 | */ |
||
179 | public function setEndDate($endDate) |
||
183 | |||
184 | /** |
||
185 | * @param string $currencyCodeString |
||
186 | */ |
||
187 | public function setCurrencyCodeString($currencyCodeString) |
||
191 | |||
192 | /** |
||
193 | * @param int $userListCost |
||
194 | */ |
||
195 | public function setUserListCost($userListCost) |
||
199 | |||
200 | /** |
||
201 | * @param string $creationTime |
||
202 | */ |
||
203 | public function setCreationTime($creationTime) |
||
207 | |||
208 | /** |
||
209 | * @param string $costType |
||
210 | */ |
||
211 | public function setCostType($costType) |
||
215 | |||
216 | /** |
||
217 | * @param string $saleType |
||
218 | */ |
||
219 | public function setSaleType($saleType) |
||
223 | |||
224 | /** |
||
225 | * @param bool $isPricingActive |
||
226 | */ |
||
227 | public function setIsPricingActive($isPricingActive) |
||
231 | |||
232 | /** |
||
233 | * @param string $approvalState |
||
234 | */ |
||
235 | public function setApprovalState($approvalState) |
||
239 | |||
240 | /** |
||
241 | * @param string $rejectionReason |
||
242 | */ |
||
243 | public function setRejectionReason($rejectionReason) |
||
247 | } |
||
248 |