Sin descripción

Service.php 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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_Service extends Google_Collection
  18. {
  19. protected $collection_key = 'rateGroups';
  20. public $active;
  21. public $currency;
  22. public $deliveryCountry;
  23. protected $deliveryTimeType = 'Google_Service_ShoppingContent_DeliveryTime';
  24. protected $deliveryTimeDataType = '';
  25. public $eligibility;
  26. protected $minimumOrderValueType = 'Google_Service_ShoppingContent_Price';
  27. protected $minimumOrderValueDataType = '';
  28. public $name;
  29. protected $rateGroupsType = 'Google_Service_ShoppingContent_RateGroup';
  30. protected $rateGroupsDataType = 'array';
  31. public function setActive($active)
  32. {
  33. $this->active = $active;
  34. }
  35. public function getActive()
  36. {
  37. return $this->active;
  38. }
  39. public function setCurrency($currency)
  40. {
  41. $this->currency = $currency;
  42. }
  43. public function getCurrency()
  44. {
  45. return $this->currency;
  46. }
  47. public function setDeliveryCountry($deliveryCountry)
  48. {
  49. $this->deliveryCountry = $deliveryCountry;
  50. }
  51. public function getDeliveryCountry()
  52. {
  53. return $this->deliveryCountry;
  54. }
  55. /**
  56. * @param Google_Service_ShoppingContent_DeliveryTime
  57. */
  58. public function setDeliveryTime(Google_Service_ShoppingContent_DeliveryTime $deliveryTime)
  59. {
  60. $this->deliveryTime = $deliveryTime;
  61. }
  62. /**
  63. * @return Google_Service_ShoppingContent_DeliveryTime
  64. */
  65. public function getDeliveryTime()
  66. {
  67. return $this->deliveryTime;
  68. }
  69. public function setEligibility($eligibility)
  70. {
  71. $this->eligibility = $eligibility;
  72. }
  73. public function getEligibility()
  74. {
  75. return $this->eligibility;
  76. }
  77. /**
  78. * @param Google_Service_ShoppingContent_Price
  79. */
  80. public function setMinimumOrderValue(Google_Service_ShoppingContent_Price $minimumOrderValue)
  81. {
  82. $this->minimumOrderValue = $minimumOrderValue;
  83. }
  84. /**
  85. * @return Google_Service_ShoppingContent_Price
  86. */
  87. public function getMinimumOrderValue()
  88. {
  89. return $this->minimumOrderValue;
  90. }
  91. public function setName($name)
  92. {
  93. $this->name = $name;
  94. }
  95. public function getName()
  96. {
  97. return $this->name;
  98. }
  99. /**
  100. * @param Google_Service_ShoppingContent_RateGroup
  101. */
  102. public function setRateGroups($rateGroups)
  103. {
  104. $this->rateGroups = $rateGroups;
  105. }
  106. /**
  107. * @return Google_Service_ShoppingContent_RateGroup
  108. */
  109. public function getRateGroups()
  110. {
  111. return $this->rateGroups;
  112. }
  113. }