@vendasta/billing 14.52.0 → 14.53.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/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/objects/billable-item.mjs +7 -1
- package/esm2022/lib/_internal/objects/index.mjs +3 -3
- package/esm2022/lib/_internal/objects/invoice.mjs +45 -1
- package/fesm2022/vendasta-billing.mjs +289 -239
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/billable-item.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/invoice.interface.d.ts +8 -0
- package/lib/_internal/objects/billable-item.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/invoice.d.ts +11 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export { FeeAmountType, FeeType, } from './fee.enum';
|
|
|
5
5
|
export { BillingStrategy, ProductPricingType, } from './pricing-plan.enum';
|
|
6
6
|
export { SubscribeValidationStatus, } from './subscribe-validation.enum';
|
|
7
7
|
export { Consumer, RenewalState, } from './subscription.enum';
|
|
8
|
+
export { DisplayOption, } from './retail-subscription-group.enum';
|
|
8
9
|
export { Source, SubscriptionStatus, } from './billable-item.enum';
|
|
9
10
|
export { DiscountType, } from './applied-discount.enum';
|
|
10
11
|
export { ContractSubscriptionStatus, } from './contract.enum';
|
|
@@ -13,7 +14,6 @@ export { PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, } from './payment-card.e
|
|
|
13
14
|
export { PaymentMethodType, } from './payment-method.enum';
|
|
14
15
|
export { PaymentProcessor, } from './payment-processor.enum';
|
|
15
16
|
export { CollectionMethod, Interval, RecurringInvoiceStatus, } from './recurring-invoice.enum';
|
|
16
|
-
export { DisplayOption, } from './retail-subscription-group.enum';
|
|
17
17
|
export { ListInvoicesRequestFiltersDateFilterDateField, InvoiceStatus, LastPaymentStatus, Origin, ProcessingFailureCode, } from './invoice.enum';
|
|
18
18
|
export { PayoutStatus, PayoutType, } from './payout.enum';
|
|
19
19
|
export { SortDirection, } from './sort-direction.enum';
|
|
@@ -152,6 +152,7 @@ export interface ListSubscriptionsResponseInterface {
|
|
|
152
152
|
export interface BillableItemRetailSubscriptionGroupInterface {
|
|
153
153
|
id?: string;
|
|
154
154
|
name?: string;
|
|
155
|
+
displayOption?: e.DisplayOption;
|
|
155
156
|
}
|
|
156
157
|
export interface UpdateSubscriptionRequestSubscriptionInterface {
|
|
157
158
|
subscriptionId?: string;
|
|
@@ -6,6 +6,7 @@ export { ComponentPricingInterface, CreatePricingPlanRequestInterface, CreatePri
|
|
|
6
6
|
export { ProductPricesInterface, ProductPricingInterface, WholesaleCostItemRequestInterface, } from './product-pricing.interface';
|
|
7
7
|
export { SubscribeValidationInterface, } from './subscribe-validation.interface';
|
|
8
8
|
export { AlignmentSubscriptionInterface, CanCreateSubscriptionsRequestInterface, CanCreateSubscriptionsResponseInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionResponseInterface, CreateSubscriptionsRequestInterface, CreateSubscriptionsResponseInterface, ReverseSubscriptionRequestInterface, SetAutoBillableRequestInterface, SetRenewalStartRequestInterface, CanCreateSubscriptionsRequestSkusEntryInterface, SubscriptionInterface, CanCreateSubscriptionsRequestSubscriptionItemInterface, ValidateResponseInterface, } from './subscription.interface';
|
|
9
|
+
export { CreateRetailSubscriptionGroupRequestInterface, CreateRetailSubscriptionGroupResponseInterface, GetMultiRetailSubscriptionGroupRequestInterface, GetMultiRetailSubscriptionGroupResponseInterface, RetailSubscriptionGroupInterface, UpdateRetailSubscriptionGroupRequestInterface, UpdateRetailSubscriptionGroupResponseInterface, } from './retail-subscription-group.interface';
|
|
9
10
|
export { BillItemRequestInterface, BillMultipleItemsRequestInterface, BillMultipleItemsResponseInterface, BillableItemInterface, CanBillItemRequestInterface, CreateUsageRequestInterface, BillableItemCustomerAddressInterface, DeleteBillableItemRequestInterface, ExpireBillableItemRequestInterface, ExportSubscriptionsRequestInterface, ListBillableItemsRequestFiltersInterface, ListSubscriptionsRequestFiltersInterface, GetBillableItemRequestInterface, GetBillableItemResponseInterface, GetMultiSubscriptionsRequestInterface, GetMultiSubscriptionsResponseInterface, ItemInterface, GetMultiSubscriptionsRequestKeyInterface, ListBillableItemsRequestInterface, ListBillableItemsResponseInterface, ListSubscriptionsRequestInterface, ListSubscriptionsResponseInterface, BillableItemRetailSubscriptionGroupInterface, UpdateSubscriptionRequestSubscriptionInterface, SubscriptionProjectionFilterInterface, UnexpireBillableItemRequestInterface, UpdateSubscriptionRequestInterface, UpdateSubscriptionResponseInterface, } from './billable-item.interface';
|
|
10
11
|
export { AppliedDiscountInterface, } from './applied-discount.interface';
|
|
11
12
|
export { BundleInterface, BundleItemInterface, BundlePricingInterface, GetMultiBundleResponseBundlesEntryInterface, ListBundlesRequestFiltersInterface, GetMultiBundleRequestInterface, GetMultiBundleResponseInterface, ListBundlesRequestInterface, ListBundlesResponseInterface, BundleItemPriceInterface, BundlePricingPriceAndFrequencyInterface, UpsertBundleRequestInterface, } from './bundle.interface';
|
|
@@ -20,8 +21,7 @@ export { AppliedBundleInterface, AppliedBundleItemInterface, } from './applied-b
|
|
|
20
21
|
export { CreatePaymentCardRequestInterface, DeletePaymentCardRequestInterface, ListPaymentCardsRequestInterface, ListPaymentCardsResponseInterface, PaymentCardInterface, SetDefaultPaymentMethodRequestInterface, UpdatePaymentCardRequestInterface, } from './payment-card.interface';
|
|
21
22
|
export { ListPaymentMethodsRequestInterface, ListPaymentMethodsResponseInterface, PaymentACHDebitInterface, PaymentACSSDebitInterface, PaymentMethodInterface, } from './payment-method.interface';
|
|
22
23
|
export { RecurringInvoiceCustomerAddressInterface, ListRecurringInvoicesFiltersDateFilterInterface, DeleteRecurringInvoiceRequestInterface, ListRecurringInvoicesFiltersDetailedIntervalInterface, GetRecurringInvoiceRequestInterface, ListRecurringInvoicesFiltersInterface, ListRecurringInvoicesRequestInterface, ListRecurringInvoicesResponseInterface, RecurringInvoiceInterface, RecurringInvoiceBundleInterface, RecurringInvoiceItemInterface, RecurringInvoiceLineItemInterface, UpdateRecurringInvoiceRequestInterface, } from './recurring-invoice.interface';
|
|
23
|
-
export {
|
|
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
|
+
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, ItemDisplayGroupInterface, ListInvoicesRequestInterface, ListInvoicesResponseInterface, PayInvoiceRequestInterface, PaymentLinkItemInterface, RemoveBundleRequestInterface, RemoveBundleResponseInterface, InvoiceItemRetailSubscriptionGroupInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateBundleResponseInterface, UpdateDefaultTaxRatesRequestInterface, UpdateDefaultTaxRatesResponseInterface, UpdateInvoiceRequestInterface, UpdateInvoiceResponseInterface, UpdateLineItemRequestInterface, UpdateLineItemResponseInterface, VoidInvoiceRequestInterface, } from './invoice.interface';
|
|
25
25
|
export { AccountBalanceInterface, BalanceInterface, BalanceAmountInterface, } from './balance.interface';
|
|
26
26
|
export { DateRangeInterface, } from './date-range.interface';
|
|
27
27
|
export { ListPayoutsRequestFiltersInterface, ListPayoutsRequestInterface, ListPayoutsResponseInterface, PayoutInterface, ReconcilePayoutRequestInterface, ReconcilePayoutResponseInterface, RetailPayoutInterface, } from './payout.interface';
|
|
@@ -52,6 +52,7 @@ export interface CreateInvoiceRequestInterface {
|
|
|
52
52
|
collectionMethod?: e.CollectionMethod;
|
|
53
53
|
origin?: e.Origin;
|
|
54
54
|
issued?: Date;
|
|
55
|
+
displayGroups?: ItemDisplayGroupInterface[];
|
|
55
56
|
}
|
|
56
57
|
export interface CreateInvoiceResponseInterface {
|
|
57
58
|
invoiceId?: string;
|
|
@@ -171,6 +172,7 @@ export interface InvoiceInterface {
|
|
|
171
172
|
appliedCreditNotes?: AppliedCreditNoteInterface[];
|
|
172
173
|
processingFailureCode?: e.ProcessingFailureCode;
|
|
173
174
|
retailSubscriptionGroups?: RetailSubscriptionGroupInterface[];
|
|
175
|
+
displayGroups?: ItemDisplayGroupInterface[];
|
|
174
176
|
}
|
|
175
177
|
export interface InvoiceItemInterface {
|
|
176
178
|
id?: string;
|
|
@@ -189,6 +191,12 @@ export interface InvoiceItemInterface {
|
|
|
189
191
|
servicePeriodEnd?: Date;
|
|
190
192
|
retailSubscriptionGroup?: InvoiceItemRetailSubscriptionGroupInterface;
|
|
191
193
|
retailSubscriptionGroupId?: string;
|
|
194
|
+
displayGroupId?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ItemDisplayGroupInterface {
|
|
197
|
+
id?: string;
|
|
198
|
+
name?: string;
|
|
199
|
+
displayOption?: e.DisplayOption;
|
|
192
200
|
}
|
|
193
201
|
export interface ListInvoicesRequestInterface {
|
|
194
202
|
filters?: ListInvoicesRequestFiltersInterface;
|
|
@@ -220,6 +220,7 @@ export declare class ListSubscriptionsResponse implements i.ListSubscriptionsRes
|
|
|
220
220
|
export declare class BillableItemRetailSubscriptionGroup implements i.BillableItemRetailSubscriptionGroupInterface {
|
|
221
221
|
id: string;
|
|
222
222
|
name: string;
|
|
223
|
+
displayOption: e.DisplayOption;
|
|
223
224
|
static fromProto(proto: any): BillableItemRetailSubscriptionGroup;
|
|
224
225
|
constructor(kwargs?: i.BillableItemRetailSubscriptionGroupInterface);
|
|
225
226
|
toApiJson(): object;
|
|
@@ -6,6 +6,7 @@ export { ComponentPricing, CreatePricingPlanRequest, CreatePricingPlanResponse,
|
|
|
6
6
|
export { ProductPrices, ProductPricing, WholesaleCostItemRequest, } from './product-pricing';
|
|
7
7
|
export { SubscribeValidation, } from './subscribe-validation';
|
|
8
8
|
export { AlignmentSubscription, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, ReverseSubscriptionRequest, SetAutoBillableRequest, SetRenewalStartRequest, CanCreateSubscriptionsRequestSkusEntry, Subscription, CanCreateSubscriptionsRequestSubscriptionItem, ValidateResponse, } from './subscription';
|
|
9
|
+
export { CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, RetailSubscriptionGroup, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, } from './retail-subscription-group';
|
|
9
10
|
export { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, CanBillItemRequest, CreateUsageRequest, BillableItemCustomerAddress, DeleteBillableItemRequest, ExpireBillableItemRequest, ExportSubscriptionsRequest, ListBillableItemsRequestFilters, ListSubscriptionsRequestFilters, GetBillableItemRequest, GetBillableItemResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, Item, GetMultiSubscriptionsRequestKey, ListBillableItemsRequest, ListBillableItemsResponse, ListSubscriptionsRequest, ListSubscriptionsResponse, BillableItemRetailSubscriptionGroup, UpdateSubscriptionRequestSubscription, SubscriptionProjectionFilter, UnexpireBillableItemRequest, UpdateSubscriptionRequest, UpdateSubscriptionResponse, } from './billable-item';
|
|
10
11
|
export { AppliedDiscount, } from './applied-discount';
|
|
11
12
|
export { Bundle, BundleItem, BundlePricing, GetMultiBundleResponseBundlesEntry, ListBundlesRequestFilters, GetMultiBundleRequest, GetMultiBundleResponse, ListBundlesRequest, ListBundlesResponse, BundleItemPrice, BundlePricingPriceAndFrequency, UpsertBundleRequest, } from './bundle';
|
|
@@ -20,8 +21,7 @@ export { AppliedBundle, AppliedBundleItem, } from './applied-bundle';
|
|
|
20
21
|
export { CreatePaymentCardRequest, DeletePaymentCardRequest, ListPaymentCardsRequest, ListPaymentCardsResponse, PaymentCard, SetDefaultPaymentMethodRequest, UpdatePaymentCardRequest, } from './payment-card';
|
|
21
22
|
export { ListPaymentMethodsRequest, ListPaymentMethodsResponse, PaymentACHDebit, PaymentACSSDebit, PaymentMethod, } from './payment-method';
|
|
22
23
|
export { RecurringInvoiceCustomerAddress, ListRecurringInvoicesFiltersDateFilter, DeleteRecurringInvoiceRequest, ListRecurringInvoicesFiltersDetailedInterval, GetRecurringInvoiceRequest, ListRecurringInvoicesFilters, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, RecurringInvoice, RecurringInvoiceBundle, RecurringInvoiceItem, RecurringInvoiceLineItem, UpdateRecurringInvoiceRequest, } from './recurring-invoice';
|
|
23
|
-
export {
|
|
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
|
+
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, ItemDisplayGroup, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, PaymentLinkItem, RemoveBundleRequest, RemoveBundleResponse, InvoiceItemRetailSubscriptionGroup, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest, } from './invoice';
|
|
25
25
|
export { AccountBalance, Balance, BalanceAmount, } from './balance';
|
|
26
26
|
export { DateRange, } from './date-range';
|
|
27
27
|
export { ListPayoutsRequestFilters, ListPayoutsRequest, ListPayoutsResponse, Payout, ReconcilePayoutRequest, ReconcilePayoutResponse, RetailPayout, } from './payout';
|
|
@@ -72,6 +72,7 @@ export declare class CreateInvoiceRequest implements i.CreateInvoiceRequestInter
|
|
|
72
72
|
collectionMethod: e.CollectionMethod;
|
|
73
73
|
origin: e.Origin;
|
|
74
74
|
issued: Date;
|
|
75
|
+
displayGroups: ItemDisplayGroup[];
|
|
75
76
|
static fromProto(proto: any): CreateInvoiceRequest;
|
|
76
77
|
constructor(kwargs?: i.CreateInvoiceRequestInterface);
|
|
77
78
|
toApiJson(): object;
|
|
@@ -245,6 +246,7 @@ export declare class Invoice implements i.InvoiceInterface {
|
|
|
245
246
|
appliedCreditNotes: AppliedCreditNote[];
|
|
246
247
|
processingFailureCode: e.ProcessingFailureCode;
|
|
247
248
|
retailSubscriptionGroups: RetailSubscriptionGroup[];
|
|
249
|
+
displayGroups: ItemDisplayGroup[];
|
|
248
250
|
static fromProto(proto: any): Invoice;
|
|
249
251
|
constructor(kwargs?: i.InvoiceInterface);
|
|
250
252
|
toApiJson(): object;
|
|
@@ -266,10 +268,19 @@ export declare class InvoiceItem implements i.InvoiceItemInterface {
|
|
|
266
268
|
servicePeriodEnd: Date;
|
|
267
269
|
retailSubscriptionGroup: InvoiceItemRetailSubscriptionGroup;
|
|
268
270
|
retailSubscriptionGroupId: string;
|
|
271
|
+
displayGroupId: string;
|
|
269
272
|
static fromProto(proto: any): InvoiceItem;
|
|
270
273
|
constructor(kwargs?: i.InvoiceItemInterface);
|
|
271
274
|
toApiJson(): object;
|
|
272
275
|
}
|
|
276
|
+
export declare class ItemDisplayGroup implements i.ItemDisplayGroupInterface {
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
displayOption: e.DisplayOption;
|
|
280
|
+
static fromProto(proto: any): ItemDisplayGroup;
|
|
281
|
+
constructor(kwargs?: i.ItemDisplayGroupInterface);
|
|
282
|
+
toApiJson(): object;
|
|
283
|
+
}
|
|
273
284
|
export declare class ListInvoicesRequest implements i.ListInvoicesRequestInterface {
|
|
274
285
|
filters: ListInvoicesRequestFilters;
|
|
275
286
|
pagingOptions: PagedRequestOptions;
|