@vendasta/billing 14.59.0 → 15.0.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/index.mjs +2 -1
- 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/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/wholesale-tax-rule.interface.mjs +2 -0
- package/esm2022/lib/_internal/objects/billable-item.mjs +1 -13
- package/esm2022/lib/_internal/objects/index.mjs +2 -1
- package/esm2022/lib/_internal/objects/invoice.mjs +2 -2
- package/esm2022/lib/_internal/objects/wholesale-tax-rule.mjs +141 -0
- package/esm2022/lib/_internal/wholesale-tax-rule.api.service.mjs +45 -0
- package/fesm2022/vendasta-billing.mjs +396 -230
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/billable-item.interface.d.ts +0 -2
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/invoice.interface.d.ts +1 -1
- package/lib/_internal/interfaces/wholesale-tax-rule.interface.d.ts +22 -0
- package/lib/_internal/objects/billable-item.d.ts +0 -2
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/invoice.d.ts +1 -1
- package/lib/_internal/objects/wholesale-tax-rule.d.ts +39 -0
- package/lib/_internal/wholesale-tax-rule.api.service.d.ts +14 -0
- package/package.json +1 -1
package/lib/_internal/index.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export { SubscriptionRelationshipApiService } from './subscription-relationship.
|
|
|
28
28
|
export { TaxApiService } from './tax.api.service';
|
|
29
29
|
export { VendorApiService } from './vendor.api.service';
|
|
30
30
|
export { VendorSplitApiService } from './vendor-split.api.service';
|
|
31
|
+
export { WholesaleTaxRuleApiService } from './wholesale-tax-rule.api.service';
|
|
@@ -44,8 +44,6 @@ export interface BillableItemInterface {
|
|
|
44
44
|
description?: string;
|
|
45
45
|
consumer?: e.Consumer;
|
|
46
46
|
billingCycleAnchor?: Date;
|
|
47
|
-
nextServicePeriodStart?: Date;
|
|
48
|
-
nextServicePeriodEnd?: Date;
|
|
49
47
|
nextInvoiceDate?: Date;
|
|
50
48
|
retailSubscriptionGroup?: BillableItemRetailSubscriptionGroupInterface;
|
|
51
49
|
}
|
|
@@ -46,4 +46,5 @@ export { ReplaceSubscriptionPresetsRequestInterface, ReplaceSubscriptionPresetsR
|
|
|
46
46
|
export { AppliedToInterface, CalculateCreditNoteRequestInterface, CalculateCreditNoteResponseInterface, CreateCreditNoteRequestInterface, CreateCreditNoteResponseInterface, CreditNoteInterface, ListCreditNotesRequestFiltersInterface, GetCreditNoteRequestInterface, GetCreditNoteResponseInterface, GetMultiCreditNoteRequestInterface, GetMultiCreditNoteResponseInterface, LineItemInterface, ListCreditNotesRequestInterface, ListCreditNotesResponseInterface, SendCreditNoteRequestInterface, } from './credit-note.interface';
|
|
47
47
|
export { GetMultiVendorSplitRequestInterface, GetMultiVendorSplitResponseInterface, GetVendorSplitRequestInterface, GetVendorSplitResponseInterface, UpsertVendorSplitRequestInterface, UpsertVendorSplitResponseInterface, VendorSplitInterface, } from './vendor-split.interface';
|
|
48
48
|
export { AvalaraConfigurationInterface, CreateAvalaraConfigurationRequestInterface, CreateAvalaraConfigurationResponseInterface, DeleteAvalaraConfigurationRequestInterface, GetAvalaraConfigurationRequestInterface, GetAvalaraConfigurationResponseInterface, UpdateAvalaraConfigurationRequestInterface, UpdateAvalaraConfigurationResponseInterface, } from './avalara.interface';
|
|
49
|
+
export { ListWholesaleTaxRulesRequestInterface, ListWholesaleTaxRulesResponseInterface, UpsertWholesaleTaxRuleRequestInterface, UpsertWholesaleTaxRuleResponseInterface, WholesaleTaxRuleInterface, } from './wholesale-tax-rule.interface';
|
|
49
50
|
export { DeleteRetailPricingRequestInterface, GenerateBillableItemsCSVRequestInterface, GenerateBillableItemsCSVResponseInterface, GenerateVendorReportRequestInterface, GenerateVendorReportResponseInterface, GetMultiBundleRetailPricingRequestInterface, GetMultiBundleRetailPricingResponseInterface, GetMultiProductPricingRequestInterface, GetMultiProductPricingResponseInterface, GetMultiRetailPricingRequestInterface, GetMultiRetailPricingResponseInterface, GetMultiWholesaleCostRequestInterface, GetMultiWholesaleCostResponseInterface, GetPurchaseCostRequestInterface, GetPurchaseCostResponseInterface, GetRevenueStatsRequestInterface, GetRevenueStatsResponseInterface, GetStatisticsRequestInterface, GetStatisticsResponseInterface, GetWholesaleComparisonRequestGetWholesaleComparisonFiltersInterface, GetWholesaleComparisonRequestInterface, GetWholesaleComparisonResponseInterface, GetWholesaleComparisonResponseGetWholesaleComparisonResultInterface, GetMultiBundleRetailPricingResponsePricesEntryInterface, UpsertRetailPricingRequestPricingEntryInterface, GetMultiRetailPricingResponseProductPricesEntryInterface, GetMultiProductPricingResponseProductPricesEntryInterface, SetWholesaleProductStrategyRequestInterface, SetWholesaleProductVolumeCommitmentRequestInterface, StartRevRecTemplateBackfillRequestInterface, UpsertRetailPricingRequestInterface, } from './api.interface';
|
|
@@ -3,9 +3,9 @@ import { AppliedDiscountInterface } from './applied-discount.interface';
|
|
|
3
3
|
import { AppliedTaxRateInterface } from './applied-tax-rate.interface';
|
|
4
4
|
import { FieldMaskInterface } from './field-mask.interface';
|
|
5
5
|
import { NoteInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './common.interface';
|
|
6
|
-
import { RetailSubscriptionGroupInterface } from './retail-subscription-group.interface';
|
|
7
6
|
import { TaxRateInterface } from './tax-rate.interface';
|
|
8
7
|
import * as e from '../enums';
|
|
8
|
+
import { RetailSubscriptionGroupInterface } from './retail-subscription-group.interface';
|
|
9
9
|
export interface AddBundleRequestInterface {
|
|
10
10
|
invoiceId?: string;
|
|
11
11
|
merchantId?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './common.interface';
|
|
2
|
+
export interface ListWholesaleTaxRulesRequestInterface {
|
|
3
|
+
pagingOptions?: PagedRequestOptionsInterface;
|
|
4
|
+
}
|
|
5
|
+
export interface ListWholesaleTaxRulesResponseInterface {
|
|
6
|
+
taxRules?: WholesaleTaxRuleInterface[];
|
|
7
|
+
pagingMetadata?: PagedResponseMetadataInterface;
|
|
8
|
+
}
|
|
9
|
+
export interface UpsertWholesaleTaxRuleRequestInterface {
|
|
10
|
+
item?: WholesaleTaxRuleInterface;
|
|
11
|
+
}
|
|
12
|
+
export interface UpsertWholesaleTaxRuleResponseInterface {
|
|
13
|
+
item?: WholesaleTaxRuleInterface;
|
|
14
|
+
}
|
|
15
|
+
export interface WholesaleTaxRuleInterface {
|
|
16
|
+
id?: string;
|
|
17
|
+
countryCode?: string;
|
|
18
|
+
stateCode?: string;
|
|
19
|
+
taxCode?: string;
|
|
20
|
+
externalTaxCode?: string;
|
|
21
|
+
percentage?: number;
|
|
22
|
+
}
|
|
@@ -55,8 +55,6 @@ export declare class BillableItem implements i.BillableItemInterface {
|
|
|
55
55
|
description: string;
|
|
56
56
|
consumer: e.Consumer;
|
|
57
57
|
billingCycleAnchor: Date;
|
|
58
|
-
nextServicePeriodStart: Date;
|
|
59
|
-
nextServicePeriodEnd: Date;
|
|
60
58
|
nextInvoiceDate: Date;
|
|
61
59
|
retailSubscriptionGroup: BillableItemRetailSubscriptionGroup;
|
|
62
60
|
static fromProto(proto: any): BillableItem;
|
|
@@ -46,4 +46,5 @@ export { ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse,
|
|
|
46
46
|
export { AppliedTo, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreditNote, ListCreditNotesRequestFilters, GetCreditNoteRequest, GetCreditNoteResponse, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, LineItem, ListCreditNotesRequest, ListCreditNotesResponse, SendCreditNoteRequest, } from './credit-note';
|
|
47
47
|
export { GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetVendorSplitRequest, GetVendorSplitResponse, UpsertVendorSplitRequest, UpsertVendorSplitResponse, VendorSplit, } from './vendor-split';
|
|
48
48
|
export { AvalaraConfiguration, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, DeleteAvalaraConfigurationRequest, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, } from './avalara';
|
|
49
|
+
export { ListWholesaleTaxRulesRequest, ListWholesaleTaxRulesResponse, UpsertWholesaleTaxRuleRequest, UpsertWholesaleTaxRuleResponse, WholesaleTaxRule, } from './wholesale-tax-rule';
|
|
49
50
|
export { DeleteRetailPricingRequest, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetStatisticsRequest, GetStatisticsResponse, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonRequest, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetMultiBundleRetailPricingResponsePricesEntry, UpsertRetailPricingRequestPricingEntry, GetMultiRetailPricingResponseProductPricesEntry, GetMultiProductPricingResponseProductPricesEntry, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, StartRevRecTemplateBackfillRequest, UpsertRetailPricingRequest, } from './api';
|
|
@@ -4,9 +4,9 @@ import { AppliedDiscount } from './applied-discount';
|
|
|
4
4
|
import { AppliedTaxRate } from './applied-tax-rate';
|
|
5
5
|
import { FieldMask } from './field-mask';
|
|
6
6
|
import { Note, PagedRequestOptions, PagedResponseMetadata } from './common';
|
|
7
|
-
import { RetailSubscriptionGroup } from './retail-subscription-group';
|
|
8
7
|
import { TaxRate } from './tax-rate';
|
|
9
8
|
import * as e from '../enums';
|
|
9
|
+
import { RetailSubscriptionGroup } from './retail-subscription-group';
|
|
10
10
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
11
11
|
export declare class AddBundleRequest implements i.AddBundleRequestInterface {
|
|
12
12
|
invoiceId: string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import { PagedRequestOptions, PagedResponseMetadata } from './common';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class ListWholesaleTaxRulesRequest implements i.ListWholesaleTaxRulesRequestInterface {
|
|
5
|
+
pagingOptions: PagedRequestOptions;
|
|
6
|
+
static fromProto(proto: any): ListWholesaleTaxRulesRequest;
|
|
7
|
+
constructor(kwargs?: i.ListWholesaleTaxRulesRequestInterface);
|
|
8
|
+
toApiJson(): object;
|
|
9
|
+
}
|
|
10
|
+
export declare class ListWholesaleTaxRulesResponse implements i.ListWholesaleTaxRulesResponseInterface {
|
|
11
|
+
taxRules: WholesaleTaxRule[];
|
|
12
|
+
pagingMetadata: PagedResponseMetadata;
|
|
13
|
+
static fromProto(proto: any): ListWholesaleTaxRulesResponse;
|
|
14
|
+
constructor(kwargs?: i.ListWholesaleTaxRulesResponseInterface);
|
|
15
|
+
toApiJson(): object;
|
|
16
|
+
}
|
|
17
|
+
export declare class UpsertWholesaleTaxRuleRequest implements i.UpsertWholesaleTaxRuleRequestInterface {
|
|
18
|
+
item: WholesaleTaxRule;
|
|
19
|
+
static fromProto(proto: any): UpsertWholesaleTaxRuleRequest;
|
|
20
|
+
constructor(kwargs?: i.UpsertWholesaleTaxRuleRequestInterface);
|
|
21
|
+
toApiJson(): object;
|
|
22
|
+
}
|
|
23
|
+
export declare class UpsertWholesaleTaxRuleResponse implements i.UpsertWholesaleTaxRuleResponseInterface {
|
|
24
|
+
item: WholesaleTaxRule;
|
|
25
|
+
static fromProto(proto: any): UpsertWholesaleTaxRuleResponse;
|
|
26
|
+
constructor(kwargs?: i.UpsertWholesaleTaxRuleResponseInterface);
|
|
27
|
+
toApiJson(): object;
|
|
28
|
+
}
|
|
29
|
+
export declare class WholesaleTaxRule implements i.WholesaleTaxRuleInterface {
|
|
30
|
+
id: string;
|
|
31
|
+
countryCode: string;
|
|
32
|
+
stateCode: string;
|
|
33
|
+
taxCode: string;
|
|
34
|
+
externalTaxCode: string;
|
|
35
|
+
percentage: number;
|
|
36
|
+
static fromProto(proto: any): WholesaleTaxRule;
|
|
37
|
+
constructor(kwargs?: i.WholesaleTaxRuleInterface);
|
|
38
|
+
toApiJson(): object;
|
|
39
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ListWholesaleTaxRulesRequest, ListWholesaleTaxRulesResponse, UpsertWholesaleTaxRuleRequest, UpsertWholesaleTaxRuleResponse } from './objects/';
|
|
2
|
+
import { ListWholesaleTaxRulesRequestInterface, UpsertWholesaleTaxRuleRequestInterface } from './interfaces/';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class WholesaleTaxRuleApiService {
|
|
6
|
+
private readonly hostService;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private _host;
|
|
9
|
+
private apiOptions;
|
|
10
|
+
list(r: ListWholesaleTaxRulesRequest | ListWholesaleTaxRulesRequestInterface): Observable<ListWholesaleTaxRulesResponse>;
|
|
11
|
+
upsert(r: UpsertWholesaleTaxRuleRequest | UpsertWholesaleTaxRuleRequestInterface): Observable<UpsertWholesaleTaxRuleResponse>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WholesaleTaxRuleApiService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WholesaleTaxRuleApiService>;
|
|
14
|
+
}
|