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

Attributes

finsky_offer_type[RW]

The finsky offer type (e.g., PURCHASE=0 RENTAL=3) Corresponds to the JSON property `finskyOfferType` @return [Fixnum]

list_price[RW]

Offer list (=undiscounted) price in Micros. Corresponds to the JSON property `listPrice` @return [Google::Apis::BooksV1::Volume::SaleInfo::Offer::ListPrice]

rental_duration[RW]

The rental duration (for rental offers only). Corresponds to the JSON property `rentalDuration` @return [Google::Apis::BooksV1::Volume::SaleInfo::Offer::RentalDuration]

retail_price[RW]

Offer retail (=discounted) price in Micros Corresponds to the JSON property `retailPrice` @return [Google::Apis::BooksV1::Volume::SaleInfo::Offer::RetailPrice]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/books_v1/classes.rb, line 3050
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 3055
def update!(**args)
  @finsky_offer_type = args[:finsky_offer_type] if args.key?(:finsky_offer_type)
  @list_price = args[:list_price] if args.key?(:list_price)
  @rental_duration = args[:rental_duration] if args.key?(:rental_duration)
  @retail_price = args[:retail_price] if args.key?(:retail_price)
end