Packages

final case class ForexLookupWhen[F[_]](conversionAmount: Double, fromCurr: CurrencyUnit, toCurr: CurrencyUnit, config: ForexConfig, client: OerClient[F]) extends Product with Serializable

ForexLookupWhen is the final part of the fluent interface, methods in this class are the final stage of currency lookup/conversion

conversionAmount

The amount of money to be converted, it is set to 1 for lookup operation

fromCurr

The source currency

toCurr

The target currency

config

Forex config

client

Passed down client that does actual work

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ForexLookupWhen
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ForexLookupWhen(conversionAmount: Double, fromCurr: CurrencyUnit, toCurr: CurrencyUnit, config: ForexConfig, client: OerClient[F])

    conversionAmount

    The amount of money to be converted, it is set to 1 for lookup operation

    fromCurr

    The source currency

    toCurr

    The target currency

    config

    Forex config

    client

    Passed down client that does actual work

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 at(tradeDate: ZonedDateTime)(implicit M: Monad[F]): F[Either[OerResponseError, Money]]

    Gets the latest end-of-day rate prior to the event or post to the event

    Gets the latest end-of-day rate prior to the event or post to the event

    returns

    Money representation in target currency or OerResponseError object if API request failed

  6. val client: OerClient[F]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val config: ForexConfig
  9. val conversionAmount: Double
  10. val conversionAmt: BigDecimal
  11. def eod(eodDate: ZonedDateTime)(implicit M: Monad[F]): F[Either[OerResponseError, Money]]

    Gets the end-of-day rate for the specified date

    Gets the end-of-day rate for the specified date

    returns

    Money representation in target currency or OerResponseError object if API request failed

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. val fromCurr: CurrencyUnit
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def now(implicit M: Monad[F], C: ZonedClock[F]): F[Either[OerResponseError, Money]]

    Performs live currency lookup/conversion

    Performs live currency lookup/conversion

    returns

    Money representation in target currency or OerResponseError object if API request failed

  20. def nowish(implicit M: Monad[F], C: ZonedClock[F]): F[Either[OerResponseError, Money]]

    Performs near-live currency lookup/conversion.

    Performs near-live currency lookup/conversion. A cached version of the live exchange rate is used if a cache exists and the timestamp of that exchange rate is less than or equal to "nowishSecs" old. Otherwise a new lookup is performed.

    returns

    Money representation in target currency or OerResponseError object if API request failed

  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val toCurr: CurrencyUnit
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped