ia-common 1.0.1-beta.32 → 1.0.1-beta.33

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,4 @@
1
+ import { ISubscriptionEntity } from "./entity";
2
+ import { IModifyEntity } from "./modify-entity.interface";
3
+ export interface ISubscriptionData extends IModifyEntity<ISubscriptionEntity> {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,24 @@
1
- export {};
1
+ import { PricingPlanModel } from "./pricing-plan-model";
2
+ export declare class SubscribedPricingPlanModel {
3
+ billingCycleKey: string;
4
+ selectedBillingCycle: {
5
+ noOfMonths: number;
6
+ discount: string;
7
+ name: string;
8
+ key: string;
9
+ };
10
+ basePrice: number;
11
+ pricingPlanModel: PricingPlanModel;
12
+ constructor(data: PricingPlanModel, billingCycleKey: string);
13
+ getGrossAmount(config?: {
14
+ roundDown: boolean;
15
+ }): number;
16
+ getNextBillingCycleDateRange(): {
17
+ subscriptionDays: number;
18
+ date: string;
19
+ };
20
+ getNetAmount(config?: {
21
+ roundDown: boolean;
22
+ }): number;
23
+ getBillingDiscount(): number;
24
+ }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscribedPricingPlanModel = void 0;
3
4
  var _utils_1 = require("../@utils");
4
5
  var SubscribedPricingPlanModel = /** @class */ (function () {
5
6
  function SubscribedPricingPlanModel(data, billingCycleKey) {
@@ -46,3 +47,4 @@ var SubscribedPricingPlanModel = /** @class */ (function () {
46
47
  };
47
48
  return SubscribedPricingPlanModel;
48
49
  }());
50
+ exports.SubscribedPricingPlanModel = SubscribedPricingPlanModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.32",
3
+ "version": "1.0.1-beta.33",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",