@vendasta/billing 12.24.0 → 12.26.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 +7 -2
- package/esm2022/lib/_internal/enums/index.mjs +3 -3
- package/esm2022/lib/_internal/interfaces/discount.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/subscription-preset.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/subscription.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/discount.mjs +31 -1
- package/esm2022/lib/_internal/objects/index.mjs +4 -3
- package/esm2022/lib/_internal/objects/subscription-preset.mjs +76 -0
- package/esm2022/lib/_internal/objects/subscription.mjs +7 -1
- package/fesm2022/vendasta-billing.mjs +4139 -4022
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/billing.api.service.d.ts +3 -2
- package/lib/_internal/enums/index.d.ts +2 -2
- package/lib/_internal/interfaces/discount.interface.d.ts +7 -0
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/interfaces/subscription-preset.interface.d.ts +11 -0
- package/lib/_internal/interfaces/subscription.interface.d.ts +2 -0
- package/lib/_internal/objects/discount.d.ts +7 -0
- package/lib/_internal/objects/index.d.ts +3 -2
- package/lib/_internal/objects/subscription-preset.d.ts +22 -0
- package/lib/_internal/objects/subscription.d.ts +2 -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, 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/';
|
|
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, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, 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, ReplaceSubscriptionPresetsRequestInterface, 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';
|
|
@@ -56,6 +56,7 @@ export declare class BillingApiService {
|
|
|
56
56
|
changeRenewalDate(r: ChangeRenewalDateRequest | ChangeRenewalDateRequestInterface): Observable<HttpResponse<null>>;
|
|
57
57
|
changeCustomUnitPrice(r: ChangeCustomUnitPriceRequest | ChangeCustomUnitPriceRequestInterface): Observable<HttpResponse<null>>;
|
|
58
58
|
startRevRecTemplateBackfill(r: StartRevRecTemplateBackfillRequest | StartRevRecTemplateBackfillRequestInterface): Observable<HttpResponse<null>>;
|
|
59
|
+
replaceSubscriptionPresets(r: ReplaceSubscriptionPresetsRequest | ReplaceSubscriptionPresetsRequestInterface): Observable<ReplaceSubscriptionPresetsResponse>;
|
|
59
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<BillingApiService, never>;
|
|
60
61
|
static ɵprov: i0.ɵɵInjectableDeclaration<BillingApiService>;
|
|
61
62
|
}
|
|
@@ -6,6 +6,8 @@ export { Source, SubscriptionStatus, } from './billable-item.enum';
|
|
|
6
6
|
export { DiscountType, } from './applied-discount.enum';
|
|
7
7
|
export { ContractSubscriptionStatus, } from './contract.enum';
|
|
8
8
|
export { ProductSummaryBillingStrategy, ProductSummaryDiscountDiscountType, ProductSummaryProductType, PricingRuleType, } from './product-summary.enum';
|
|
9
|
+
export { SubscribeValidationStatus, } from './subscribe-validation.enum';
|
|
10
|
+
export { Consumer, RenewalState, } from './subscription.enum';
|
|
9
11
|
export { ListInvoicesRequestFiltersDateFilterDateField, InvoiceStatus, } from './invoice.enum';
|
|
10
12
|
export { PayoutStatus, PayoutType, } from './payout.enum';
|
|
11
13
|
export { SortDirection, } from './sort-direction.enum';
|
|
@@ -20,8 +22,6 @@ export { CreditType, PurchaseStatus, ListPurchaseRequestState, } from './purchas
|
|
|
20
22
|
export { ReferenceType, RefundReason, RefundStatus, } from './refund.enum';
|
|
21
23
|
export { SalesCreditNoteStatus, } from './sales-credit-note.enum';
|
|
22
24
|
export { PaymentStatuses, SalesInvoiceStatus, SalesInvoiceType, } from './sales-invoice.enum';
|
|
23
|
-
export { SubscribeValidationStatus, } from './subscribe-validation.enum';
|
|
24
|
-
export { Consumer, RenewalState, } from './subscription.enum';
|
|
25
25
|
export { PaymentProcessor, } from './payment-processor.enum';
|
|
26
26
|
export { CollectionMethod, Interval, RecurringInvoiceStatus, } from './recurring-invoice.enum';
|
|
27
27
|
export { MerchantServicesReportRunStatus, MerchantServicesReportRunType, } from './report-run.enum';
|
|
@@ -10,6 +10,8 @@ export interface CreateDiscountRequestInterface {
|
|
|
10
10
|
resetEachPeriod?: boolean;
|
|
11
11
|
description?: string;
|
|
12
12
|
customerId?: string;
|
|
13
|
+
consumer?: e.Consumer;
|
|
14
|
+
subscriptionId?: string;
|
|
13
15
|
}
|
|
14
16
|
export interface DiscountInterface {
|
|
15
17
|
discountId?: number;
|
|
@@ -25,6 +27,8 @@ export interface DiscountInterface {
|
|
|
25
27
|
id?: string;
|
|
26
28
|
description?: string;
|
|
27
29
|
customerId?: string;
|
|
30
|
+
consumer?: e.Consumer;
|
|
31
|
+
subscriptionId?: string;
|
|
28
32
|
}
|
|
29
33
|
export interface ExpireDiscountRequestInterface {
|
|
30
34
|
merchantId?: string;
|
|
@@ -36,6 +40,8 @@ export interface ListDiscountsRequestFiltersInterface {
|
|
|
36
40
|
skus?: string[];
|
|
37
41
|
customerIds?: string[];
|
|
38
42
|
includeCustomerDiscounts?: boolean;
|
|
43
|
+
consumers?: e.Consumer[];
|
|
44
|
+
subscriptionIds?: string[];
|
|
39
45
|
}
|
|
40
46
|
export interface ListDiscountsRequestInterface {
|
|
41
47
|
filters?: ListDiscountsRequestFiltersInterface;
|
|
@@ -55,4 +61,5 @@ export interface UpdateDiscountRequestInterface {
|
|
|
55
61
|
resetEachPeriod?: boolean;
|
|
56
62
|
description?: string;
|
|
57
63
|
customerId?: string;
|
|
64
|
+
subscriptionId?: string;
|
|
58
65
|
}
|
|
@@ -11,6 +11,8 @@ export { ContractInterface, GetMultiContractsResponseContractsEntryInterface, Cr
|
|
|
11
11
|
export { CustomerSummaryInterface, GetMultiCustomerSummariesRequestInterface, GetMultiCustomerSummariesResponseInterface, } from './customer-summary.interface';
|
|
12
12
|
export { BankAccountInterface, CreateStripeExternalAccountRequestInterface, DeleteBankAccountRequestInterface, ListBankAccountsRequestInterface, ListBankAccountsResponseInterface, SetDefaultBankAccountRequestInterface, } from './external-account.interface';
|
|
13
13
|
export { ProductSummaryDiscountInterface, ListSubscriptionRetentionRequestFiltersInterface, GetProductSummariesTotalRequestInterface, GetProductSummariesTotalResponseInterface, ListProductSummariesRequestInterface, ListProductSummariesResponseInterface, ListSubscriptionRetentionByGroupResponseInterface, ListSubscriptionRetentionBySKUResponseInterface, ListSubscriptionRetentionRequestInterface, PricingInterface, ProductSummaryInterface, RetentionMetricsInterface, PricingRuleInterface, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroupInterface, } from './product-summary.interface';
|
|
14
|
+
export { SubscribeValidationInterface, } from './subscribe-validation.interface';
|
|
15
|
+
export { AlignmentSubscriptionInterface, CanCreateSubscriptionsRequestInterface, CanCreateSubscriptionsResponseInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateSubscriptionsResponseInterface, ReverseSubscriptionRequestInterface, SetAutoBillableRequestInterface, SetRenewalStartRequestInterface, CanCreateSubscriptionsRequestSkusEntryInterface, SubscriptionInterface, CanCreateSubscriptionsRequestSubscriptionItemInterface, ValidateResponseInterface, } from './subscription.interface';
|
|
14
16
|
export { CreateDiscountRequestInterface, DiscountInterface, ExpireDiscountRequestInterface, ListDiscountsRequestFiltersInterface, ListDiscountsRequestInterface, ListDiscountsResponseInterface, UpdateDiscountRequestInterface, } from './discount.interface';
|
|
15
17
|
export { AppliedTaxRateInterface, } from './applied-tax-rate.interface';
|
|
16
18
|
export { ArchiveTaxRequestInterface, CalculateLineItemTaxesRequestInterface, CalculateLineItemTaxesResponseInterface, CalculateTaxRequestInterface, CalculateTaxResponseInterface, CreateTaxRequestInterface, ListTaxRequestFiltersInterface, GetMultiTaxRequestInterface, GetMultiTaxResponseInterface, CalculateLineItemTaxesRequestLineItemInterface, CalculateLineItemTaxesResponseLineItemTaxesInterface, ListTaxRequestInterface, ListTaxResponseInterface, TaxRateInterface, UpdateTaxRequestInterface, } from './tax-rate.interface';
|
|
@@ -30,8 +32,6 @@ export { AppliedCreditInterface, ListPurchaseRequestListPurchaseBillingStrategyF
|
|
|
30
32
|
export { CreateRefundRequestInterface, ListRefundsRequestInterface, ListRefundsResponseInterface, RefundInterface, } from './refund.interface';
|
|
31
33
|
export { CreateSalesCreditNoteRequestInterface, ListSalesCreditNoteRequestListSalesCreditNoteFiltersInterface, ListSalesCreditNoteRequestInterface, ListSalesCreditNoteResponseInterface, SalesCreditNoteInterface, } from './sales-credit-note.interface';
|
|
32
34
|
export { GetSalesInvoiceRequestInterface, GetSalesInvoiceResponseInterface, ListSalesInvoiceRequestListSalesInvoiceFiltersInterface, ListSalesInvoiceRequestInterface, ListSalesInvoiceResponseInterface, PostSalesInvoiceRequestInterface, SalesInvoiceInterface, SendSalesInvoiceEmailRequestInterface, SendSalesInvoiceReceiptEmailRequestInterface, } from './sales-invoice.interface';
|
|
33
|
-
export { SubscribeValidationInterface, } from './subscribe-validation.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';
|
|
@@ -39,4 +39,5 @@ export { RecurringInvoiceCustomerAddressInterface, ListRecurringInvoicesFiltersD
|
|
|
39
39
|
export { CreateMerchantServicesReportRunInterface, GetMerchantServicesReportRunInterface, MerchantServicesReportRunInterface, } from './report-run.interface';
|
|
40
40
|
export { AccessInterface, } from './annotations.interface';
|
|
41
41
|
export { ListSubscriptionRelationshipsRequestFiltersInterface, GetMultiSubscriptionRelationshipsRequestInterface, GetMultiSubscriptionRelationshipsResponseInterface, ListSubscriptionRelationshipsRequestInterface, ListSubscriptionRelationshipsResponseInterface, ReplaceSubscriptionRelationshipsRequestInterface, ReplaceSubscriptionRelationshipsResponseInterface, SubscriptionRelationshipInterface, } from './subscription-relationship.interface';
|
|
42
|
+
export { ReplaceSubscriptionPresetsRequestInterface, ReplaceSubscriptionPresetsResponseInterface, SubscriptionPresetInterface, } from './subscription-preset.interface';
|
|
42
43
|
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';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ReplaceSubscriptionPresetsRequestInterface {
|
|
2
|
+
presets?: SubscriptionPresetInterface[];
|
|
3
|
+
}
|
|
4
|
+
export interface ReplaceSubscriptionPresetsResponseInterface {
|
|
5
|
+
subscriptionIds?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface SubscriptionPresetInterface {
|
|
8
|
+
subscriptionId?: string;
|
|
9
|
+
autoBillable?: boolean;
|
|
10
|
+
salesOrderId?: string;
|
|
11
|
+
}
|
|
@@ -55,6 +55,7 @@ export interface CreateSubscriptionRequestInterface {
|
|
|
55
55
|
renewalStart?: Date;
|
|
56
56
|
expiry?: Date;
|
|
57
57
|
autoBillable?: boolean;
|
|
58
|
+
subscriptionId?: string;
|
|
58
59
|
}
|
|
59
60
|
export interface CreateSubscriptionsRequestInterface {
|
|
60
61
|
merchantId?: string;
|
|
@@ -103,6 +104,7 @@ export interface SubscriptionInterface {
|
|
|
103
104
|
renewalStart?: Date;
|
|
104
105
|
expiry?: Date;
|
|
105
106
|
autoBillable?: boolean;
|
|
107
|
+
subscriptionId?: string;
|
|
106
108
|
}
|
|
107
109
|
export interface CanCreateSubscriptionsRequestSubscriptionItemInterface {
|
|
108
110
|
sku?: string;
|
|
@@ -12,6 +12,8 @@ export declare class CreateDiscountRequest implements i.CreateDiscountRequestInt
|
|
|
12
12
|
resetEachPeriod: boolean;
|
|
13
13
|
description: string;
|
|
14
14
|
customerId: string;
|
|
15
|
+
consumer: e.Consumer;
|
|
16
|
+
subscriptionId: string;
|
|
15
17
|
static fromProto(proto: any): CreateDiscountRequest;
|
|
16
18
|
constructor(kwargs?: i.CreateDiscountRequestInterface);
|
|
17
19
|
toApiJson(): object;
|
|
@@ -30,6 +32,8 @@ export declare class Discount implements i.DiscountInterface {
|
|
|
30
32
|
id: string;
|
|
31
33
|
description: string;
|
|
32
34
|
customerId: string;
|
|
35
|
+
consumer: e.Consumer;
|
|
36
|
+
subscriptionId: string;
|
|
33
37
|
static fromProto(proto: any): Discount;
|
|
34
38
|
constructor(kwargs?: i.DiscountInterface);
|
|
35
39
|
toApiJson(): object;
|
|
@@ -47,6 +51,8 @@ export declare class ListDiscountsRequestFilters implements i.ListDiscountsReque
|
|
|
47
51
|
skus: string[];
|
|
48
52
|
customerIds: string[];
|
|
49
53
|
includeCustomerDiscounts: boolean;
|
|
54
|
+
consumers: e.Consumer[];
|
|
55
|
+
subscriptionIds: string[];
|
|
50
56
|
static fromProto(proto: any): ListDiscountsRequestFilters;
|
|
51
57
|
constructor(kwargs?: i.ListDiscountsRequestFiltersInterface);
|
|
52
58
|
toApiJson(): object;
|
|
@@ -75,6 +81,7 @@ export declare class UpdateDiscountRequest implements i.UpdateDiscountRequestInt
|
|
|
75
81
|
resetEachPeriod: boolean;
|
|
76
82
|
description: string;
|
|
77
83
|
customerId: string;
|
|
84
|
+
subscriptionId: string;
|
|
78
85
|
static fromProto(proto: any): UpdateDiscountRequest;
|
|
79
86
|
constructor(kwargs?: i.UpdateDiscountRequestInterface);
|
|
80
87
|
toApiJson(): object;
|
|
@@ -11,6 +11,8 @@ export { Contract, GetMultiContractsResponseContractsEntry, CreateContractReques
|
|
|
11
11
|
export { CustomerSummary, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, } from './customer-summary';
|
|
12
12
|
export { BankAccount, CreateStripeExternalAccountRequest, DeleteBankAccountRequest, ListBankAccountsRequest, ListBankAccountsResponse, SetDefaultBankAccountRequest, } from './external-account';
|
|
13
13
|
export { ProductSummaryDiscount, ListSubscriptionRetentionRequestFilters, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, Pricing, ProductSummary, RetentionMetrics, PricingRule, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, } from './product-summary';
|
|
14
|
+
export { SubscribeValidation, } from './subscribe-validation';
|
|
15
|
+
export { AlignmentSubscription, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, ReverseSubscriptionRequest, SetAutoBillableRequest, SetRenewalStartRequest, CanCreateSubscriptionsRequestSkusEntry, Subscription, CanCreateSubscriptionsRequestSubscriptionItem, ValidateResponse, } from './subscription';
|
|
14
16
|
export { CreateDiscountRequest, Discount, ExpireDiscountRequest, ListDiscountsRequestFilters, ListDiscountsRequest, ListDiscountsResponse, UpdateDiscountRequest, } from './discount';
|
|
15
17
|
export { AppliedTaxRate, } from './applied-tax-rate';
|
|
16
18
|
export { ArchiveTaxRequest, CalculateLineItemTaxesRequest, CalculateLineItemTaxesResponse, CalculateTaxRequest, CalculateTaxResponse, CreateTaxRequest, ListTaxRequestFilters, GetMultiTaxRequest, GetMultiTaxResponse, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponseLineItemTaxes, ListTaxRequest, ListTaxResponse, TaxRate, UpdateTaxRequest, } from './tax-rate';
|
|
@@ -30,8 +32,6 @@ export { AppliedCredit, ListPurchaseRequestListPurchaseBillingStrategyFilter, Li
|
|
|
30
32
|
export { CreateRefundRequest, ListRefundsRequest, ListRefundsResponse, Refund, } from './refund';
|
|
31
33
|
export { CreateSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteRequest, ListSalesCreditNoteResponse, SalesCreditNote, } from './sales-credit-note';
|
|
32
34
|
export { GetSalesInvoiceRequest, GetSalesInvoiceResponse, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceRequest, ListSalesInvoiceResponse, PostSalesInvoiceRequest, SalesInvoice, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, } from './sales-invoice';
|
|
33
|
-
export { SubscribeValidation, } from './subscribe-validation';
|
|
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';
|
|
@@ -39,4 +39,5 @@ export { RecurringInvoiceCustomerAddress, ListRecurringInvoicesFiltersDateFilter
|
|
|
39
39
|
export { CreateMerchantServicesReportRun, GetMerchantServicesReportRun, MerchantServicesReportRun, } from './report-run';
|
|
40
40
|
export { Access, } from './annotations';
|
|
41
41
|
export { ListSubscriptionRelationshipsRequestFilters, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, SubscriptionRelationship, } from './subscription-relationship';
|
|
42
|
+
export { ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, SubscriptionPreset, } from './subscription-preset';
|
|
42
43
|
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';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class ReplaceSubscriptionPresetsRequest implements i.ReplaceSubscriptionPresetsRequestInterface {
|
|
4
|
+
presets: SubscriptionPreset[];
|
|
5
|
+
static fromProto(proto: any): ReplaceSubscriptionPresetsRequest;
|
|
6
|
+
constructor(kwargs?: i.ReplaceSubscriptionPresetsRequestInterface);
|
|
7
|
+
toApiJson(): object;
|
|
8
|
+
}
|
|
9
|
+
export declare class ReplaceSubscriptionPresetsResponse implements i.ReplaceSubscriptionPresetsResponseInterface {
|
|
10
|
+
subscriptionIds: string[];
|
|
11
|
+
static fromProto(proto: any): ReplaceSubscriptionPresetsResponse;
|
|
12
|
+
constructor(kwargs?: i.ReplaceSubscriptionPresetsResponseInterface);
|
|
13
|
+
toApiJson(): object;
|
|
14
|
+
}
|
|
15
|
+
export declare class SubscriptionPreset implements i.SubscriptionPresetInterface {
|
|
16
|
+
subscriptionId: string;
|
|
17
|
+
autoBillable: boolean;
|
|
18
|
+
salesOrderId: string;
|
|
19
|
+
static fromProto(proto: any): SubscriptionPreset;
|
|
20
|
+
constructor(kwargs?: i.SubscriptionPresetInterface);
|
|
21
|
+
toApiJson(): object;
|
|
22
|
+
}
|
|
@@ -75,6 +75,7 @@ export declare class CreateSubscriptionRequest implements i.CreateSubscriptionRe
|
|
|
75
75
|
renewalStart: Date;
|
|
76
76
|
expiry: Date;
|
|
77
77
|
autoBillable: boolean;
|
|
78
|
+
subscriptionId: string;
|
|
78
79
|
static fromProto(proto: any): CreateSubscriptionRequest;
|
|
79
80
|
constructor(kwargs?: i.CreateSubscriptionRequestInterface);
|
|
80
81
|
toApiJson(): object;
|
|
@@ -144,6 +145,7 @@ export declare class Subscription implements i.SubscriptionInterface {
|
|
|
144
145
|
renewalStart: Date;
|
|
145
146
|
expiry: Date;
|
|
146
147
|
autoBillable: boolean;
|
|
148
|
+
subscriptionId: string;
|
|
147
149
|
static fromProto(proto: any): Subscription;
|
|
148
150
|
constructor(kwargs?: i.SubscriptionInterface);
|
|
149
151
|
toApiJson(): object;
|