books  v1
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_books_api::Volume::VolumeSaleInfo Class Reference

#include <volume.h>

Inheritance diagram for google_books_api::Volume::VolumeSaleInfo:

Classes

class  VolumeSaleInfoListPrice
 
class  VolumeSaleInfoOffers
 
class  VolumeSaleInfoRetailPrice
 

Public Member Functions

 VolumeSaleInfo (const Json::Value &storage)
 
 VolumeSaleInfo (Json::Value *storage)
 
virtual ~VolumeSaleInfo ()
 
const StringPiece GetTypeName () const
 
bool has_buy_link () const
 
void clear_buy_link ()
 
const StringPiece get_buy_link () const
 
void set_buy_link (const StringPiece &value)
 
bool has_country () const
 
void clear_country ()
 
const StringPiece get_country () const
 
void set_country (const StringPiece &value)
 
bool has_is_ebook () const
 
void clear_is_ebook ()
 
bool get_is_ebook () const
 
void set_is_ebook (bool value)
 
bool has_list_price () const
 
void clear_list_price ()
 
const VolumeSaleInfoListPrice get_list_price () const
 
VolumeSaleInfoListPrice mutable_listPrice ()
 
bool has_offers () const
 
void clear_offers ()
 
const client::JsonCppArray< VolumeSaleInfoOffersget_offers () const
 
client::JsonCppArray< VolumeSaleInfoOffersmutable_offers ()
 
bool has_on_sale_date () const
 
void clear_on_sale_date ()
 
client::DateTime get_on_sale_date () const
 
void set_on_sale_date (client::DateTime value)
 
bool has_retail_price () const
 
void clear_retail_price ()
 
const VolumeSaleInfoRetailPrice get_retail_price () const
 
VolumeSaleInfoRetailPrice mutable_retailPrice ()
 
bool has_saleability () const
 
void clear_saleability ()
 
const StringPiece get_saleability () const
 
void set_saleability (const StringPiece &value)
 

Static Public Member Functions

static VolumeSaleInfoNew ()
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ VolumeSaleInfo() [1/2]

google_books_api::Volume::VolumeSaleInfo::VolumeSaleInfo ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ VolumeSaleInfo() [2/2]

google_books_api::Volume::VolumeSaleInfo::VolumeSaleInfo ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~VolumeSaleInfo()

google_books_api::Volume::VolumeSaleInfo::~VolumeSaleInfo ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_buy_link()

void google_books_api::Volume::VolumeSaleInfo::clear_buy_link ( )
inline

Clears the 'buyLink' attribute.

◆ clear_country()

void google_books_api::Volume::VolumeSaleInfo::clear_country ( )
inline

Clears the 'country' attribute.

◆ clear_is_ebook()

void google_books_api::Volume::VolumeSaleInfo::clear_is_ebook ( )
inline

Clears the 'isEbook' attribute.

◆ clear_list_price()

void google_books_api::Volume::VolumeSaleInfo::clear_list_price ( )
inline

Clears the 'listPrice' attribute.

◆ clear_offers()

void google_books_api::Volume::VolumeSaleInfo::clear_offers ( )
inline

Clears the 'offers' attribute.

◆ clear_on_sale_date()

void google_books_api::Volume::VolumeSaleInfo::clear_on_sale_date ( )
inline

Clears the 'onSaleDate' attribute.

◆ clear_retail_price()

void google_books_api::Volume::VolumeSaleInfo::clear_retail_price ( )
inline

Clears the 'retailPrice' attribute.

◆ clear_saleability()

void google_books_api::Volume::VolumeSaleInfo::clear_saleability ( )
inline

Clears the 'saleability' attribute.

◆ get_buy_link()

const StringPiece google_books_api::Volume::VolumeSaleInfo::get_buy_link ( ) const
inline

Get the value of the 'buyLink' attribute.

◆ get_country()

const StringPiece google_books_api::Volume::VolumeSaleInfo::get_country ( ) const
inline

Get the value of the 'country' attribute.

◆ get_is_ebook()

bool google_books_api::Volume::VolumeSaleInfo::get_is_ebook ( ) const
inline

Get the value of the 'isEbook' attribute.

◆ get_list_price()

const VolumeSaleInfoListPrice google_books_api::Volume::VolumeSaleInfo::get_list_price ( ) const
inline

Get a reference to the value of the 'listPrice' attribute.

◆ get_offers()

const client::JsonCppArray<VolumeSaleInfoOffers > google_books_api::Volume::VolumeSaleInfo::get_offers ( ) const
inline

Get a reference to the value of the 'offers' attribute.

◆ get_on_sale_date()

