1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Audiens\AppnexusClient\entity; |
4
|
|
|
|
5
|
|
|
class SegmentBilling |
6
|
|
|
{ |
7
|
|
|
use HydratableTrait; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* @var int|null |
11
|
|
|
* The ID of the sharing record. Can be null in creation phase |
12
|
|
|
* Required on: PUT (in JSON) DELETE (in query string) |
13
|
|
|
*/ |
14
|
|
|
protected $id; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var bool |
18
|
|
|
* The status of the mapping record. If set to true, mapping record is active. |
19
|
|
|
* Required on: POST |
20
|
|
|
*/ |
21
|
|
|
protected $active = true; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int|null |
25
|
|
|
* Read-only. Your member ID. |
26
|
|
|
*/ |
27
|
|
|
protected $member_id; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
* The AppNexus segment ID that is being mapped. |
32
|
|
|
* POST/PUT |
33
|
|
|
*/ |
34
|
|
|
protected $segment_id; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var int |
38
|
|
|
* The data provider ID assigned to you by the Data Marketplace. Note: The POST/CALL call will fail if you |
39
|
|
|
* submit an ID that is not owned by your account |
40
|
|
|
* Required on: POST/PUT |
41
|
|
|
*/ |
42
|
|
|
protected $data_provider_id; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var int |
46
|
|
|
* The pricing category ID created on AppNexus. Note: The POST/PUT calls will fail if you submit an ID that |
47
|
|
|
* is not owned by your account |
48
|
|
|
* Required on : POST/PUT |
49
|
|
|
*/ |
50
|
|
|
protected $data_category_id; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var bool |
54
|
|
|
* The setting to mark the segment as public or private. If set to true, then the segment will be shared to |
55
|
|
|
* all Data Marketplace buyers immediately. |
56
|
|
|
*/ |
57
|
|
|
protected $is_public = false; |
58
|
|
|
|
59
|
|
|
public function getId(): ?int |
60
|
|
|
{ |
61
|
|
|
return $this->id; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function setId(int $id) |
65
|
|
|
{ |
66
|
|
|
$this->id = $id; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function isActive(): bool |
70
|
|
|
{ |
71
|
|
|
return $this->active; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function setActive(bool $active) |
75
|
|
|
{ |
76
|
|
|
$this->active = $active; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getMemberId(): ?int |
80
|
|
|
{ |
81
|
|
|
return $this->member_id; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function getSegmentId(): int |
85
|
|
|
{ |
86
|
|
|
return $this->segment_id; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function setSegmentId(int $segment_id) |
90
|
|
|
{ |
91
|
|
|
$this->segment_id = $segment_id; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function getDataProviderId(): int |
95
|
|
|
{ |
96
|
|
|
return $this->data_provider_id; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function setDataProviderId(int $data_provider_id) |
100
|
|
|
{ |
101
|
|
|
$this->data_provider_id = $data_provider_id; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function getDataCategoryId(): int |
105
|
|
|
{ |
106
|
|
|
return $this->data_category_id; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function setDataCategoryId(int $data_category_id) |
110
|
|
|
{ |
111
|
|
|
$this->data_category_id = $data_category_id; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
public function getIsPublic(): bool |
115
|
|
|
{ |
116
|
|
|
return $this->is_public; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
public function setIsPublic(bool $is_public) |
120
|
|
|
{ |
121
|
|
|
$this->is_public = $is_public; |
122
|
|
|
} |
123
|
|
|
} |
124
|
|
|
|