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 OrderLineItem extends \Google\Collection 21{ 22 protected $collection_key = 'returns'; 23 protected $adjustmentsType = OrderLineItemAdjustment::class; 24 protected $adjustmentsDataType = 'array'; 25 protected $annotationsType = OrderMerchantProvidedAnnotation::class; 26 protected $annotationsDataType = 'array'; 27 protected $cancellationsType = OrderCancellation::class; 28 protected $cancellationsDataType = 'array'; 29 /** 30 * @var string 31 */ 32 public $id; 33 protected $priceType = Price::class; 34 protected $priceDataType = ''; 35 protected $productType = OrderLineItemProduct::class; 36 protected $productDataType = ''; 37 /** 38 * @var string 39 */ 40 public $quantityCanceled; 41 /** 42 * @var string 43 */ 44 public $quantityDelivered; 45 /** 46 * @var string 47 */ 48 public $quantityOrdered; 49 /** 50 * @var string 51 */ 52 public $quantityPending; 53 /** 54 * @var string 55 */ 56 public $quantityReadyForPickup; 57 /** 58 * @var string 59 */ 60 public $quantityReturned; 61 /** 62 * @var string 63 */ 64 public $quantityShipped; 65 /** 66 * @var string 67 */ 68 public $quantityUndeliverable; 69 protected $returnInfoType = OrderLineItemReturnInfo::class; 70 protected $returnInfoDataType = ''; 71 protected $returnsType = OrderReturn::class; 72 protected $returnsDataType = 'array'; 73 protected $shippingDetailsType = OrderLineItemShippingDetails::class; 74 protected $shippingDetailsDataType = ''; 75 protected $taxType = Price::class; 76 protected $taxDataType = ''; 77 78 /** 79 * @param OrderLineItemAdjustment[] 80 */ 81 public function setAdjustments($adjustments) 82 { 83 $this->adjustments = $adjustments; 84 } 85 /** 86 * @return OrderLineItemAdjustment[] 87 */ 88 public function getAdjustments() 89 { 90 return $this->adjustments; 91 } 92 /** 93 * @param OrderMerchantProvidedAnnotation[] 94 */ 95 public function setAnnotations($annotations) 96 { 97 $this->annotations = $annotations; 98 } 99 /** 100 * @return OrderMerchantProvidedAnnotation[] 101 */ 102 public function getAnnotations() 103 { 104 return $this->annotations; 105 } 106 /** 107 * @param OrderCancellation[] 108 */ 109 public function setCancellations($cancellations) 110 { 111 $this->cancellations = $cancellations; 112 } 113 /** 114 * @return OrderCancellation[] 115 */ 116 public function getCancellations() 117 { 118 return $this->cancellations; 119 } 120 /** 121 * @param string 122 */ 123 public function setId($id) 124 { 125 $this->id = $id; 126 } 127 /** 128 * @return string 129 */ 130 public function getId() 131 { 132 return $this->id; 133 } 134 /** 135 * @param Price 136 */ 137 public function setPrice(Price $price) 138 { 139 $this->price = $price; 140 } 141 /** 142 * @return Price 143 */ 144 public function getPrice() 145 { 146 return $this->price; 147 } 148 /** 149 * @param OrderLineItemProduct 150 */ 151 public function setProduct(OrderLineItemProduct $product) 152 { 153 $this->product = $product; 154 } 155 /** 156 * @return OrderLineItemProduct 157 */ 158 public function getProduct() 159 { 160 return $this->product; 161 } 162 /** 163 * @param string 164 */ 165 public function setQuantityCanceled($quantityCanceled) 166 { 167 $this->quantityCanceled = $quantityCanceled; 168 } 169 /** 170 * @return string 171 */ 172 public function getQuantityCanceled() 173 { 174 return $this->quantityCanceled; 175 } 176 /** 177 * @param string 178 */ 179 public function setQuantityDelivered($quantityDelivered) 180 { 181 $this->quantityDelivered = $quantityDelivered; 182 } 183 /** 184 * @return string 185 */ 186 public function getQuantityDelivered() 187 { 188 return $this->quantityDelivered; 189 } 190 /** 191 * @param string 192 */ 193 public function setQuantityOrdered($quantityOrdered) 194 { 195 $this->quantityOrdered = $quantityOrdered; 196 } 197 /** 198 * @return string 199 */ 200 public function getQuantityOrdered() 201 { 202 return $this->quantityOrdered; 203 } 204 /** 205 * @param string 206 */ 207 public function setQuantityPending($quantityPending) 208 { 209 $this->quantityPending = $quantityPending; 210 } 211 /** 212 * @return string 213 */ 214 public function getQuantityPending() 215 { 216 return $this->quantityPending; 217 } 218 /** 219 * @param string 220 */ 221 public function setQuantityReadyForPickup($quantityReadyForPickup) 222 { 223 $this->quantityReadyForPickup = $quantityReadyForPickup; 224 } 225 /** 226 * @return string 227 */ 228 public function getQuantityReadyForPickup() 229 { 230 return $this->quantityReadyForPickup; 231 } 232 /** 233 * @param string 234 */ 235 public function setQuantityReturned($quantityReturned) 236 { 237 $this->quantityReturned = $quantityReturned; 238 } 239 /** 240 * @return string 241 */ 242 public function getQuantityReturned() 243 { 244 return $this->quantityReturned; 245 } 246 /** 247 * @param string 248 */ 249 public function setQuantityShipped($quantityShipped) 250 { 251 $this->quantityShipped = $quantityShipped; 252 } 253 /** 254 * @return string 255 */ 256 public function getQuantityShipped() 257 { 258 return $this->quantityShipped; 259 } 260 /** 261 * @param string 262 */ 263 public function setQuantityUndeliverable($quantityUndeliverable) 264 { 265 $this->quantityUndeliverable = $quantityUndeliverable; 266 } 267 /** 268 * @return string 269 */ 270 public function getQuantityUndeliverable() 271 { 272 return $this->quantityUndeliverable; 273 } 274 /** 275 * @param OrderLineItemReturnInfo 276 */ 277 public function setReturnInfo(OrderLineItemReturnInfo $returnInfo) 278 { 279 $this->returnInfo = $returnInfo; 280 } 281 /** 282 * @return OrderLineItemReturnInfo 283 */ 284 public function getReturnInfo() 285 { 286 return $this->returnInfo; 287 } 288 /** 289 * @param OrderReturn[] 290 */ 291 public function setReturns($returns) 292 { 293 $this->returns = $returns; 294 } 295 /** 296 * @return OrderReturn[] 297 */ 298 public function getReturns() 299 { 300 return $this->returns; 301 } 302 /** 303 * @param OrderLineItemShippingDetails 304 */ 305 public function setShippingDetails(OrderLineItemShippingDetails $shippingDetails) 306 { 307 $this->shippingDetails = $shippingDetails; 308 } 309 /** 310 * @return OrderLineItemShippingDetails 311 */ 312 public function getShippingDetails() 313 { 314 return $this->shippingDetails; 315 } 316 /** 317 * @param Price 318 */ 319 public function setTax(Price $tax) 320 { 321 $this->tax = $tax; 322 } 323 /** 324 * @return Price 325 */ 326 public function getTax() 327 { 328 return $this->tax; 329 } 330} 331 332// Adding a class alias for backwards compatibility with the previous class name. 333class_alias(OrderLineItem::class, 'Google_Service_ShoppingContent_OrderLineItem'); 334