Ramp.Money (ramp v1.0.0)

Copy Markdown View Source

A monetary amount, represented as an integer number of minor units (cents) plus an ISO-4217 currency code -- exactly as the Ramp API returns it, with no float rounding surprises.

Summary

Types

t()

@type t() :: %Ramp.Money{amount: integer(), currency_code: String.t()}