turf-common 1.4.2-beta.3 → 1.4.2-beta.6
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.
|
@@ -27,6 +27,21 @@ var PitchSlabModelV2 = /** @class */ (function () {
|
|
|
27
27
|
this.to = data.to;
|
|
28
28
|
// this.discount = data.discount;
|
|
29
29
|
}
|
|
30
|
+
// public getDiscount(): number {
|
|
31
|
+
// if (this.discount.indexOf("P") > -1) {
|
|
32
|
+
// return parseFloat(this.discount.replace("P", ""));
|
|
33
|
+
// }
|
|
34
|
+
// return 0;
|
|
35
|
+
// }
|
|
36
|
+
// public getBasePrice(basePrice: number): number {
|
|
37
|
+
// return basePrice * (1 - this.getDiscount() / 100);
|
|
38
|
+
// }
|
|
39
|
+
PitchSlabModelV2.prototype.getRange = function () {
|
|
40
|
+
if (this.to >= 99) {
|
|
41
|
+
return "".concat(this.from - 1, "+");
|
|
42
|
+
}
|
|
43
|
+
return "".concat(this.from, "-").concat(this.to);
|
|
44
|
+
};
|
|
30
45
|
return PitchSlabModelV2;
|
|
31
46
|
}());
|
|
32
47
|
exports.PitchSlabModelV2 = PitchSlabModelV2;
|
|
@@ -44,6 +44,7 @@ export declare class SubscribedPricingPlanModelV2 extends PricingPlanModelV2 {
|
|
|
44
44
|
hourInMonth: number;
|
|
45
45
|
months: number | undefined;
|
|
46
46
|
constructor(data: IPricingPlanModelV2, pitchCount: number, billingCycle: string);
|
|
47
|
+
getPlanBasePriceFormatted(): string;
|
|
47
48
|
getCodeByPitchCountCycle(): string;
|
|
48
49
|
getCodeByCycle(): string[];
|
|
49
50
|
getDiscount(): string;
|
|
@@ -150,6 +150,13 @@ var SubscribedPricingPlanModelV2 = /** @class */ (function (_super) {
|
|
|
150
150
|
return _this;
|
|
151
151
|
// this.selectedPitchSlabBasePrice = this.base_price;
|
|
152
152
|
}
|
|
153
|
+
SubscribedPricingPlanModelV2.prototype.getPlanBasePriceFormatted = function () {
|
|
154
|
+
// Format -> #.##
|
|
155
|
+
return parseFloat((this.getBasePriceV2()).toFixed(2)).toLocaleString('en-IN', {
|
|
156
|
+
minimumFractionDigits: 2,
|
|
157
|
+
maximumFractionDigits: 2,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
153
160
|
SubscribedPricingPlanModelV2.prototype.getCodeByPitchCountCycle = function () {
|
|
154
161
|
var _this = this;
|
|
155
162
|
var codes = this.billing_cost_code.split(",");
|