@fiado/type-kit 3.388.0 → 3.390.0
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/bin/collection/dtos/CaptureCollectionHoldRequest.d.ts +25 -0
- package/bin/collection/dtos/CaptureCollectionHoldRequest.js +61 -0
- package/bin/collection/dtos/CaptureCollectionHoldResponse.d.ts +16 -0
- package/bin/collection/dtos/CaptureCollectionHoldResponse.js +41 -0
- package/bin/collection/enums/AckIntentStatus.d.ts +8 -0
- package/bin/collection/enums/AckIntentStatus.js +12 -0
- package/bin/collection/enums/RedriveOutboxStatus.d.ts +8 -0
- package/bin/collection/enums/RedriveOutboxStatus.js +12 -0
- package/bin/collection/enums/RetryIntentStatus.d.ts +8 -0
- package/bin/collection/enums/RetryIntentStatus.js +12 -0
- package/bin/collection/index.d.ts +5 -0
- package/bin/collection/index.js +5 -0
- package/package.json +1 -1
- package/src/collection/dtos/CaptureCollectionHoldRequest.ts +34 -0
- package/src/collection/dtos/CaptureCollectionHoldResponse.ts +21 -0
- package/src/collection/enums/AckIntentStatus.ts +8 -0
- package/src/collection/enums/RedriveOutboxStatus.ts +8 -0
- package/src/collection/enums/RetryIntentStatus.ts +8 -0
- package/src/collection/index.ts +5 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MechanismType } from '../enums/MechanismType';
|
|
2
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
3
|
+
/**
|
|
4
|
+
* Captura de una retención: el dinero que estaba congelado en la cuenta del titular por fin sale.
|
|
5
|
+
*
|
|
6
|
+
* Una reserva no es un cobro. Hasta que se captura, el importe sigue siendo del cliente —sólo que
|
|
7
|
+
* inmovilizado— y no hay asiento contable que lo respalde. Esta petición cierra ese ciclo.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CaptureCollectionHoldRequest {
|
|
10
|
+
/** Idempotencia: capturar dos veces con el mismo valor no mueve el dinero dos veces. */
|
|
11
|
+
executionId: string;
|
|
12
|
+
directoryId: string;
|
|
13
|
+
/** El identificador de la retención que devolvió el mecanismo al reservar. */
|
|
14
|
+
holdTxId: string;
|
|
15
|
+
/** Importe de la DEUDA que la retención cubre, sin la comisión encima. */
|
|
16
|
+
amount: number;
|
|
17
|
+
mechanism: MechanismType;
|
|
18
|
+
intentId?: string;
|
|
19
|
+
chargeId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Tarifa con la que se asienta el cobro. Presente, la captura deja transacción Fiado. Ausente, el
|
|
22
|
+
* dinero se libera igual pero sin asiento — mismo criterio que la autorización.
|
|
23
|
+
*/
|
|
24
|
+
pricing?: CollectionPricingDto;
|
|
25
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaptureCollectionHoldRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const MechanismType_1 = require("../enums/MechanismType");
|
|
16
|
+
const CollectionPricingDto_1 = require("./CollectionPricingDto");
|
|
17
|
+
/**
|
|
18
|
+
* Captura de una retención: el dinero que estaba congelado en la cuenta del titular por fin sale.
|
|
19
|
+
*
|
|
20
|
+
* Una reserva no es un cobro. Hasta que se captura, el importe sigue siendo del cliente —sólo que
|
|
21
|
+
* inmovilizado— y no hay asiento contable que lo respalde. Esta petición cierra ese ciclo.
|
|
22
|
+
*/
|
|
23
|
+
class CaptureCollectionHoldRequest {
|
|
24
|
+
}
|
|
25
|
+
exports.CaptureCollectionHoldRequest = CaptureCollectionHoldRequest;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CaptureCollectionHoldRequest.prototype, "executionId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CaptureCollectionHoldRequest.prototype, "directoryId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CaptureCollectionHoldRequest.prototype, "holdTxId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CaptureCollectionHoldRequest.prototype, "amount", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsEnum)(MechanismType_1.MechanismType),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CaptureCollectionHoldRequest.prototype, "mechanism", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CaptureCollectionHoldRequest.prototype, "intentId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CaptureCollectionHoldRequest.prototype, "chargeId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.ValidateNested)(),
|
|
59
|
+
(0, class_transformer_1.Type)(() => CollectionPricingDto_1.CollectionPricingDto),
|
|
60
|
+
__metadata("design:type", CollectionPricingDto_1.CollectionPricingDto)
|
|
61
|
+
], CaptureCollectionHoldRequest.prototype, "pricing", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CollectionResultStatus } from '../enums/CollectionResultStatus';
|
|
2
|
+
/**
|
|
3
|
+
* Resultado de capturar una retención.
|
|
4
|
+
*
|
|
5
|
+
* `FULL` es que el dinero salió de la cuenta y quedó asentado. `NONE` es que el proveedor no
|
|
6
|
+
* confirmó la captura: la retención sigue en pie y el importe sigue siendo del titular.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CaptureCollectionHoldResponse {
|
|
9
|
+
status: CollectionResultStatus;
|
|
10
|
+
/** Lo capturado, en importe de deuda. Cero si el proveedor no confirmó. */
|
|
11
|
+
amount: number;
|
|
12
|
+
/** Referencia de la captura en el proveedor, para cruzarla contra la retención original. */
|
|
13
|
+
captureTxId?: string;
|
|
14
|
+
/** Transacción Fiado del asiento, cuando la captura llevó tarifa. */
|
|
15
|
+
transactionId?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaptureCollectionHoldResponse = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
|
|
15
|
+
/**
|
|
16
|
+
* Resultado de capturar una retención.
|
|
17
|
+
*
|
|
18
|
+
* `FULL` es que el dinero salió de la cuenta y quedó asentado. `NONE` es que el proveedor no
|
|
19
|
+
* confirmó la captura: la retención sigue en pie y el importe sigue siendo del titular.
|
|
20
|
+
*/
|
|
21
|
+
class CaptureCollectionHoldResponse {
|
|
22
|
+
}
|
|
23
|
+
exports.CaptureCollectionHoldResponse = CaptureCollectionHoldResponse;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsEnum)(CollectionResultStatus_1.CollectionResultStatus),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CaptureCollectionHoldResponse.prototype, "status", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CaptureCollectionHoldResponse.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CaptureCollectionHoldResponse.prototype, "captureTxId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CaptureCollectionHoldResponse.prototype, "transactionId", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Desenlace de dar por atendida la alerta de un intent. No tiene variante "terminal": reconocer una
|
|
3
|
+
* alerta es válido incluso sobre un intent que ya cerró después del problema que la disparó.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AckIntentStatus {
|
|
6
|
+
ACKED = "ACKED",
|
|
7
|
+
NOT_FOUND = "NOT_FOUND"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AckIntentStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Desenlace de dar por atendida la alerta de un intent. No tiene variante "terminal": reconocer una
|
|
6
|
+
* alerta es válido incluso sobre un intent que ya cerró después del problema que la disparó.
|
|
7
|
+
*/
|
|
8
|
+
var AckIntentStatus;
|
|
9
|
+
(function (AckIntentStatus) {
|
|
10
|
+
AckIntentStatus["ACKED"] = "ACKED";
|
|
11
|
+
AckIntentStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
12
|
+
})(AckIntentStatus || (exports.AckIntentStatus = AckIntentStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Desenlace de reinyectar un evento atascado en la cola muerta. */
|
|
2
|
+
export declare enum RedriveOutboxStatus {
|
|
3
|
+
/** El evento volvió a la cola de entrega y se reintentará. */
|
|
4
|
+
REDRIVEN = "REDRIVEN",
|
|
5
|
+
/** El evento no estaba en la cola muerta: reinyectarlo duplicaría una entrega en curso. */
|
|
6
|
+
NOT_DLQ = "NOT_DLQ",
|
|
7
|
+
NOT_FOUND = "NOT_FOUND"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedriveOutboxStatus = void 0;
|
|
4
|
+
/** Desenlace de reinyectar un evento atascado en la cola muerta. */
|
|
5
|
+
var RedriveOutboxStatus;
|
|
6
|
+
(function (RedriveOutboxStatus) {
|
|
7
|
+
/** El evento volvió a la cola de entrega y se reintentará. */
|
|
8
|
+
RedriveOutboxStatus["REDRIVEN"] = "REDRIVEN";
|
|
9
|
+
/** El evento no estaba en la cola muerta: reinyectarlo duplicaría una entrega en curso. */
|
|
10
|
+
RedriveOutboxStatus["NOT_DLQ"] = "NOT_DLQ";
|
|
11
|
+
RedriveOutboxStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
12
|
+
})(RedriveOutboxStatus || (exports.RedriveOutboxStatus = RedriveOutboxStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Desenlace de un reintento forzado desde el panel de operación. */
|
|
2
|
+
export declare enum RetryIntentStatus {
|
|
3
|
+
/** El intent estaba vivo y quedó reagendado para el próximo barrido. */
|
|
4
|
+
RETRIED = "RETRIED",
|
|
5
|
+
/** El intent ya había terminado (cobrado o cancelado). Forzar un reintento sería revivirlo. */
|
|
6
|
+
ALREADY_TERMINAL = "ALREADY_TERMINAL",
|
|
7
|
+
NOT_FOUND = "NOT_FOUND"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryIntentStatus = void 0;
|
|
4
|
+
/** Desenlace de un reintento forzado desde el panel de operación. */
|
|
5
|
+
var RetryIntentStatus;
|
|
6
|
+
(function (RetryIntentStatus) {
|
|
7
|
+
/** El intent estaba vivo y quedó reagendado para el próximo barrido. */
|
|
8
|
+
RetryIntentStatus["RETRIED"] = "RETRIED";
|
|
9
|
+
/** El intent ya había terminado (cobrado o cancelado). Forzar un reintento sería revivirlo. */
|
|
10
|
+
RetryIntentStatus["ALREADY_TERMINAL"] = "ALREADY_TERMINAL";
|
|
11
|
+
RetryIntentStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
12
|
+
})(RetryIntentStatus || (exports.RetryIntentStatus = RetryIntentStatus = {}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './dtos/CaptureCollectionHoldRequest';
|
|
2
|
+
export * from './dtos/CaptureCollectionHoldResponse';
|
|
1
3
|
export * from './enums/MechanismType';
|
|
2
4
|
export * from './enums/CollectionState';
|
|
3
5
|
export * from './enums/SagaStep';
|
|
@@ -5,6 +7,9 @@ export * from './enums/CollectionResultStatus';
|
|
|
5
7
|
export * from './enums/DeregisterChargeStatus';
|
|
6
8
|
export * from './enums/RegisterCollectibleStatus';
|
|
7
9
|
export * from './enums/CollectionFeeMode';
|
|
10
|
+
export * from './enums/RetryIntentStatus';
|
|
11
|
+
export * from './enums/AckIntentStatus';
|
|
12
|
+
export * from './enums/RedriveOutboxStatus';
|
|
8
13
|
export * from './dtos/PendingChargeDto';
|
|
9
14
|
export * from './dtos/CollectRequest';
|
|
10
15
|
export * from './dtos/CollectResponse';
|
package/bin/collection/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Enums
|
|
18
|
+
__exportStar(require("./dtos/CaptureCollectionHoldRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/CaptureCollectionHoldResponse"), exports);
|
|
18
20
|
__exportStar(require("./enums/MechanismType"), exports);
|
|
19
21
|
__exportStar(require("./enums/CollectionState"), exports);
|
|
20
22
|
__exportStar(require("./enums/SagaStep"), exports);
|
|
@@ -22,6 +24,9 @@ __exportStar(require("./enums/CollectionResultStatus"), exports);
|
|
|
22
24
|
__exportStar(require("./enums/DeregisterChargeStatus"), exports);
|
|
23
25
|
__exportStar(require("./enums/RegisterCollectibleStatus"), exports);
|
|
24
26
|
__exportStar(require("./enums/CollectionFeeMode"), exports);
|
|
27
|
+
__exportStar(require("./enums/RetryIntentStatus"), exports);
|
|
28
|
+
__exportStar(require("./enums/AckIntentStatus"), exports);
|
|
29
|
+
__exportStar(require("./enums/RedriveOutboxStatus"), exports);
|
|
25
30
|
// DTOs
|
|
26
31
|
__exportStar(require("./dtos/PendingChargeDto"), exports);
|
|
27
32
|
__exportStar(require("./dtos/CollectRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IsString, IsNumber, IsOptional, IsEnum, ValidateNested } from 'class-validator';
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { MechanismType } from '../enums/MechanismType';
|
|
4
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Captura de una retención: el dinero que estaba congelado en la cuenta del titular por fin sale.
|
|
8
|
+
*
|
|
9
|
+
* Una reserva no es un cobro. Hasta que se captura, el importe sigue siendo del cliente —sólo que
|
|
10
|
+
* inmovilizado— y no hay asiento contable que lo respalde. Esta petición cierra ese ciclo.
|
|
11
|
+
*/
|
|
12
|
+
export class CaptureCollectionHoldRequest {
|
|
13
|
+
/** Idempotencia: capturar dos veces con el mismo valor no mueve el dinero dos veces. */
|
|
14
|
+
@IsString() executionId!: string;
|
|
15
|
+
|
|
16
|
+
@IsString() directoryId!: string;
|
|
17
|
+
|
|
18
|
+
/** El identificador de la retención que devolvió el mecanismo al reservar. */
|
|
19
|
+
@IsString() holdTxId!: string;
|
|
20
|
+
|
|
21
|
+
/** Importe de la DEUDA que la retención cubre, sin la comisión encima. */
|
|
22
|
+
@IsNumber() amount!: number;
|
|
23
|
+
|
|
24
|
+
@IsEnum(MechanismType) mechanism!: MechanismType;
|
|
25
|
+
|
|
26
|
+
@IsOptional() @IsString() intentId?: string;
|
|
27
|
+
@IsOptional() @IsString() chargeId?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Tarifa con la que se asienta el cobro. Presente, la captura deja transacción Fiado. Ausente, el
|
|
31
|
+
* dinero se libera igual pero sin asiento — mismo criterio que la autorización.
|
|
32
|
+
*/
|
|
33
|
+
@IsOptional() @ValidateNested() @Type(() => CollectionPricingDto) pricing?: CollectionPricingDto;
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IsString, IsNumber, IsOptional, IsEnum } from 'class-validator';
|
|
2
|
+
import { CollectionResultStatus } from '../enums/CollectionResultStatus';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de capturar una retención.
|
|
6
|
+
*
|
|
7
|
+
* `FULL` es que el dinero salió de la cuenta y quedó asentado. `NONE` es que el proveedor no
|
|
8
|
+
* confirmó la captura: la retención sigue en pie y el importe sigue siendo del titular.
|
|
9
|
+
*/
|
|
10
|
+
export class CaptureCollectionHoldResponse {
|
|
11
|
+
@IsEnum(CollectionResultStatus) status!: CollectionResultStatus;
|
|
12
|
+
|
|
13
|
+
/** Lo capturado, en importe de deuda. Cero si el proveedor no confirmó. */
|
|
14
|
+
@IsNumber() amount!: number;
|
|
15
|
+
|
|
16
|
+
/** Referencia de la captura en el proveedor, para cruzarla contra la retención original. */
|
|
17
|
+
@IsOptional() @IsString() captureTxId?: string;
|
|
18
|
+
|
|
19
|
+
/** Transacción Fiado del asiento, cuando la captura llevó tarifa. */
|
|
20
|
+
@IsOptional() @IsString() transactionId?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Desenlace de dar por atendida la alerta de un intent. No tiene variante "terminal": reconocer una
|
|
3
|
+
* alerta es válido incluso sobre un intent que ya cerró después del problema que la disparó.
|
|
4
|
+
*/
|
|
5
|
+
export enum AckIntentStatus {
|
|
6
|
+
ACKED = 'ACKED',
|
|
7
|
+
NOT_FOUND = 'NOT_FOUND',
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Desenlace de reinyectar un evento atascado en la cola muerta. */
|
|
2
|
+
export enum RedriveOutboxStatus {
|
|
3
|
+
/** El evento volvió a la cola de entrega y se reintentará. */
|
|
4
|
+
REDRIVEN = 'REDRIVEN',
|
|
5
|
+
/** El evento no estaba en la cola muerta: reinyectarlo duplicaría una entrega en curso. */
|
|
6
|
+
NOT_DLQ = 'NOT_DLQ',
|
|
7
|
+
NOT_FOUND = 'NOT_FOUND',
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Desenlace de un reintento forzado desde el panel de operación. */
|
|
2
|
+
export enum RetryIntentStatus {
|
|
3
|
+
/** El intent estaba vivo y quedó reagendado para el próximo barrido. */
|
|
4
|
+
RETRIED = 'RETRIED',
|
|
5
|
+
/** El intent ya había terminado (cobrado o cancelado). Forzar un reintento sería revivirlo. */
|
|
6
|
+
ALREADY_TERMINAL = 'ALREADY_TERMINAL',
|
|
7
|
+
NOT_FOUND = 'NOT_FOUND',
|
|
8
|
+
}
|
package/src/collection/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// Enums
|
|
2
|
+
export * from './dtos/CaptureCollectionHoldRequest';
|
|
3
|
+
export * from './dtos/CaptureCollectionHoldResponse';
|
|
2
4
|
export * from './enums/MechanismType';
|
|
3
5
|
export * from './enums/CollectionState';
|
|
4
6
|
export * from './enums/SagaStep';
|
|
@@ -6,6 +8,9 @@ export * from './enums/CollectionResultStatus';
|
|
|
6
8
|
export * from './enums/DeregisterChargeStatus';
|
|
7
9
|
export * from './enums/RegisterCollectibleStatus';
|
|
8
10
|
export * from './enums/CollectionFeeMode';
|
|
11
|
+
export * from './enums/RetryIntentStatus';
|
|
12
|
+
export * from './enums/AckIntentStatus';
|
|
13
|
+
export * from './enums/RedriveOutboxStatus';
|
|
9
14
|
|
|
10
15
|
// DTOs
|
|
11
16
|
export * from './dtos/PendingChargeDto';
|