SoftBank.Note.neg

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

Specs

neg(t()) :: t()

Returns a SoftBank.Note with the amount negated.

Examples:

iex> SoftBank.Note.new(100, :USD) |> SoftBank.Note.neg
%SoftBank.Note{amount: -100, currency: :USD}
iex> SoftBank.Note.new(-100, :USD) |> SoftBank.Note.neg
%SoftBank.Note{amount: 100, currency: :USD}