Skip to content

Latest commit

 

History

History
119 lines (64 loc) · 2.79 KB

Price.md

File metadata and controls

119 lines (64 loc) · 2.79 KB

Price

Properties

Name Type Description Notes
Id string
Currency string
Price float64
Product Pointer to Product [optional]

Methods

NewPrice

func NewPrice(id string, currency string, price float64, ) *Price

NewPrice instantiates a new Price object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewPriceWithDefaults

func NewPriceWithDefaults() *Price

NewPriceWithDefaults instantiates a new Price object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetId

func (o *Price) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *Price) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *Price) SetId(v string)

SetId sets Id field to given value.

GetCurrency

func (o *Price) GetCurrency() string

GetCurrency returns the Currency field if non-nil, zero value otherwise.

GetCurrencyOk

func (o *Price) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCurrency

func (o *Price) SetCurrency(v string)

SetCurrency sets Currency field to given value.

GetPrice

func (o *Price) GetPrice() float64

GetPrice returns the Price field if non-nil, zero value otherwise.

GetPriceOk

func (o *Price) GetPriceOk() (*float64, bool)

GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPrice

func (o *Price) SetPrice(v float64)

SetPrice sets Price field to given value.

GetProduct

func (o *Price) GetProduct() Product

GetProduct returns the Product field if non-nil, zero value otherwise.

GetProductOk

func (o *Price) GetProductOk() (*Product, bool)

GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProduct

func (o *Price) SetProduct(v Product)

SetProduct sets Product field to given value.

HasProduct

func (o *Price) HasProduct() bool

HasProduct returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]