@vendasta/billing 14.45.0 → 14.46.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/enums/index.mjs +2 -2
- package/esm2022/lib/_internal/enums/tax-rule.enum.mjs +7 -1
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/tax-rule.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +4 -1
- package/esm2022/lib/_internal/objects/index.mjs +2 -2
- package/esm2022/lib/_internal/objects/tax-rule.mjs +44 -1
- package/esm2022/lib/_internal/tax.api.service.mjs +7 -2
- package/fesm2022/vendasta-billing.mjs +58 -1
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/tax-rule.enum.d.ts +5 -0
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/tax-rule.interface.d.ts +6 -0
- package/lib/_internal/objects/api.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/tax-rule.d.ts +12 -0
- package/lib/_internal/tax.api.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ export { CreditType, PurchaseStatus, ListPurchaseRequestState, } from './purchas
|
|
|
26
26
|
export { ReferenceType, RefundReason, RefundStatus, } from './refund.enum';
|
|
27
27
|
export { SalesCreditNoteStatus, } from './sales-credit-note.enum';
|
|
28
28
|
export { PaymentStatuses, SalesInvoiceStatus, SalesInvoiceType, } from './sales-invoice.enum';
|
|
29
|
-
export { TaxRuleEntityType, TaxRuleType, } from './tax-rule.enum';
|
|
29
|
+
export { TaxProviderType, TaxRuleEntityType, TaxRuleType, } from './tax-rule.enum';
|
|
30
30
|
export { MerchantServicesReportRunStatus, MerchantServicesReportRunType, } from './report-run.enum';
|
|
31
31
|
export { EntityType, RelationshipType, } from './subscription-relationship.enum';
|
|
32
32
|
export { AppliedReferenceType, CreditNoteReason, } from './credit-note.enum';
|
|
@@ -34,7 +34,7 @@ export { AppliedCreditInterface, ListPurchaseRequestListPurchaseBillingStrategyF
|
|
|
34
34
|
export { CreateRefundRequestInterface, ListRefundsRequestInterface, ListRefundsResponseInterface, RefundInterface, } from './refund.interface';
|
|
35
35
|
export { CreateSalesCreditNoteRequestInterface, ListSalesCreditNoteRequestListSalesCreditNoteFiltersInterface, ListSalesCreditNoteRequestInterface, ListSalesCreditNoteResponseInterface, SalesCreditNoteInterface, } from './sales-credit-note.interface';
|
|
36
36
|
export { GetSalesInvoiceRequestInterface, GetSalesInvoiceResponseInterface, ListSalesInvoiceRequestListSalesInvoiceFiltersInterface, ListSalesInvoiceRequestInterface, ListSalesInvoiceResponseInterface, PostSalesInvoiceRequestInterface, SalesInvoiceInterface, SendSalesInvoiceEmailRequestInterface, SendSalesInvoiceReceiptEmailRequestInterface, } from './sales-invoice.interface';
|
|
37
|
-
export { BulkReplaceTaxRulesRequestInterface, BulkReplaceTaxRulesResponseInterface, TaxRuleCustomerCustomerAddressInterface, DeleteTaxRuleRequestInterface, ListTaxRulesRequestFiltersInterface, GetTaxRuleRequestInterface, GetTaxRuleResponseInterface, ListTaxRulesRequestInterface, ListTaxRulesResponseInterface, TaxRuleProductProductIdentifierInterface, ReplaceTaxRuleRequestInterface, ReplaceTaxRuleResponseInterface, TaxRuleInterface, TaxRuleCustomerInterface, TaxRuleTaxRuleEntityInterface, TaxRuleProductInterface, } from './tax-rule.interface';
|
|
37
|
+
export { BulkReplaceTaxRulesRequestInterface, BulkReplaceTaxRulesResponseInterface, TaxRuleCustomerCustomerAddressInterface, DeleteTaxRuleRequestInterface, ListTaxRulesRequestFiltersInterface, GetTaxProviderRequestInterface, GetTaxProviderResponseInterface, GetTaxRuleRequestInterface, GetTaxRuleResponseInterface, ListTaxRulesRequestInterface, ListTaxRulesResponseInterface, TaxRuleProductProductIdentifierInterface, ReplaceTaxRuleRequestInterface, ReplaceTaxRuleResponseInterface, TaxRuleInterface, TaxRuleCustomerInterface, TaxRuleTaxRuleEntityInterface, TaxRuleProductInterface, } from './tax-rule.interface';
|
|
38
38
|
export { ContractDocumentInterface, DeleteContractDocumentRequestInterface, ListContractDocumentsRequestFiltersInterface, ListContractDocumentsRequestInterface, ListContractDocumentsResponseInterface, } from './contract-document.interface';
|
|
39
39
|
export { GetRetailCustomerConfigurationRequestInterface, GetRetailCustomerConfigurationResponseInterface, RetailCustomerConfigurationInterface, UpsertRetailCustomerConfigurationRequestInterface, } from './retail-customer-configuration.interface';
|
|
40
40
|
export { AddCreditRequestInterface, CreditBalanceInterface, GetBalanceRequestInterface, GetBalanceResponseInterface, } from './credit.interface';
|
|
@@ -23,6 +23,12 @@ export interface ListTaxRulesRequestFiltersInterface {
|
|
|
23
23
|
consumer?: e.Consumer;
|
|
24
24
|
entityType?: e.TaxRuleEntityType;
|
|
25
25
|
}
|
|
26
|
+
export interface GetTaxProviderRequestInterface {
|
|
27
|
+
merchantId?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GetTaxProviderResponseInterface {
|
|
30
|
+
taxProviderType?: e.TaxProviderType;
|
|
31
|
+
}
|
|
26
32
|
export interface GetTaxRuleRequestInterface {
|
|
27
33
|
id?: string;
|
|
28
34
|
}
|
|
@@ -35,6 +35,7 @@ export declare class GenerateVendorReportRequest implements i.GenerateVendorRepo
|
|
|
35
35
|
periodEnd: Date;
|
|
36
36
|
vendorName: string;
|
|
37
37
|
markAsApproved: boolean;
|
|
38
|
+
vendorMerchantId: string;
|
|
38
39
|
static fromProto(proto: any): GenerateVendorReportRequest;
|
|
39
40
|
constructor(kwargs?: i.GenerateVendorReportRequestInterface);
|
|
40
41
|
toApiJson(): object;
|
|
@@ -34,7 +34,7 @@ export { AppliedCredit, ListPurchaseRequestListPurchaseBillingStrategyFilter, Li
|
|
|
34
34
|
export { CreateRefundRequest, ListRefundsRequest, ListRefundsResponse, Refund, } from './refund';
|
|
35
35
|
export { CreateSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteRequest, ListSalesCreditNoteResponse, SalesCreditNote, } from './sales-credit-note';
|
|
36
36
|
export { GetSalesInvoiceRequest, GetSalesInvoiceResponse, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceRequest, ListSalesInvoiceResponse, PostSalesInvoiceRequest, SalesInvoice, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, } from './sales-invoice';
|
|
37
|
-
export { BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, TaxRuleCustomerCustomerAddress, DeleteTaxRuleRequest, ListTaxRulesRequestFilters, GetTaxRuleRequest, GetTaxRuleResponse, ListTaxRulesRequest, ListTaxRulesResponse, TaxRuleProductProductIdentifier, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, TaxRule, TaxRuleCustomer, TaxRuleTaxRuleEntity, TaxRuleProduct, } from './tax-rule';
|
|
37
|
+
export { BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, TaxRuleCustomerCustomerAddress, DeleteTaxRuleRequest, ListTaxRulesRequestFilters, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, ListTaxRulesRequest, ListTaxRulesResponse, TaxRuleProductProductIdentifier, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, TaxRule, TaxRuleCustomer, TaxRuleTaxRuleEntity, TaxRuleProduct, } from './tax-rule';
|
|
38
38
|
export { ContractDocument, DeleteContractDocumentRequest, ListContractDocumentsRequestFilters, ListContractDocumentsRequest, ListContractDocumentsResponse, } from './contract-document';
|
|
39
39
|
export { GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, RetailCustomerConfiguration, UpsertRetailCustomerConfigurationRequest, } from './retail-customer-configuration';
|
|
40
40
|
export { AddCreditRequest, CreditBalance, GetBalanceRequest, GetBalanceResponse, } from './credit';
|
|
@@ -40,6 +40,18 @@ export declare class ListTaxRulesRequestFilters implements i.ListTaxRulesRequest
|
|
|
40
40
|
constructor(kwargs?: i.ListTaxRulesRequestFiltersInterface);
|
|
41
41
|
toApiJson(): object;
|
|
42
42
|
}
|
|
43
|
+
export declare class GetTaxProviderRequest implements i.GetTaxProviderRequestInterface {
|
|
44
|
+
merchantId: string;
|
|
45
|
+
static fromProto(proto: any): GetTaxProviderRequest;
|
|
46
|
+
constructor(kwargs?: i.GetTaxProviderRequestInterface);
|
|
47
|
+
toApiJson(): object;
|
|
48
|
+
}
|
|
49
|
+
export declare class GetTaxProviderResponse implements i.GetTaxProviderResponseInterface {
|
|
50
|
+
taxProviderType: e.TaxProviderType;
|
|
51
|
+
static fromProto(proto: any): GetTaxProviderResponse;
|
|
52
|
+
constructor(kwargs?: i.GetTaxProviderResponseInterface);
|
|
53
|
+
toApiJson(): object;
|
|
54
|
+
}
|
|
43
55
|
export declare class GetTaxRuleRequest implements i.GetTaxRuleRequestInterface {
|
|
44
56
|
id: string;
|
|
45
57
|
static fromProto(proto: any): GetTaxRuleRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArchiveTaxRequest, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesResponse, CalculateTaxRequest, CalculateTaxResponse, CreateTaxRequest, CreateTaxResponse, DeleteTaxRuleRequest, GetMultiTaxRequest, GetMultiTaxResponse, GetTaxRuleRequest, GetTaxRuleResponse, ListTaxRequest, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, UpdateTaxRequest } from './objects/';
|
|
2
|
-
import { ArchiveTaxRequestInterface, BulkReplaceTaxRulesRequestInterface, CalculateLineItemTaxesRequestInterface, CalculateTaxRequestInterface, CreateTaxRequestInterface, DeleteTaxRuleRequestInterface, GetMultiTaxRequestInterface, GetTaxRuleRequestInterface, ListTaxRequestInterface, ListTaxRulesRequestInterface, ReplaceTaxRuleRequestInterface, UpdateTaxRequestInterface } from './interfaces/';
|
|
1
|
+
import { ArchiveTaxRequest, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesResponse, CalculateTaxRequest, CalculateTaxResponse, CreateTaxRequest, CreateTaxResponse, DeleteTaxRuleRequest, GetMultiTaxRequest, GetMultiTaxResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, ListTaxRequest, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, UpdateTaxRequest } from './objects/';
|
|
2
|
+
import { ArchiveTaxRequestInterface, BulkReplaceTaxRulesRequestInterface, CalculateLineItemTaxesRequestInterface, CalculateTaxRequestInterface, CreateTaxRequestInterface, DeleteTaxRuleRequestInterface, GetMultiTaxRequestInterface, GetTaxProviderRequestInterface, GetTaxRuleRequestInterface, ListTaxRequestInterface, ListTaxRulesRequestInterface, ReplaceTaxRuleRequestInterface, UpdateTaxRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -20,6 +20,7 @@ export declare class TaxApiService {
|
|
|
20
20
|
getTaxRule(r: GetTaxRuleRequest | GetTaxRuleRequestInterface): Observable<GetTaxRuleResponse>;
|
|
21
21
|
listTaxRules(r: ListTaxRulesRequest | ListTaxRulesRequestInterface): Observable<ListTaxRulesResponse>;
|
|
22
22
|
deleteTaxRule(r: DeleteTaxRuleRequest | DeleteTaxRuleRequestInterface): Observable<HttpResponse<null>>;
|
|
23
|
+
getTaxProvider(r: GetTaxProviderRequest | GetTaxProviderRequestInterface): Observable<GetTaxProviderResponse>;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaxApiService, never>;
|
|
24
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<TaxApiService>;
|
|
25
26
|
}
|