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 OrderPromotion extends \Google\Collection 21{ 22 protected $collection_key = 'appliedItems'; 23 protected $applicableItemsType = OrderPromotionItem::class; 24 protected $applicableItemsDataType = 'array'; 25 protected $appliedItemsType = OrderPromotionItem::class; 26 protected $appliedItemsDataType = 'array'; 27 /** 28 * @var string 29 */ 30 public $endTime; 31 /** 32 * @var string 33 */ 34 public $funder; 35 /** 36 * @var string 37 */ 38 public $merchantPromotionId; 39 protected $priceValueType = Price::class; 40 protected $priceValueDataType = ''; 41 /** 42 * @var string 43 */ 44 public $shortTitle; 45 /** 46 * @var string 47 */ 48 public $startTime; 49 /** 50 * @var string 51 */ 52 public $subtype; 53 protected $taxValueType = Price::class; 54 protected $taxValueDataType = ''; 55 /** 56 * @var string 57 */ 58 public $title; 59 /** 60 * @var string 61 */ 62 public $type; 63 64 /** 65 * @param OrderPromotionItem[] 66 */ 67 public function setApplicableItems($applicableItems) 68 { 69 $this->applicableItems = $applicableItems; 70 } 71 /** 72 * @return OrderPromotionItem[] 73 */ 74 public function getApplicableItems() 75 { 76 return $this->applicableItems; 77 } 78 /** 79 * @param OrderPromotionItem[] 80 */ 81 public function setAppliedItems($appliedItems) 82 { 83 $this->appliedItems = $appliedItems; 84 } 85 /** 86 * @return OrderPromotionItem[] 87 */ 88 public function getAppliedItems() 89 { 90 return $this->appliedItems; 91 } 92 /** 93 * @param string 94 */ 95 public function setEndTime($endTime) 96 { 97 $this->endTime = $endTime; 98 } 99 /** 100 * @return string 101 */ 102 public function getEndTime() 103 { 104 return $this->endTime; 105 } 106 /** 107 * @param string 108 */ 109 public function setFunder($funder) 110 { 111 $this->funder = $funder; 112 } 113 /** 114 * @return string 115 */ 116 public function getFunder() 117 { 118 return $this->funder; 119 } 120 /** 121 * @param string 122 */ 123 public function setMerchantPromotionId($merchantPromotionId) 124 { 125 $this->merchantPromotionId = $merchantPromotionId; 126 } 127 /** 128 * @return string 129 */ 130 public function getMerchantPromotionId() 131 { 132 return $this->merchantPromotionId; 133 } 134 /** 135 * @param Price 136 */ 137 public function setPriceValue(Price $priceValue) 138 { 139 $this->priceValue = $priceValue; 140 } 141 /** 142 * @return Price 143 */ 144 public function getPriceValue() 145 { 146 return $this->priceValue; 147 } 148 /** 149 * @param string 150 */ 151 public function setShortTitle($shortTitle) 152 { 153 $this->shortTitle = $shortTitle; 154 } 155 /** 156 * @return string 157 */ 158 public function getShortTitle() 159 { 160 return $this->shortTitle; 161 } 162 /** 163 * @param string 164 */ 165 public function setStartTime($startTime) 166 { 167 $this->startTime = $startTime; 168 } 169 /** 170 * @return string 171 */ 172 public function getStartTime() 173 { 174 return $this->startTime; 175 } 176 /** 177 * @param string 178 */ 179 public function setSubtype($subtype) 180 { 181 $this->subtype = $subtype; 182 } 183 /** 184 * @return string 185 */ 186 public function getSubtype() 187 { 188 return $this->subtype; 189 } 190 /** 191 * @param Price 192 */ 193 public function setTaxValue(Price $taxValue) 194 { 195 $this->taxValue = $taxValue; 196 } 197 /** 198 * @return Price 199 */ 200 public function getTaxValue() 201 { 202 return $this->taxValue; 203 } 204 /** 205 * @param string 206 */ 207 public function setTitle($title) 208 { 209 $this->title = $title; 210 } 211 /** 212 * @return string 213 */ 214 public function getTitle() 215 { 216 return $this->title; 217 } 218 /** 219 * @param string 220 */ 221 public function setType($type) 222 { 223 $this->type = $type; 224 } 225 /** 226 * @return string 227 */ 228 public function getType() 229 { 230 return $this->type; 231 } 232} 233 234// Adding a class alias for backwards compatibility with the previous class name. 235class_alias(OrderPromotion::class, 'Google_Service_ShoppingContent_OrderPromotion'); 236