IntervalBillcycle defines a billing period as a time period of a certain duration, starting from the end date of the last billing period. The duration can be specified as a number of days or a number of months. In case of months, it is possible to specify the preferred start day of the billing period. If this option is used, then the billing interval will be shortened if necessary to adjust the billing period to the preferred day. The next billing period will then start on the correct day.
Definition at line 243 of file billcycle.h.
typedef std::auto_ptr<IntervalBillcycle> OSB_LIB::IntervalBillcycle::AutoPtr |
Short-cut for an auto pointer.
For details see quality manual, implementation patterns: Virtual copy construction.
Reimplemented from OSB_LIB::Billcycle.
Definition at line 247 of file billcycle.h.
Supported units for the billing period interval. The values must correspond with the table BILLCYCLE_TYPE.
Definition at line 253 of file billcycle.h.
OSB_LIB::IntervalBillcycle::IntervalBillcycle | ( | ) | [inline] |
Add a billing period to the given start date.
Add one interval to the given start date.
from | Start date of the billing period. |
Implements OSB_LIB::Billcycle.
AutoPtr OSB_LIB::IntervalBillcycle::clone | ( | ) | const |
Virtual copy construction.
For details see quality manual, implementation patterns.
Reimplemented from OSB_LIB::Billcycle.
virtual Billcycle* OSB_LIB::IntervalBillcycle::clone_ | ( | ) | const [private, virtual] |
Internal virtual copy constructor.
For details see quality manual, implementation patterns.
Implements OSB_LIB::Billcycle.
int OSB_LIB::IntervalBillcycle::interval | ( | ) | const [inline] |
int OSB_LIB::IntervalBillcycle::minPeriod | ( | ) | const [inline] |
int OSB_LIB::IntervalBillcycle::readSpecific | ( | const OSB_DB::Session & | session | ) | [virtual] |
Read billcycle specific parameters from the database.
Reads the billcycle specific parameters for a concrete billcycle, if any.
session | Database session to use. |
Implements OSB_LIB::Billcycle.
int OSB_LIB::IntervalBillcycle::startDay | ( | ) | const [inline] |
static char OSB_LIB::IntervalBillcycle::toChar | ( | Unit | ut | ) | [static] |
Unit OSB_LIB::IntervalBillcycle::unit | ( | ) | const [inline] |
static Unit OSB_LIB::IntervalBillcycle::unit | ( | char | ut | ) | [static] |
friend class OSB_DB::BillcycleGw [friend] |
int OSB_LIB::IntervalBillcycle::interval_ [private] |
Billing period length in units.
Definition at line 310 of file billcycle.h.
Referenced by interval().
int OSB_LIB::IntervalBillcycle::minPeriod_ [private] |
Minimum billing period to use in connection with a start day.
Definition at line 314 of file billcycle.h.
Referenced by minPeriod().
int OSB_LIB::IntervalBillcycle::startDay_ [private] |
Preferred start day for monthly billcycles.
Definition at line 312 of file billcycle.h.
Referenced by startDay().
Unit OSB_LIB::IntervalBillcycle::unit_ [private] |
Unit of measurement: m(months) or d(days).
Definition at line 308 of file billcycle.h.
Referenced by unit().