turf-common 1.4.1-beta.5 → 1.4.1-beta.7

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.
@@ -41,4 +41,5 @@ export interface GetPricingPlanByDateResponseV2 {
41
41
  key: string;
42
42
  };
43
43
  };
44
+ billing_cost_code: string;
44
45
  }
@@ -170,7 +170,7 @@ var PricingPlanEntityModelV2 = /** @class */ (function () {
170
170
  }, {});
171
171
  };
172
172
  PricingPlanEntityModelV2.prototype.toObject = function () {
173
- var _a;
173
+ var _a, _b;
174
174
  var responseObj = {
175
175
  id: this.id,
176
176
  effective_from_date: 0,
@@ -179,8 +179,9 @@ var PricingPlanEntityModelV2 = /** @class */ (function () {
179
179
  unit: "per_hour_per_pitch",
180
180
  pitch_slab: {},
181
181
  billing_cycle: {},
182
+ billing_cost_code: (_a = this.billingCostCode) !== null && _a !== void 0 ? _a : ''
182
183
  };
183
- var billingCycle = (_a = this.subscriptionCycle) === null || _a === void 0 ? void 0 : _a.split(",");
184
+ var billingCycle = (_b = this.subscriptionCycle) === null || _b === void 0 ? void 0 : _b.split(",");
184
185
  billingCycle === null || billingCycle === void 0 ? void 0 : billingCycle.forEach(function (billing, index) {
185
186
  var billingArray = billing.split("_");
186
187
  responseObj.billing_cycle[index] = {
@@ -99,6 +99,7 @@ var PricingPlanModelV2 = /** @class */ (function () {
99
99
  this.unit = data.unit;
100
100
  this.pitch_slab = {};
101
101
  this.billing_cycle = {};
102
+ this.billing_cost_code = data.billing_cost_code;
102
103
  Object.keys(data.pitch_slab).forEach(function (key) {
103
104
  _this.pitch_slab[key] = new pitch_slab_model_1.PitchSlabModelV2(data.pitch_slab[key]);
104
105
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.4.1-beta.5",
3
+ "version": "1.4.1-beta.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",