@spytecgps/nova-orm 0.0.93 → 0.0.94
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.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Magento2Plan } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetMagentoPlanParams } from '../../types/billing';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getMagentoPlan: (novaDataSource: NovaDataSource, params: GetMagentoPlanParams, logger: Logger) => Promise<Magento2Plan>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, User } from '../../entities';
|
|
2
|
-
import { BillingSubscriptionChurnStatus, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
|
|
1
|
+
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
|
|
2
|
+
import { BillingSubscriptionChurnStatus, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class BillingRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -164,4 +164,12 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
164
164
|
* @returns The list of canceled imeis
|
|
165
165
|
*/
|
|
166
166
|
getCanceledImeisMatchingMagentoData(params: GetCanceledImeisParams): Promise<CanceledImeiResult[]>;
|
|
167
|
+
/**
|
|
168
|
+
* Get magento plan
|
|
169
|
+
* @param {GetMagentoPlanParams} params containing information to get magento plan
|
|
170
|
+
* - params.filters.annual: Whether the plan is annual
|
|
171
|
+
* - params.filters.code: The plan code
|
|
172
|
+
* @returns The magento plan
|
|
173
|
+
*/
|
|
174
|
+
getMagentoPlan(params: GetMagentoPlanParams): Promise<Magento2Plan>;
|
|
167
175
|
}
|
package/dist/types/billing.d.ts
CHANGED