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
@@ -5,7 +5,7 @@ export class SubscriptionItemEntity {
|
|
5
5
|
recurrent = true;
|
6
6
|
totalPrice = 0;
|
7
7
|
unitPrice = 0;
|
8
|
-
|
8
|
+
voucherKey = null;
|
9
9
|
// #endregion Properties (6)
|
10
10
|
// #region Constructors (1)
|
11
11
|
constructor(data) {
|
@@ -18,4 +18,4 @@ export class SubscriptionItemEntity {
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
}
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLWl0ZW0uZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N1YnNjcmlwdGlvbi9lbnRpdGllcy9zdWJzY3JpcHRpb24taXRlbS5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLHNCQUFzQjtJQUNqQyx5QkFBeUI7SUFFbEIsV0FBVyxH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b24gUHJvcGVydGllcyAoNilcblxuICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxTdWJzY3JpcHRpb25JdGVtRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24taXRlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zdWJzY3JpcHRpb24vaW50ZXJmYWNlcy9pLXN1YnNjcmlwdGlvbi1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElTdWJzY3JpcHRpb25JdGVtIHtcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg1KVxuXG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIHF1YW50aXR5OiBudW1iZXI7XG4gIHJlY3VycmVudDogYm9vbGVhbjtcbiAgdm91Y2hlcktleTogc3RyaW5nIHwgbnVsbDtcbiAgdG90YWxQcmljZTogbnVtYmVyO1xuICB1bml0UHJpY2U6IG51bWJlcjtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDUpXG59XG4iXX0=
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EDiscountType } from '../../general';
|
2
2
|
import { EVoucherStatus } from '../enums';
|
3
3
|
export class VoucherEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (21)
|
5
5
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
6
6
|
allowsKeyChange = false;
|
7
7
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -29,7 +29,8 @@ export class VoucherEntity {
|
|
29
29
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
30
30
|
maxUses = -1;
|
31
31
|
// ID do parceiro associado ao cupom (opcional)
|
32
|
-
|
32
|
+
partnersId = [];
|
33
|
+
recurrent = false;
|
33
34
|
// informação de patrocínio (opcional)
|
34
35
|
sponsorship = [];
|
35
36
|
// status do cupom
|
@@ -39,7 +40,7 @@ export class VoucherEntity {
|
|
39
40
|
updatedAt = new Date();
|
40
41
|
// contador de quantas vezes o cupom foi usado
|
41
42
|
usedCount = 0;
|
42
|
-
// #endregion Properties (
|
43
|
+
// #endregion Properties (21)
|
43
44
|
// #region Constructors (1)
|
44
45
|
constructor(data) {
|
45
46
|
if (data) {
|
@@ -50,5 +51,6 @@ export class VoucherEntity {
|
|
50
51
|
}
|
51
52
|
}
|
52
53
|
}
|
54
|
+
partnerId;
|
53
55
|
}
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQ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WRBdDogRGF0ZSA9IG5ldyBEYXRlKCk7XHJcbiAgLy8gY29udGFkb3IgZGUgcXVhbnRhcyB2ZXplcyBvIGN1cG9tIGZvaSB1c2Fkb1xyXG4gIHB1YmxpYyB1c2VkQ291bnQ6IG51bWJlciA9IDA7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjEpXHJcblxyXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG5cclxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxWb3VjaGVyRW50aXR5Pikge1xyXG4gICAgaWYgKGRhdGEpIHtcclxuICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG4gIHBhcnRuZXJJZDogc3RyaW5nW107XHJcblxyXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG4gIC8vIGRhdGEgZGEgw7psdGltYSBhdHVhbGl6YcOnw6NvIGRhIGNhbXBhbmhhXHJcbn1cclxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS12b3VjaGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3ZvdWNoZXIvaW50ZXJmYWNlcy9pLXZvdWNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVEaXNjb3VudFR5cGUsIElTcG9uc29yc2hpcFZhbHVlIH0gZn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hbHVlW107XHJcbiAgLy8gc3RhdHVzIGRvIGN1cG9tXHJcbiAgc3RhdHVzOiBFVm91Y2hlclN0YXR1cztcclxuICB0YWdzOiBzdHJpbmdbXTtcclxuICAvLyBkYXRhIGRhIMO6bHRpbWEgYXR1YWxpemHDp8OjbyBkbyBjdXBvbVxyXG4gIHVwZGF0ZWRBdDogRGF0ZTtcclxuICAvLyBjb250YWRvciBkZSBxdWFudGFzIHZlemVzIG8gY3Vwb20gZm9pIHVzYWRvXHJcbiAgdXNlZENvdW50OiBudW1iZXI7XHJcbiAgcmVjdXJyZW50OiBib29sZWFuO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDIwKVxyXG4gIC8vIGRhdGEgZGEgw7psdGltYSBhdHVhbGl6YcOnw6NvIGRhIGNhbXBhbmhhXHJcbn1cclxuIl19
|
@@ -2956,7 +2956,7 @@ class SubscriptionItemEntity {
|
|
2956
2956
|
recurrent = true;
|
2957
2957
|
totalPrice = 0;
|
2958
2958
|
unitPrice = 0;
|
2959
|
-
|
2959
|
+
voucherKey = null;
|
2960
2960
|
// #endregion Properties (6)
|
2961
2961
|
// #region Constructors (1)
|
2962
2962
|
constructor(data) {
|
@@ -3073,7 +3073,7 @@ var EVoucherStatus;
|
|
3073
3073
|
})(EVoucherStatus || (EVoucherStatus = {}));
|
3074
3074
|
|
3075
3075
|
class VoucherEntity {
|
3076
|
-
// #region Properties (
|
3076
|
+
// #region Properties (21)
|
3077
3077
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
3078
3078
|
allowsKeyChange = false;
|
3079
3079
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -3101,7 +3101,8 @@ class VoucherEntity {
|
|
3101
3101
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
3102
3102
|
maxUses = -1;
|
3103
3103
|
// ID do parceiro associado ao cupom (opcional)
|
3104
|
-
|
3104
|
+
partnersId = [];
|
3105
|
+
recurrent = false;
|
3105
3106
|
// informação de patrocínio (opcional)
|
3106
3107
|
sponsorship = [];
|
3107
3108
|
// status do cupom
|
@@ -3111,7 +3112,7 @@ class VoucherEntity {
|
|
3111
3112
|
updatedAt = new Date();
|
3112
3113
|
// contador de quantas vezes o cupom foi usado
|
3113
3114
|
usedCount = 0;
|
3114
|
-
// #endregion Properties (
|
3115
|
+
// #endregion Properties (21)
|
3115
3116
|
// #region Constructors (1)
|
3116
3117
|
constructor(data) {
|
3117
3118
|
if (data) {
|
@@ -3122,6 +3123,7 @@ class VoucherEntity {
|
|
3122
3123
|
}
|
3123
3124
|
}
|
3124
3125
|
}
|
3126
|
+
partnerId;
|
3125
3127
|
}
|
3126
3128
|
|
3127
3129
|
/**
|