@vendasta/billing 11.1.0 → 11.3.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/_generated/host.service.mjs +3 -3
- package/esm2020/lib/_internal/bank-reconciliation.api.service.mjs +3 -3
- package/esm2020/lib/_internal/billing.api.service.mjs +3 -3
- package/esm2020/lib/_internal/bundle.api.service.mjs +3 -3
- package/esm2020/lib/_internal/contract-document.api.service.mjs +3 -3
- package/esm2020/lib/_internal/contract.api.service.mjs +3 -3
- package/esm2020/lib/_internal/credit.api.service.mjs +3 -3
- package/esm2020/lib/_internal/discount.api.service.mjs +3 -3
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/purchase.interface.mjs +1 -1
- package/esm2020/lib/_internal/invoice-template.api.service.mjs +3 -3
- package/esm2020/lib/_internal/invoice.api.service.mjs +3 -3
- package/esm2020/lib/_internal/merchant.api.service.mjs +3 -3
- package/esm2020/lib/_internal/objects/annotations.mjs +6 -6
- package/esm2020/lib/_internal/objects/api.mjs +174 -174
- package/esm2020/lib/_internal/objects/applied-bundle.mjs +13 -13
- package/esm2020/lib/_internal/objects/applied-discount.mjs +7 -7
- package/esm2020/lib/_internal/objects/applied-tax-rate.mjs +7 -7
- package/esm2020/lib/_internal/objects/balance.mjs +19 -19
- package/esm2020/lib/_internal/objects/billable-item.mjs +120 -120
- package/esm2020/lib/_internal/objects/bundle.mjs +71 -71
- package/esm2020/lib/_internal/objects/commitment.mjs +7 -7
- package/esm2020/lib/_internal/objects/common.mjs +12 -12
- package/esm2020/lib/_internal/objects/contract-document.mjs +29 -29
- package/esm2020/lib/_internal/objects/contract.mjs +87 -87
- package/esm2020/lib/_internal/objects/credit.mjs +24 -24
- package/esm2020/lib/_internal/objects/customer-summary.mjs +19 -19
- package/esm2020/lib/_internal/objects/date-range.mjs +7 -7
- package/esm2020/lib/_internal/objects/discount.mjs +42 -42
- package/esm2020/lib/_internal/objects/external-account.mjs +32 -32
- package/esm2020/lib/_internal/objects/fee.mjs +13 -13
- package/esm2020/lib/_internal/objects/field-mask.mjs +6 -6
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/invoice-template.mjs +126 -126
- package/esm2020/lib/_internal/objects/invoice.mjs +206 -206
- package/esm2020/lib/_internal/objects/merchant-report.mjs +19 -19
- package/esm2020/lib/_internal/objects/merchant.mjs +201 -201
- package/esm2020/lib/_internal/objects/metered-component.mjs +18 -18
- package/esm2020/lib/_internal/objects/payment-card.mjs +38 -38
- package/esm2020/lib/_internal/objects/payment.mjs +273 -273
- package/esm2020/lib/_internal/objects/payout.mjs +41 -41
- package/esm2020/lib/_internal/objects/pricing-plan-product.mjs +92 -92
- package/esm2020/lib/_internal/objects/pricing-plan.mjs +53 -53
- package/esm2020/lib/_internal/objects/product-pricing.mjs +19 -19
- package/esm2020/lib/_internal/objects/product-summary.mjs +85 -85
- package/esm2020/lib/_internal/objects/product.mjs +59 -59
- package/esm2020/lib/_internal/objects/purchase.mjs +160 -58
- package/esm2020/lib/_internal/objects/recurring-invoice.mjs +59 -59
- package/esm2020/lib/_internal/objects/refund.mjs +25 -25
- package/esm2020/lib/_internal/objects/report-run.mjs +18 -18
- package/esm2020/lib/_internal/objects/retail-customer-configuration.mjs +24 -24
- package/esm2020/lib/_internal/objects/sales-credit-note.mjs +31 -31
- package/esm2020/lib/_internal/objects/sales-invoice.mjs +51 -51
- package/esm2020/lib/_internal/objects/subscribe-validation.mjs +7 -7
- package/esm2020/lib/_internal/objects/subscription.mjs +88 -88
- package/esm2020/lib/_internal/objects/tax-rate.mjs +62 -62
- package/esm2020/lib/_internal/payment-method.api.service.mjs +3 -3
- package/esm2020/lib/_internal/payment.api.service.mjs +3 -3
- package/esm2020/lib/_internal/pricing.api.service.mjs +3 -3
- package/esm2020/lib/_internal/product-summary.api.service.mjs +3 -3
- package/esm2020/lib/_internal/product.api.service.mjs +3 -3
- package/esm2020/lib/_internal/purchase.api.service.mjs +17 -5
- package/esm2020/lib/_internal/recurring-invoice.api.service.mjs +3 -3
- package/esm2020/lib/_internal/refund.api.service.mjs +3 -3
- package/esm2020/lib/_internal/retail-customer-configuration.api.service.mjs +3 -3
- package/esm2020/lib/_internal/sales-credit-note.api.service.mjs +3 -3
- package/esm2020/lib/_internal/sales-invoice.api.service.mjs +3 -3
- package/esm2020/lib/_internal/tax.api.service.mjs +3 -3
- package/esm2020/lib/_internal/vendor.api.service.mjs +3 -3
- package/fesm2015/vendasta-billing.mjs +2511 -2397
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +2511 -2397
- package/fesm2020/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/purchase.interface.d.ts +19 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/purchase.d.ts +28 -0
- package/lib/_internal/purchase.api.service.d.ts +5 -2
- package/package.json +3 -3
|
@@ -26,7 +26,7 @@ export { ComponentPricingInterface, CreatePricingPlanRequestInterface, CreatePri
|
|
|
26
26
|
export { CreatePricingPlanProductRequestInterface, CreatePricingPlanProductResponseInterface, DeletePricingPlanProductRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanProductResponseInterface, GetPricingPlanProductRequestInterface, GetPricingPlanProductResponseInterface, ListPricingPlanProductsRequestListPricingPlanProductsFiltersInterface, ListPricingPlanProductsRequestInterface, ListPricingPlanProductsResponseInterface, PricingPlanProductPricingEntryInterface, CreatePricingPlanProductRequestPricingEntryInterface, UpdatePricingPlanProductRequestPricingEntryInterface, PricingPlanProductInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanProductResponseInterface, UpsertWholesalePricingRequestInterface, } from './pricing-plan-product.interface';
|
|
27
27
|
export { CreateProductRequestInterface, DeleteProductRequestInterface, GetMultiProductRequestInterface, GetMultiProductResponseInterface, ListProductsRequestListProductsFiltersInterface, ListProductsRequestInterface, ListProductsResponseInterface, ProductInterface, GetMultiProductResponseProductsEntryInterface, UpdateProductRequestInterface, } from './product.interface';
|
|
28
28
|
export { ProductPricesInterface, ProductPricingInterface, WholesaleCostItemRequestInterface, } from './product-pricing.interface';
|
|
29
|
-
export { AppliedCreditInterface, ListPurchaseRequestListPurchaseBillingStrategyFilterInterface, ListPurchaseRequestListPurchaseFiltersInterface, ListPurchaseItemsRequestListPurchaseItemsFiltersInterface, ListPurchaseItemsRequestInterface, ListPurchaseItemsResponseInterface, ListPurchaseRequestInterface, ListPurchaseResponseInterface, PurchaseInterface, PurchaseItemInterface, RetryPurchaseRequestInterface, VoidPurchaseRequestInterface, } from './purchase.interface';
|
|
29
|
+
export { AppliedCreditInterface, ListPurchaseRequestListPurchaseBillingStrategyFilterInterface, ListPurchaseRequestListPurchaseFiltersInterface, ListPurchaseItemsRequestListPurchaseItemsFiltersInterface, ListPurchaseItemsRequestInterface, ListPurchaseItemsResponseInterface, ListPurchaseRequestInterface, ListPurchaseResponseInterface, PauseDunningRequestInterface, PurchaseInterface, PurchaseItemInterface, ResumeDunningRequestInterface, RetryPurchaseRequestInterface, StopDunningRequestInterface, VoidPurchaseRequestInterface, } from './purchase.interface';
|
|
30
30
|
export { CreateRefundRequestInterface, ListRefundsRequestInterface, ListRefundsResponseInterface, RefundInterface, } from './refund.interface';
|
|
31
31
|
export { CreateSalesCreditNoteRequestInterface, ListSalesCreditNoteRequestListSalesCreditNoteFiltersInterface, ListSalesCreditNoteRequestInterface, ListSalesCreditNoteResponseInterface, SalesCreditNoteInterface, } from './sales-credit-note.interface';
|
|
32
32
|
export { GetSalesInvoiceRequestInterface, GetSalesInvoiceResponseInterface, ListSalesInvoiceRequestListSalesInvoiceFiltersInterface, ListSalesInvoiceRequestInterface, ListSalesInvoiceResponseInterface, PostSalesInvoiceRequestInterface, SalesInvoiceInterface, SendSalesInvoiceEmailRequestInterface, SendSalesInvoiceReceiptEmailRequestInterface, } from './sales-invoice.interface';
|
|
@@ -21,6 +21,8 @@ export interface ListPurchaseRequestListPurchaseFiltersInterface {
|
|
|
21
21
|
minPrice?: number;
|
|
22
22
|
status?: e.PurchaseStatus;
|
|
23
23
|
includeVoided?: boolean;
|
|
24
|
+
dunningPauseStart?: Date;
|
|
25
|
+
dunningPauseEnd?: Date;
|
|
24
26
|
}
|
|
25
27
|
export interface ListPurchaseItemsRequestListPurchaseItemsFiltersInterface {
|
|
26
28
|
merchantId?: string;
|
|
@@ -45,6 +47,12 @@ export interface ListPurchaseResponseInterface {
|
|
|
45
47
|
purchases?: PurchaseInterface[];
|
|
46
48
|
pagingMetadata?: PagedResponseMetadataInterface;
|
|
47
49
|
}
|
|
50
|
+
export interface PauseDunningRequestInterface {
|
|
51
|
+
purchaseId?: string;
|
|
52
|
+
merchantId?: string;
|
|
53
|
+
day?: string;
|
|
54
|
+
pauseDunningUntil?: Date;
|
|
55
|
+
}
|
|
48
56
|
export interface PurchaseInterface {
|
|
49
57
|
merchantId?: string;
|
|
50
58
|
timestamp?: Date;
|
|
@@ -63,6 +71,7 @@ export interface PurchaseInterface {
|
|
|
63
71
|
appliedCredits?: AppliedCreditInterface[];
|
|
64
72
|
taxAmount?: number;
|
|
65
73
|
appliedTaxRates?: AppliedTaxRateInterface[];
|
|
74
|
+
pauseDunningUntil?: Date;
|
|
66
75
|
}
|
|
67
76
|
export interface PurchaseItemInterface {
|
|
68
77
|
sku?: string;
|
|
@@ -82,12 +91,22 @@ export interface PurchaseItemInterface {
|
|
|
82
91
|
feeAmount?: number;
|
|
83
92
|
appliedFees?: AppliedFeeInterface[];
|
|
84
93
|
}
|
|
94
|
+
export interface ResumeDunningRequestInterface {
|
|
95
|
+
purchaseId?: string;
|
|
96
|
+
merchantId?: string;
|
|
97
|
+
day?: string;
|
|
98
|
+
}
|
|
85
99
|
export interface RetryPurchaseRequestInterface {
|
|
86
100
|
purchaseId?: string;
|
|
87
101
|
merchantId?: string;
|
|
88
102
|
day?: string;
|
|
89
103
|
shouldEnterDunning?: boolean;
|
|
90
104
|
}
|
|
105
|
+
export interface StopDunningRequestInterface {
|
|
106
|
+
purchaseId?: string;
|
|
107
|
+
merchantId?: string;
|
|
108
|
+
day?: string;
|
|
109
|
+
}
|
|
91
110
|
export interface VoidPurchaseRequestInterface {
|
|
92
111
|
purchaseId?: string;
|
|
93
112
|
merchantId?: string;
|
|
@@ -26,7 +26,7 @@ export { ComponentPricing, CreatePricingPlanRequest, CreatePricingPlanResponse,
|
|
|
26
26
|
export { CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, DeletePricingPlanProductRequest, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, PricingPlanProductPricingEntry, CreatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductRequestPricingEntry, PricingPlanProduct, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpsertWholesalePricingRequest, } from './pricing-plan-product';
|
|
27
27
|
export { CreateProductRequest, DeleteProductRequest, GetMultiProductRequest, GetMultiProductResponse, ListProductsRequestListProductsFilters, ListProductsRequest, ListProductsResponse, Product, GetMultiProductResponseProductsEntry, UpdateProductRequest, } from './product';
|
|
28
28
|
export { ProductPrices, ProductPricing, WholesaleCostItemRequest, } from './product-pricing';
|
|
29
|
-
export { AppliedCredit, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsRequest, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseResponse, Purchase, PurchaseItem, RetryPurchaseRequest, VoidPurchaseRequest, } from './purchase';
|
|
29
|
+
export { AppliedCredit, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsRequest, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseResponse, PauseDunningRequest, Purchase, PurchaseItem, ResumeDunningRequest, RetryPurchaseRequest, StopDunningRequest, VoidPurchaseRequest, } from './purchase';
|
|
30
30
|
export { CreateRefundRequest, ListRefundsRequest, ListRefundsResponse, Refund, } from './refund';
|
|
31
31
|
export { CreateSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteRequest, ListSalesCreditNoteResponse, SalesCreditNote, } from './sales-credit-note';
|
|
32
32
|
export { GetSalesInvoiceRequest, GetSalesInvoiceResponse, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceRequest, ListSalesInvoiceResponse, PostSalesInvoiceRequest, SalesInvoice, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, } from './sales-invoice';
|
|
@@ -29,6 +29,8 @@ export declare class ListPurchaseRequestListPurchaseFilters implements i.ListPur
|
|
|
29
29
|
minPrice: number;
|
|
30
30
|
status: e.PurchaseStatus;
|
|
31
31
|
includeVoided: boolean;
|
|
32
|
+
dunningPauseStart: Date;
|
|
33
|
+
dunningPauseEnd: Date;
|
|
32
34
|
static fromProto(proto: any): ListPurchaseRequestListPurchaseFilters;
|
|
33
35
|
constructor(kwargs?: i.ListPurchaseRequestListPurchaseFiltersInterface);
|
|
34
36
|
toApiJson(): object;
|
|
@@ -71,6 +73,15 @@ export declare class ListPurchaseResponse implements i.ListPurchaseResponseInter
|
|
|
71
73
|
constructor(kwargs?: i.ListPurchaseResponseInterface);
|
|
72
74
|
toApiJson(): object;
|
|
73
75
|
}
|
|
76
|
+
export declare class PauseDunningRequest implements i.PauseDunningRequestInterface {
|
|
77
|
+
purchaseId: string;
|
|
78
|
+
merchantId: string;
|
|
79
|
+
day: string;
|
|
80
|
+
pauseDunningUntil: Date;
|
|
81
|
+
static fromProto(proto: any): PauseDunningRequest;
|
|
82
|
+
constructor(kwargs?: i.PauseDunningRequestInterface);
|
|
83
|
+
toApiJson(): object;
|
|
84
|
+
}
|
|
74
85
|
export declare class Purchase implements i.PurchaseInterface {
|
|
75
86
|
merchantId: string;
|
|
76
87
|
timestamp: Date;
|
|
@@ -89,6 +100,7 @@ export declare class Purchase implements i.PurchaseInterface {
|
|
|
89
100
|
appliedCredits: AppliedCredit[];
|
|
90
101
|
taxAmount: number;
|
|
91
102
|
appliedTaxRates: AppliedTaxRate[];
|
|
103
|
+
pauseDunningUntil: Date;
|
|
92
104
|
static fromProto(proto: any): Purchase;
|
|
93
105
|
constructor(kwargs?: i.PurchaseInterface);
|
|
94
106
|
toApiJson(): object;
|
|
@@ -114,6 +126,14 @@ export declare class PurchaseItem implements i.PurchaseItemInterface {
|
|
|
114
126
|
constructor(kwargs?: i.PurchaseItemInterface);
|
|
115
127
|
toApiJson(): object;
|
|
116
128
|
}
|
|
129
|
+
export declare class ResumeDunningRequest implements i.ResumeDunningRequestInterface {
|
|
130
|
+
purchaseId: string;
|
|
131
|
+
merchantId: string;
|
|
132
|
+
day: string;
|
|
133
|
+
static fromProto(proto: any): ResumeDunningRequest;
|
|
134
|
+
constructor(kwargs?: i.ResumeDunningRequestInterface);
|
|
135
|
+
toApiJson(): object;
|
|
136
|
+
}
|
|
117
137
|
export declare class RetryPurchaseRequest implements i.RetryPurchaseRequestInterface {
|
|
118
138
|
purchaseId: string;
|
|
119
139
|
merchantId: string;
|
|
@@ -123,6 +143,14 @@ export declare class RetryPurchaseRequest implements i.RetryPurchaseRequestInter
|
|
|
123
143
|
constructor(kwargs?: i.RetryPurchaseRequestInterface);
|
|
124
144
|
toApiJson(): object;
|
|
125
145
|
}
|
|
146
|
+
export declare class StopDunningRequest implements i.StopDunningRequestInterface {
|
|
147
|
+
purchaseId: string;
|
|
148
|
+
merchantId: string;
|
|
149
|
+
day: string;
|
|
150
|
+
static fromProto(proto: any): StopDunningRequest;
|
|
151
|
+
constructor(kwargs?: i.StopDunningRequestInterface);
|
|
152
|
+
toApiJson(): object;
|
|
153
|
+
}
|
|
126
154
|
export declare class VoidPurchaseRequest implements i.VoidPurchaseRequestInterface {
|
|
127
155
|
purchaseId: string;
|
|
128
156
|
merchantId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, ListPurchaseItemsRequest, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseResponse, RetryPurchaseRequest, VoidPurchaseRequest } from './objects/';
|
|
2
|
-
import { GetMultiCustomerSummariesRequestInterface, ListPurchaseItemsRequestInterface, ListPurchaseRequestInterface, RetryPurchaseRequestInterface, VoidPurchaseRequestInterface } from './interfaces/';
|
|
1
|
+
import { GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, ListPurchaseItemsRequest, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseResponse, PauseDunningRequest, ResumeDunningRequest, RetryPurchaseRequest, StopDunningRequest, VoidPurchaseRequest } from './objects/';
|
|
2
|
+
import { GetMultiCustomerSummariesRequestInterface, ListPurchaseItemsRequestInterface, ListPurchaseRequestInterface, PauseDunningRequestInterface, ResumeDunningRequestInterface, RetryPurchaseRequestInterface, StopDunningRequestInterface, VoidPurchaseRequestInterface } 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';
|
|
@@ -15,6 +15,9 @@ export declare class PurchaseApiService {
|
|
|
15
15
|
listPurchaseItems(r: ListPurchaseItemsRequest | ListPurchaseItemsRequestInterface): Observable<ListPurchaseItemsResponse>;
|
|
16
16
|
retry(r: RetryPurchaseRequest | RetryPurchaseRequestInterface): Observable<HttpResponse<null>>;
|
|
17
17
|
void(r: VoidPurchaseRequest | VoidPurchaseRequestInterface): Observable<HttpResponse<null>>;
|
|
18
|
+
pauseDunning(r: PauseDunningRequest | PauseDunningRequestInterface): Observable<HttpResponse<null>>;
|
|
19
|
+
resumeDunning(r: ResumeDunningRequest | ResumeDunningRequestInterface): Observable<HttpResponse<null>>;
|
|
20
|
+
stopDunning(r: StopDunningRequest | StopDunningRequestInterface): Observable<HttpResponse<null>>;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseApiService, never>;
|
|
19
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<PurchaseApiService>;
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendasta/billing",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^15.
|
|
6
|
-
"@angular/core": "^15.
|
|
5
|
+
"@angular/common": "^15.1.0",
|
|
6
|
+
"@angular/core": "^15.1.0"
|
|
7
7
|
},
|
|
8
8
|
"author": "Vendasta R&D",
|
|
9
9
|
"description": "SDK to interact with the billing service",
|