class Google::Apis::BooksV1::Volume::SaleInfo

Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).

Attributes

country[RW]

The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.) Corresponds to the JSON property `country` @return [String]

is_ebook[RW]

Whether or not this volume is an eBook (can be added to the My eBooks shelf). Corresponds to the JSON property `isEbook` @return [Boolean]

is_ebook?[RW]

Whether or not this volume is an eBook (can be added to the My eBooks shelf). Corresponds to the JSON property `isEbook` @return [Boolean]

list_price[RW]

Suggested retail price. (In LITE projection.) Corresponds to the JSON property `listPrice` @return [Google::Apis::BooksV1::Volume::SaleInfo::ListPrice]

offers[RW]

Offers available for this volume (sales and rentals). Corresponds to the JSON property `offers` @return [Array<Google::Apis::BooksV1::Volume::SaleInfo::Offer>]

on_sale_date[RW]

The date on which this book is available for sale. Corresponds to the JSON property `onSaleDate` @return [DateTime]

retail_price[RW]

The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.) Corresponds to the JSON property `retailPrice` @return [Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice]

saleability[RW]

Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER. Corresponds to the JSON property `saleability` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/books_v1/classes.rb, line 2985
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/books_v1/classes.rb, line 2990
def update!(**args)
  @buy_link = args[:buy_link] if args.key?(:buy_link)
  @country = args[:country] if args.key?(:country)
  @is_ebook = args[:is_ebook] if args.key?(:is_ebook)
  @list_price = args[:list_price] if args.key?(:list_price)
  @offers = args[:offers] if args.key?(:offers)
  @on_sale_date = args[:on_sale_date] if args.key?(:on_sale_date)
  @retail_price = args[:retail_price] if args.key?(:retail_price)
  @saleability = args[:saleability] if args.key?(:saleability)
end