client::DateTime google_books_api::Volume::VolumeSaleInfo::get_on_sale_date ( ) const
inline

Get the value of the 'onSaleDate' attribute.

◆ get_retail_price()

const VolumeSaleInfoRetailPrice google_books_api::Volume::VolumeSaleInfo::get_retail_price ( ) const
inline

Get a reference to the value of the 'retailPrice' attribute.

◆ get_saleability()

const StringPiece google_books_api::Volume::VolumeSaleInfo::get_saleability ( ) const
inline

Get the value of the 'saleability' attribute.

◆ GetTypeName()

const StringPiece google_books_api::Volume::VolumeSaleInfo::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_books_api::VolumeSaleInfo

◆ has_buy_link()

bool google_books_api::Volume::VolumeSaleInfo::has_buy_link ( ) const
inline

Determine if the 'buyLink' attribute was set.

Returns
true if the 'buyLink' attribute was set.

◆ has_country()

bool google_books_api::Volume::VolumeSaleInfo::has_country ( ) const
inline

Determine if the 'country' attribute was set.

Returns
true if the 'country' attribute was set.

◆ has_is_ebook()

bool google_books_api::Volume::VolumeSaleInfo::has_is_ebook ( ) const
inline

Determine if the 'isEbook' attribute was set.

Returns
true if the 'isEbook' attribute was set.

◆ has_list_price()

bool google_books_api::Volume::VolumeSaleInfo::has_list_price ( ) const
inline

Determine if the 'listPrice' attribute was set.

Returns
true if the 'listPrice' attribute was set.

◆ has_offers()

bool google_books_api::Volume::VolumeSaleInfo::has_offers ( ) const
inline

Determine if the 'offers' attribute was set.

Returns
true if the 'offers' attribute was set.

◆ has_on_sale_date()

bool google_books_api::Volume::VolumeSaleInfo::has_on_sale_date ( ) const
inline

Determine if the 'onSaleDate' attribute was set.

Returns
true if the 'onSaleDate' attribute was set.

◆ has_retail_price()

bool google_books_api::Volume::VolumeSaleInfo::has_retail_price ( ) const
inline

Determine if the 'retailPrice' attribute was set.

Returns
true if the 'retailPrice' attribute was set.

◆ has_saleability()

bool google_books_api::Volume::VolumeSaleInfo::has_saleability ( ) const
inline

Determine if the 'saleability' attribute was set.

Returns
true if the 'saleability' attribute was set.

◆ mutable_listPrice()

VolumeSaleInfoListPrice google_books_api::Volume::VolumeSaleInfo::mutable_listPrice ( )
inline

Gets a reference to a mutable value of the 'listPrice' property.

Suggested retail price. (In LITE projection.).

Returns
The result can be modified to change the attribute value.

◆ mutable_offers()

client::JsonCppArray<VolumeSaleInfoOffers > google_books_api::Volume::VolumeSaleInfo::mutable_offers ( )
inline

Gets a reference to a mutable value of the 'offers' property.

Offers available for this volume (sales and rentals).

Returns
The result can be modified to change the attribute value.

◆ mutable_retailPrice()

VolumeSaleInfoRetailPrice google_books_api::Volume::VolumeSaleInfo::mutable_retailPrice ( )
inline

Gets a reference to a mutable value of the 'retailPrice' property.

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.).

Returns
The result can be modified to change the attribute value.

◆ New()

Volume::VolumeSaleInfo * google_books_api::Volume::VolumeSaleInfo::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_buy_link()

void google_books_api::Volume::VolumeSaleInfo::set_buy_link ( const StringPiece &  value)
inline

Change the 'buyLink' attribute.

URL to purchase this volume on the Google Books site. (In LITE projection).

Parameters
[in]valueThe new value.

◆ set_country()

void google_books_api::Volume::VolumeSaleInfo::set_country ( const StringPiece &  value)
inline

Change the 'country' attribute.

The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.).

Parameters
[in]valueThe new value.

◆ set_is_ebook()

void google_books_api::Volume::VolumeSaleInfo::set_is_ebook ( bool  value)
inline

Change the 'isEbook' attribute.

Whether or not this volume is an eBook (can be added to the My eBooks shelf).

Parameters
[in]valueThe new value.

◆ set_on_sale_date()

void google_books_api::Volume::VolumeSaleInfo::set_on_sale_date ( client::DateTime  value)
inline

Change the 'onSaleDate' attribute.

The date on which this book is available for sale.

Parameters
[in]valueThe new value.

◆ set_saleability()

void google_books_api::Volume::VolumeSaleInfo::set_saleability ( const StringPiece &  value)
inline

Change the 'saleability' attribute.

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.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: