@vendasta/billing 14.49.0 → 14.51.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/invoice.enum.mjs +4 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/index.mjs +2 -2
- package/esm2022/lib/_internal/objects/invoice.mjs +11 -1
- package/fesm2022/vendasta-billing.mjs +232 -220
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/invoice.enum.d.ts +4 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/invoice.interface.d.ts +3 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/invoice.d.ts +3 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export { PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, } from './payment-card.e
|
|
|
13
13
|
export { PaymentMethodType, } from './payment-method.enum';
|
|
14
14
|
export { PaymentProcessor, } from './payment-processor.enum';
|
|
15
15
|
export { CollectionMethod, Interval, RecurringInvoiceStatus, } from './recurring-invoice.enum';
|
|
16
|
+
export { DisplayOption, } from './retail-subscription-group.enum';
|
|
16
17
|
export { ListInvoicesRequestFiltersDateFilterDateField, InvoiceStatus, LastPaymentStatus, Origin, ProcessingFailureCode, } from './invoice.enum';
|
|
17
18
|
export { PayoutStatus, PayoutType, } from './payout.enum';
|
|
18
19
|
export { SortDirection, } from './sort-direction.enum';
|
|
@@ -30,4 +31,3 @@ export { TaxProviderType, TaxRuleEntityType, TaxRuleType, } from './tax-rule.enu
|
|
|
30
31
|
export { MerchantServicesReportRunStatus, MerchantServicesReportRunType, } from './report-run.enum';
|
|
31
32
|
export { EntityType, RelationshipType, } from './subscription-relationship.enum';
|
|
32
33
|
export { AppliedReferenceType, CreditNoteReason, } from './credit-note.enum';
|
|
33
|
-
export { DisplayOption, } from './retail-subscription-group.enum';
|
|
@@ -24,5 +24,8 @@ export declare enum Origin {
|
|
|
24
24
|
export declare enum ProcessingFailureCode {
|
|
25
25
|
PROCESSING_FAILURE_CODE_UNSET = 0,
|
|
26
26
|
PROCESSING_FAILURE_CODE_TAX_CALCULATION_INVALID_ADDRESS = 1,
|
|
27
|
-
PROCESSING_FAILURE_CODE_TAX_CALCULATION_GENERAL_ERROR = 2
|
|
27
|
+
PROCESSING_FAILURE_CODE_TAX_CALCULATION_GENERAL_ERROR = 2,
|
|
28
|
+
PROCESSING_FAILURE_CODE_UNABLE_TO_CHARGE_OR_SEND = 3,
|
|
29
|
+
PROCESSING_FAILURE_CODE_UNABLE_TO_SEND = 4,
|
|
30
|
+
PROCESSING_FAILURE_CODE_UNABLE_TO_CHARGE = 5
|
|
28
31
|
}
|
|
@@ -20,6 +20,7 @@ export { AppliedBundleInterface, AppliedBundleItemInterface, } from './applied-b
|
|
|
20
20
|
export { CreatePaymentCardRequestInterface, DeletePaymentCardRequestInterface, ListPaymentCardsRequestInterface, ListPaymentCardsResponseInterface, PaymentCardInterface, SetDefaultPaymentMethodRequestInterface, UpdatePaymentCardRequestInterface, } from './payment-card.interface';
|
|
21
21
|
export { ListPaymentMethodsRequestInterface, ListPaymentMethodsResponseInterface, PaymentACHDebitInterface, PaymentACSSDebitInterface, PaymentMethodInterface, } from './payment-method.interface';
|
|
22
22
|
export { RecurringInvoiceCustomerAddressInterface, ListRecurringInvoicesFiltersDateFilterInterface, DeleteRecurringInvoiceRequestInterface, ListRecurringInvoicesFiltersDetailedIntervalInterface, GetRecurringInvoiceRequestInterface, ListRecurringInvoicesFiltersInterface, ListRecurringInvoicesRequestInterface, ListRecurringInvoicesResponseInterface, RecurringInvoiceInterface, RecurringInvoiceBundleInterface, RecurringInvoiceItemInterface, RecurringInvoiceLineItemInterface, UpdateRecurringInvoiceRequestInterface, } from './recurring-invoice.interface';
|
|
23
|
+
export { CreateRetailSubscriptionGroupRequestInterface, CreateRetailSubscriptionGroupResponseInterface, RetailSubscriptionGroupInterface, } from './retail-subscription-group.interface';
|
|
23
24
|
export { AddBundleRequestInterface, AddBundleResponseInterface, AddLineItemRequestInterface, AddLineItemResponseInterface, AppliedCreditNoteInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreateInvoiceResponseInterface, CreatePaymentLinkRequestInterface, CreatePaymentLinkResponseInterface, InvoiceCustomerAddressInterface, ListInvoicesRequestFiltersDateFilterInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DeleteLineItemResponseInterface, DuplicateInvoiceRequestInterface, DuplicateInvoiceResponseInterface, ListInvoicesRequestFiltersInterface, GetInvoiceRequestInterface, GetInvoiceResponseInterface, GetInvoiceWithCalculatedTaxesRequestInterface, GetInvoiceWithCalculatedTaxesResponseInterface, GetUpcomingInvoicePreviewRequestInterface, GetUpcomingInvoicePreviewResponseInterface, InvoiceInterface, InvoiceItemInterface, ListInvoicesRequestInterface, ListInvoicesResponseInterface, PayInvoiceRequestInterface, PaymentLinkItemInterface, RemoveBundleRequestInterface, RemoveBundleResponseInterface, InvoiceItemRetailSubscriptionGroupInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateBundleResponseInterface, UpdateDefaultTaxRatesRequestInterface, UpdateDefaultTaxRatesResponseInterface, UpdateInvoiceRequestInterface, UpdateInvoiceResponseInterface, UpdateLineItemRequestInterface, UpdateLineItemResponseInterface, VoidInvoiceRequestInterface, } from './invoice.interface';
|
|
24
25
|
export { AccountBalanceInterface, BalanceInterface, BalanceAmountInterface, } from './balance.interface';
|
|
25
26
|
export { DateRangeInterface, } from './date-range.interface';
|
|
@@ -43,7 +44,6 @@ export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
|
|
|
43
44
|
export { ListSubscriptionRelationshipsRequestFiltersInterface, GetMultiSubscriptionRelationshipsRequestInterface, GetMultiSubscriptionRelationshipsResponseInterface, ListSubscriptionRelationshipsRequestInterface, ListSubscriptionRelationshipsResponseInterface, ReplaceSubscriptionRelationshipsRequestInterface, ReplaceSubscriptionRelationshipsResponseInterface, SubscriptionRelationshipInterface, } from './subscription-relationship.interface';
|
|
44
45
|
export { ReplaceSubscriptionPresetsRequestInterface, ReplaceSubscriptionPresetsResponseInterface, SubscriptionPresetInterface, } from './subscription-preset.interface';
|
|
45
46
|
export { AppliedToInterface, CalculateCreditNoteRequestInterface, CalculateCreditNoteResponseInterface, CreateCreditNoteRequestInterface, CreateCreditNoteResponseInterface, CreditNoteInterface, ListCreditNotesRequestFiltersInterface, GetCreditNoteRequestInterface, GetCreditNoteResponseInterface, GetMultiCreditNoteRequestInterface, GetMultiCreditNoteResponseInterface, LineItemInterface, ListCreditNotesRequestInterface, ListCreditNotesResponseInterface, SendCreditNoteRequestInterface, } from './credit-note.interface';
|
|
46
|
-
export { CreateRetailSubscriptionGroupRequestInterface, CreateRetailSubscriptionGroupResponseInterface, RetailSubscriptionGroupInterface, } from './retail-subscription-group.interface';
|
|
47
47
|
export { GetVendorSplitRequestInterface, GetVendorSplitResponseInterface, UpsertVendorSplitRequestInterface, UpsertVendorSplitResponseInterface, VendorSplitInterface, } from './vendor-split.interface';
|
|
48
48
|
export { AvalaraConfigurationInterface, CreateAvalaraConfigurationRequestInterface, CreateAvalaraConfigurationResponseInterface, DeleteAvalaraConfigurationRequestInterface, GetAvalaraConfigurationRequestInterface, GetAvalaraConfigurationResponseInterface, UpdateAvalaraConfigurationRequestInterface, UpdateAvalaraConfigurationResponseInterface, } from './avalara.interface';
|
|
49
49
|
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';
|
|
@@ -5,6 +5,7 @@ import { FieldMaskInterface } from './field-mask.interface';
|
|
|
5
5
|
import { NoteInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './common.interface';
|
|
6
6
|
import { TaxRateInterface } from './tax-rate.interface';
|
|
7
7
|
import * as e from '../enums';
|
|
8
|
+
import { RetailSubscriptionGroupInterface } from "./retail-subscription-group.interface";
|
|
8
9
|
export interface AddBundleRequestInterface {
|
|
9
10
|
invoiceId?: string;
|
|
10
11
|
merchantId?: string;
|
|
@@ -169,6 +170,7 @@ export interface InvoiceInterface {
|
|
|
169
170
|
amountOwing?: number;
|
|
170
171
|
appliedCreditNotes?: AppliedCreditNoteInterface[];
|
|
171
172
|
processingFailureCode?: e.ProcessingFailureCode;
|
|
173
|
+
retailSubscriptionGroups?: RetailSubscriptionGroupInterface[];
|
|
172
174
|
}
|
|
173
175
|
export interface InvoiceItemInterface {
|
|
174
176
|
id?: string;
|
|
@@ -186,6 +188,7 @@ export interface InvoiceItemInterface {
|
|
|
186
188
|
servicePeriodStart?: Date;
|
|
187
189
|
servicePeriodEnd?: Date;
|
|
188
190
|
retailSubscriptionGroup?: InvoiceItemRetailSubscriptionGroupInterface;
|
|
191
|
+
retailSubscriptionGroupId?: string;
|
|
189
192
|
}
|
|
190
193
|
export interface ListInvoicesRequestInterface {
|
|
191
194
|
filters?: ListInvoicesRequestFiltersInterface;
|
|
@@ -20,6 +20,7 @@ export { AppliedBundle, AppliedBundleItem, } from './applied-bundle';
|
|
|
20
20
|
export { CreatePaymentCardRequest, DeletePaymentCardRequest, ListPaymentCardsRequest, ListPaymentCardsResponse, PaymentCard, SetDefaultPaymentMethodRequest, UpdatePaymentCardRequest, } from './payment-card';
|
|
21
21
|
export { ListPaymentMethodsRequest, ListPaymentMethodsResponse, PaymentACHDebit, PaymentACSSDebit, PaymentMethod, } from './payment-method';
|
|
22
22
|
export { RecurringInvoiceCustomerAddress, ListRecurringInvoicesFiltersDateFilter, DeleteRecurringInvoiceRequest, ListRecurringInvoicesFiltersDetailedInterval, GetRecurringInvoiceRequest, ListRecurringInvoicesFilters, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, RecurringInvoice, RecurringInvoiceBundle, RecurringInvoiceItem, RecurringInvoiceLineItem, UpdateRecurringInvoiceRequest, } from './recurring-invoice';
|
|
23
|
+
export { CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, RetailSubscriptionGroup, } from './retail-subscription-group';
|
|
23
24
|
export { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, AppliedCreditNote, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, InvoiceCustomerAddress, ListInvoicesRequestFiltersDateFilter, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ListInvoicesRequestFilters, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, Invoice, InvoiceItem, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, PaymentLinkItem, RemoveBundleRequest, RemoveBundleResponse, InvoiceItemRetailSubscriptionGroup, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest, } from './invoice';
|
|
24
25
|
export { AccountBalance, Balance, BalanceAmount, } from './balance';
|
|
25
26
|
export { DateRange, } from './date-range';
|
|
@@ -43,7 +44,6 @@ export { Access, MCPOptions, } from './annotations';
|
|
|
43
44
|
export { ListSubscriptionRelationshipsRequestFilters, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, SubscriptionRelationship, } from './subscription-relationship';
|
|
44
45
|
export { ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, SubscriptionPreset, } from './subscription-preset';
|
|
45
46
|
export { AppliedTo, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreditNote, ListCreditNotesRequestFilters, GetCreditNoteRequest, GetCreditNoteResponse, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, LineItem, ListCreditNotesRequest, ListCreditNotesResponse, SendCreditNoteRequest, } from './credit-note';
|
|
46
|
-
export { CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, RetailSubscriptionGroup, } from './retail-subscription-group';
|
|
47
47
|
export { GetVendorSplitRequest, GetVendorSplitResponse, UpsertVendorSplitRequest, UpsertVendorSplitResponse, VendorSplit, } from './vendor-split';
|
|
48
48
|
export { AvalaraConfiguration, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, DeleteAvalaraConfigurationRequest, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, } from './avalara';
|
|
49
49
|
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';
|
|
@@ -6,6 +6,7 @@ import { FieldMask } from './field-mask';
|
|
|
6
6
|
import { Note, PagedRequestOptions, PagedResponseMetadata } from './common';
|
|
7
7
|
import { TaxRate } from './tax-rate';
|
|
8
8
|
import * as e from '../enums';
|
|
9
|
+
import { RetailSubscriptionGroup } from "./retail-subscription-group";
|
|
9
10
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
10
11
|
export declare class AddBundleRequest implements i.AddBundleRequestInterface {
|
|
11
12
|
invoiceId: string;
|
|
@@ -243,6 +244,7 @@ export declare class Invoice implements i.InvoiceInterface {
|
|
|
243
244
|
amountOwing: number;
|
|
244
245
|
appliedCreditNotes: AppliedCreditNote[];
|
|
245
246
|
processingFailureCode: e.ProcessingFailureCode;
|
|
247
|
+
retailSubscriptionGroups: RetailSubscriptionGroup[];
|
|
246
248
|
static fromProto(proto: any): Invoice;
|
|
247
249
|
constructor(kwargs?: i.InvoiceInterface);
|
|
248
250
|
toApiJson(): object;
|
|
@@ -263,6 +265,7 @@ export declare class InvoiceItem implements i.InvoiceItemInterface {
|
|
|
263
265
|
servicePeriodStart: Date;
|
|
264
266
|
servicePeriodEnd: Date;
|
|
265
267
|
retailSubscriptionGroup: InvoiceItemRetailSubscriptionGroup;
|
|
268
|
+
retailSubscriptionGroupId: string;
|
|
266
269
|
static fromProto(proto: any): InvoiceItem;
|
|
267
270
|
constructor(kwargs?: i.InvoiceItemInterface);
|
|
268
271
|
toApiJson(): object;
|