SoftBank.Note.add

You're seeing just the function add, go back to SoftBank.Note module for more information.

Specs

add(t(), t() | integer() | float()) :: t()

Adds two SoftBank.Note together or an integer (cents) amount to a SoftBank.Note

Example:

iex> SoftBank.Note.add(SoftBank.Note.new(100, :USD), SoftBank.Note.new(50, :USD))
%SoftBank.Note{amount: 150, currency: :USD}
iex> SoftBank.Note.add(SoftBank.Note.new(100, :USD), 50)
%SoftBank.Note{amount: 150, currency: :USD}
iex> SoftBank.Note.add(SoftBank.Note.new(100, :USD), 5.55)
%SoftBank.Note{amount: 655, currency: :USD}