1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Audiens\DoubleclickClient\entity; |
5
|
|
|
|
6
|
|
|
use GiacomoFurlan\ObjectTransmapperValidator\Annotation\Validation\Validate; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class UserListPricing |
10
|
|
|
*/ |
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 IS0-4217 |
27
|
|
|
* @Validate(type="string", regex="#^[a-zA-Z]{3}$#", mandatory=true) |
28
|
|
|
*/ |
29
|
|
|
protected $currencycodestring; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var string |
33
|
|
|
* @see COST_TYPE_* |
34
|
|
|
* @Validate(type="string", mandatory=true) |
35
|
|
|
*/ |
36
|
|
|
protected $userlistcost; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
* @Validate(type="string", mandatory=true) |
41
|
|
|
*/ |
42
|
|
|
protected $costtype; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
* @see SALE_TYPE_* |
47
|
|
|
* @Validate(type="string", mandatory=true) |
48
|
|
|
*/ |
49
|
|
|
protected $saletype; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var string |
53
|
|
|
* @Validate(type="string", mandatory=true) |
54
|
|
|
*/ |
55
|
|
|
protected $ispricingactive; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
* @see APPROVAL_STATE_* |
60
|
|
|
* @Validate(type="string", mandatory=true) |
61
|
|
|
*/ |
62
|
|
|
protected $approvalstate; |
63
|
|
|
|
64
|
|
|
public function getIsPricingactive() |
65
|
|
|
{ |
66
|
|
|
return $this->ispricingactive; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function getCurrencyCodeString() |
70
|
|
|
{ |
71
|
|
|
return $this->currencycodestring; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function getUserListCost() |
75
|
|
|
{ |
76
|
|
|
return $this->userlistcost; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getCostType() |
80
|
|
|
{ |
81
|
|
|
return $this->costtype; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function getSaleType() |
85
|
|
|
{ |
86
|
|
|
return $this->saletype; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function isPricingActive() |
90
|
|
|
{ |
91
|
|
|
return $this->ispricingactive; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function getApprovalstate() |
95
|
|
|
{ |
96
|
|
|
return $this->approvalstate; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function setCurrencyCodeString($currencycodestring) |
100
|
|
|
{ |
101
|
|
|
$this->currencycodestring = $currencycodestring; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function setUserListCost($userlistcost) |
105
|
|
|
{ |
106
|
|
|
$this->userlistcost = $userlistcost; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function setCostType($costtype) |
110
|
|
|
{ |
111
|
|
|
$this->costtype = $costtype; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
public function setSaleType($saletype) |
115
|
|
|
{ |
116
|
|
|
$this->saletype = $saletype; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
public function setIsPricingActive($ispricingactive) |
120
|
|
|
{ |
121
|
|
|
$this->ispricingactive = $ispricingactive; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
public function setApprovalstate($approvalstate) |
125
|
|
|
{ |
126
|
|
|
$this->approvalstate = $approvalstate; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
} |
130
|
|
|
|