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\AndroidPublisher;
|
---|
19 |
|
---|
20 | class InAppProduct extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $defaultLanguage;
|
---|
26 | protected $defaultPriceType = Price::class;
|
---|
27 | protected $defaultPriceDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $gracePeriod;
|
---|
32 | protected $listingsType = InAppProductListing::class;
|
---|
33 | protected $listingsDataType = 'map';
|
---|
34 | protected $managedProductTaxesAndComplianceSettingsType = ManagedProductTaxAndComplianceSettings::class;
|
---|
35 | protected $managedProductTaxesAndComplianceSettingsDataType = '';
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $packageName;
|
---|
40 | protected $pricesType = Price::class;
|
---|
41 | protected $pricesDataType = 'map';
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $purchaseType;
|
---|
46 | /**
|
---|
47 | * @var string
|
---|
48 | */
|
---|
49 | public $sku;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $status;
|
---|
54 | /**
|
---|
55 | * @var string
|
---|
56 | */
|
---|
57 | public $subscriptionPeriod;
|
---|
58 | protected $subscriptionTaxesAndComplianceSettingsType = SubscriptionTaxAndComplianceSettings::class;
|
---|
59 | protected $subscriptionTaxesAndComplianceSettingsDataType = '';
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $trialPeriod;
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @param string
|
---|
67 | */
|
---|
68 | public function setDefaultLanguage($defaultLanguage)
|
---|
69 | {
|
---|
70 | $this->defaultLanguage = $defaultLanguage;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return string
|
---|
74 | */
|
---|
75 | public function getDefaultLanguage()
|
---|
76 | {
|
---|
77 | return $this->defaultLanguage;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param Price
|
---|
81 | */
|
---|
82 | public function setDefaultPrice(Price $defaultPrice)
|
---|
83 | {
|
---|
84 | $this->defaultPrice = $defaultPrice;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return Price
|
---|
88 | */
|
---|
89 | public function getDefaultPrice()
|
---|
90 | {
|
---|
91 | return $this->defaultPrice;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param string
|
---|
95 | */
|
---|
96 | public function setGracePeriod($gracePeriod)
|
---|
97 | {
|
---|
98 | $this->gracePeriod = $gracePeriod;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return string
|
---|
102 | */
|
---|
103 | public function getGracePeriod()
|
---|
104 | {
|
---|
105 | return $this->gracePeriod;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param InAppProductListing[]
|
---|
109 | */
|
---|
110 | public function setListings($listings)
|
---|
111 | {
|
---|
112 | $this->listings = $listings;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return InAppProductListing[]
|
---|
116 | */
|
---|
117 | public function getListings()
|
---|
118 | {
|
---|
119 | return $this->listings;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param ManagedProductTaxAndComplianceSettings
|
---|
123 | */
|
---|
124 | public function setManagedProductTaxesAndComplianceSettings(ManagedProductTaxAndComplianceSettings $managedProductTaxesAndComplianceSettings)
|
---|
125 | {
|
---|
126 | $this->managedProductTaxesAndComplianceSettings = $managedProductTaxesAndComplianceSettings;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return ManagedProductTaxAndComplianceSettings
|
---|
130 | */
|
---|
131 | public function getManagedProductTaxesAndComplianceSettings()
|
---|
132 | {
|
---|
133 | return $this->managedProductTaxesAndComplianceSettings;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param string
|
---|
137 | */
|
---|
138 | public function setPackageName($packageName)
|
---|
139 | {
|
---|
140 | $this->packageName = $packageName;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return string
|
---|
144 | */
|
---|
145 | public function getPackageName()
|
---|
146 | {
|
---|
147 | return $this->packageName;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param Price[]
|
---|
151 | */
|
---|
152 | public function setPrices($prices)
|
---|
153 | {
|
---|
154 | $this->prices = $prices;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return Price[]
|
---|
158 | */
|
---|
159 | public function getPrices()
|
---|
160 | {
|
---|
161 | return $this->prices;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param string
|
---|
165 | */
|
---|
166 | public function setPurchaseType($purchaseType)
|
---|
167 | {
|
---|
168 | $this->purchaseType = $purchaseType;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return string
|
---|
172 | */
|
---|
173 | public function getPurchaseType()
|
---|
174 | {
|
---|
175 | return $this->purchaseType;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param string
|
---|
179 | */
|
---|
180 | public function setSku($sku)
|
---|
181 | {
|
---|
182 | $this->sku = $sku;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return string
|
---|
186 | */
|
---|
187 | public function getSku()
|
---|
188 | {
|
---|
189 | return $this->sku;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param string
|
---|
193 | */
|
---|
194 | public function setStatus($status)
|
---|
195 | {
|
---|
196 | $this->status = $status;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return string
|
---|
200 | */
|
---|
201 | public function getStatus()
|
---|
202 | {
|
---|
203 | return $this->status;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param string
|
---|
207 | */
|
---|
208 | public function setSubscriptionPeriod($subscriptionPeriod)
|
---|
209 | {
|
---|
210 | $this->subscriptionPeriod = $subscriptionPeriod;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return string
|
---|
214 | */
|
---|
215 | public function getSubscriptionPeriod()
|
---|
216 | {
|
---|
217 | return $this->subscriptionPeriod;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @param SubscriptionTaxAndComplianceSettings
|
---|
221 | */
|
---|
222 | public function setSubscriptionTaxesAndComplianceSettings(SubscriptionTaxAndComplianceSettings $subscriptionTaxesAndComplianceSettings)
|
---|
223 | {
|
---|
224 | $this->subscriptionTaxesAndComplianceSettings = $subscriptionTaxesAndComplianceSettings;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @return SubscriptionTaxAndComplianceSettings
|
---|
228 | */
|
---|
229 | public function getSubscriptionTaxesAndComplianceSettings()
|
---|
230 | {
|
---|
231 | return $this->subscriptionTaxesAndComplianceSettings;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @param string
|
---|
235 | */
|
---|
236 | public function setTrialPeriod($trialPeriod)
|
---|
237 | {
|
---|
238 | $this->trialPeriod = $trialPeriod;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @return string
|
---|
242 | */
|
---|
243 | public function getTrialPeriod()
|
---|
244 | {
|
---|
245 | return $this->trialPeriod;
|
---|
246 | }
|
---|
247 | }
|
---|
248 |
|
---|
249 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
250 | class_alias(InAppProduct::class, 'Google_Service_AndroidPublisher_InAppProduct');
|
---|