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 RepricingRule extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var RepricingRuleCostOfGoodsSaleRule
|
---|
24 | */
|
---|
25 | public $cogsBasedRule;
|
---|
26 | protected $cogsBasedRuleType = RepricingRuleCostOfGoodsSaleRule::class;
|
---|
27 | protected $cogsBasedRuleDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $countryCode;
|
---|
32 | /**
|
---|
33 | * @var RepricingRuleEffectiveTime
|
---|
34 | */
|
---|
35 | public $effectiveTimePeriod;
|
---|
36 | protected $effectiveTimePeriodType = RepricingRuleEffectiveTime::class;
|
---|
37 | protected $effectiveTimePeriodDataType = '';
|
---|
38 | /**
|
---|
39 | * @var RepricingRuleEligibleOfferMatcher
|
---|
40 | */
|
---|
41 | public $eligibleOfferMatcher;
|
---|
42 | protected $eligibleOfferMatcherType = RepricingRuleEligibleOfferMatcher::class;
|
---|
43 | protected $eligibleOfferMatcherDataType = '';
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $languageCode;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $merchantId;
|
---|
52 | /**
|
---|
53 | * @var bool
|
---|
54 | */
|
---|
55 | public $paused;
|
---|
56 | /**
|
---|
57 | * @var RepricingRuleRestriction
|
---|
58 | */
|
---|
59 | public $restriction;
|
---|
60 | protected $restrictionType = RepricingRuleRestriction::class;
|
---|
61 | protected $restrictionDataType = '';
|
---|
62 | /**
|
---|
63 | * @var string
|
---|
64 | */
|
---|
65 | public $ruleId;
|
---|
66 | /**
|
---|
67 | * @var RepricingRuleStatsBasedRule
|
---|
68 | */
|
---|
69 | public $statsBasedRule;
|
---|
70 | protected $statsBasedRuleType = RepricingRuleStatsBasedRule::class;
|
---|
71 | protected $statsBasedRuleDataType = '';
|
---|
72 | /**
|
---|
73 | * @var string
|
---|
74 | */
|
---|
75 | public $title;
|
---|
76 | /**
|
---|
77 | * @var string
|
---|
78 | */
|
---|
79 | public $type;
|
---|
80 |
|
---|
81 | /**
|
---|
82 | * @param RepricingRuleCostOfGoodsSaleRule
|
---|
83 | */
|
---|
84 | public function setCogsBasedRule(RepricingRuleCostOfGoodsSaleRule $cogsBasedRule)
|
---|
85 | {
|
---|
86 | $this->cogsBasedRule = $cogsBasedRule;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @return RepricingRuleCostOfGoodsSaleRule
|
---|
90 | */
|
---|
91 | public function getCogsBasedRule()
|
---|
92 | {
|
---|
93 | return $this->cogsBasedRule;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @param string
|
---|
97 | */
|
---|
98 | public function setCountryCode($countryCode)
|
---|
99 | {
|
---|
100 | $this->countryCode = $countryCode;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @return string
|
---|
104 | */
|
---|
105 | public function getCountryCode()
|
---|
106 | {
|
---|
107 | return $this->countryCode;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @param RepricingRuleEffectiveTime
|
---|
111 | */
|
---|
112 | public function setEffectiveTimePeriod(RepricingRuleEffectiveTime $effectiveTimePeriod)
|
---|
113 | {
|
---|
114 | $this->effectiveTimePeriod = $effectiveTimePeriod;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @return RepricingRuleEffectiveTime
|
---|
118 | */
|
---|
119 | public function getEffectiveTimePeriod()
|
---|
120 | {
|
---|
121 | return $this->effectiveTimePeriod;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @param RepricingRuleEligibleOfferMatcher
|
---|
125 | */
|
---|
126 | public function setEligibleOfferMatcher(RepricingRuleEligibleOfferMatcher $eligibleOfferMatcher)
|
---|
127 | {
|
---|
128 | $this->eligibleOfferMatcher = $eligibleOfferMatcher;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @return RepricingRuleEligibleOfferMatcher
|
---|
132 | */
|
---|
133 | public function getEligibleOfferMatcher()
|
---|
134 | {
|
---|
135 | return $this->eligibleOfferMatcher;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @param string
|
---|
139 | */
|
---|
140 | public function setLanguageCode($languageCode)
|
---|
141 | {
|
---|
142 | $this->languageCode = $languageCode;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @return string
|
---|
146 | */
|
---|
147 | public function getLanguageCode()
|
---|
148 | {
|
---|
149 | return $this->languageCode;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @param string
|
---|
153 | */
|
---|
154 | public function setMerchantId($merchantId)
|
---|
155 | {
|
---|
156 | $this->merchantId = $merchantId;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @return string
|
---|
160 | */
|
---|
161 | public function getMerchantId()
|
---|
162 | {
|
---|
163 | return $this->merchantId;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @param bool
|
---|
167 | */
|
---|
168 | public function setPaused($paused)
|
---|
169 | {
|
---|
170 | $this->paused = $paused;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @return bool
|
---|
174 | */
|
---|
175 | public function getPaused()
|
---|
176 | {
|
---|
177 | return $this->paused;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @param RepricingRuleRestriction
|
---|
181 | */
|
---|
182 | public function setRestriction(RepricingRuleRestriction $restriction)
|
---|
183 | {
|
---|
184 | $this->restriction = $restriction;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @return RepricingRuleRestriction
|
---|
188 | */
|
---|
189 | public function getRestriction()
|
---|
190 | {
|
---|
191 | return $this->restriction;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @param string
|
---|
195 | */
|
---|
196 | public function setRuleId($ruleId)
|
---|
197 | {
|
---|
198 | $this->ruleId = $ruleId;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @return string
|
---|
202 | */
|
---|
203 | public function getRuleId()
|
---|
204 | {
|
---|
205 | return $this->ruleId;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @param RepricingRuleStatsBasedRule
|
---|
209 | */
|
---|
210 | public function setStatsBasedRule(RepricingRuleStatsBasedRule $statsBasedRule)
|
---|
211 | {
|
---|
212 | $this->statsBasedRule = $statsBasedRule;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @return RepricingRuleStatsBasedRule
|
---|
216 | */
|
---|
217 | public function getStatsBasedRule()
|
---|
218 | {
|
---|
219 | return $this->statsBasedRule;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @param string
|
---|
223 | */
|
---|
224 | public function setTitle($title)
|
---|
225 | {
|
---|
226 | $this->title = $title;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @return string
|
---|
230 | */
|
---|
231 | public function getTitle()
|
---|
232 | {
|
---|
233 | return $this->title;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @param string
|
---|
237 | */
|
---|
238 | public function setType($type)
|
---|
239 | {
|
---|
240 | $this->type = $type;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @return string
|
---|
244 | */
|
---|
245 | public function getType()
|
---|
246 | {
|
---|
247 | return $this->type;
|
---|
248 | }
|
---|
249 | }
|
---|
250 |
|
---|
251 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
252 | class_alias(RepricingRule::class, 'Google_Service_ShoppingContent_RepricingRule');
|
---|