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\Books;
19
20class VolumeSaleInfo extends \Google\Collection
21{
22  protected $collection_key = 'offers';
23  /**
24   * @var string
25   */
26  public $buyLink;
27  /**
28   * @var string
29   */
30  public $country;
31  /**
32   * @var bool
33   */
34  public $isEbook;
35  protected $listPriceType = VolumeSaleInfoListPrice::class;
36  protected $listPriceDataType = '';
37  protected $offersType = VolumeSaleInfoOffers::class;
38  protected $offersDataType = 'array';
39  /**
40   * @var string
41   */
42  public $onSaleDate;
43  protected $retailPriceType = VolumeSaleInfoRetailPrice::class;
44  protected $retailPriceDataType = '';
45  /**
46   * @var string
47   */
48  public $saleability;
49
50  /**
51   * @param string
52   */
53  public function setBuyLink($buyLink)
54  {
55    $this->buyLink = $buyLink;
56  }
57  /**
58   * @return string
59   */
60  public function getBuyLink()
61  {
62    return $this->buyLink;
63  }
64  /**
65   * @param string
66   */
67  public function setCountry($country)
68  {
69    $this->country = $country;
70  }
71  /**
72   * @return string
73   */
74  public function getCountry()
75  {
76    return $this->country;
77  }
78  /**
79   * @param bool
80   */
81  public function setIsEbook($isEbook)
82  {
83    $this->isEbook = $isEbook;
84  }
85  /**
86   * @return bool
87   */
88  public function getIsEbook()
89  {
90    return $this->isEbook;
91  }
92  /**
93   * @param VolumeSaleInfoListPrice
94   */
95  public function setListPrice(VolumeSaleInfoListPrice $listPrice)
96  {
97    $this->listPrice = $listPrice;
98  }
99  /**
100   * @return VolumeSaleInfoListPrice
101   */
102  public function getListPrice()
103  {
104    return $this->listPrice;
105  }
106  /**
107   * @param VolumeSaleInfoOffers[]
108   */
109  public function setOffers($offers)
110  {
111    $this->offers = $offers;
112  }
113  /**
114   * @return VolumeSaleInfoOffers[]
115   */
116  public function getOffers()
117  {
118    return $this->offers;
119  }
120  /**
121   * @param string
122   */
123  public function setOnSaleDate($onSaleDate)
124  {
125    $this->onSaleDate = $onSaleDate;
126  }
127  /**
128   * @return string
129   */
130  public function getOnSaleDate()
131  {
132    return $this->onSaleDate;
133  }
134  /**
135   * @param VolumeSaleInfoRetailPrice
136   */
137  public function setRetailPrice(VolumeSaleInfoRetailPrice $retailPrice)
138  {
139    $this->retailPrice = $retailPrice;
140  }
141  /**
142   * @return VolumeSaleInfoRetailPrice
143   */
144  public function getRetailPrice()
145  {
146    return $this->retailPrice;
147  }
148  /**
149   * @param string
150   */
151  public function setSaleability($saleability)
152  {
153    $this->saleability = $saleability;
154  }
155  /**
156   * @return string
157   */
158  public function getSaleability()
159  {
160    return $this->saleability;
161  }
162}
163
164// Adding a class alias for backwards compatibility with the previous class name.
165class_alias(VolumeSaleInfo::class, 'Google_Service_Books_VolumeSaleInfo');
166