Options
All
  • Public
  • Public/Protected
  • All
Menu

Time pricingperiod described by a number of a given time unit

Hierarchy

Index

Constructors

constructor

  • new PricingPeriod(startDate: Date, endDate: Date, paymentDate: Date, quantity: Quantity): PricingPeriod
  • Parameters

    • startDate: Date
    • endDate: Date
    • paymentDate: Date
    • quantity: Quantity

    Returns PricingPeriod

Properties

_endDate

_endDate: Date

Private _paymentDate

_paymentDate: Date

Private _quantity

_quantity: Quantity

_startDate

_startDate: Date

Methods

endDate

  • endDate(): Date
  • Returns Date

equal

init

  • Parameters

    • startDate: Date
    • endDate: Date

    Returns DateInterval

intersection

isDateBetween

  • isDateBetween(date: Date, includeFirst?: boolean, includeLast?: boolean): boolean
  • Parameters

    • date: Date
    • Default value includeFirst: boolean = true
    • Default value includeLast: boolean = true

    Returns boolean

paymentDate

  • paymentDate(): Date
  • Returns Date

quantity

  • Returns Quantity

startDate

  • startDate(): Date
  • Returns Date