cecon-interfaces 1.1.24 → 1.1.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +5 -4
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +4 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/voucher/entities/voucher.entity.d.ts +2 -1
- package/dist/voucher/entities/voucher.entity.js +4 -3
- package/dist/voucher/interfaces/i-voucher.d.ts +3 -2
- package/package.json +1 -1
package/dist/package.json
CHANGED
@@ -4,6 +4,7 @@ import { IVoucher } from '../interfaces';
|
|
4
4
|
export declare class VoucherEntity implements IVoucher {
|
5
5
|
allowsKeyChange: boolean;
|
6
6
|
amount: number;
|
7
|
+
appId: string[];
|
7
8
|
campaignId?: string | null;
|
8
9
|
companyId?: string | null;
|
9
10
|
containerId?: string | null;
|
@@ -15,7 +16,7 @@ export declare class VoucherEntity implements IVoucher {
|
|
15
16
|
isPublic: boolean;
|
16
17
|
key: string;
|
17
18
|
maxUses: number;
|
18
|
-
partnerId: string
|
19
|
+
partnerId: string[];
|
19
20
|
sponsorship: SponsorshipValueEntity[];
|
20
21
|
status: EVoucherStatus;
|
21
22
|
tags: string[];
|
@@ -4,14 +4,15 @@ 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 (20)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function VoucherEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (20)
|
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)
|
14
14
|
this.amount = 0;
|
15
|
+
this.appId = [];
|
15
16
|
// ID da campanha associada (opcional para uso futuro)
|
16
17
|
this.campaignId = null;
|
17
18
|
// ID da empresa associada ao cupom (opcional)
|
@@ -34,7 +35,7 @@ var VoucherEntity = /** @class */ (function () {
|
|
34
35
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
35
36
|
this.maxUses = -1;
|
36
37
|
// ID do parceiro associado ao cupom (opcional)
|
37
|
-
this.partnerId =
|
38
|
+
this.partnerId = [];
|
38
39
|
// informação de patrocínio (opcional)
|
39
40
|
this.sponsorship = [];
|
40
41
|
// status do cupom
|
@@ -3,6 +3,7 @@ import { EVoucherStatus } from '../enums';
|
|
3
3
|
export interface IVoucher {
|
4
4
|
allowsKeyChange: boolean;
|
5
5
|
amount: number;
|
6
|
+
appId: string[];
|
6
7
|
campaignId?: string | null;
|
7
8
|
companyId?: string | null;
|
8
9
|
containerId?: string | null;
|
@@ -11,13 +12,13 @@ export interface IVoucher {
|
|
11
12
|
discountType: EDiscountType;
|
12
13
|
expirationDate: Date;
|
13
14
|
id: string;
|
14
|
-
tags: string[];
|
15
15
|
isPublic: boolean;
|
16
16
|
key: string;
|
17
17
|
maxUses: number;
|
18
|
-
partnerId
|
18
|
+
partnerId: string[];
|
19
19
|
sponsorship: ISponsorshipValue[];
|
20
20
|
status: EVoucherStatus;
|
21
|
+
tags: string[];
|
21
22
|
updatedAt: Date;
|
22
23
|
usedCount: number;
|
23
24
|
}
|