google_api_books v0.8.0 GoogleApi.Books.V1.Model.VolumeSaleInfo View Source

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

  • buyLink (type: String.t, default: nil) - URL to purchase this volume on the Google Books site. (In LITE projection)
  • country (type: String.t, default: nil) - The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
  • isEbook (type: boolean(), default: nil) - Whether or not this volume is an eBook (can be added to the My eBooks shelf).
  • listPrice (type: GoogleApi.Books.V1.Model.VolumeSaleInfoListPrice.t, default: nil) - Suggested retail price. (In LITE projection.)
  • offers (type: list(GoogleApi.Books.V1.Model.VolumeSaleInfoOffers.t), default: nil) - Offers available for this volume (sales and rentals).
  • onSaleDate (type: DateTime.t, default: nil) - The date on which this book is available for sale.
  • retailPrice (type: GoogleApi.Books.V1.Model.VolumeSaleInfoRetailPrice.t, default: nil) - 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.)
  • saleability (type: String.t, default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Books.V1.Model.VolumeSaleInfo{
  buyLink: String.t(),
  country: String.t(),
  isEbook: boolean(),
  listPrice: GoogleApi.Books.V1.Model.VolumeSaleInfoListPrice.t(),
  offers: [GoogleApi.Books.V1.Model.VolumeSaleInfoOffers.t()],
  onSaleDate: DateTime.t(),
  retailPrice: GoogleApi.Books.V1.Model.VolumeSaleInfoRetailPrice.t(),
  saleability: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.