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\ShoppingContent;
|
---|
19 |
|
---|
20 | class Service extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'rateGroups';
|
---|
23 | /**
|
---|
24 | * @var bool
|
---|
25 | */
|
---|
26 | public $active;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $currency;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $deliveryCountry;
|
---|
35 | protected $deliveryTimeType = DeliveryTime::class;
|
---|
36 | protected $deliveryTimeDataType = '';
|
---|
37 | /**
|
---|
38 | * @var string
|
---|
39 | */
|
---|
40 | public $eligibility;
|
---|
41 | protected $minimumOrderValueType = Price::class;
|
---|
42 | protected $minimumOrderValueDataType = '';
|
---|
43 | protected $minimumOrderValueTableType = MinimumOrderValueTable::class;
|
---|
44 | protected $minimumOrderValueTableDataType = '';
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $name;
|
---|
49 | protected $pickupServiceType = PickupCarrierService::class;
|
---|
50 | protected $pickupServiceDataType = '';
|
---|
51 | protected $rateGroupsType = RateGroup::class;
|
---|
52 | protected $rateGroupsDataType = 'array';
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $shipmentType;
|
---|
57 | protected $storeConfigType = ServiceStoreConfig::class;
|
---|
58 | protected $storeConfigDataType = '';
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * @param bool
|
---|
62 | */
|
---|
63 | public function setActive($active)
|
---|
64 | {
|
---|
65 | $this->active = $active;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @return bool
|
---|
69 | */
|
---|
70 | public function getActive()
|
---|
71 | {
|
---|
72 | return $this->active;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @param string
|
---|
76 | */
|
---|
77 | public function setCurrency($currency)
|
---|
78 | {
|
---|
79 | $this->currency = $currency;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return string
|
---|
83 | */
|
---|
84 | public function getCurrency()
|
---|
85 | {
|
---|
86 | return $this->currency;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @param string
|
---|
90 | */
|
---|
91 | public function setDeliveryCountry($deliveryCountry)
|
---|
92 | {
|
---|
93 | $this->deliveryCountry = $deliveryCountry;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @return string
|
---|
97 | */
|
---|
98 | public function getDeliveryCountry()
|
---|
99 | {
|
---|
100 | return $this->deliveryCountry;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @param DeliveryTime
|
---|
104 | */
|
---|
105 | public function setDeliveryTime(DeliveryTime $deliveryTime)
|
---|
106 | {
|
---|
107 | $this->deliveryTime = $deliveryTime;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @return DeliveryTime
|
---|
111 | */
|
---|
112 | public function getDeliveryTime()
|
---|
113 | {
|
---|
114 | return $this->deliveryTime;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @param string
|
---|
118 | */
|
---|
119 | public function setEligibility($eligibility)
|
---|
120 | {
|
---|
121 | $this->eligibility = $eligibility;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @return string
|
---|
125 | */
|
---|
126 | public function getEligibility()
|
---|
127 | {
|
---|
128 | return $this->eligibility;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @param Price
|
---|
132 | */
|
---|
133 | public function setMinimumOrderValue(Price $minimumOrderValue)
|
---|
134 | {
|
---|
135 | $this->minimumOrderValue = $minimumOrderValue;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @return Price
|
---|
139 | */
|
---|
140 | public function getMinimumOrderValue()
|
---|
141 | {
|
---|
142 | return $this->minimumOrderValue;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @param MinimumOrderValueTable
|
---|
146 | */
|
---|
147 | public function setMinimumOrderValueTable(MinimumOrderValueTable $minimumOrderValueTable)
|
---|
148 | {
|
---|
149 | $this->minimumOrderValueTable = $minimumOrderValueTable;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @return MinimumOrderValueTable
|
---|
153 | */
|
---|
154 | public function getMinimumOrderValueTable()
|
---|
155 | {
|
---|
156 | return $this->minimumOrderValueTable;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @param string
|
---|
160 | */
|
---|
161 | public function setName($name)
|
---|
162 | {
|
---|
163 | $this->name = $name;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @return string
|
---|
167 | */
|
---|
168 | public function getName()
|
---|
169 | {
|
---|
170 | return $this->name;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @param PickupCarrierService
|
---|
174 | */
|
---|
175 | public function setPickupService(PickupCarrierService $pickupService)
|
---|
176 | {
|
---|
177 | $this->pickupService = $pickupService;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @return PickupCarrierService
|
---|
181 | */
|
---|
182 | public function getPickupService()
|
---|
183 | {
|
---|
184 | return $this->pickupService;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @param RateGroup[]
|
---|
188 | */
|
---|
189 | public function setRateGroups($rateGroups)
|
---|
190 | {
|
---|
191 | $this->rateGroups = $rateGroups;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @return RateGroup[]
|
---|
195 | */
|
---|
196 | public function getRateGroups()
|
---|
197 | {
|
---|
198 | return $this->rateGroups;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @param string
|
---|
202 | */
|
---|
203 | public function setShipmentType($shipmentType)
|
---|
204 | {
|
---|
205 | $this->shipmentType = $shipmentType;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @return string
|
---|
209 | */
|
---|
210 | public function getShipmentType()
|
---|
211 | {
|
---|
212 | return $this->shipmentType;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @param ServiceStoreConfig
|
---|
216 | */
|
---|
217 | public function setStoreConfig(ServiceStoreConfig $storeConfig)
|
---|
218 | {
|
---|
219 | $this->storeConfig = $storeConfig;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @return ServiceStoreConfig
|
---|
223 | */
|
---|
224 | public function getStoreConfig()
|
---|
225 | {
|
---|
226 | return $this->storeConfig;
|
---|
227 | }
|
---|
228 | }
|
---|
229 |
|
---|
230 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
231 | class_alias(Service::class, 'Google_Service_ShoppingContent_Service');
|
---|