@vendasta/billing 12.3.0 → 12.4.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/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2020/lib/_internal/invoice.api.service.mjs +7 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/invoice.mjs +53 -1
- package/fesm2015/vendasta-billing.mjs +58 -1
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +58 -1
- package/fesm2020/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/invoice.interface.d.ts +8 -0
- package/lib/_internal/invoice.api.service.d.ts +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/invoice.d.ts +14 -0
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export { CreateDiscountRequestInterface, DiscountInterface, ExpireDiscountReques
|
|
|
15
15
|
export { AppliedTaxRateInterface, } from './applied-tax-rate.interface';
|
|
16
16
|
export { ArchiveTaxRequestInterface, CalculateLineItemTaxesRequestInterface, CalculateLineItemTaxesResponseInterface, CalculateTaxRequestInterface, CalculateTaxResponseInterface, CreateTaxRequestInterface, ListTaxRequestFiltersInterface, GetMultiTaxRequestInterface, GetMultiTaxResponseInterface, CalculateLineItemTaxesRequestLineItemInterface, CalculateLineItemTaxesResponseLineItemTaxesInterface, ListTaxRequestInterface, ListTaxResponseInterface, TaxRateInterface, UpdateTaxRequestInterface, } from './tax-rate.interface';
|
|
17
17
|
export { AppliedBundleInterface, AppliedBundleItemInterface, } from './applied-bundle.interface';
|
|
18
|
-
export { AddBundleRequestInterface, AddBundleResponseInterface, AddLineItemRequestInterface, AddLineItemResponseInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreateInvoiceResponseInterface, CreatePaymentLinkRequestInterface, CreatePaymentLinkResponseInterface, InvoiceCustomerAddressInterface, ListInvoicesRequestFiltersDateFilterInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DeleteLineItemResponseInterface, DuplicateInvoiceRequestInterface, DuplicateInvoiceResponseInterface, ListInvoicesRequestFiltersInterface, GetInvoiceRequestInterface, GetInvoiceResponseInterface, InvoiceInterface, InvoiceItemInterface, ListInvoicesRequestInterface, ListInvoicesResponseInterface, PayInvoiceRequestInterface, PaymentLinkItemInterface, RemoveBundleRequestInterface, RemoveBundleResponseInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateBundleResponseInterface, UpdateDefaultTaxRatesRequestInterface, UpdateDefaultTaxRatesResponseInterface, UpdateInvoiceRequestInterface, UpdateInvoiceResponseInterface, UpdateLineItemRequestInterface, UpdateLineItemResponseInterface, VoidInvoiceRequestInterface, } from './invoice.interface';
|
|
18
|
+
export { AddBundleRequestInterface, AddBundleResponseInterface, AddLineItemRequestInterface, AddLineItemResponseInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreateInvoiceResponseInterface, CreatePaymentLinkRequestInterface, CreatePaymentLinkResponseInterface, InvoiceCustomerAddressInterface, ListInvoicesRequestFiltersDateFilterInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DeleteLineItemResponseInterface, DuplicateInvoiceRequestInterface, DuplicateInvoiceResponseInterface, ListInvoicesRequestFiltersInterface, GetInvoiceRequestInterface, GetInvoiceResponseInterface, GetUpcomingInvoicePreviewRequestInterface, GetUpcomingInvoicePreviewResponseInterface, InvoiceInterface, InvoiceItemInterface, ListInvoicesRequestInterface, ListInvoicesResponseInterface, PayInvoiceRequestInterface, PaymentLinkItemInterface, RemoveBundleRequestInterface, RemoveBundleResponseInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateBundleResponseInterface, UpdateDefaultTaxRatesRequestInterface, UpdateDefaultTaxRatesResponseInterface, UpdateInvoiceRequestInterface, UpdateInvoiceResponseInterface, UpdateLineItemRequestInterface, UpdateLineItemResponseInterface, VoidInvoiceRequestInterface, } from './invoice.interface';
|
|
19
19
|
export { AccountBalanceInterface, BalanceInterface, BalanceAmountInterface, } from './balance.interface';
|
|
20
20
|
export { DateRangeInterface, } from './date-range.interface';
|
|
21
21
|
export { ListPayoutsRequestFiltersInterface, ListPayoutsRequestInterface, ListPayoutsResponseInterface, PayoutInterface, ReconcilePayoutRequestInterface, ReconcilePayoutResponseInterface, RetailPayoutInterface, } from './payout.interface';
|
|
@@ -98,6 +98,14 @@ export interface GetInvoiceRequestInterface {
|
|
|
98
98
|
export interface GetInvoiceResponseInterface {
|
|
99
99
|
invoice?: InvoiceInterface;
|
|
100
100
|
}
|
|
101
|
+
export interface GetUpcomingInvoicePreviewRequestInterface {
|
|
102
|
+
merchantId?: string;
|
|
103
|
+
customerId?: string;
|
|
104
|
+
invoiceDate?: Date;
|
|
105
|
+
}
|
|
106
|
+
export interface GetUpcomingInvoicePreviewResponseInterface {
|
|
107
|
+
invoice?: InvoiceInterface;
|
|
108
|
+
}
|
|
101
109
|
export interface InvoiceInterface {
|
|
102
110
|
merchantId?: string;
|
|
103
111
|
id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, GetInvoiceRequest, GetInvoiceResponse, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, RemoveBundleRequest, RemoveBundleResponse, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest } from './objects/';
|
|
2
|
-
import { AddBundleRequestInterface, AddLineItemRequestInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreatePaymentLinkRequestInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DuplicateInvoiceRequestInterface, GetInvoiceRequestInterface, ListInvoicesRequestInterface, PayInvoiceRequestInterface, RemoveBundleRequestInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateDefaultTaxRatesRequestInterface, UpdateInvoiceRequestInterface, UpdateLineItemRequestInterface, VoidInvoiceRequestInterface } from './interfaces/';
|
|
1
|
+
import { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, GetInvoiceRequest, GetInvoiceResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, RemoveBundleRequest, RemoveBundleResponse, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest } from './objects/';
|
|
2
|
+
import { AddBundleRequestInterface, AddLineItemRequestInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreatePaymentLinkRequestInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DuplicateInvoiceRequestInterface, GetInvoiceRequestInterface, GetUpcomingInvoicePreviewRequestInterface, ListInvoicesRequestInterface, PayInvoiceRequestInterface, RemoveBundleRequestInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateDefaultTaxRatesRequestInterface, UpdateInvoiceRequestInterface, UpdateLineItemRequestInterface, VoidInvoiceRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { HostService } from '../_generated/host.service';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -28,6 +28,7 @@ export declare class InvoiceApiService {
|
|
|
28
28
|
duplicate(r: DuplicateInvoiceRequest | DuplicateInvoiceRequestInterface): Observable<DuplicateInvoiceResponse>;
|
|
29
29
|
updateBundle(r: UpdateBundleRequest | UpdateBundleRequestInterface): Observable<UpdateBundleResponse>;
|
|
30
30
|
createPaymentLink(r: CreatePaymentLinkRequest | CreatePaymentLinkRequestInterface): Observable<CreatePaymentLinkResponse>;
|
|
31
|
+
getUpcomingInvoicePreview(r: GetUpcomingInvoicePreviewRequest | GetUpcomingInvoicePreviewRequestInterface): Observable<GetUpcomingInvoicePreviewResponse>;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceApiService, never>;
|
|
32
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceApiService>;
|
|
33
34
|
}
|
|
@@ -15,7 +15,7 @@ export { CreateDiscountRequest, Discount, ExpireDiscountRequest, ListDiscountsRe
|
|
|
15
15
|
export { AppliedTaxRate, } from './applied-tax-rate';
|
|
16
16
|
export { ArchiveTaxRequest, CalculateLineItemTaxesRequest, CalculateLineItemTaxesResponse, CalculateTaxRequest, CalculateTaxResponse, CreateTaxRequest, ListTaxRequestFilters, GetMultiTaxRequest, GetMultiTaxResponse, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponseLineItemTaxes, ListTaxRequest, ListTaxResponse, TaxRate, UpdateTaxRequest, } from './tax-rate';
|
|
17
17
|
export { AppliedBundle, AppliedBundleItem, } from './applied-bundle';
|
|
18
|
-
export { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, InvoiceCustomerAddress, ListInvoicesRequestFiltersDateFilter, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ListInvoicesRequestFilters, GetInvoiceRequest, GetInvoiceResponse, Invoice, InvoiceItem, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, PaymentLinkItem, RemoveBundleRequest, RemoveBundleResponse, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest, } from './invoice';
|
|
18
|
+
export { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, InvoiceCustomerAddress, ListInvoicesRequestFiltersDateFilter, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ListInvoicesRequestFilters, GetInvoiceRequest, GetInvoiceResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, Invoice, InvoiceItem, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, PaymentLinkItem, RemoveBundleRequest, RemoveBundleResponse, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest, } from './invoice';
|
|
19
19
|
export { AccountBalance, Balance, BalanceAmount, } from './balance';
|
|
20
20
|
export { DateRange, } from './date-range';
|
|
21
21
|
export { ListPayoutsRequestFilters, ListPayoutsRequest, ListPayoutsResponse, Payout, ReconcilePayoutRequest, ReconcilePayoutResponse, RetailPayout, } from './payout';
|
|
@@ -157,6 +157,20 @@ export declare class GetInvoiceResponse implements i.GetInvoiceResponseInterface
|
|
|
157
157
|
constructor(kwargs?: i.GetInvoiceResponseInterface);
|
|
158
158
|
toApiJson(): object;
|
|
159
159
|
}
|
|
160
|
+
export declare class GetUpcomingInvoicePreviewRequest implements i.GetUpcomingInvoicePreviewRequestInterface {
|
|
161
|
+
merchantId: string;
|
|
162
|
+
customerId: string;
|
|
163
|
+
invoiceDate: Date;
|
|
164
|
+
static fromProto(proto: any): GetUpcomingInvoicePreviewRequest;
|
|
165
|
+
constructor(kwargs?: i.GetUpcomingInvoicePreviewRequestInterface);
|
|
166
|
+
toApiJson(): object;
|
|
167
|
+
}
|
|
168
|
+
export declare class GetUpcomingInvoicePreviewResponse implements i.GetUpcomingInvoicePreviewResponseInterface {
|
|
169
|
+
invoice: Invoice;
|
|
170
|
+
static fromProto(proto: any): GetUpcomingInvoicePreviewResponse;
|
|
171
|
+
constructor(kwargs?: i.GetUpcomingInvoicePreviewResponseInterface);
|
|
172
|
+
toApiJson(): object;
|
|
173
|
+
}
|
|
160
174
|
export declare class Invoice implements i.InvoiceInterface {
|
|
161
175
|
merchantId: string;
|
|
162
176
|
id: string;
|