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 Region extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $displayName; 26 protected $geotargetAreaType = RegionGeoTargetArea::class; 27 protected $geotargetAreaDataType = ''; 28 /** 29 * @var string 30 */ 31 public $merchantId; 32 protected $postalCodeAreaType = RegionPostalCodeArea::class; 33 protected $postalCodeAreaDataType = ''; 34 /** 35 * @var string 36 */ 37 public $regionId; 38 /** 39 * @var bool 40 */ 41 public $regionalInventoryEligible; 42 /** 43 * @var bool 44 */ 45 public $shippingEligible; 46 47 /** 48 * @param string 49 */ 50 public function setDisplayName($displayName) 51 { 52 $this->displayName = $displayName; 53 } 54 /** 55 * @return string 56 */ 57 public function getDisplayName() 58 { 59 return $this->displayName; 60 } 61 /** 62 * @param RegionGeoTargetArea 63 */ 64 public function setGeotargetArea(RegionGeoTargetArea $geotargetArea) 65 { 66 $this->geotargetArea = $geotargetArea; 67 } 68 /** 69 * @return RegionGeoTargetArea 70 */ 71 public function getGeotargetArea() 72 { 73 return $this->geotargetArea; 74 } 75 /** 76 * @param string 77 */ 78 public function setMerchantId($merchantId) 79 { 80 $this->merchantId = $merchantId; 81 } 82 /** 83 * @return string 84 */ 85 public function getMerchantId() 86 { 87 return $this->merchantId; 88 } 89 /** 90 * @param RegionPostalCodeArea 91 */ 92 public function setPostalCodeArea(RegionPostalCodeArea $postalCodeArea) 93 { 94 $this->postalCodeArea = $postalCodeArea; 95 } 96 /** 97 * @return RegionPostalCodeArea 98 */ 99 public function getPostalCodeArea() 100 { 101 return $this->postalCodeArea; 102 } 103 /** 104 * @param string 105 */ 106 public function setRegionId($regionId) 107 { 108 $this->regionId = $regionId; 109 } 110 /** 111 * @return string 112 */ 113 public function getRegionId() 114 { 115 return $this->regionId; 116 } 117 /** 118 * @param bool 119 */ 120 public function setRegionalInventoryEligible($regionalInventoryEligible) 121 { 122 $this->regionalInventoryEligible = $regionalInventoryEligible; 123 } 124 /** 125 * @return bool 126 */ 127 public function getRegionalInventoryEligible() 128 { 129 return $this->regionalInventoryEligible; 130 } 131 /** 132 * @param bool 133 */ 134 public function setShippingEligible($shippingEligible) 135 { 136 $this->shippingEligible = $shippingEligible; 137 } 138 /** 139 * @return bool 140 */ 141 public function getShippingEligible() 142 { 143 return $this->shippingEligible; 144 } 145} 146 147// Adding a class alias for backwards compatibility with the previous class name. 148class_alias(Region::class, 'Google_Service_ShoppingContent_Region'); 149