turf-common 1.4.1-beta.5 → 1.4.1-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.
|
@@ -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 = (
|
|
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] = {
|