1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\Dfareporting;
|
---|
19 |
|
---|
20 | class Invoice extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'replacedInvoiceIds';
|
---|
23 | protected $internal_gapi_mappings = [
|
---|
24 | "campaignSummaries" => "campaign_summaries",
|
---|
25 | ];
|
---|
26 | protected $campaignSummariesType = CampaignSummary::class;
|
---|
27 | protected $campaignSummariesDataType = 'array';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $correctedInvoiceId;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $currencyCode;
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $dueDate;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $id;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $invoiceType;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $issueDate;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $kind;
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $paymentsAccountId;
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $paymentsProfileId;
|
---|
64 | /**
|
---|
65 | * @var string
|
---|
66 | */
|
---|
67 | public $pdfUrl;
|
---|
68 | /**
|
---|
69 | * @var string
|
---|
70 | */
|
---|
71 | public $purchaseOrderNumber;
|
---|
72 | /**
|
---|
73 | * @var string[]
|
---|
74 | */
|
---|
75 | public $replacedInvoiceIds;
|
---|
76 | /**
|
---|
77 | * @var string
|
---|
78 | */
|
---|
79 | public $serviceEndDate;
|
---|
80 | /**
|
---|
81 | * @var string
|
---|
82 | */
|
---|
83 | public $serviceStartDate;
|
---|
84 | /**
|
---|
85 | * @var string
|
---|
86 | */
|
---|
87 | public $subtotalAmountMicros;
|
---|
88 | /**
|
---|
89 | * @var string
|
---|
90 | */
|
---|
91 | public $totalAmountMicros;
|
---|
92 | /**
|
---|
93 | * @var string
|
---|
94 | */
|
---|
95 | public $totalTaxAmountMicros;
|
---|
96 |
|
---|
97 | /**
|
---|
98 | * @param CampaignSummary[]
|
---|
99 | */
|
---|
100 | public function setCampaignSummaries($campaignSummaries)
|
---|
101 | {
|
---|
102 | $this->campaignSummaries = $campaignSummaries;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @return CampaignSummary[]
|
---|
106 | */
|
---|
107 | public function getCampaignSummaries()
|
---|
108 | {
|
---|
109 | return $this->campaignSummaries;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @param string
|
---|
113 | */
|
---|
114 | public function setCorrectedInvoiceId($correctedInvoiceId)
|
---|
115 | {
|
---|
116 | $this->correctedInvoiceId = $correctedInvoiceId;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @return string
|
---|
120 | */
|
---|
121 | public function getCorrectedInvoiceId()
|
---|
122 | {
|
---|
123 | return $this->correctedInvoiceId;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @param string
|
---|
127 | */
|
---|
128 | public function setCurrencyCode($currencyCode)
|
---|
129 | {
|
---|
130 | $this->currencyCode = $currencyCode;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @return string
|
---|
134 | */
|
---|
135 | public function getCurrencyCode()
|
---|
136 | {
|
---|
137 | return $this->currencyCode;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @param string
|
---|
141 | */
|
---|
142 | public function setDueDate($dueDate)
|
---|
143 | {
|
---|
144 | $this->dueDate = $dueDate;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @return string
|
---|
148 | */
|
---|
149 | public function getDueDate()
|
---|
150 | {
|
---|
151 | return $this->dueDate;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @param string
|
---|
155 | */
|
---|
156 | public function setId($id)
|
---|
157 | {
|
---|
158 | $this->id = $id;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @return string
|
---|
162 | */
|
---|
163 | public function getId()
|
---|
164 | {
|
---|
165 | return $this->id;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @param string
|
---|
169 | */
|
---|
170 | public function setInvoiceType($invoiceType)
|
---|
171 | {
|
---|
172 | $this->invoiceType = $invoiceType;
|
---|
173 | }
|
---|
174 | /**
|
---|
175 | * @return string
|
---|
176 | */
|
---|
177 | public function getInvoiceType()
|
---|
178 | {
|
---|
179 | return $this->invoiceType;
|
---|
180 | }
|
---|
181 | /**
|
---|
182 | * @param string
|
---|
183 | */
|
---|
184 | public function setIssueDate($issueDate)
|
---|
185 | {
|
---|
186 | $this->issueDate = $issueDate;
|
---|
187 | }
|
---|
188 | /**
|
---|
189 | * @return string
|
---|
190 | */
|
---|
191 | public function getIssueDate()
|
---|
192 | {
|
---|
193 | return $this->issueDate;
|
---|
194 | }
|
---|
195 | /**
|
---|
196 | * @param string
|
---|
197 | */
|
---|
198 | public function setKind($kind)
|
---|
199 | {
|
---|
200 | $this->kind = $kind;
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * @return string
|
---|
204 | */
|
---|
205 | public function getKind()
|
---|
206 | {
|
---|
207 | return $this->kind;
|
---|
208 | }
|
---|
209 | /**
|
---|
210 | * @param string
|
---|
211 | */
|
---|
212 | public function setPaymentsAccountId($paymentsAccountId)
|
---|
213 | {
|
---|
214 | $this->paymentsAccountId = $paymentsAccountId;
|
---|
215 | }
|
---|
216 | /**
|
---|
217 | * @return string
|
---|
218 | */
|
---|
219 | public function getPaymentsAccountId()
|
---|
220 | {
|
---|
221 | return $this->paymentsAccountId;
|
---|
222 | }
|
---|
223 | /**
|
---|
224 | * @param string
|
---|
225 | */
|
---|
226 | public function setPaymentsProfileId($paymentsProfileId)
|
---|
227 | {
|
---|
228 | $this->paymentsProfileId = $paymentsProfileId;
|
---|
229 | }
|
---|
230 | /**
|
---|
231 | * @return string
|
---|
232 | */
|
---|
233 | public function getPaymentsProfileId()
|
---|
234 | {
|
---|
235 | return $this->paymentsProfileId;
|
---|
236 | }
|
---|
237 | /**
|
---|
238 | * @param string
|
---|
239 | */
|
---|
240 | public function setPdfUrl($pdfUrl)
|
---|
241 | {
|
---|
242 | $this->pdfUrl = $pdfUrl;
|
---|
243 | }
|
---|
244 | /**
|
---|
245 | * @return string
|
---|
246 | */
|
---|
247 | public function getPdfUrl()
|
---|
248 | {
|
---|
249 | return $this->pdfUrl;
|
---|
250 | }
|
---|
251 | /**
|
---|
252 | * @param string
|
---|
253 | */
|
---|
254 | public function setPurchaseOrderNumber($purchaseOrderNumber)
|
---|
255 | {
|
---|
256 | $this->purchaseOrderNumber = $purchaseOrderNumber;
|
---|
257 | }
|
---|
258 | /**
|
---|
259 | * @return string
|
---|
260 | */
|
---|
261 | public function getPurchaseOrderNumber()
|
---|
262 | {
|
---|
263 | return $this->purchaseOrderNumber;
|
---|
264 | }
|
---|
265 | /**
|
---|
266 | * @param string[]
|
---|
267 | */
|
---|
268 | public function setReplacedInvoiceIds($replacedInvoiceIds)
|
---|
269 | {
|
---|
270 | $this->replacedInvoiceIds = $replacedInvoiceIds;
|
---|
271 | }
|
---|
272 | /**
|
---|
273 | * @return string[]
|
---|
274 | */
|
---|
275 | public function getReplacedInvoiceIds()
|
---|
276 | {
|
---|
277 | return $this->replacedInvoiceIds;
|
---|
278 | }
|
---|
279 | /**
|
---|
280 | * @param string
|
---|
281 | */
|
---|
282 | public function setServiceEndDate($serviceEndDate)
|
---|
283 | {
|
---|
284 | $this->serviceEndDate = $serviceEndDate;
|
---|
285 | }
|
---|
286 | /**
|
---|
287 | * @return string
|
---|
288 | */
|
---|
289 | public function getServiceEndDate()
|
---|
290 | {
|
---|
291 | return $this->serviceEndDate;
|
---|
292 | }
|
---|
293 | /**
|
---|
294 | * @param string
|
---|
295 | */
|
---|
296 | public function setServiceStartDate($serviceStartDate)
|
---|
297 | {
|
---|
298 | $this->serviceStartDate = $serviceStartDate;
|
---|
299 | }
|
---|
300 | /**
|
---|
301 | * @return string
|
---|
302 | */
|
---|
303 | public function getServiceStartDate()
|
---|
304 | {
|
---|
305 | return $this->serviceStartDate;
|
---|
306 | }
|
---|
307 | /**
|
---|
308 | * @param string
|
---|
309 | */
|
---|
310 | public function setSubtotalAmountMicros($subtotalAmountMicros)
|
---|
311 | {
|
---|
312 | $this->subtotalAmountMicros = $subtotalAmountMicros;
|
---|
313 | }
|
---|
314 | /**
|
---|
315 | * @return string
|
---|
316 | */
|
---|
317 | public function getSubtotalAmountMicros()
|
---|
318 | {
|
---|
319 | return $this->subtotalAmountMicros;
|
---|
320 | }
|
---|
321 | /**
|
---|
322 | * @param string
|
---|
323 | */
|
---|
324 | public function setTotalAmountMicros($totalAmountMicros)
|
---|
325 | {
|
---|
326 | $this->totalAmountMicros = $totalAmountMicros;
|
---|
327 | }
|
---|
328 | /**
|
---|
329 | * @return string
|
---|
330 | */
|
---|
331 | public function getTotalAmountMicros()
|
---|
332 | {
|
---|
333 | return $this->totalAmountMicros;
|
---|
334 | }
|
---|
335 | /**
|
---|
336 | * @param string
|
---|
337 | */
|
---|
338 | public function setTotalTaxAmountMicros($totalTaxAmountMicros)
|
---|
339 | {
|
---|
340 | $this->totalTaxAmountMicros = $totalTaxAmountMicros;
|
---|
341 | }
|
---|
342 | /**
|
---|
343 | * @return string
|
---|
344 | */
|
---|
345 | public function getTotalTaxAmountMicros()
|
---|
346 | {
|
---|
347 | return $this->totalTaxAmountMicros;
|
---|
348 | }
|
---|
349 | }
|
---|
350 |
|
---|
351 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
352 | class_alias(Invoice::class, 'Google_Service_Dfareporting_Invoice');
|
---|