1 | <?php |
||
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 |
||
63 | |||
64 | public function setId(int $id) |
||
68 | |||
69 | public function isActive(): bool |
||
73 | |||
74 | public function setActive(bool $active) |
||
78 | |||
79 | public function getMemberId(): ?int |
||
83 | |||
84 | public function getSegmentId(): int |
||
88 | |||
89 | public function setSegmentId(int $segment_id) |
||
93 | |||
94 | public function getDataProviderId(): int |
||
98 | |||
99 | public function setDataProviderId(int $data_provider_id) |
||
103 | |||
104 | public function getDataCategoryId(): int |
||
108 | |||
109 | public function setDataCategoryId(int $data_category_id) |
||
113 | |||
114 | public function getIsPublic(): bool |
||
118 | |||
119 | public function setIsPublic(bool $is_public) |
||
123 | } |
||
124 |