ia-common 1.0.1-beta.23 → 1.0.1-beta.25
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.
|
@@ -5,3 +5,14 @@ export interface ICreateSubscriptionResponse extends Modify<ISubscriptionEntity,
|
|
|
5
5
|
updatedOn: string;
|
|
6
6
|
}> {
|
|
7
7
|
}
|
|
8
|
+
export interface ICreateSubscriptionRequest {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
pricingPlanId: number;
|
|
12
|
+
type: string;
|
|
13
|
+
grossAmount: number;
|
|
14
|
+
discount: string;
|
|
15
|
+
netAmount: number;
|
|
16
|
+
amountPaid: number;
|
|
17
|
+
remarks?: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PricingPlanModel } from "./pricing-plan-model";
|
|
2
|
-
export declare class SubscribedPricingPlanModel
|
|
2
|
+
export declare class SubscribedPricingPlanModel {
|
|
3
3
|
billingCycleKey: string;
|
|
4
4
|
selectedBillingCycle: {
|
|
5
5
|
noOfMonths: number;
|
|
@@ -8,6 +8,7 @@ export declare class SubscribedPricingPlanModel extends PricingPlanModel {
|
|
|
8
8
|
key: string;
|
|
9
9
|
};
|
|
10
10
|
selectedPitchSlabBasePrice: number;
|
|
11
|
+
basePrice: number;
|
|
11
12
|
constructor(data: PricingPlanModel, billingCycleKey: string);
|
|
12
13
|
getBasePrice(): number;
|
|
13
14
|
getGrossAmount(config?: {
|
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.SubscribedPricingPlanModel = void 0;
|
|
19
|
-
var
|
|
20
|
-
var SubscribedPricingPlanModel = /** @class */ (function (_super) {
|
|
21
|
-
__extends(SubscribedPricingPlanModel, _super);
|
|
4
|
+
var SubscribedPricingPlanModel = /** @class */ (function () {
|
|
22
5
|
function SubscribedPricingPlanModel(data, billingCycleKey) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
// super(data);
|
|
7
|
+
this.basePrice = data.basePrice;
|
|
8
|
+
this.billingCycleKey = billingCycleKey;
|
|
9
|
+
this.selectedBillingCycle = data.getBillCycleByKey(billingCycleKey);
|
|
27
10
|
}
|
|
28
11
|
SubscribedPricingPlanModel.prototype.getBasePrice = function () {
|
|
29
12
|
return this.selectedPitchSlabBasePrice;
|
|
@@ -59,5 +42,5 @@ var SubscribedPricingPlanModel = /** @class */ (function (_super) {
|
|
|
59
42
|
return 0;
|
|
60
43
|
};
|
|
61
44
|
return SubscribedPricingPlanModel;
|
|
62
|
-
}(
|
|
45
|
+
}());
|
|
63
46
|
exports.SubscribedPricingPlanModel = SubscribedPricingPlanModel;
|