cecon-interfaces 1.9.83 → 1.9.85
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/from.enum.mjs +1 -1
- package/dist/esm2022/natipay/orders/entities/order.entity.mjs +2 -1
- package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +2 -1
- package/dist/esm2022/natipay/orders/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/payio/device/entities/device-config.entity.mjs +14 -0
- package/dist/esm2022/payio/device/entities/device.entity.mjs +3 -4
- package/dist/esm2022/payio/device/entities/index.mjs +2 -2
- package/dist/esm2022/payio/device/interfaces/i-device-config.mjs +2 -0
- package/dist/esm2022/payio/device/interfaces/i-device.mjs +1 -1
- package/dist/esm2022/payio/device/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +8 -12
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/natipay/orders/entities/order.entity.d.ts +1 -0
- package/dist/natipay/orders/entities/order.entity.js +1 -0
- package/dist/natipay/orders/enums/sale-channel.enum.d.ts +1 -0
- package/dist/natipay/orders/enums/sale-channel.enum.js +1 -0
- package/dist/natipay/orders/interfaces/i-order.d.ts +1 -0
- package/dist/payio/device/entities/device-config.entity.d.ts +6 -0
- package/dist/payio/device/entities/device-config.entity.js +18 -0
- package/dist/payio/device/entities/device.entity.d.ts +4 -4
- package/dist/payio/device/entities/device.entity.js +2 -3
- package/dist/payio/device/entities/index.d.ts +1 -1
- package/dist/payio/device/entities/index.js +3 -3
- package/dist/payio/device/interfaces/i-device-config.d.ts +4 -0
- package/dist/payio/device/interfaces/i-device-config.js +2 -0
- package/dist/payio/device/interfaces/i-device.d.ts +4 -4
- package/dist/payio/device/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/temp.md +33 -0
- package/dist/esm2022/payio/device/entities/device-chef.entity.mjs +0 -19
- package/dist/payio/device/entities/device-chef.entity.d.ts +0 -8
- package/dist/payio/device/entities/device-chef.entity.js +0 -23
@@ -7,6 +7,7 @@ import { NatipayMercadoPagoEntity } from './mercado-pago.entity';
|
|
7
7
|
export declare class NatipayOrderEntity implements INatipayOrder {
|
8
8
|
additionalFees: IOrderAdditionalFee[];
|
9
9
|
benefits: IOrderBenefits[];
|
10
|
+
callbacks: string[];
|
10
11
|
cancellation: IOrderCancellation | null;
|
11
12
|
companyId: string;
|
12
13
|
companyName: string;
|
@@ -3,6 +3,7 @@ export declare enum ENatipaySaleChannel {
|
|
3
3
|
PAYIO_CHEF = "PAYIOCHEF",
|
4
4
|
PAYIO_GESTOR = "PAYIO-GESTOR",
|
5
5
|
PAYIO_GESTOR_ORDER = "PAYIO-GESTOR-ORDER",
|
6
|
+
PAYIO_GESTOR_CREDIT = "PAYIO-GESTOR-CREDIT",
|
6
7
|
PAYIO_SMART = "PAYIO-SMART",
|
7
8
|
GESTOR_FINANCE = "GESTOR-FINANCE",
|
8
9
|
NATIPAY = "NATIPAY",
|
@@ -8,6 +8,7 @@ var ENatipaySaleChannel;
|
|
8
8
|
ENatipaySaleChannel["PAYIO_CHEF"] = "PAYIOCHEF";
|
9
9
|
ENatipaySaleChannel["PAYIO_GESTOR"] = "PAYIO-GESTOR";
|
10
10
|
ENatipaySaleChannel["PAYIO_GESTOR_ORDER"] = "PAYIO-GESTOR-ORDER";
|
11
|
+
ENatipaySaleChannel["PAYIO_GESTOR_CREDIT"] = "PAYIO-GESTOR-CREDIT";
|
11
12
|
ENatipaySaleChannel["PAYIO_SMART"] = "PAYIO-SMART";
|
12
13
|
ENatipaySaleChannel["GESTOR_FINANCE"] = "GESTOR-FINANCE";
|
13
14
|
ENatipaySaleChannel["NATIPAY"] = "NATIPAY";
|
@@ -6,6 +6,7 @@ import { INatipayMercadoPago } from './i-mercado-pago';
|
|
6
6
|
export interface INatipayOrder {
|
7
7
|
additionalFees: IOrderAdditionalFee[];
|
8
8
|
benefits: IOrderBenefits[];
|
9
|
+
callbacks: string[];
|
9
10
|
cancellation: IOrderCancellation | null;
|
10
11
|
companyId: string;
|
11
12
|
companyName: string;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PayioDeviceConfigEntity = void 0;
|
4
|
+
var PayioDeviceConfigEntity = /** @class */ (function () {
|
5
|
+
function PayioDeviceConfigEntity(data) {
|
6
|
+
this.key = null;
|
7
|
+
this.value = null;
|
8
|
+
if (data) {
|
9
|
+
for (var key in data) {
|
10
|
+
if (data.hasOwnProperty(key) && key in this) {
|
11
|
+
this[key] = data[key];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
return PayioDeviceConfigEntity;
|
17
|
+
}());
|
18
|
+
exports.PayioDeviceConfigEntity = PayioDeviceConfigEntity;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { IPayioDevice } from '../interfaces/i-device';
|
2
|
-
import {
|
2
|
+
import { IPayioDeviceActivation } from '../interfaces/i-device-activation';
|
3
|
+
import { IPayioDeviceConfig } from '../interfaces/i-device-config';
|
3
4
|
export declare class PayioDeviceEntity implements IPayioDevice {
|
4
|
-
|
5
|
-
activationKey: string | null;
|
5
|
+
activations: IPayioDeviceActivation[];
|
6
6
|
active: boolean;
|
7
|
-
|
7
|
+
configs: IPayioDeviceConfig[];
|
8
8
|
companyId: string;
|
9
9
|
containerId: string;
|
10
10
|
createdAt: Date;
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PayioDeviceEntity = void 0;
|
4
4
|
var PayioDeviceEntity = /** @class */ (function () {
|
5
5
|
function PayioDeviceEntity(data) {
|
6
|
-
this.
|
7
|
-
this.activationKey = null;
|
6
|
+
this.activations = [];
|
8
7
|
this.active = false;
|
9
|
-
this.
|
8
|
+
this.configs = [];
|
10
9
|
this.companyId = '';
|
11
10
|
this.containerId = '';
|
12
11
|
this.createdAt = new Date();
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayioDeviceEntity = exports.
|
3
|
+
exports.PayioDeviceEntity = exports.PayioDeviceConfigEntity = exports.PayioDeviceActivationEntity = void 0;
|
4
4
|
var device_activation_entity_1 = require("./device-activation.entity");
|
5
5
|
Object.defineProperty(exports, "PayioDeviceActivationEntity", { enumerable: true, get: function () { return device_activation_entity_1.PayioDeviceActivationEntity; } });
|
6
|
-
var
|
7
|
-
Object.defineProperty(exports, "
|
6
|
+
var device_config_entity_1 = require("./device-config.entity");
|
7
|
+
Object.defineProperty(exports, "PayioDeviceConfigEntity", { enumerable: true, get: function () { return device_config_entity_1.PayioDeviceConfigEntity; } });
|
8
8
|
var device_entity_1 = require("./device.entity");
|
9
9
|
Object.defineProperty(exports, "PayioDeviceEntity", { enumerable: true, get: function () { return device_entity_1.PayioDeviceEntity; } });
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
1
|
+
import { IPayioDeviceActivation } from './i-device-activation';
|
2
|
+
import { IPayioDeviceConfig } from './i-device-config';
|
2
3
|
export interface IPayioDevice {
|
3
|
-
|
4
|
-
activationId: string | null;
|
4
|
+
activations: IPayioDeviceActivation[];
|
5
5
|
active: boolean;
|
6
|
-
chef: IPayioDeviceChef | null;
|
7
6
|
companyId: string;
|
8
7
|
containerId: string;
|
9
8
|
createdAt: Date;
|
10
9
|
deviceId: string;
|
11
10
|
id: string;
|
11
|
+
configs: IPayioDeviceConfig[];
|
12
12
|
lastAccess: Date;
|
13
13
|
name: string;
|
14
14
|
sandbox: boolean;
|
package/package.json
CHANGED
package/temp.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Fluxo de Recarga - Organograma
|
2
|
+
|
3
|
+
## 📱 Frontend (App)
|
4
|
+
|
5
|
+
### 1. Botão de Recarga
|
6
|
+
- **Localização**: Interface do usuário
|
7
|
+
- **Ação**: Usuário solicita recarga de créditos
|
8
|
+
- **Chamada**: API interna para gerar PIX
|
9
|
+
|
10
|
+
---
|
11
|
+
|
12
|
+
## 🔧 Backend (API Interna)
|
13
|
+
|
14
|
+
### 2. Endpoint de Geração de PIX
|
15
|
+
- **Método**: POST `/api/recarga/gerar-pix`
|
16
|
+
- **Parâmetros**:
|
17
|
+
- `amount`: Valor da recarga
|
18
|
+
- `userId`: ID do usuário
|
19
|
+
- **Ação**: Chama API Natipay
|
20
|
+
|
21
|
+
### 3. Chamada para Natipay
|
22
|
+
- **Endpoint**: POST Natipay `/orders`
|
23
|
+
- **Body**:
|
24
|
+
```json
|
25
|
+
{
|
26
|
+
"displayId": "${TENANT_ID}_POSID_PAYIO_GESTOR",
|
27
|
+
"from": "PAYIO_GESTOR",
|
28
|
+
"items": [],
|
29
|
+
"orderAmount": ":AMOUNT",
|
30
|
+
"reference": ":REFERENCE",
|
31
|
+
"saleChannel": "PAYIOGESTOR",
|
32
|
+
"callbacks": ["URL_CALLBACK"]
|
33
|
+
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export class PayioDeviceChefEntity {
|
2
|
-
// #region Properties (4)
|
3
|
-
chefConfigId = null;
|
4
|
-
chefConfigName = null;
|
5
|
-
scheduleId = null;
|
6
|
-
scheduleName = null;
|
7
|
-
// #endregion Properties (4)
|
8
|
-
// #region Constructors (1)
|
9
|
-
constructor(data) {
|
10
|
-
if (data) {
|
11
|
-
for (let key in data) {
|
12
|
-
if (data.hasOwnProperty(key) && key in this) {
|
13
|
-
this[key] = data[key];
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV2aWNlLWNoZWYuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2RldmljZS9lbnRpdGllcy9kZXZpY2UtY2hlZi5lbnRpdH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bGwgPSBudWxsO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDQpXHJcblxyXG4gIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG5cclxuICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxQYXlpb0RldmljZUNoZWZFbnRpdHk+KSB7XHJcbiAgICBpZiAoZGF0YSkge1xyXG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xyXG4gICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcclxuICAgICAgICAgICh0aGlzIGFzIGFueSlba2V5XSA9IChkYXRhIGFzIGFueSlba2V5XTtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxyXG59XHJcbiJdfQ==
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { IPayioDeviceChef } from '../interfaces/i-device-chef';
|
2
|
-
export declare class PayioDeviceChefEntity implements IPayioDeviceChef {
|
3
|
-
chefConfigId: string | null;
|
4
|
-
chefConfigName: string | null;
|
5
|
-
scheduleId: string | null;
|
6
|
-
scheduleName: string | null;
|
7
|
-
constructor(data?: Partial<PayioDeviceChefEntity>);
|
8
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PayioDeviceChefEntity = void 0;
|
4
|
-
var PayioDeviceChefEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (4)
|
6
|
-
// #region Constructors (1)
|
7
|
-
function PayioDeviceChefEntity(data) {
|
8
|
-
// #region Properties (4)
|
9
|
-
this.chefConfigId = null;
|
10
|
-
this.chefConfigName = null;
|
11
|
-
this.scheduleId = null;
|
12
|
-
this.scheduleName = null;
|
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 PayioDeviceChefEntity;
|
22
|
-
}());
|
23
|
-
exports.PayioDeviceChefEntity = PayioDeviceChefEntity;
|