@vendasta/billing 12.23.0 → 12.24.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/billing.api.service.mjs +6 -2
- package/esm2022/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/subscription.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/billable-item.mjs +4 -1
- package/esm2022/lib/_internal/objects/index.mjs +2 -2
- package/esm2022/lib/_internal/objects/subscription.mjs +30 -1
- package/fesm2022/vendasta-billing.mjs +37 -1
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/billing.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/billable-item.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/subscription.interface.d.ts +6 -0
- package/lib/_internal/objects/billable-item.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/subscription.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateMeteredComponentRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateUsageRequest, DeleteBillableItemRequest, DeletePricingPlanProductRequest, ExpireBillableItemRequest, ExportResponse, ExportSubscriptionsRequest, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GetBillableItemRequest, GetBillableItemResponse, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductRequest, GetMultiProductResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, ListBillableItemsRequest, ListBillableItemsResponse, ListContractsRequest, ListContractsResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsResponse, ListSubscriptionsRequest, ListSubscriptionsResponse, ResetContractPricingRequest, ReverseSubscriptionRequest, SetRenewalStartRequest, StartRevRecTemplateBackfillRequest, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse } from './objects/';
|
|
2
|
-
import { BillItemRequestInterface, BillMultipleItemsRequestInterface, CanBillItemRequestInterface, CanCreateSubscriptionsRequestInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateMeteredComponentRequestInterface, CreatePricingPlanProductRequestInterface, CreatePricingPlanRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateUsageRequestInterface, DeleteBillableItemRequestInterface, DeletePricingPlanProductRequestInterface, ExpireBillableItemRequestInterface, ExportSubscriptionsRequestInterface, GenerateBillableItemsCSVRequestInterface, GetBillableItemRequestInterface, GetMerchantWholesaleCurrencyRequestInterface, GetMultiContractsRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanRequestInterface, GetMultiProductPricingRequestInterface, GetMultiProductRequestInterface, GetMultiSubscriptionsRequestInterface, GetPricingPlanProductRequestInterface, GetProductSummariesTotalRequestInterface, GetPurchaseCostRequestInterface, ListBillableItemsRequestInterface, ListContractsRequestInterface, ListMerchantBillingReportsRequestInterface, ListPricingPlanProductsRequestInterface, ListProductSummariesRequestInterface, ListProductsRequestInterface, ListSubscriptionsRequestInterface, ResetContractPricingRequestInterface, ReverseSubscriptionRequestInterface, SetRenewalStartRequestInterface, StartRevRecTemplateBackfillRequestInterface, TickComponentUsageRequestInterface, UnexpireBillableItemRequestInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanRequestInterface } from './interfaces/';
|
|
1
|
+
import { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateMeteredComponentRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateUsageRequest, DeleteBillableItemRequest, DeletePricingPlanProductRequest, ExpireBillableItemRequest, ExportResponse, ExportSubscriptionsRequest, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GetBillableItemRequest, GetBillableItemResponse, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductRequest, GetMultiProductResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, ListBillableItemsRequest, ListBillableItemsResponse, ListContractsRequest, ListContractsResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsResponse, ListSubscriptionsRequest, ListSubscriptionsResponse, ResetContractPricingRequest, ReverseSubscriptionRequest, SetAutoBillableRequest, SetRenewalStartRequest, StartRevRecTemplateBackfillRequest, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse } from './objects/';
|
|
2
|
+
import { BillItemRequestInterface, BillMultipleItemsRequestInterface, CanBillItemRequestInterface, CanCreateSubscriptionsRequestInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateMeteredComponentRequestInterface, CreatePricingPlanProductRequestInterface, CreatePricingPlanRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateUsageRequestInterface, DeleteBillableItemRequestInterface, DeletePricingPlanProductRequestInterface, ExpireBillableItemRequestInterface, ExportSubscriptionsRequestInterface, GenerateBillableItemsCSVRequestInterface, GetBillableItemRequestInterface, GetMerchantWholesaleCurrencyRequestInterface, GetMultiContractsRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanRequestInterface, GetMultiProductPricingRequestInterface, GetMultiProductRequestInterface, GetMultiSubscriptionsRequestInterface, GetPricingPlanProductRequestInterface, GetProductSummariesTotalRequestInterface, GetPurchaseCostRequestInterface, ListBillableItemsRequestInterface, ListContractsRequestInterface, ListMerchantBillingReportsRequestInterface, ListPricingPlanProductsRequestInterface, ListProductSummariesRequestInterface, ListProductsRequestInterface, ListSubscriptionsRequestInterface, ResetContractPricingRequestInterface, ReverseSubscriptionRequestInterface, SetAutoBillableRequestInterface, SetRenewalStartRequestInterface, StartRevRecTemplateBackfillRequestInterface, TickComponentUsageRequestInterface, UnexpireBillableItemRequestInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanRequestInterface } 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,7 @@ export declare class BillingApiService {
|
|
|
15
15
|
createSubscription(r: CreateSubscriptionRequest | CreateSubscriptionRequestInterface): Observable<HttpResponse<null>>;
|
|
16
16
|
createSubscriptions(r: CreateSubscriptionsRequest | CreateSubscriptionsRequestInterface): Observable<CreateSubscriptionsResponse>;
|
|
17
17
|
reverseSubscription(r: ReverseSubscriptionRequest | ReverseSubscriptionRequestInterface): Observable<HttpResponse<null>>;
|
|
18
|
+
setAutoBillable(r: SetAutoBillableRequest | SetAutoBillableRequestInterface): Observable<HttpResponse<null>>;
|
|
18
19
|
setRenewalStart(r: SetRenewalStartRequest | SetRenewalStartRequestInterface): Observable<HttpResponse<null>>;
|
|
19
20
|
billItem(r: BillItemRequest | BillItemRequestInterface): Observable<HttpResponse<null>>;
|
|
20
21
|
billMultipleItems(r: BillMultipleItemsRequest | BillMultipleItemsRequestInterface): Observable<BillMultipleItemsResponse>;
|
|
@@ -31,7 +31,7 @@ export { CreateRefundRequestInterface, ListRefundsRequestInterface, ListRefundsR
|
|
|
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';
|
|
33
33
|
export { SubscribeValidationInterface, } from './subscribe-validation.interface';
|
|
34
|
-
export { AlignmentSubscriptionInterface, CanCreateSubscriptionsRequestInterface, CanCreateSubscriptionsResponseInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateSubscriptionsResponseInterface, ReverseSubscriptionRequestInterface, SetRenewalStartRequestInterface, CanCreateSubscriptionsRequestSkusEntryInterface, SubscriptionInterface, CanCreateSubscriptionsRequestSubscriptionItemInterface, ValidateResponseInterface, } from './subscription.interface';
|
|
34
|
+
export { AlignmentSubscriptionInterface, CanCreateSubscriptionsRequestInterface, CanCreateSubscriptionsResponseInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateSubscriptionsResponseInterface, ReverseSubscriptionRequestInterface, SetAutoBillableRequestInterface, SetRenewalStartRequestInterface, CanCreateSubscriptionsRequestSkusEntryInterface, SubscriptionInterface, CanCreateSubscriptionsRequestSubscriptionItemInterface, ValidateResponseInterface, } from './subscription.interface';
|
|
35
35
|
export { ContractDocumentInterface, DeleteContractDocumentRequestInterface, ListContractDocumentsRequestFiltersInterface, ListContractDocumentsRequestInterface, ListContractDocumentsResponseInterface, } from './contract-document.interface';
|
|
36
36
|
export { GetRetailCustomerConfigurationRequestInterface, GetRetailCustomerConfigurationResponseInterface, RetailCustomerConfigurationInterface, UpsertRetailCustomerConfigurationRequestInterface, } from './retail-customer-configuration.interface';
|
|
37
37
|
export { AddCreditRequestInterface, CreditBalanceInterface, GetBalanceRequestInterface, GetBalanceResponseInterface, } from './credit.interface';
|
|
@@ -54,6 +54,7 @@ export interface CreateSubscriptionRequestInterface {
|
|
|
54
54
|
consumer?: e.Consumer;
|
|
55
55
|
renewalStart?: Date;
|
|
56
56
|
expiry?: Date;
|
|
57
|
+
autoBillable?: boolean;
|
|
57
58
|
}
|
|
58
59
|
export interface CreateSubscriptionsRequestInterface {
|
|
59
60
|
merchantId?: string;
|
|
@@ -68,6 +69,10 @@ export interface ReverseSubscriptionRequestInterface {
|
|
|
68
69
|
customerId?: string;
|
|
69
70
|
orderId?: string;
|
|
70
71
|
}
|
|
72
|
+
export interface SetAutoBillableRequestInterface {
|
|
73
|
+
subscriptionId?: string;
|
|
74
|
+
autoBillable?: boolean;
|
|
75
|
+
}
|
|
71
76
|
export interface SetRenewalStartRequestInterface {
|
|
72
77
|
merchantId?: string;
|
|
73
78
|
sku?: string;
|
|
@@ -97,6 +102,7 @@ export interface SubscriptionInterface {
|
|
|
97
102
|
consumer?: e.Consumer;
|
|
98
103
|
renewalStart?: Date;
|
|
99
104
|
expiry?: Date;
|
|
105
|
+
autoBillable?: boolean;
|
|
100
106
|
}
|
|
101
107
|
export interface CanCreateSubscriptionsRequestSubscriptionItemInterface {
|
|
102
108
|
sku?: string;
|
|
@@ -50,6 +50,7 @@ export declare class BillableItem implements i.BillableItemInterface {
|
|
|
50
50
|
subscriptionId: string;
|
|
51
51
|
deleted: Date;
|
|
52
52
|
source: e.Source;
|
|
53
|
+
autoBillable: boolean;
|
|
53
54
|
static fromProto(proto: any): BillableItem;
|
|
54
55
|
constructor(kwargs?: i.BillableItemInterface);
|
|
55
56
|
toApiJson(): object;
|
|
@@ -31,7 +31,7 @@ export { CreateRefundRequest, ListRefundsRequest, ListRefundsResponse, 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';
|
|
33
33
|
export { SubscribeValidation, } from './subscribe-validation';
|
|
34
|
-
export { AlignmentSubscription, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, ReverseSubscriptionRequest, SetRenewalStartRequest, CanCreateSubscriptionsRequestSkusEntry, Subscription, CanCreateSubscriptionsRequestSubscriptionItem, ValidateResponse, } from './subscription';
|
|
34
|
+
export { AlignmentSubscription, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, ReverseSubscriptionRequest, SetAutoBillableRequest, SetRenewalStartRequest, CanCreateSubscriptionsRequestSkusEntry, Subscription, CanCreateSubscriptionsRequestSubscriptionItem, ValidateResponse, } from './subscription';
|
|
35
35
|
export { ContractDocument, DeleteContractDocumentRequest, ListContractDocumentsRequestFilters, ListContractDocumentsRequest, ListContractDocumentsResponse, } from './contract-document';
|
|
36
36
|
export { GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, RetailCustomerConfiguration, UpsertRetailCustomerConfigurationRequest, } from './retail-customer-configuration';
|
|
37
37
|
export { AddCreditRequest, CreditBalance, GetBalanceRequest, GetBalanceResponse, } from './credit';
|
|
@@ -74,6 +74,7 @@ export declare class CreateSubscriptionRequest implements i.CreateSubscriptionRe
|
|
|
74
74
|
consumer: e.Consumer;
|
|
75
75
|
renewalStart: Date;
|
|
76
76
|
expiry: Date;
|
|
77
|
+
autoBillable: boolean;
|
|
77
78
|
static fromProto(proto: any): CreateSubscriptionRequest;
|
|
78
79
|
constructor(kwargs?: i.CreateSubscriptionRequestInterface);
|
|
79
80
|
toApiJson(): object;
|
|
@@ -100,6 +101,13 @@ export declare class ReverseSubscriptionRequest implements i.ReverseSubscription
|
|
|
100
101
|
constructor(kwargs?: i.ReverseSubscriptionRequestInterface);
|
|
101
102
|
toApiJson(): object;
|
|
102
103
|
}
|
|
104
|
+
export declare class SetAutoBillableRequest implements i.SetAutoBillableRequestInterface {
|
|
105
|
+
subscriptionId: string;
|
|
106
|
+
autoBillable: boolean;
|
|
107
|
+
static fromProto(proto: any): SetAutoBillableRequest;
|
|
108
|
+
constructor(kwargs?: i.SetAutoBillableRequestInterface);
|
|
109
|
+
toApiJson(): object;
|
|
110
|
+
}
|
|
103
111
|
export declare class SetRenewalStartRequest implements i.SetRenewalStartRequestInterface {
|
|
104
112
|
merchantId: string;
|
|
105
113
|
sku: string;
|
|
@@ -135,6 +143,7 @@ export declare class Subscription implements i.SubscriptionInterface {
|
|
|
135
143
|
consumer: e.Consumer;
|
|
136
144
|
renewalStart: Date;
|
|
137
145
|
expiry: Date;
|
|
146
|
+
autoBillable: boolean;
|
|
138
147
|
static fromProto(proto: any): Subscription;
|
|
139
148
|
constructor(kwargs?: i.SubscriptionInterface);
|
|
140
149
|
toApiJson(): object;
|