cecon-interfaces 1.6.2 → 1.6.4
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/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/general/enums/subscription-status.enum.mjs +12 -0
- package/dist/esm2022/payio/app/entities/app.entity.mjs +25 -0
- package/dist/esm2022/payio/app/entities/index.mjs +2 -0
- package/dist/esm2022/payio/app/index.mjs +3 -0
- package/dist/esm2022/payio/app/interfaces/i-app.mjs +2 -0
- package/dist/esm2022/payio/app/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/company/entities/address.entity.mjs +1 -3
- package/dist/esm2022/payio/company/interfaces/i-address.mjs +1 -1
- package/dist/esm2022/payio/device/entities/device.entity.mjs +25 -0
- package/dist/esm2022/payio/device/entities/index.mjs +2 -0
- package/dist/esm2022/payio/device/index.mjs +3 -0
- package/dist/esm2022/payio/device/interfaces/i-device.mjs +2 -0
- package/dist/esm2022/payio/device/interfaces/index.mjs +2 -0
- package/dist/esm2022/payio/index.mjs +4 -1
- package/dist/esm2022/payio/subscriptions/entities/index.mjs +4 -0
- package/dist/esm2022/payio/subscriptions/entities/subscription-item.entity.mjs +21 -0
- package/dist/esm2022/payio/subscriptions/entities/subscription-log.entity.mjs +19 -0
- package/dist/esm2022/payio/subscriptions/entities/subscription.entity.mjs +37 -0
- package/dist/esm2022/payio/subscriptions/index.mjs +3 -0
- package/dist/esm2022/payio/subscriptions/interfaces/i-subscription-item.mjs +2 -0
- package/dist/esm2022/payio/subscriptions/interfaces/i-subscription-log.mjs +2 -0
- package/dist/esm2022/payio/subscriptions/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/payio/subscriptions/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +139 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/general/enums/subscription-status.enum.d.ts +10 -0
- package/dist/general/enums/subscription-status.enum.js +14 -0
- package/dist/package.json +1 -1
- package/dist/payio/app/entities/app.entity.d.ts +14 -0
- package/dist/payio/app/entities/app.entity.js +29 -0
- package/dist/payio/app/entities/index.d.ts +1 -0
- package/dist/payio/app/entities/index.js +5 -0
- package/dist/payio/app/index.d.ts +2 -0
- package/dist/payio/app/index.js +18 -0
- package/dist/payio/app/interfaces/i-app.d.ts +12 -0
- package/dist/payio/app/interfaces/i-app.js +2 -0
- package/dist/payio/app/interfaces/index.d.ts +1 -0
- package/dist/payio/app/interfaces/index.js +2 -0
- package/dist/payio/company/entities/address.entity.d.ts +0 -2
- package/dist/payio/company/entities/address.entity.js +0 -1
- package/dist/payio/company/interfaces/i-address.d.ts +0 -2
- package/dist/payio/device/entities/device.entity.d.ts +14 -0
- package/dist/payio/device/entities/device.entity.js +29 -0
- package/dist/payio/device/entities/index.d.ts +1 -0
- package/dist/payio/device/entities/index.js +5 -0
- package/dist/payio/device/index.d.ts +2 -0
- package/dist/payio/device/index.js +18 -0
- package/dist/payio/device/interfaces/i-device.d.ts +12 -0
- package/dist/payio/device/interfaces/i-device.js +2 -0
- package/dist/payio/device/interfaces/index.d.ts +1 -0
- package/dist/payio/device/interfaces/index.js +2 -0
- package/dist/payio/index.d.ts +3 -0
- package/dist/payio/index.js +3 -0
- package/dist/payio/subscriptions/entities/index.d.ts +3 -0
- package/dist/payio/subscriptions/entities/index.js +9 -0
- package/dist/payio/subscriptions/entities/subscription-item.entity.d.ts +10 -0
- package/dist/payio/subscriptions/entities/subscription-item.entity.js +25 -0
- package/dist/payio/subscriptions/entities/subscription-log.entity.d.ts +8 -0
- package/dist/payio/subscriptions/entities/subscription-log.entity.js +23 -0
- package/dist/payio/subscriptions/entities/subscription.entity.d.ts +28 -0
- package/dist/payio/subscriptions/entities/subscription.entity.js +41 -0
- package/dist/payio/subscriptions/index.d.ts +2 -0
- package/dist/payio/subscriptions/index.js +18 -0
- package/dist/payio/subscriptions/interfaces/i-subscription-item.d.ts +8 -0
- package/dist/payio/subscriptions/interfaces/i-subscription-item.js +2 -0
- package/dist/payio/subscriptions/interfaces/i-subscription-log.d.ts +6 -0
- package/dist/payio/subscriptions/interfaces/i-subscription-log.js +2 -0
- package/dist/payio/subscriptions/interfaces/i-subscription.d.ts +26 -0
- package/dist/payio/subscriptions/interfaces/i-subscription.js +2 -0
- package/dist/payio/subscriptions/interfaces/index.d.ts +3 -0
- package/dist/payio/subscriptions/interfaces/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
|
3
|
+
exports.ESubsStatus = exports.ESponsorshipValues = exports.ERole = exports.EPubSub = exports.EPaymentProvider = exports.EPlatform = exports.ELegalEntiy = exports.EPaymentType = exports.EPaymentStatus = exports.EPaymentMode = exports.EPaymentChannel = exports.EOs = exports.EOperator = exports.ELeadOrigin = exports.EJwtStatus = exports.EIntervalType = exports.EFiscalDocModelCode = exports.EDiscountType = exports.EDocType = exports.EDesenfilaFrom = exports.ECollectionsTypes = exports.EBooleanString = exports.EBankSlipStatus = exports.EFcmSkill = void 0;
|
|
4
4
|
var skill_enum_1 = require("../../fcm-token-message/enums/skill.enum");
|
|
5
5
|
Object.defineProperty(exports, "EFcmSkill", { enumerable: true, get: function () { return skill_enum_1.EFcmSkill; } });
|
|
6
6
|
var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
|
|
@@ -47,3 +47,5 @@ var role_enum_1 = require("./role.enum");
|
|
|
47
47
|
Object.defineProperty(exports, "ERole", { enumerable: true, get: function () { return role_enum_1.ERole; } });
|
|
48
48
|
var sponsorship_values_enum_1 = require("./sponsorship-values.enum");
|
|
49
49
|
Object.defineProperty(exports, "ESponsorshipValues", { enumerable: true, get: function () { return sponsorship_values_enum_1.ESponsorshipValues; } });
|
|
50
|
+
var subscription_status_enum_1 = require("./subscription-status.enum");
|
|
51
|
+
Object.defineProperty(exports, "ESubsStatus", { enumerable: true, get: function () { return subscription_status_enum_1.ESubsStatus; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESubsStatus = void 0;
|
|
4
|
+
var ESubsStatus;
|
|
5
|
+
(function (ESubsStatus) {
|
|
6
|
+
ESubsStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ESubsStatus["CANCELLED"] = "CANCELLED";
|
|
8
|
+
ESubsStatus["PLACED"] = "PLACED";
|
|
9
|
+
ESubsStatus["EXPIRED"] = "EXPIRED";
|
|
10
|
+
ESubsStatus["PENDING"] = "PENDING";
|
|
11
|
+
ESubsStatus["TRIAL"] = "TRIAL";
|
|
12
|
+
ESubsStatus["FREE"] = "FREE";
|
|
13
|
+
ESubsStatus["SUSPENDED"] = "SUSPENDED";
|
|
14
|
+
})(ESubsStatus || (exports.ESubsStatus = ESubsStatus = {}));
|
package/dist/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPayioApp } from '../interfaces/i-app';
|
|
2
|
+
export declare class PayioAppEntity implements IPayioApp {
|
|
3
|
+
active: boolean;
|
|
4
|
+
activeInstalls: number;
|
|
5
|
+
description: string;
|
|
6
|
+
downloadUrl: string;
|
|
7
|
+
features: string[];
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
price: number;
|
|
11
|
+
secrets: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
constructor(data?: Partial<PayioAppEntity>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioAppEntity = void 0;
|
|
4
|
+
var PayioAppEntity = /** @class */ (function () {
|
|
5
|
+
// #endregion Properties (10)
|
|
6
|
+
// #region Constructors (1)
|
|
7
|
+
function PayioAppEntity(data) {
|
|
8
|
+
// #region Properties (10)
|
|
9
|
+
this.active = false;
|
|
10
|
+
this.activeInstalls = 0;
|
|
11
|
+
this.description = '';
|
|
12
|
+
this.downloadUrl = '';
|
|
13
|
+
this.features = [];
|
|
14
|
+
this.id = '';
|
|
15
|
+
this.name = '';
|
|
16
|
+
this.price = 0;
|
|
17
|
+
this.secrets = '';
|
|
18
|
+
this.tags = [];
|
|
19
|
+
if (data) {
|
|
20
|
+
for (var key in data) {
|
|
21
|
+
if (data.hasOwnProperty(key) && key in this) {
|
|
22
|
+
this[key] = data[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return PayioAppEntity;
|
|
28
|
+
}());
|
|
29
|
+
exports.PayioAppEntity = PayioAppEntity;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PayioAppEntity } from './app.entity';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioAppEntity = void 0;
|
|
4
|
+
var app_entity_1 = require("./app.entity");
|
|
5
|
+
Object.defineProperty(exports, "PayioAppEntity", { enumerable: true, get: function () { return app_entity_1.PayioAppEntity; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IPayioApp } from './i-app';
|
|
@@ -5,8 +5,6 @@ export declare class PayioAddressEntity implements IPayioAddress {
|
|
|
5
5
|
complement: string | null;
|
|
6
6
|
coords: CoordsEntity;
|
|
7
7
|
country: string | null | undefined;
|
|
8
|
-
formattedAddress: string | null | undefined;
|
|
9
|
-
name: string | null;
|
|
10
8
|
neighborhood: string;
|
|
11
9
|
postalCode: string;
|
|
12
10
|
state: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPayioDevice } from '../interfaces/i-device';
|
|
2
|
+
export declare class PayioDeviceEntity implements IPayioDevice {
|
|
3
|
+
active: boolean;
|
|
4
|
+
companyId: string;
|
|
5
|
+
containerId: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
deviceId: string;
|
|
8
|
+
id: string;
|
|
9
|
+
lastAccess: Date;
|
|
10
|
+
name: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
constructor(data?: Partial<PayioDeviceEntity>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioDeviceEntity = void 0;
|
|
4
|
+
var PayioDeviceEntity = /** @class */ (function () {
|
|
5
|
+
// #endregion Properties (10)
|
|
6
|
+
// #region Constructors (1)
|
|
7
|
+
function PayioDeviceEntity(data) {
|
|
8
|
+
// #region Properties (10)
|
|
9
|
+
this.active = false;
|
|
10
|
+
this.companyId = '';
|
|
11
|
+
this.containerId = '';
|
|
12
|
+
this.createdAt = new Date();
|
|
13
|
+
this.deviceId = '';
|
|
14
|
+
this.id = '';
|
|
15
|
+
this.lastAccess = new Date();
|
|
16
|
+
this.name = '';
|
|
17
|
+
this.tags = [];
|
|
18
|
+
this.updatedAt = new Date();
|
|
19
|
+
if (data) {
|
|
20
|
+
for (var key in data) {
|
|
21
|
+
if (data.hasOwnProperty(key) && key in this) {
|
|
22
|
+
this[key] = data[key];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return PayioDeviceEntity;
|
|
28
|
+
}());
|
|
29
|
+
exports.PayioDeviceEntity = PayioDeviceEntity;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PayioDeviceEntity } from './device.entity';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioDeviceEntity = void 0;
|
|
4
|
+
var device_entity_1 = require("./device.entity");
|
|
5
|
+
Object.defineProperty(exports, "PayioDeviceEntity", { enumerable: true, get: function () { return device_entity_1.PayioDeviceEntity; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IPayioDevice } from './i-device';
|
package/dist/payio/index.d.ts
CHANGED
package/dist/payio/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./app"), exports);
|
|
17
18
|
__exportStar(require("./company"), exports);
|
|
19
|
+
__exportStar(require("./device"), exports);
|
|
18
20
|
__exportStar(require("./payload"), exports);
|
|
19
21
|
__exportStar(require("./permissions"), exports);
|
|
22
|
+
__exportStar(require("./subscriptions"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioSubscriptionEntity = exports.PayioSubscriptionLogEntity = exports.PayioSubscriptionItemEntity = void 0;
|
|
4
|
+
var subscription_item_entity_1 = require("./subscription-item.entity");
|
|
5
|
+
Object.defineProperty(exports, "PayioSubscriptionItemEntity", { enumerable: true, get: function () { return subscription_item_entity_1.PayioSubscriptionItemEntity; } });
|
|
6
|
+
var subscription_log_entity_1 = require("./subscription-log.entity");
|
|
7
|
+
Object.defineProperty(exports, "PayioSubscriptionLogEntity", { enumerable: true, get: function () { return subscription_log_entity_1.PayioSubscriptionLogEntity; } });
|
|
8
|
+
var subscription_entity_1 = require("./subscription.entity");
|
|
9
|
+
Object.defineProperty(exports, "PayioSubscriptionEntity", { enumerable: true, get: function () { return subscription_entity_1.PayioSubscriptionEntity; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPayioSubscriptionItem } from '../interfaces';
|
|
2
|
+
export declare class PayioSubscriptionItemEntity implements IPayioSubscriptionItem {
|
|
3
|
+
description: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
recurrent: boolean;
|
|
6
|
+
totalPrice: number;
|
|
7
|
+
unitPrice: number;
|
|
8
|
+
voucherKey: string | null;
|
|
9
|
+
constructor(data?: Partial<PayioSubscriptionItemEntity>);
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioSubscriptionItemEntity = void 0;
|
|
4
|
+
var PayioSubscriptionItemEntity = /** @class */ (function () {
|
|
5
|
+
// #endregion Properties (6)
|
|
6
|
+
// #region Constructors (1)
|
|
7
|
+
function PayioSubscriptionItemEntity(data) {
|
|
8
|
+
// #region Properties (6)
|
|
9
|
+
this.description = '';
|
|
10
|
+
this.quantity = 1;
|
|
11
|
+
this.recurrent = true;
|
|
12
|
+
this.totalPrice = 0;
|
|
13
|
+
this.unitPrice = 0;
|
|
14
|
+
this.voucherKey = null;
|
|
15
|
+
if (data) {
|
|
16
|
+
for (var key in data) {
|
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
|
18
|
+
this[key] = data[key];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return PayioSubscriptionItemEntity;
|
|
24
|
+
}());
|
|
25
|
+
exports.PayioSubscriptionItemEntity = PayioSubscriptionItemEntity;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPayioSubscriptionLog } from '../interfaces/i-subscription-log';
|
|
2
|
+
export declare class PayioSubscriptionLogEntity implements IPayioSubscriptionLog {
|
|
3
|
+
createdAt: Date;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
notes: string;
|
|
7
|
+
constructor(data?: Partial<PayioSubscriptionLogEntity>);
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioSubscriptionLogEntity = void 0;
|
|
4
|
+
var PayioSubscriptionLogEntity = /** @class */ (function () {
|
|
5
|
+
// #endregion Properties (4)
|
|
6
|
+
// #region Constructors (1)
|
|
7
|
+
function PayioSubscriptionLogEntity(data) {
|
|
8
|
+
// #region Properties (4)
|
|
9
|
+
this.createdAt = new Date();
|
|
10
|
+
this.description = '';
|
|
11
|
+
this.id = '';
|
|
12
|
+
this.notes = '';
|
|
13
|
+
if (data) {
|
|
14
|
+
for (var key in data) {
|
|
15
|
+
if (data.hasOwnProperty(key) && key in this) {
|
|
16
|
+
this[key] = data[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return PayioSubscriptionLogEntity;
|
|
22
|
+
}());
|
|
23
|
+
exports.PayioSubscriptionLogEntity = PayioSubscriptionLogEntity;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CustomVariableEntity, EIntervalType, ESubsStatus, PaymentMethodEntity } from '../../../general';
|
|
2
|
+
import { IPayioSubscription } from '../interfaces/i-subscription';
|
|
3
|
+
import { PayioSubscriptionItemEntity } from './subscription-item.entity';
|
|
4
|
+
import { PayioSubscriptionLogEntity } from './subscription-log.entity';
|
|
5
|
+
export declare class PayioSubscriptionEntity implements IPayioSubscription {
|
|
6
|
+
amount: number;
|
|
7
|
+
cancellationReason: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
customVariables: CustomVariableEntity[];
|
|
10
|
+
expiresAt: Date;
|
|
11
|
+
id: string;
|
|
12
|
+
interval: number;
|
|
13
|
+
intervalType: EIntervalType;
|
|
14
|
+
items: PayioSubscriptionItemEntity[];
|
|
15
|
+
logs: PayioSubscriptionLogEntity[];
|
|
16
|
+
notes: string;
|
|
17
|
+
payment: PaymentMethodEntity;
|
|
18
|
+
planId: string;
|
|
19
|
+
planName: string;
|
|
20
|
+
renewPaymentDate: Date;
|
|
21
|
+
renovatedAt: Date;
|
|
22
|
+
startsAt: Date;
|
|
23
|
+
status: ESubsStatus;
|
|
24
|
+
suspendedTimes: number;
|
|
25
|
+
tags: string[];
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
constructor(data?: Partial<PayioSubscriptionEntity>);
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayioSubscriptionEntity = void 0;
|
|
4
|
+
var general_1 = require("../../../general");
|
|
5
|
+
var PayioSubscriptionEntity = /** @class */ (function () {
|
|
6
|
+
// #endregion Properties (21)
|
|
7
|
+
// #region Constructors (1)
|
|
8
|
+
function PayioSubscriptionEntity(data) {
|
|
9
|
+
// #region Properties (21)
|
|
10
|
+
this.amount = 0;
|
|
11
|
+
this.cancellationReason = '';
|
|
12
|
+
this.createdAt = new Date();
|
|
13
|
+
this.customVariables = [];
|
|
14
|
+
this.expiresAt = new Date();
|
|
15
|
+
this.id = '';
|
|
16
|
+
this.interval = 0;
|
|
17
|
+
this.intervalType = general_1.EIntervalType.MONTHS;
|
|
18
|
+
this.items = [];
|
|
19
|
+
this.logs = [];
|
|
20
|
+
this.notes = '';
|
|
21
|
+
this.payment = new general_1.PaymentMethodEntity();
|
|
22
|
+
this.planId = '';
|
|
23
|
+
this.planName = '';
|
|
24
|
+
this.renewPaymentDate = new Date();
|
|
25
|
+
this.renovatedAt = new Date();
|
|
26
|
+
this.startsAt = new Date();
|
|
27
|
+
this.status = general_1.ESubsStatus.PENDING;
|
|
28
|
+
this.suspendedTimes = 0;
|
|
29
|
+
this.tags = [];
|
|
30
|
+
this.updatedAt = new Date();
|
|
31
|
+
if (data) {
|
|
32
|
+
for (var key in data) {
|
|
33
|
+
if (data.hasOwnProperty(key) && key in this) {
|
|
34
|
+
this[key] = data[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return PayioSubscriptionEntity;
|
|
40
|
+
}());
|
|
41
|
+
exports.PayioSubscriptionEntity = PayioSubscriptionEntity;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EIntervalType, ESubsStatus, ICustomVariable, IPaymentMethod } from '../../../general';
|
|
2
|
+
import { IPayioSubscriptionItem } from './i-subscription-item';
|
|
3
|
+
import { IPayioSubscriptionLog } from './i-subscription-log';
|
|
4
|
+
export interface IPayioSubscription {
|
|
5
|
+
amount: number;
|
|
6
|
+
cancellationReason: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
customVariables: ICustomVariable[];
|
|
9
|
+
expiresAt: Date;
|
|
10
|
+
id: string;
|
|
11
|
+
interval: number;
|
|
12
|
+
intervalType: EIntervalType;
|
|
13
|
+
items: IPayioSubscriptionItem[];
|
|
14
|
+
logs: IPayioSubscriptionLog[];
|
|
15
|
+
notes: string;
|
|
16
|
+
payment: IPaymentMethod;
|
|
17
|
+
planId: string;
|
|
18
|
+
planName: string;
|
|
19
|
+
renewPaymentDate: Date;
|
|
20
|
+
renovatedAt: Date;
|
|
21
|
+
startsAt: Date;
|
|
22
|
+
status: ESubsStatus;
|
|
23
|
+
suspendedTimes: number;
|
|
24
|
+
tags: string[];
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
}
|