[f9c482b] | 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 Subscription extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'listings';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $archived;
|
---|
| 27 | protected $basePlansType = BasePlan::class;
|
---|
| 28 | protected $basePlansDataType = 'array';
|
---|
| 29 | protected $listingsType = SubscriptionListing::class;
|
---|
| 30 | protected $listingsDataType = 'array';
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $packageName;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $productId;
|
---|
| 39 | protected $restrictedPaymentCountriesType = RestrictedPaymentCountries::class;
|
---|
| 40 | protected $restrictedPaymentCountriesDataType = '';
|
---|
| 41 | protected $taxAndComplianceSettingsType = SubscriptionTaxAndComplianceSettings::class;
|
---|
| 42 | protected $taxAndComplianceSettingsDataType = '';
|
---|
| 43 |
|
---|
| 44 | /**
|
---|
| 45 | * @param bool
|
---|
| 46 | */
|
---|
| 47 | public function setArchived($archived)
|
---|
| 48 | {
|
---|
| 49 | $this->archived = $archived;
|
---|
| 50 | }
|
---|
| 51 | /**
|
---|
| 52 | * @return bool
|
---|
| 53 | */
|
---|
| 54 | public function getArchived()
|
---|
| 55 | {
|
---|
| 56 | return $this->archived;
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * @param BasePlan[]
|
---|
| 60 | */
|
---|
| 61 | public function setBasePlans($basePlans)
|
---|
| 62 | {
|
---|
| 63 | $this->basePlans = $basePlans;
|
---|
| 64 | }
|
---|
| 65 | /**
|
---|
| 66 | * @return BasePlan[]
|
---|
| 67 | */
|
---|
| 68 | public function getBasePlans()
|
---|
| 69 | {
|
---|
| 70 | return $this->basePlans;
|
---|
| 71 | }
|
---|
| 72 | /**
|
---|
| 73 | * @param SubscriptionListing[]
|
---|
| 74 | */
|
---|
| 75 | public function setListings($listings)
|
---|
| 76 | {
|
---|
| 77 | $this->listings = $listings;
|
---|
| 78 | }
|
---|
| 79 | /**
|
---|
| 80 | * @return SubscriptionListing[]
|
---|
| 81 | */
|
---|
| 82 | public function getListings()
|
---|
| 83 | {
|
---|
| 84 | return $this->listings;
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * @param string
|
---|
| 88 | */
|
---|
| 89 | public function setPackageName($packageName)
|
---|
| 90 | {
|
---|
| 91 | $this->packageName = $packageName;
|
---|
| 92 | }
|
---|
| 93 | /**
|
---|
| 94 | * @return string
|
---|
| 95 | */
|
---|
| 96 | public function getPackageName()
|
---|
| 97 | {
|
---|
| 98 | return $this->packageName;
|
---|
| 99 | }
|
---|
| 100 | /**
|
---|
| 101 | * @param string
|
---|
| 102 | */
|
---|
| 103 | public function setProductId($productId)
|
---|
| 104 | {
|
---|
| 105 | $this->productId = $productId;
|
---|
| 106 | }
|
---|
| 107 | /**
|
---|
| 108 | * @return string
|
---|
| 109 | */
|
---|
| 110 | public function getProductId()
|
---|
| 111 | {
|
---|
| 112 | return $this->productId;
|
---|
| 113 | }
|
---|
| 114 | /**
|
---|
| 115 | * @param RestrictedPaymentCountries
|
---|
| 116 | */
|
---|
| 117 | public function setRestrictedPaymentCountries(RestrictedPaymentCountries $restrictedPaymentCountries)
|
---|
| 118 | {
|
---|
| 119 | $this->restrictedPaymentCountries = $restrictedPaymentCountries;
|
---|
| 120 | }
|
---|
| 121 | /**
|
---|
| 122 | * @return RestrictedPaymentCountries
|
---|
| 123 | */
|
---|
| 124 | public function getRestrictedPaymentCountries()
|
---|
| 125 | {
|
---|
| 126 | return $this->restrictedPaymentCountries;
|
---|
| 127 | }
|
---|
| 128 | /**
|
---|
| 129 | * @param SubscriptionTaxAndComplianceSettings
|
---|
| 130 | */
|
---|
| 131 | public function setTaxAndComplianceSettings(SubscriptionTaxAndComplianceSettings $taxAndComplianceSettings)
|
---|
| 132 | {
|
---|
| 133 | $this->taxAndComplianceSettings = $taxAndComplianceSettings;
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * @return SubscriptionTaxAndComplianceSettings
|
---|
| 137 | */
|
---|
| 138 | public function getTaxAndComplianceSettings()
|
---|
| 139 | {
|
---|
| 140 | return $this->taxAndComplianceSettings;
|
---|
| 141 | }
|
---|
| 142 | }
|
---|
| 143 |
|
---|
| 144 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 145 | class_alias(Subscription::class, 'Google_Service_AndroidPublisher_Subscription');
|
---|