Skip to content

Latest commit

 

History

History
72 lines (39 loc) · 1.92 KB

Amount.md

File metadata and controls

72 lines (39 loc) · 1.92 KB

Amount

Properties

Name Type Description Notes
Value float64 The amount of the payment. Must be a positive decimal number with at most two decimal places.
Currency Currency

Methods

NewAmount

func NewAmount(value float64, currency Currency, ) *Amount

NewAmount instantiates a new Amount 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

NewAmountWithDefaults

func NewAmountWithDefaults() *Amount

NewAmountWithDefaults instantiates a new Amount 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

GetValue

func (o *Amount) GetValue() float64

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *Amount) GetValueOk() (*float64, bool)

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

SetValue

func (o *Amount) SetValue(v float64)

SetValue sets Value field to given value.

GetCurrency

func (o *Amount) GetCurrency() Currency

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

GetCurrencyOk

func (o *Amount) GetCurrencyOk() (*Currency, 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 *Amount) SetCurrency(v Currency)

SetCurrency sets Currency field to given value.

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