@spytecgps/nova-orm 1.3.21 → 1.3.22
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/dist/index.js +1 -1
- package/dist/repositories/billing/index.d.ts +2 -21
- package/dist/types/billing.d.ts +0 -31
- package/package.json +1 -1
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.d.ts +0 -5
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.d.ts +0 -5
- package/dist/repositories/billing/upsertBillingKlarnaOrder.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingDeviceTypePlan, BillingHubspotPaymentLog,
|
|
2
|
-
import { BillingSubscriptionChurnStatus, BillingSubscriptionParams, BraintreePastDueSubscription, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingHubspotPaymentLogParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingDeviceTypePlansParams, GetBillingPlanResult, GetBillingPlansParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetBraintreePastDueSubscriptionParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingDeviceTypePlanParams,
|
|
1
|
+
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingDeviceTypePlan, BillingHubspotPaymentLog, BillingPlans, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
|
|
2
|
+
import { BillingSubscriptionChurnStatus, BillingSubscriptionParams, BraintreePastDueSubscription, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingHubspotPaymentLogParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingDeviceTypePlansParams, GetBillingPlanResult, GetBillingPlansParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetBraintreePastDueSubscriptionParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingDeviceTypePlanParams, UpsertBillingPlanParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class BillingRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -178,18 +178,6 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
178
178
|
* @returns The created billing hubspot payment log information
|
|
179
179
|
*/
|
|
180
180
|
createBillingHubspotPaymentLog(params: CreateBillingHubspotPaymentLogParams): Promise<BillingHubspotPaymentLog>;
|
|
181
|
-
/**
|
|
182
|
-
* Upsert billing klarna customer
|
|
183
|
-
* @param {UpsertBillingKlarnaCustomerParams} params containing information to upsert billing klarna customer
|
|
184
|
-
* @returns The upserted billing klarna customer information
|
|
185
|
-
*/
|
|
186
|
-
upsertBillingKlarnaCustomer(params: UpsertBillingKlarnaCustomerParams): Promise<BillingKlarnaCustomer>;
|
|
187
|
-
/**
|
|
188
|
-
* Upsert billing klarna order
|
|
189
|
-
* @param {UpsertBillingKlarnaOrderParams} params containing information to upsert billing klarna order
|
|
190
|
-
* @returns The upserted billing klarna order information
|
|
191
|
-
*/
|
|
192
|
-
upsertBillingKlarnaOrder(params: UpsertBillingKlarnaOrderParams): Promise<BillingKlarnaOrder>;
|
|
193
181
|
/**
|
|
194
182
|
* Get billing subscription braintree by imei
|
|
195
183
|
* @param {BillingSubscriptionParams} params
|
|
@@ -197,13 +185,6 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
197
185
|
* @returns {Promise<BillingSubscriptionBraintree>} The billing subscription braintree information
|
|
198
186
|
*/
|
|
199
187
|
getBillingSubscriptionsBraintreeByImei(params: BillingSubscriptionParams): Promise<BillingSubscriptionBraintree>;
|
|
200
|
-
/**
|
|
201
|
-
* Get billing klarna order by imei
|
|
202
|
-
* @param {BillingSubscriptionParams} params
|
|
203
|
-
* - imei: The imei of the device
|
|
204
|
-
* @returns {Promise<BillingSubscriptionBraintree>} The billing klarna order information
|
|
205
|
-
*/
|
|
206
|
-
getBillingKlarnaOrderByImei(params: BillingSubscriptionParams): Promise<BillingKlarnaOrder>;
|
|
207
188
|
/**
|
|
208
189
|
* Upsert billing plan
|
|
209
190
|
* @param {UpsertBillingPlanParams} params containing information to upsert billing plan
|
package/dist/types/billing.d.ts
CHANGED
|
@@ -236,37 +236,6 @@ export interface CreateBillingHubspotPaymentLogParams {
|
|
|
236
236
|
totalTaxes?: number | null;
|
|
237
237
|
updatedByUserId?: string | null;
|
|
238
238
|
}
|
|
239
|
-
export interface UpsertBillingKlarnaCustomerParams {
|
|
240
|
-
id: string;
|
|
241
|
-
firstName?: string | null;
|
|
242
|
-
lastName?: string | null;
|
|
243
|
-
billingEmail?: string | null;
|
|
244
|
-
shippingEmail?: string | null;
|
|
245
|
-
streetAddress?: string | null;
|
|
246
|
-
city?: string | null;
|
|
247
|
-
region?: string | null;
|
|
248
|
-
country?: string | null;
|
|
249
|
-
postalCode?: string | null;
|
|
250
|
-
phone?: string | null;
|
|
251
|
-
createdAt?: Date | null;
|
|
252
|
-
}
|
|
253
|
-
export interface UpsertBillingKlarnaOrderParams {
|
|
254
|
-
deviceId: string;
|
|
255
|
-
klarnaCustomerId: string;
|
|
256
|
-
orderId: string;
|
|
257
|
-
planId?: string | null;
|
|
258
|
-
createdAt?: Date | null;
|
|
259
|
-
subscriptionStart?: Date | null;
|
|
260
|
-
subscriptionEnd?: Date | null;
|
|
261
|
-
nextBillingDate?: Date | null;
|
|
262
|
-
subscriptionValue?: number | null;
|
|
263
|
-
status?: string | null;
|
|
264
|
-
paymentType?: string | null;
|
|
265
|
-
discounts?: object | null;
|
|
266
|
-
addOns?: object | null;
|
|
267
|
-
nextBillingPeriodAmount?: number | null;
|
|
268
|
-
paymentMethodToken?: string | null;
|
|
269
|
-
}
|
|
270
239
|
export type UpsertBillingPlanParamsStatus = 'active' | 'disabled' | 'draft';
|
|
271
240
|
export type UpsertBillingPlanParamsTagetConsumer = 'consumer' | 'enterprise' | 'any';
|
|
272
241
|
export type UpsertBillingPlanParamsTrialDurationUnit = 'day' | 'month' | null;
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BillingKlarnaOrder } from '../../entities';
|
|
2
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
-
import { BillingSubscriptionParams } from '../../types/billing';
|
|
4
|
-
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const getBillingKlarnaOrderByImei: (novaDataSource: NovaDataSource, params: BillingSubscriptionParams, logger: Logger) => Promise<BillingKlarnaOrder>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BillingKlarnaCustomer } from '../../entities';
|
|
2
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
-
import { UpsertBillingKlarnaCustomerParams } from '../../types/billing';
|
|
4
|
-
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const upsertBillingKlarnaCustomer: (novaDataSource: NovaDataSource, params: UpsertBillingKlarnaCustomerParams, logger: Logger) => Promise<BillingKlarnaCustomer>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BillingKlarnaOrder } from '../../entities';
|
|
2
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
-
import { UpsertBillingKlarnaOrderParams } from '../../types/billing';
|
|
4
|
-
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const upsertBillingKlarnaOrder: (novaDataSource: NovaDataSource, params: UpsertBillingKlarnaOrderParams, logger: Logger) => Promise<BillingKlarnaOrder>;
|