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
18namespace Google\Service\ShoppingContent;
19
20class Order extends \Google\Collection
21{
22  protected $collection_key = 'shipments';
23  /**
24   * @var bool
25   */
26  public $acknowledged;
27  protected $annotationsType = OrderOrderAnnotation::class;
28  protected $annotationsDataType = 'array';
29  protected $billingAddressType = OrderAddress::class;
30  protected $billingAddressDataType = '';
31  protected $customerType = OrderCustomer::class;
32  protected $customerDataType = '';
33  protected $deliveryDetailsType = OrderDeliveryDetails::class;
34  protected $deliveryDetailsDataType = '';
35  /**
36   * @var string
37   */
38  public $id;
39  /**
40   * @var string
41   */
42  public $kind;
43  protected $lineItemsType = OrderLineItem::class;
44  protected $lineItemsDataType = 'array';
45  /**
46   * @var string
47   */
48  public $merchantId;
49  /**
50   * @var string
51   */
52  public $merchantOrderId;
53  protected $netPriceAmountType = Price::class;
54  protected $netPriceAmountDataType = '';
55  protected $netTaxAmountType = Price::class;
56  protected $netTaxAmountDataType = '';
57  /**
58   * @var string
59   */
60  public $paymentStatus;
61  protected $pickupDetailsType = OrderPickupDetails::class;
62  protected $pickupDetailsDataType = '';
63  /**
64   * @var string
65   */
66  public $placedDate;
67  protected $promotionsType = OrderPromotion::class;
68  protected $promotionsDataType = 'array';
69  protected $refundsType = OrderRefund::class;
70  protected $refundsDataType = 'array';
71  protected $shipmentsType = OrderShipment::class;
72  protected $shipmentsDataType = 'array';
73  protected $shippingCostType = Price::class;
74  protected $shippingCostDataType = '';
75  protected $shippingCostTaxType = Price::class;
76  protected $shippingCostTaxDataType = '';
77  /**
78   * @var string
79   */
80  public $status;
81  /**
82   * @var string
83   */
84  public $taxCollector;
85
86  /**
87   * @param bool
88   */
89  public function setAcknowledged($acknowledged)
90  {
91    $this->acknowledged = $acknowledged;
92  }
93  /**
94   * @return bool
95   */
96  public function getAcknowledged()
97  {
98    return $this->acknowledged;
99  }
100  /**
101   * @param OrderOrderAnnotation[]
102   */
103  public function setAnnotations($annotations)
104  {
105    $this->annotations = $annotations;
106  }
107  /**
108   * @return OrderOrderAnnotation[]
109   */
110  public function getAnnotations()
111  {
112    return $this->annotations;
113  }
114  /**
115   * @param OrderAddress
116   */
117  public function setBillingAddress(OrderAddress $billingAddress)
118  {
119    $this->billingAddress = $billingAddress;
120  }
121  /**
122   * @return OrderAddress
123   */
124  public function getBillingAddress()
125  {
126    return $this->billingAddress;
127  }
128  /**
129   * @param OrderCustomer
130   */
131  public function setCustomer(OrderCustomer $customer)
132  {
133    $this->customer = $customer;
134  }
135  /**
136   * @return OrderCustomer
137   */
138  public function getCustomer()
139  {
140    return $this->customer;
141  }
142  /**
143   * @param OrderDeliveryDetails
144   */
145  public function setDeliveryDetails(OrderDeliveryDetails $deliveryDetails)
146  {
147    $this->deliveryDetails = $deliveryDetails;
148  }
149  /**
150   * @return OrderDeliveryDetails
151   */
152  public function getDeliveryDetails()
153  {
154    return $this->deliveryDetails;
155  }
156  /**
157   * @param string
158   */
159  public function setId($id)
160  {
161    $this->id = $id;
162  }
163  /**
164   * @return string
165   */
166  public function getId()
167  {
168    return $this->id;
169  }
170  /**
171   * @param string
172   */
173  public function setKind($kind)
174  {
175    $this->kind = $kind;
176  }
177  /**
178   * @return string
179   */
180  public function getKind()
181  {
182    return $this->kind;
183  }
184  /**
185   * @param OrderLineItem[]
186   */
187  public function setLineItems($lineItems)
188  {
189    $this->lineItems = $lineItems;
190  }
191  /**
192   * @return OrderLineItem[]
193   */
194  public function getLineItems()
195  {
196    return $this->lineItems;
197  }
198  /**
199   * @param string
200   */
201  public function setMerchantId($merchantId)
202  {
203    $this->merchantId = $merchantId;
204  }
205  /**
206   * @return string
207   */
208  public function getMerchantId()
209  {
210    return $this->merchantId;
211  }
212  /**
213   * @param string
214   */
215  public function setMerchantOrderId($merchantOrderId)
216  {
217    $this->merchantOrderId = $merchantOrderId;
218  }
219  /**
220   * @return string
221   */
222  public function getMerchantOrderId()
223  {
224    return $this->merchantOrderId;
225  }
226  /**
227   * @param Price
228   */
229  public function setNetPriceAmount(Price $netPriceAmount)
230  {
231    $this->netPriceAmount = $netPriceAmount;
232  }
233  /**
234   * @return Price
235   */
236  public function getNetPriceAmount()
237  {
238    return $this->netPriceAmount;
239  }
240  /**
241   * @param Price
242   */
243  public function setNetTaxAmount(Price $netTaxAmount)
244  {
245    $this->netTaxAmount = $netTaxAmount;
246  }
247  /**
248   * @return Price
249   */
250  public function getNetTaxAmount()
251  {
252    return $this->netTaxAmount;
253  }
254  /**
255   * @param string
256   */
257  public function setPaymentStatus($paymentStatus)
258  {
259    $this->paymentStatus = $paymentStatus;
260  }
261  /**
262   * @return string
263   */
264  public function getPaymentStatus()
265  {
266    return $this->paymentStatus;
267  }
268  /**
269   * @param OrderPickupDetails
270   */
271  public function setPickupDetails(OrderPickupDetails $pickupDetails)
272  {
273    $this->pickupDetails = $pickupDetails;
274  }
275  /**
276   * @return OrderPickupDetails
277   */
278  public function getPickupDetails()
279  {
280    return $this->pickupDetails;
281  }
282  /**
283   * @param string
284   */
285  public function setPlacedDate($placedDate)
286  {
287    $this->placedDate = $placedDate;
288  }
289  /**
290   * @return string
291   */
292  public function getPlacedDate()
293  {
294    return $this->placedDate;
295  }
296  /**
297   * @param OrderPromotion[]
298   */
299  public function setPromotions($promotions)
300  {
301    $this->promotions = $promotions;
302  }
303  /**
304   * @return OrderPromotion[]
305   */
306  public function getPromotions()
307  {
308    return $this->promotions;
309  }
310  /**
311   * @param OrderRefund[]
312   */
313  public function setRefunds($refunds)
314  {
315    $this->refunds = $refunds;
316  }
317  /**
318   * @return OrderRefund[]
319   */
320  public function getRefunds()
321  {
322    return $this->refunds;
323  }
324  /**
325   * @param OrderShipment[]
326   */
327  public function setShipments($shipments)
328  {
329    $this->shipments = $shipments;
330  }
331  /**
332   * @return OrderShipment[]
333   */
334  public function getShipments()
335  {
336    return $this->shipments;
337  }
338  /**
339   * @param Price
340   */
341  public function setShippingCost(Price $shippingCost)
342  {
343    $this->shippingCost = $shippingCost;
344  }
345  /**
346   * @return Price
347   */
348  public function getShippingCost()
349  {
350    return $this->shippingCost;
351  }
352  /**
353   * @param Price
354   */
355  public function setShippingCostTax(Price $shippingCostTax)
356  {
357    $this->shippingCostTax = $shippingCostTax;
358  }
359  /**
360   * @return Price
361   */
362  public function getShippingCostTax()
363  {
364    return $this->shippingCostTax;
365  }
366  /**
367   * @param string
368   */
369  public function setStatus($status)
370  {
371    $this->status = $status;
372  }
373  /**
374   * @return string
375   */
376  public function getStatus()
377  {
378    return $this->status;
379  }
380  /**
381   * @param string
382   */
383  public function setTaxCollector($taxCollector)
384  {
385    $this->taxCollector = $taxCollector;
386  }
387  /**
388   * @return string
389   */
390  public function getTaxCollector()
391  {
392    return $this->taxCollector;
393  }
394}
395
396// Adding a class alias for backwards compatibility with the previous class name.
397class_alias(Order::class, 'Google_Service_ShoppingContent_Order');
398