@vendasta/billing 14.59.1 → 15.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/esm2022/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/billable-item.mjs +1 -13
- package/esm2022/lib/_internal/objects/invoice.mjs +4 -1
- package/fesm2022/vendasta-billing.mjs +3 -12
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/interfaces/billable-item.interface.d.ts +0 -2
- package/lib/_internal/interfaces/invoice.interface.d.ts +1 -0
- package/lib/_internal/objects/billable-item.d.ts +0 -2
- package/lib/_internal/objects/invoice.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2535,12 +2535,6 @@ class BillableItem {
|
|
|
2535
2535
|
if (proto.billingCycleAnchor) {
|
|
2536
2536
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
2537
2537
|
}
|
|
2538
|
-
if (proto.nextServicePeriodStart) {
|
|
2539
|
-
m.nextServicePeriodStart = new Date(proto.nextServicePeriodStart);
|
|
2540
|
-
}
|
|
2541
|
-
if (proto.nextServicePeriodEnd) {
|
|
2542
|
-
m.nextServicePeriodEnd = new Date(proto.nextServicePeriodEnd);
|
|
2543
|
-
}
|
|
2544
2538
|
if (proto.nextInvoiceDate) {
|
|
2545
2539
|
m.nextInvoiceDate = new Date(proto.nextInvoiceDate);
|
|
2546
2540
|
}
|
|
@@ -2635,12 +2629,6 @@ class BillableItem {
|
|
|
2635
2629
|
if (typeof this.billingCycleAnchor !== 'undefined' && this.billingCycleAnchor !== null) {
|
|
2636
2630
|
toReturn['billingCycleAnchor'] = 'toApiJson' in this.billingCycleAnchor ? this.billingCycleAnchor.toApiJson() : this.billingCycleAnchor;
|
|
2637
2631
|
}
|
|
2638
|
-
if (typeof this.nextServicePeriodStart !== 'undefined' && this.nextServicePeriodStart !== null) {
|
|
2639
|
-
toReturn['nextServicePeriodStart'] = 'toApiJson' in this.nextServicePeriodStart ? this.nextServicePeriodStart.toApiJson() : this.nextServicePeriodStart;
|
|
2640
|
-
}
|
|
2641
|
-
if (typeof this.nextServicePeriodEnd !== 'undefined' && this.nextServicePeriodEnd !== null) {
|
|
2642
|
-
toReturn['nextServicePeriodEnd'] = 'toApiJson' in this.nextServicePeriodEnd ? this.nextServicePeriodEnd.toApiJson() : this.nextServicePeriodEnd;
|
|
2643
|
-
}
|
|
2644
2632
|
if (typeof this.nextInvoiceDate !== 'undefined' && this.nextInvoiceDate !== null) {
|
|
2645
2633
|
toReturn['nextInvoiceDate'] = 'toApiJson' in this.nextInvoiceDate ? this.nextInvoiceDate.toApiJson() : this.nextInvoiceDate;
|
|
2646
2634
|
}
|
|
@@ -7563,6 +7551,9 @@ class ListInvoicesRequestFilters {
|
|
|
7563
7551
|
if (typeof this.lastPaymentStatuses !== 'undefined') {
|
|
7564
7552
|
toReturn['lastPaymentStatuses'] = this.lastPaymentStatuses;
|
|
7565
7553
|
}
|
|
7554
|
+
if (typeof this.orderId !== 'undefined') {
|
|
7555
|
+
toReturn['orderId'] = this.orderId;
|
|
7556
|
+
}
|
|
7566
7557
|
return toReturn;
|
|
7567
7558
|
}
|
|
7568
7559
|
}
|