turf-common 1.1.1-beta.47 → 1.1.1-beta.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BillingCycleModel = void 0;
|
|
4
|
+
var date_util_1 = require("../utils/date-util");
|
|
4
5
|
var BillingCycleModel = /** @class */ (function () {
|
|
5
6
|
function BillingCycleModel(data) {
|
|
6
7
|
this.from = data.from;
|
|
@@ -15,6 +16,12 @@ var BillingCycleModel = /** @class */ (function () {
|
|
|
15
16
|
}
|
|
16
17
|
return 0;
|
|
17
18
|
};
|
|
19
|
+
BillingCycleModel.prototype.getBillingCycle = function (date) {
|
|
20
|
+
// const dateUtilService = AppInjector.get(DateUtilService);
|
|
21
|
+
var startDate = date_util_1.dateUtilService.addNDaysToDate(date, 1);
|
|
22
|
+
var endDate = date_util_1.dateUtilService.addNDaysToDate(startDate, this.to * 30);
|
|
23
|
+
return [startDate, endDate];
|
|
24
|
+
};
|
|
18
25
|
return BillingCycleModel;
|
|
19
26
|
}());
|
|
20
27
|
exports.BillingCycleModel = BillingCycleModel;
|