View Source SoftBank.Note (soft_bank v1.2.0)

Defines a SoftBank.Note struct along with convenience methods for working with currencies.

Summary

Functions

Create a new SoftBank.Note struct using a default currency. The default currency can be set in the system Mix config.

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}