final case class Money(currencyCode: String = "", units: Long = 0L, nanos: Int = 0, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Money] with Product with Serializable

Represents an amount of money with its currency type.

currencyCode

The 3-letter currency code defined in ISO 4217.

units

The whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.

nanos

Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[Money], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Money
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Money(currencyCode: String = "", units: Long = 0L, nanos: Int = 0, unknownFields: UnknownFieldSet = ...)

    currencyCode

    The 3-letter currency code defined in ISO 4217.

    units

    The whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.

    nanos

    Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def companion: Money.type
    Definition Classes
    Money → GeneratedMessage
  7. val currencyCode: String
  8. def discardUnknownFields: Money
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Money → GeneratedMessage
  13. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Money → GeneratedMessage
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val nanos: Int
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def serializedSize: Int
    Definition Classes
    Money → GeneratedMessage
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  22. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  23. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  24. def toProtoString: String
    Definition Classes
    Money → GeneratedMessage
  25. val units: Long
  26. val unknownFields: UnknownFieldSet
  27. def update(ms: (Lens[Money, Money]) ⇒ Mutation[Money]*): Money
    Definition Classes
    Updatable
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  31. def withCurrencyCode(__v: String): Money
  32. def withNanos(__v: Int): Money
  33. def withUnits(__v: Long): Money
  34. def withUnknownFields(__v: UnknownFieldSet): Money
  35. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  36. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Money → GeneratedMessage
  37. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[Money]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped