@spytecgps/nova-orm 0.0.77 → 0.0.79
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 { User } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetUserByBraintreeCustomerIdParams } from '../../types/billing';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getUserByBraintreeCustomerId: (novaDataSource: NovaDataSource, params: GetUserByBraintreeCustomerIdParams, logger: Logger) => Promise<User>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree } from '../../entities';
|
|
2
|
-
import { CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetClientIdFromBraintreeCustomerParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams } from '../../types/billing';
|
|
1
|
+
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, User } from '../../entities';
|
|
2
|
+
import { CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetClientIdFromBraintreeCustomerParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams } from '../../types/billing';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class BillingRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -112,4 +112,11 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
112
112
|
* @returns The created billing device history information
|
|
113
113
|
*/
|
|
114
114
|
createBillingDeviceHistory(params: CreateBillingDeviceHistoryParams): Promise<BillingDeviceHistory>;
|
|
115
|
+
/**
|
|
116
|
+
* Get user by braintree customer id
|
|
117
|
+
* @param {GetUserByBraintreeCustomerIdParams} params containing information to get user by braintree customer id
|
|
118
|
+
* - params.filters.customerId: The braintree customer id
|
|
119
|
+
* @returns The user information
|
|
120
|
+
*/
|
|
121
|
+
getUserByBraintreeCustomerId(params: GetUserByBraintreeCustomerIdParams): Promise<User>;
|
|
115
122
|
}
|
package/dist/types/billing.d.ts
CHANGED
|
@@ -3,6 +3,11 @@ export interface GetBillingsParams {
|
|
|
3
3
|
imei?: string;
|
|
4
4
|
clientId?: number;
|
|
5
5
|
subscriptionId?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
};
|
|
8
|
+
projectionOptions?: {
|
|
9
|
+
withClient?: boolean;
|
|
10
|
+
withPlan?: boolean;
|
|
6
11
|
};
|
|
7
12
|
}
|
|
8
13
|
export interface CreateBillingParams {
|
|
@@ -87,3 +92,8 @@ export interface CreateBillingDeviceHistoryParams {
|
|
|
87
92
|
platform?: string;
|
|
88
93
|
status?: string;
|
|
89
94
|
}
|
|
95
|
+
export interface GetUserByBraintreeCustomerIdParams {
|
|
96
|
+
filters: {
|
|
97
|
+
customerId: string;
|
|
98
|
+
};
|
|
99
|
+
}
|