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\PaymentsResellerSubscription;
|
---|
19 |
|
---|
20 | class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'lineItemPromotionSpecs';
|
---|
23 | protected $amountType = GoogleCloudPaymentsResellerSubscriptionV1Amount::class;
|
---|
24 | protected $amountDataType = '';
|
---|
25 | protected $bundleDetailsType = SubscriptionLineItemBundleDetails::class;
|
---|
26 | protected $bundleDetailsDataType = '';
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $description;
|
---|
31 | protected $finiteBillingCycleDetailsType = GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails::class;
|
---|
32 | protected $finiteBillingCycleDetailsDataType = '';
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $lineItemFreeTrialEndTime;
|
---|
37 | /**
|
---|
38 | * @var int
|
---|
39 | */
|
---|
40 | public $lineItemIndex;
|
---|
41 | protected $lineItemPromotionSpecsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::class;
|
---|
42 | protected $lineItemPromotionSpecsDataType = 'array';
|
---|
43 | protected $oneTimeRecurrenceDetailsType = GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails::class;
|
---|
44 | protected $oneTimeRecurrenceDetailsDataType = '';
|
---|
45 | /**
|
---|
46 | * @var string
|
---|
47 | */
|
---|
48 | public $product;
|
---|
49 | protected $productPayloadType = GoogleCloudPaymentsResellerSubscriptionV1ProductPayload::class;
|
---|
50 | protected $productPayloadDataType = '';
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $recurrenceType;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $state;
|
---|
59 |
|
---|
60 | /**
|
---|
61 | * @param GoogleCloudPaymentsResellerSubscriptionV1Amount
|
---|
62 | */
|
---|
63 | public function setAmount(GoogleCloudPaymentsResellerSubscriptionV1Amount $amount)
|
---|
64 | {
|
---|
65 | $this->amount = $amount;
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * @return GoogleCloudPaymentsResellerSubscriptionV1Amount
|
---|
69 | */
|
---|
70 | public function getAmount()
|
---|
71 | {
|
---|
72 | return $this->amount;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @param SubscriptionLineItemBundleDetails
|
---|
76 | */
|
---|
77 | public function setBundleDetails(SubscriptionLineItemBundleDetails $bundleDetails)
|
---|
78 | {
|
---|
79 | $this->bundleDetails = $bundleDetails;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @return SubscriptionLineItemBundleDetails
|
---|
83 | */
|
---|
84 | public function getBundleDetails()
|
---|
85 | {
|
---|
86 | return $this->bundleDetails;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @param string
|
---|
90 | */
|
---|
91 | public function setDescription($description)
|
---|
92 | {
|
---|
93 | $this->description = $description;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @return string
|
---|
97 | */
|
---|
98 | public function getDescription()
|
---|
99 | {
|
---|
100 | return $this->description;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @param GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
|
---|
104 | */
|
---|
105 | public function setFiniteBillingCycleDetails(GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails $finiteBillingCycleDetails)
|
---|
106 | {
|
---|
107 | $this->finiteBillingCycleDetails = $finiteBillingCycleDetails;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @return GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
|
---|
111 | */
|
---|
112 | public function getFiniteBillingCycleDetails()
|
---|
113 | {
|
---|
114 | return $this->finiteBillingCycleDetails;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @param string
|
---|
118 | */
|
---|
119 | public function setLineItemFreeTrialEndTime($lineItemFreeTrialEndTime)
|
---|
120 | {
|
---|
121 | $this->lineItemFreeTrialEndTime = $lineItemFreeTrialEndTime;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @return string
|
---|
125 | */
|
---|
126 | public function getLineItemFreeTrialEndTime()
|
---|
127 | {
|
---|
128 | return $this->lineItemFreeTrialEndTime;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @param int
|
---|
132 | */
|
---|
133 | public function setLineItemIndex($lineItemIndex)
|
---|
134 | {
|
---|
135 | $this->lineItemIndex = $lineItemIndex;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @return int
|
---|
139 | */
|
---|
140 | public function getLineItemIndex()
|
---|
141 | {
|
---|
142 | return $this->lineItemIndex;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
|
---|
146 | */
|
---|
147 | public function setLineItemPromotionSpecs($lineItemPromotionSpecs)
|
---|
148 | {
|
---|
149 | $this->lineItemPromotionSpecs = $lineItemPromotionSpecs;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec[]
|
---|
153 | */
|
---|
154 | public function getLineItemPromotionSpecs()
|
---|
155 | {
|
---|
156 | return $this->lineItemPromotionSpecs;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @param GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
|
---|
160 | */
|
---|
161 | public function setOneTimeRecurrenceDetails(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails $oneTimeRecurrenceDetails)
|
---|
162 | {
|
---|
163 | $this->oneTimeRecurrenceDetails = $oneTimeRecurrenceDetails;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @return GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
|
---|
167 | */
|
---|
168 | public function getOneTimeRecurrenceDetails()
|
---|
169 | {
|
---|
170 | return $this->oneTimeRecurrenceDetails;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @param string
|
---|
174 | */
|
---|
175 | public function setProduct($product)
|
---|
176 | {
|
---|
177 | $this->product = $product;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @return string
|
---|
181 | */
|
---|
182 | public function getProduct()
|
---|
183 | {
|
---|
184 | return $this->product;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @param GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
|
---|
188 | */
|
---|
189 | public function setProductPayload(GoogleCloudPaymentsResellerSubscriptionV1ProductPayload $productPayload)
|
---|
190 | {
|
---|
191 | $this->productPayload = $productPayload;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @return GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
|
---|
195 | */
|
---|
196 | public function getProductPayload()
|
---|
197 | {
|
---|
198 | return $this->productPayload;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @param string
|
---|
202 | */
|
---|
203 | public function setRecurrenceType($recurrenceType)
|
---|
204 | {
|
---|
205 | $this->recurrenceType = $recurrenceType;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @return string
|
---|
209 | */
|
---|
210 | public function getRecurrenceType()
|
---|
211 | {
|
---|
212 | return $this->recurrenceType;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @param string
|
---|
216 | */
|
---|
217 | public function setState($state)
|
---|
218 | {
|
---|
219 | $this->state = $state;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @return string
|
---|
223 | */
|
---|
224 | public function getState()
|
---|
225 | {
|
---|
226 | return $this->state;
|
---|
227 | }
|
---|
228 | }
|
---|
229 |
|
---|
230 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
231 | class_alias(GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem::class, 'Google_Service_PaymentsResellerSubscription_GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem');
|
---|