Initializer

init(amount:currencyCode:)

Initializes a balance amount with a monetary amount.

Declaration

init(amount: NSDecimalNumber, currencyCode: String)

Parameters

amount

The monetary amount to assign to the balance.

currencyCode

The ISO 4217 currency code that applies to the monetary amount.

Return Value

An initialized INBalanceAmount object.

Discussion

Use this method to initialize balance amounts involving currencies. The balanceType property is automatically set to INBalanceType.money.

See Also

Initializing a Balance Amount Object

init?(amount: NSDecimalNumber, balanceType: INBalanceType)

Initializes a balance amount object with a customizable type of information.