new Interval(length, Unit, weekday)
Creates a new Interval.
Parameters:
Name | Type | Description |
---|---|---|
length |
number | length of the interval (in units) |
Unit |
string | Interval.Unit | for the interval |
weekday |
string | Interval.Weekday | on which a charge should occur |
- Source:
Extends
- PaymillObject
Members
-
<static> Unit
-
Units for an Interval.
- Source:
Properties:
Name Type Description DAY
string WEEK
string MONTH
string YEAR
string -
<static> Weekday
-
Weekdays for an Interval.
- Source:
Properties:
Name Type Description MONDAY
string TUESDAY
string WEDNESDAY
string THURSDAY
string FRIDAY
string SATURDAY
string SUNDAY
string -
chargeday :Interval.Weekday
-
Charge day in the week
Type:
- Source:
-
length :number
-
Length of the interval (in units)
Type:
- number
- Source:
-
unit :Interval.Unit
-
Unit for the interval
Type:
- Source: