@fiado/type-kit 3.114.0 → 3.115.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/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +10 -2
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +13 -3
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +8 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +7 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/index.d.ts +2 -0
- package/bin/walletFunding/dtos/index.js +2 -0
- package/package.json +1 -1
- package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +16 -0
- package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +16 -0
- package/src/walletFunding/dtos/index.ts +2 -0
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
- package/bin/walletFunding/dtos/CancelFundingRequest.js +0 -33
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
3
|
+
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
4
|
+
* el contexto del solicitante + idempotencia.
|
|
5
|
+
*
|
|
6
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
7
|
+
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
8
|
+
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
9
|
+
*/
|
|
1
10
|
export declare class CancelFundingReferenceRequest {
|
|
2
|
-
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
3
|
-
reference: string;
|
|
4
11
|
directoryId: string;
|
|
12
|
+
reason?: string;
|
|
5
13
|
idempotencyKey: string;
|
|
6
14
|
}
|
|
@@ -11,6 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CancelFundingReferenceRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
16
|
+
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
17
|
+
* el contexto del solicitante + idempotencia.
|
|
18
|
+
*
|
|
19
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
20
|
+
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
21
|
+
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
22
|
+
*/
|
|
14
23
|
class CancelFundingReferenceRequest {
|
|
15
24
|
}
|
|
16
25
|
exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
|
|
@@ -18,12 +27,13 @@ __decorate([
|
|
|
18
27
|
(0, class_validator_1.IsString)(),
|
|
19
28
|
(0, class_validator_1.MaxLength)(64),
|
|
20
29
|
__metadata("design:type", String)
|
|
21
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
30
|
+
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
22
31
|
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
33
|
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.MaxLength)(
|
|
34
|
+
(0, class_validator_1.MaxLength)(256),
|
|
25
35
|
__metadata("design:type", String)
|
|
26
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
36
|
+
], CancelFundingReferenceRequest.prototype, "reason", void 0);
|
|
27
37
|
__decorate([
|
|
28
38
|
(0, class_validator_1.IsString)(),
|
|
29
39
|
(0, class_validator_1.MaxLength)(64),
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
2
|
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
/**
|
|
4
|
+
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
5
|
+
* CreateFundingReferenceResponse.
|
|
6
|
+
*
|
|
7
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
8
|
+
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
9
|
+
*/
|
|
3
10
|
export declare class CancelFundingReferenceResponse {
|
|
11
|
+
/** Referencia cancelada (misma PK que se creó). */
|
|
4
12
|
reference: string;
|
|
5
13
|
status: BenefitPaymentStatusEnum;
|
|
6
14
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CancelFundingReferenceResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
6
|
+
* CreateFundingReferenceResponse.
|
|
7
|
+
*
|
|
8
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
9
|
+
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
10
|
+
*/
|
|
4
11
|
class CancelFundingReferenceResponse {
|
|
5
12
|
}
|
|
6
13
|
exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
|
|
@@ -7,6 +7,8 @@ export * from "./ListWalletFundingReferencesRequest";
|
|
|
7
7
|
export * from "./ListWalletFundingReferencesResponse";
|
|
8
8
|
export * from "./CreateFundingReferenceRequest";
|
|
9
9
|
export * from "./CreateFundingReferenceResponse";
|
|
10
|
+
export * from "./CancelFundingReferenceRequest";
|
|
11
|
+
export * from "./CancelFundingReferenceResponse";
|
|
10
12
|
export * from "./ListFundingReferencesRequest";
|
|
11
13
|
export * from "./ListFundingReferencesResponse";
|
|
12
14
|
export * from "./ValidateWalletFundingRequest";
|
|
@@ -23,6 +23,8 @@ __exportStar(require("./ListWalletFundingReferencesRequest"), exports);
|
|
|
23
23
|
__exportStar(require("./ListWalletFundingReferencesResponse"), exports);
|
|
24
24
|
__exportStar(require("./CreateFundingReferenceRequest"), exports);
|
|
25
25
|
__exportStar(require("./CreateFundingReferenceResponse"), exports);
|
|
26
|
+
__exportStar(require("./CancelFundingReferenceRequest"), exports);
|
|
27
|
+
__exportStar(require("./CancelFundingReferenceResponse"), exports);
|
|
26
28
|
__exportStar(require("./ListFundingReferencesRequest"), exports);
|
|
27
29
|
__exportStar(require("./ListFundingReferencesResponse"), exports);
|
|
28
30
|
__exportStar(require("./ValidateWalletFundingRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsString, IsOptional, MaxLength } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
5
|
+
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
6
|
+
* el contexto del solicitante + idempotencia.
|
|
7
|
+
*
|
|
8
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
9
|
+
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
10
|
+
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
11
|
+
*/
|
|
12
|
+
export class CancelFundingReferenceRequest {
|
|
13
|
+
@IsString() @MaxLength(64) directoryId!: string;
|
|
14
|
+
@IsOptional() @IsString() @MaxLength(256) reason?: string;
|
|
15
|
+
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
6
|
+
* CreateFundingReferenceResponse.
|
|
7
|
+
*
|
|
8
|
+
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
9
|
+
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
10
|
+
*/
|
|
11
|
+
export class CancelFundingReferenceResponse {
|
|
12
|
+
/** Referencia cancelada (misma PK que se creó). */
|
|
13
|
+
reference!: string;
|
|
14
|
+
status!: BenefitPaymentStatusEnum;
|
|
15
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
16
|
+
}
|
|
@@ -7,6 +7,8 @@ export * from "./ListWalletFundingReferencesRequest";
|
|
|
7
7
|
export * from "./ListWalletFundingReferencesResponse";
|
|
8
8
|
export * from "./CreateFundingReferenceRequest";
|
|
9
9
|
export * from "./CreateFundingReferenceResponse";
|
|
10
|
+
export * from "./CancelFundingReferenceRequest";
|
|
11
|
+
export * from "./CancelFundingReferenceResponse";
|
|
10
12
|
export * from "./ListFundingReferencesRequest";
|
|
11
13
|
export * from "./ListFundingReferencesResponse";
|
|
12
14
|
export * from "./ValidateWalletFundingRequest";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
-
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
|
-
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
|
-
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
|
-
* porque vino en la respuesta del authorize).
|
|
7
|
-
*/
|
|
8
|
-
export declare class CancelFundingRequest {
|
|
9
|
-
idempotencyKey: string;
|
|
10
|
-
providerModuleName: string;
|
|
11
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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.CancelFundingRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
16
|
-
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
17
|
-
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
18
|
-
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
19
|
-
* porque vino en la respuesta del authorize).
|
|
20
|
-
*/
|
|
21
|
-
class CancelFundingRequest {
|
|
22
|
-
}
|
|
23
|
-
exports.CancelFundingRequest = CancelFundingRequest;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
(0, class_validator_1.MaxLength)(64),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CancelFundingRequest.prototype, "idempotencyKey", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
(0, class_validator_1.MaxLength)(128),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], CancelFundingRequest.prototype, "providerModuleName", void 0);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
/**
|
|
4
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
6
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
7
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CancelFundingResponse {
|
|
10
|
-
reference: string;
|
|
11
|
-
status: BenefitPaymentStatusEnum;
|
|
12
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelFundingResponse = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
6
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
7
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
8
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
|
-
*/
|
|
10
|
-
class CancelFundingResponse {
|
|
11
|
-
}
|
|
12
|
-
exports.CancelFundingResponse = CancelFundingResponse;
|