Skip to content

Latest commit

 

History

History
93 lines (50 loc) · 2.56 KB

Currency.md

File metadata and controls

93 lines (50 loc) · 2.56 KB

Currency

Properties

Name Type Description Notes
Code string The three-letter ISO currency code. This is the currency that is associated with the payment amount.
Symbol string The currency symbol.
Exponent int32 The log base 10 of the number of times we have to multiply the major unit to get the minor unit. Should be 0 for VN and 2 for other countries (SG/MY/ID/TH/PH/KH).

Methods

NewCurrency

func NewCurrency(code string, symbol string, exponent int32, ) *Currency

NewCurrency instantiates a new Currency 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

NewCurrencyWithDefaults

func NewCurrencyWithDefaults() *Currency

NewCurrencyWithDefaults instantiates a new Currency 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

GetCode

func (o *Currency) GetCode() string

GetCode returns the Code field if non-nil, zero value otherwise.

GetCodeOk

func (o *Currency) GetCodeOk() (*string, bool)

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

SetCode

func (o *Currency) SetCode(v string)

SetCode sets Code field to given value.

GetSymbol

func (o *Currency) GetSymbol() string

GetSymbol returns the Symbol field if non-nil, zero value otherwise.

GetSymbolOk

func (o *Currency) GetSymbolOk() (*string, bool)

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

SetSymbol

func (o *Currency) SetSymbol(v string)

SetSymbol sets Symbol field to given value.

GetExponent

func (o *Currency) GetExponent() int32

GetExponent returns the Exponent field if non-nil, zero value otherwise.

GetExponentOk

func (o *Currency) GetExponentOk() (*int32, bool)

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

SetExponent

func (o *Currency) SetExponent(v int32)

SetExponent sets Exponent field to given value.

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