@fiado/type-kit 3.387.0 → 3.389.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/CollectRequest.d.ts +6 -0
- package/bin/collection/dtos/CollectRequest.js +8 -0
- package/bin/collection/dtos/CollectionAttemptDto.d.ts +8 -0
- package/bin/collection/dtos/CollectionAttemptDto.js +13 -0
- package/bin/collection/dtos/PendingChargeDto.d.ts +7 -0
- package/bin/collection/dtos/PendingChargeDto.js +13 -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 +3 -0
- package/bin/collection/index.js +3 -0
- package/package.json +1 -1
- package/src/collection/dtos/CollectRequest.ts +9 -1
- package/src/collection/dtos/CollectionAttemptDto.ts +11 -1
- package/src/collection/dtos/PendingChargeDto.ts +9 -1
- 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 +3 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
1
2
|
/**
|
|
2
3
|
* Cobro inmediato y síncrono, con el importe ya resuelto por el dominio.
|
|
3
4
|
*
|
|
@@ -14,4 +15,9 @@ export declare class CollectRequest {
|
|
|
14
15
|
productId: string;
|
|
15
16
|
chargeId: string;
|
|
16
17
|
amount: number;
|
|
18
|
+
/**
|
|
19
|
+
* Tarifa con la que se cobra este cargo. Ausente, se aplica la configurada para la fuente — que es
|
|
20
|
+
* lo normal; se manda sólo cuando este cobro tiene condiciones propias.
|
|
21
|
+
*/
|
|
22
|
+
pricing?: CollectionPricingDto;
|
|
17
23
|
}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CollectRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const CollectionPricingDto_1 = require("./CollectionPricingDto");
|
|
14
16
|
/**
|
|
15
17
|
* Cobro inmediato y síncrono, con el importe ya resuelto por el dominio.
|
|
16
18
|
*
|
|
@@ -47,3 +49,9 @@ __decorate([
|
|
|
47
49
|
(0, class_validator_1.IsNumber)(),
|
|
48
50
|
__metadata("design:type", Number)
|
|
49
51
|
], CollectRequest.prototype, "amount", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.ValidateNested)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => CollectionPricingDto_1.CollectionPricingDto),
|
|
56
|
+
__metadata("design:type", CollectionPricingDto_1.CollectionPricingDto)
|
|
57
|
+
], CollectRequest.prototype, "pricing", void 0);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
1
2
|
import { MechanismType } from '../enums/MechanismType';
|
|
2
3
|
import { CollectionResultStatus } from '../enums/CollectionResultStatus';
|
|
3
4
|
/** Un intento de cobro ejecutado sobre un intent, para el backoffice de monitoreo. */
|
|
@@ -11,5 +12,12 @@ export declare class CollectionAttemptDto {
|
|
|
11
12
|
result?: CollectionResultStatus;
|
|
12
13
|
errorCode?: string;
|
|
13
14
|
errorDetail?: string;
|
|
15
|
+
/**
|
|
16
|
+
* La tarifa que se aplicó en ESTE intento. Se guarda por intento y no se deduce de la config
|
|
17
|
+
* porque la config puede haber cambiado desde entonces, y sin esto no habría forma de reconstruir
|
|
18
|
+
* con qué comisión se cobró.
|
|
19
|
+
*/
|
|
20
|
+
pricing?: CollectionPricingDto;
|
|
21
|
+
collectionCycle?: number;
|
|
14
22
|
createdAt: number;
|
|
15
23
|
}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CollectionAttemptDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const CollectionPricingDto_1 = require("./CollectionPricingDto");
|
|
14
16
|
const MechanismType_1 = require("../enums/MechanismType");
|
|
15
17
|
const CollectionResultStatus_1 = require("../enums/CollectionResultStatus");
|
|
16
18
|
/** Un intento de cobro ejecutado sobre un intent, para el backoffice de monitoreo. */
|
|
@@ -57,6 +59,17 @@ __decorate([
|
|
|
57
59
|
(0, class_validator_1.IsString)(),
|
|
58
60
|
__metadata("design:type", String)
|
|
59
61
|
], CollectionAttemptDto.prototype, "errorDetail", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.ValidateNested)(),
|
|
65
|
+
(0, class_transformer_1.Type)(() => CollectionPricingDto_1.CollectionPricingDto),
|
|
66
|
+
__metadata("design:type", CollectionPricingDto_1.CollectionPricingDto)
|
|
67
|
+
], CollectionAttemptDto.prototype, "pricing", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsInt)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], CollectionAttemptDto.prototype, "collectionCycle", void 0);
|
|
60
73
|
__decorate([
|
|
61
74
|
(0, class_validator_1.IsInt)(),
|
|
62
75
|
__metadata("design:type", Number)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
2
3
|
/**
|
|
3
4
|
* Un cargo vivo, según el dominio que lleva la deuda.
|
|
4
5
|
*
|
|
@@ -8,6 +9,11 @@ import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
|
8
9
|
*
|
|
9
10
|
* El desglose (capital, interés, impuesto) es opcional y no participa del cobro: viaja para que el
|
|
10
11
|
* asiento y los reportes puedan reconstruirlo.
|
|
12
|
+
*
|
|
13
|
+
* `pricing` sigue el mismo criterio que `amount`: las condiciones comerciales de una cartera las
|
|
14
|
+
* conoce el dominio, no el motor. Va por cargo y no por producto porque la misma mecánica de cobro
|
|
15
|
+
* puede tarifarse distinto para un cliente concreto —una promoción, un beneficio, la comisión
|
|
16
|
+
* perdonada de la primera cuota—. Ausente, el motor aplica la tarifa configurada para la fuente.
|
|
11
17
|
*/
|
|
12
18
|
export declare class PendingChargeDto {
|
|
13
19
|
chargeId: string;
|
|
@@ -25,5 +31,6 @@ export declare class PendingChargeDto {
|
|
|
25
31
|
taxAmount?: number;
|
|
26
32
|
outstandingBalance?: number;
|
|
27
33
|
amountCollected?: number;
|
|
34
|
+
pricing?: CollectionPricingDto;
|
|
28
35
|
metadata?: Record<string, unknown>;
|
|
29
36
|
}
|
|
@@ -11,7 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PendingChargeDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const CurrencyId_1 = require("../../currency/enums/CurrencyId");
|
|
16
|
+
const CollectionPricingDto_1 = require("./CollectionPricingDto");
|
|
15
17
|
/**
|
|
16
18
|
* Un cargo vivo, según el dominio que lleva la deuda.
|
|
17
19
|
*
|
|
@@ -21,6 +23,11 @@ const CurrencyId_1 = require("../../currency/enums/CurrencyId");
|
|
|
21
23
|
*
|
|
22
24
|
* El desglose (capital, interés, impuesto) es opcional y no participa del cobro: viaja para que el
|
|
23
25
|
* asiento y los reportes puedan reconstruirlo.
|
|
26
|
+
*
|
|
27
|
+
* `pricing` sigue el mismo criterio que `amount`: las condiciones comerciales de una cartera las
|
|
28
|
+
* conoce el dominio, no el motor. Va por cargo y no por producto porque la misma mecánica de cobro
|
|
29
|
+
* puede tarifarse distinto para un cliente concreto —una promoción, un beneficio, la comisión
|
|
30
|
+
* perdonada de la primera cuota—. Ausente, el motor aplica la tarifa configurada para la fuente.
|
|
24
31
|
*/
|
|
25
32
|
class PendingChargeDto {
|
|
26
33
|
}
|
|
@@ -90,6 +97,12 @@ __decorate([
|
|
|
90
97
|
(0, class_validator_1.IsNumber)(),
|
|
91
98
|
__metadata("design:type", Number)
|
|
92
99
|
], PendingChargeDto.prototype, "amountCollected", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
102
|
+
(0, class_validator_1.ValidateNested)(),
|
|
103
|
+
(0, class_transformer_1.Type)(() => CollectionPricingDto_1.CollectionPricingDto),
|
|
104
|
+
__metadata("design:type", CollectionPricingDto_1.CollectionPricingDto)
|
|
105
|
+
], PendingChargeDto.prototype, "pricing", void 0);
|
|
93
106
|
__decorate([
|
|
94
107
|
(0, class_validator_1.IsOptional)(),
|
|
95
108
|
(0, class_validator_1.IsObject)(),
|
|
@@ -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 = {}));
|
|
@@ -5,6 +5,9 @@ export * from './enums/CollectionResultStatus';
|
|
|
5
5
|
export * from './enums/DeregisterChargeStatus';
|
|
6
6
|
export * from './enums/RegisterCollectibleStatus';
|
|
7
7
|
export * from './enums/CollectionFeeMode';
|
|
8
|
+
export * from './enums/RetryIntentStatus';
|
|
9
|
+
export * from './enums/AckIntentStatus';
|
|
10
|
+
export * from './enums/RedriveOutboxStatus';
|
|
8
11
|
export * from './dtos/PendingChargeDto';
|
|
9
12
|
export * from './dtos/CollectRequest';
|
|
10
13
|
export * from './dtos/CollectResponse';
|
package/bin/collection/index.js
CHANGED
|
@@ -22,6 +22,9 @@ __exportStar(require("./enums/CollectionResultStatus"), exports);
|
|
|
22
22
|
__exportStar(require("./enums/DeregisterChargeStatus"), exports);
|
|
23
23
|
__exportStar(require("./enums/RegisterCollectibleStatus"), exports);
|
|
24
24
|
__exportStar(require("./enums/CollectionFeeMode"), exports);
|
|
25
|
+
__exportStar(require("./enums/RetryIntentStatus"), exports);
|
|
26
|
+
__exportStar(require("./enums/AckIntentStatus"), exports);
|
|
27
|
+
__exportStar(require("./enums/RedriveOutboxStatus"), exports);
|
|
25
28
|
// DTOs
|
|
26
29
|
__exportStar(require("./dtos/PendingChargeDto"), exports);
|
|
27
30
|
__exportStar(require("./dtos/CollectRequest"), exports);
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { IsString, IsNumber } from 'class-validator';
|
|
1
|
+
import { IsString, IsNumber, IsOptional, ValidateNested } from 'class-validator';
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Cobro inmediato y síncrono, con el importe ya resuelto por el dominio.
|
|
@@ -16,4 +18,10 @@ export class CollectRequest {
|
|
|
16
18
|
@IsString() productId!: string;
|
|
17
19
|
@IsString() chargeId!: string;
|
|
18
20
|
@IsNumber() amount!: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Tarifa con la que se cobra este cargo. Ausente, se aplica la configurada para la fuente — que es
|
|
24
|
+
* lo normal; se manda sólo cuando este cobro tiene condiciones propias.
|
|
25
|
+
*/
|
|
26
|
+
@IsOptional() @ValidateNested() @Type(() => CollectionPricingDto) pricing?: CollectionPricingDto;
|
|
19
27
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { IsString, IsInt, IsEnum, IsOptional, IsNumber } from 'class-validator';
|
|
1
|
+
import { IsString, IsInt, IsEnum, IsOptional, IsNumber, ValidateNested } from 'class-validator';
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
2
4
|
import { MechanismType } from '../enums/MechanismType';
|
|
3
5
|
import { CollectionResultStatus } from '../enums/CollectionResultStatus';
|
|
4
6
|
|
|
@@ -13,5 +15,13 @@ export class CollectionAttemptDto {
|
|
|
13
15
|
@IsOptional() @IsEnum(CollectionResultStatus) result?: CollectionResultStatus;
|
|
14
16
|
@IsOptional() @IsString() errorCode?: string;
|
|
15
17
|
@IsOptional() @IsString() errorDetail?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* La tarifa que se aplicó en ESTE intento. Se guarda por intento y no se deduce de la config
|
|
21
|
+
* porque la config puede haber cambiado desde entonces, y sin esto no habría forma de reconstruir
|
|
22
|
+
* con qué comisión se cobró.
|
|
23
|
+
*/
|
|
24
|
+
@IsOptional() @ValidateNested() @Type(() => CollectionPricingDto) pricing?: CollectionPricingDto;
|
|
25
|
+
@IsOptional() @IsInt() collectionCycle?: number;
|
|
16
26
|
@IsInt() createdAt!: number; // epoch ms
|
|
17
27
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { IsString, IsInt, IsOptional, IsEnum, IsObject, IsNumber } from 'class-validator';
|
|
1
|
+
import { IsString, IsInt, IsOptional, IsEnum, IsObject, IsNumber, ValidateNested } from 'class-validator';
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
2
3
|
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
4
|
+
import { CollectionPricingDto } from './CollectionPricingDto';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Un cargo vivo, según el dominio que lleva la deuda.
|
|
@@ -10,6 +12,11 @@ import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
|
10
12
|
*
|
|
11
13
|
* El desglose (capital, interés, impuesto) es opcional y no participa del cobro: viaja para que el
|
|
12
14
|
* asiento y los reportes puedan reconstruirlo.
|
|
15
|
+
*
|
|
16
|
+
* `pricing` sigue el mismo criterio que `amount`: las condiciones comerciales de una cartera las
|
|
17
|
+
* conoce el dominio, no el motor. Va por cargo y no por producto porque la misma mecánica de cobro
|
|
18
|
+
* puede tarifarse distinto para un cliente concreto —una promoción, un beneficio, la comisión
|
|
19
|
+
* perdonada de la primera cuota—. Ausente, el motor aplica la tarifa configurada para la fuente.
|
|
13
20
|
*/
|
|
14
21
|
export class PendingChargeDto {
|
|
15
22
|
@IsString() chargeId!: string; // record_id / INSTALLMENT#n
|
|
@@ -27,5 +34,6 @@ export class PendingChargeDto {
|
|
|
27
34
|
@IsOptional() @IsNumber() taxAmount?: number;
|
|
28
35
|
@IsOptional() @IsNumber() outstandingBalance?: number;
|
|
29
36
|
@IsOptional() @IsNumber() amountCollected?: number;
|
|
37
|
+
@IsOptional() @ValidateNested() @Type(() => CollectionPricingDto) pricing?: CollectionPricingDto;
|
|
30
38
|
@IsOptional() @IsObject() metadata?: Record<string, unknown>; // por-dominio (fiado_/loanco_interest, imei…)
|
|
31
39
|
}
|
|
@@ -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
|
@@ -6,6 +6,9 @@ export * from './enums/CollectionResultStatus';
|
|
|
6
6
|
export * from './enums/DeregisterChargeStatus';
|
|
7
7
|
export * from './enums/RegisterCollectibleStatus';
|
|
8
8
|
export * from './enums/CollectionFeeMode';
|
|
9
|
+
export * from './enums/RetryIntentStatus';
|
|
10
|
+
export * from './enums/AckIntentStatus';
|
|
11
|
+
export * from './enums/RedriveOutboxStatus';
|
|
9
12
|
|
|
10
13
|
// DTOs
|
|
11
14
|
export * from './dtos/PendingChargeDto';
|