SoftBank.Note (soft_bank v1.0.0) View Source
Defines a SoftBank.Note
struct along with convenience methods for working with currencies.
Link to this section Summary
Functions
Create a new SoftBank.Note
struct using a default currency.
The default currency can be set in the system Mix config.
Link to this section Functions
Create a new SoftBank.Note
struct using a default currency.
The default currency can be set in the system Mix config.
Example Config:
config :note,
default_currency: :USD
Example:
SoftBank.Note.new(123)
%SoftBank.Note{amount: 123, currency: :USD}