CcyCode

world.money.currency.currency_codes$package.CcyCode
object CcyCode

Provides factory methods for creating instances of CcyCode.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CcyCode.type

Members list

Value members

Concrete methods

inline def from(value: String): Either[CurrencyError, CcyCode]

Returns a CcyCode if the input String matches the required format.

Returns a CcyCode if the input String matches the required format.

Value parameters

value

The String to validate, e.g., "USD".

Attributes

Returns

Right with a valid CcyCode on success, or Left with a errors.CurrencyError on failure.

Note

The input is trimmed and converted to uppercase before validation. This method only validates that the input is a String of exactly three uppercase ASCII letters. It does not check if the code corresponds to a known currency.

Givens

Givens

Provides compile-time safe equality checking for CcyCode instances.

Provides compile-time safe equality checking for CcyCode instances.

Attributes

Extensions

Extensions

extension (code: CcyCode)
inline def value: String

The raw 3-character String representation of the currency code.

The raw 3-character String representation of the currency code.

Attributes