Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.31 KB

Currency.md

File metadata and controls

33 lines (26 loc) · 1.31 KB

TransferZero::Currency

Properties

Name Type Description Notes
code String The currency code in 3-character alpha ISO 4217 currency format [optional]
name String Name of currency [optional]
symbol String Symbol of currency [optional]
decimals Float Number of decimal points [optional]
subunit_to_unit String Subunits in Unit (eg. there are 100 cents in 1 US Dollar) [optional]
primary Boolean Is this a primary currency? [optional]
min String The minimum amount allowed in a transaction [optional]
max String The maximum amount allowed in a transaction [optional]
usd_equivalent String The equivalent of the currency to 1 USD [optional]

Code Sample

require 'TransferZero'

instance = TransferZero::Currency.new(code: NGN,
                                 name: Nigerian Naira,
                                 symbol: ,
                                 decimals: 2,
                                 subunit_to_unit: 100,
                                 primary: true,
                                 min: 100,
                                 max: 50000000,
                                 usd_equivalent: null)