Withdrawal

world.currency$package.Currency.Withdrawal
object Withdrawal

Construction and accessors for Currency.Withdrawal.

Attributes

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

Members list

Type members

Classlikes

final case class Invalid(start: YearMonth, end: YearMonth) extends WorldError

Carries the rejected bounds.

Carries the rejected bounds.

Attributes

Supertypes
trait Product
trait Equals
class WorldError
class TypedError
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(month: YearMonth): Withdrawal

A withdrawal published as a single month.

A withdrawal published as a single month.

Attributes

def of(start: YearMonth, end: YearMonth): Either[Invalid, Withdrawal]

A withdrawal published as a period.

A withdrawal published as a period.

Attributes

Extensions

Extensions

extension (w: Withdrawal)
def end: YearMonth
def month: Option[YearMonth]

The single month, where the register published one; None for a period.

The single month, where the register published one; None for a period.

Attributes

def start: YearMonth
def value: String

The month alone, or the ISO 8601 interval where the withdrawal ran over a period.

The month alone, or the ISO 8601 interval where the withdrawal ran over a period.

Attributes