SoftBank.Note.subtract

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

subtract(m, subtractend)

View Source

Specs

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

Subtracts one SoftBank.Note from another or an integer (cents) from a SoftBank.Note

Example:

iex> SoftBank.Note.subtract(SoftBank.Note.new(150, :USD), SoftBank.Note.new(50, :USD))
%SoftBank.Note{amount: 100, currency: :USD}
iex> SoftBank.Note.subtract(SoftBank.Note.new(150, :USD), 50)
%SoftBank.Note{amount: 100, currency: :USD}
iex> SoftBank.Note.subtract(SoftBank.Note.new(150, :USD), 1.25)
%SoftBank.Note{amount: 25, currency: :USD}