turf-common 1.4.2-beta.3 → 1.4.2-beta.5

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.
@@ -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(",");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.4.2-beta.3",
3
+ "version": "1.4.2-beta.5",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",