cecon-interfaces 1.1.56 → 1.1.58
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +2 -2
- package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +1 -1
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +6 -4
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +6 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription-item.entity.d.ts +1 -1
- package/dist/subscription/entities/subscription-item.entity.js +1 -1
- package/dist/subscription/interfaces/i-subscription-item.d.ts +1 -1
- package/dist/voucher/entities/voucher.entity.d.ts +3 -1
- package/dist/voucher/entities/voucher.entity.js +4 -3
- package/dist/voucher/interfaces/i-voucher.d.ts +1 -0
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -11,7 +11,7 @@ var SubscriptionItemEntity = /** @class */ (function () {
|
|
11
11
|
this.recurrent = true;
|
12
12
|
this.totalPrice = 0;
|
13
13
|
this.unitPrice = 0;
|
14
|
-
this.
|
14
|
+
this.voucherKey = null;
|
15
15
|
if (data) {
|
16
16
|
for (var key in data) {
|
17
17
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -16,11 +16,13 @@ export declare class VoucherEntity implements IVoucher {
|
|
16
16
|
isPublic: boolean;
|
17
17
|
key: string;
|
18
18
|
maxUses: number;
|
19
|
-
|
19
|
+
partnersId: string[];
|
20
|
+
recurrent: boolean;
|
20
21
|
sponsorship: SponsorshipValueEntity[];
|
21
22
|
status: EVoucherStatus;
|
22
23
|
tags: string[];
|
23
24
|
updatedAt: Date;
|
24
25
|
usedCount: number;
|
25
26
|
constructor(data?: Partial<VoucherEntity>);
|
27
|
+
partnerId: string[];
|
26
28
|
}
|
@@ -4,10 +4,10 @@ exports.VoucherEntity = void 0;
|
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var VoucherEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (21)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function VoucherEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (21)
|
11
11
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
12
12
|
this.allowsKeyChange = false;
|
13
13
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -35,7 +35,8 @@ var VoucherEntity = /** @class */ (function () {
|
|
35
35
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
36
36
|
this.maxUses = -1;
|
37
37
|
// ID do parceiro associado ao cupom (opcional)
|
38
|
-
this.
|
38
|
+
this.partnersId = [];
|
39
|
+
this.recurrent = false;
|
39
40
|
// informação de patrocínio (opcional)
|
40
41
|
this.sponsorship = [];
|
41
42
|
// status do cupom
|