Skip to content

Latest commit

 

History

History
108 lines (59 loc) · 2.53 KB

Cost.md

File metadata and controls

108 lines (59 loc) · 2.53 KB

Cost

Properties

Name Type Description Notes
Amount Pointer to float32 [optional]
Currency Pointer to string [optional]
Unit Pointer to string [optional]

Methods

NewCost

func NewCost() *Cost

NewCost instantiates a new Cost 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

NewCostWithDefaults

func NewCostWithDefaults() *Cost

NewCostWithDefaults instantiates a new Cost 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

GetAmount

func (o *Cost) GetAmount() float32

GetAmount returns the Amount field if non-nil, zero value otherwise.

GetAmountOk

func (o *Cost) GetAmountOk() (*float32, bool)

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

SetAmount

func (o *Cost) SetAmount(v float32)

SetAmount sets Amount field to given value.

HasAmount

func (o *Cost) HasAmount() bool

HasAmount returns a boolean if a field has been set.

GetCurrency

func (o *Cost) GetCurrency() string

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

GetCurrencyOk

func (o *Cost) 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 *Cost) SetCurrency(v string)

SetCurrency sets Currency field to given value.

HasCurrency

func (o *Cost) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

GetUnit

func (o *Cost) GetUnit() string

GetUnit returns the Unit field if non-nil, zero value otherwise.

GetUnitOk

func (o *Cost) GetUnitOk() (*string, bool)

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

SetUnit

func (o *Cost) SetUnit(v string)

SetUnit sets Unit field to given value.

HasUnit

func (o *Cost) HasUnit() bool

HasUnit returns a boolean if a field has been set.

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