@vendasta/billing 8.0.0 → 8.1.0
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.
- package/bundles/vendasta-billing.umd.js +8 -1
- package/bundles/vendasta-billing.umd.js.map +1 -1
- package/bundles/vendasta-billing.umd.min.js +2 -2
- package/bundles/vendasta-billing.umd.min.js.map +1 -1
- package/esm2015/lib/_internal/interfaces/billable-item.interface.js +1 -1
- package/esm2015/lib/_internal/objects/billable-item.js +7 -1
- package/esm2015/lib/billable-item/billable-item.js +3 -2
- package/fesm2015/vendasta-billing.js +8 -1
- package/fesm2015/vendasta-billing.js.map +1 -1
- package/lib/_internal/interfaces/billable-item.interface.d.ts +1 -0
- package/lib/_internal/objects/billable-item.d.ts +1 -0
- package/lib/billable-item/billable-item.d.ts +1 -0
- package/package.json +1 -1
|
@@ -629,6 +629,9 @@
|
|
|
629
629
|
if (proto.nextRetailRenewal) {
|
|
630
630
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
631
631
|
}
|
|
632
|
+
if (proto.retailUnitPrice) {
|
|
633
|
+
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
634
|
+
}
|
|
632
635
|
return m;
|
|
633
636
|
};
|
|
634
637
|
BillableItem.prototype.toApiJson = function () {
|
|
@@ -681,6 +684,9 @@
|
|
|
681
684
|
if (typeof this.nextRetailRenewal !== 'undefined' && this.nextRetailRenewal !== null) {
|
|
682
685
|
toReturn['nextRetailRenewal'] = 'toApiJson' in this.nextRetailRenewal ? this.nextRetailRenewal.toApiJson() : this.nextRetailRenewal;
|
|
683
686
|
}
|
|
687
|
+
if (typeof this.retailUnitPrice !== 'undefined') {
|
|
688
|
+
toReturn['retailUnitPrice'] = this.retailUnitPrice;
|
|
689
|
+
}
|
|
684
690
|
return toReturn;
|
|
685
691
|
};
|
|
686
692
|
return BillableItem;
|
|
@@ -15521,7 +15527,8 @@
|
|
|
15521
15527
|
nextRenewal: apiItem.nextRenewal.valueOf() !== zeroDate ? new Date(apiItem.nextRenewal) : null,
|
|
15522
15528
|
nextRetailRenewal: apiItem.nextRetailRenewal.valueOf() !== zeroDate ? new Date(apiItem.nextRetailRenewal) : null,
|
|
15523
15529
|
customerAddress: customerAddressFromApi(apiItem.customerAddress),
|
|
15524
|
-
customUnitPrice: apiItem.customUnitPrice || 0
|
|
15530
|
+
customUnitPrice: apiItem.customUnitPrice || 0,
|
|
15531
|
+
retailUnitPrice: apiItem.retailUnitPrice || 0
|
|
15525
15532
|
};
|
|
15526
15533
|
}
|
|
15527
15534
|
function listSubscriptionsFiltersToHTTPJson(filters) {
|