No Description

TestOrder.php 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. class Google_Service_ShoppingContent_TestOrder extends Google_Collection
  18. {
  19. protected $collection_key = 'promotions';
  20. protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer';
  21. protected $customerDataType = '';
  22. public $kind;
  23. protected $lineItemsType = 'Google_Service_ShoppingContent_TestOrderLineItem';
  24. protected $lineItemsDataType = 'array';
  25. public $notificationMode;
  26. protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod';
  27. protected $paymentMethodDataType = '';
  28. public $predefinedDeliveryAddress;
  29. protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion';
  30. protected $promotionsDataType = 'array';
  31. protected $shippingCostType = 'Google_Service_ShoppingContent_Price';
  32. protected $shippingCostDataType = '';
  33. protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price';
  34. protected $shippingCostTaxDataType = '';
  35. public $shippingOption;
  36. /**
  37. * @param Google_Service_ShoppingContent_TestOrderCustomer
  38. */
  39. public function setCustomer(Google_Service_ShoppingContent_TestOrderCustomer $customer)
  40. {
  41. $this->customer = $customer;
  42. }
  43. /**
  44. * @return Google_Service_ShoppingContent_TestOrderCustomer
  45. */
  46. public function getCustomer()
  47. {
  48. return $this->customer;
  49. }
  50. public function setKind($kind)
  51. {
  52. $this->kind = $kind;
  53. }
  54. public function getKind()
  55. {
  56. return $this->kind;
  57. }
  58. /**
  59. * @param Google_Service_ShoppingContent_TestOrderLineItem
  60. */
  61. public function setLineItems($lineItems)
  62. {
  63. $this->lineItems = $lineItems;
  64. }
  65. /**
  66. * @return Google_Service_ShoppingContent_TestOrderLineItem
  67. */
  68. public function getLineItems()
  69. {
  70. return $this->lineItems;
  71. }
  72. public function setNotificationMode($notificationMode)
  73. {
  74. $this->notificationMode = $notificationMode;
  75. }
  76. public function getNotificationMode()
  77. {
  78. return $this->notificationMode;
  79. }
  80. /**
  81. * @param Google_Service_ShoppingContent_TestOrderPaymentMethod
  82. */
  83. public function setPaymentMethod(Google_Service_ShoppingContent_TestOrderPaymentMethod $paymentMethod)
  84. {
  85. $this->paymentMethod = $paymentMethod;
  86. }
  87. /**
  88. * @return Google_Service_ShoppingContent_TestOrderPaymentMethod
  89. */
  90. public function getPaymentMethod()
  91. {
  92. return $this->paymentMethod;
  93. }
  94. public function setPredefinedDeliveryAddress($predefinedDeliveryAddress)
  95. {
  96. $this->predefinedDeliveryAddress = $predefinedDeliveryAddress;
  97. }
  98. public function getPredefinedDeliveryAddress()
  99. {
  100. return $this->predefinedDeliveryAddress;
  101. }
  102. /**
  103. * @param Google_Service_ShoppingContent_OrderPromotion
  104. */
  105. public function setPromotions($promotions)
  106. {
  107. $this->promotions = $promotions;
  108. }
  109. /**
  110. * @return Google_Service_ShoppingContent_OrderPromotion
  111. */
  112. public function getPromotions()
  113. {
  114. return $this->promotions;
  115. }
  116. /**
  117. * @param Google_Service_ShoppingContent_Price
  118. */
  119. public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost)
  120. {
  121. $this->shippingCost = $shippingCost;
  122. }
  123. /**
  124. * @return Google_Service_ShoppingContent_Price
  125. */
  126. public function getShippingCost()
  127. {
  128. return $this->shippingCost;
  129. }
  130. /**
  131. * @param Google_Service_ShoppingContent_Price
  132. */
  133. public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax)
  134. {
  135. $this->shippingCostTax = $shippingCostTax;
  136. }
  137. /**
  138. * @return Google_Service_ShoppingContent_Price
  139. */
  140. public function getShippingCostTax()
  141. {
  142. return $this->shippingCostTax;
  143. }
  144. public function setShippingOption($shippingOption)
  145. {
  146. $this->shippingOption = $shippingOption;
  147. }
  148. public function getShippingOption()
  149. {
  150. return $this->shippingOption;
  151. }
  152. }