@fiado/type-kit 3.107.0 → 3.109.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.
@@ -11,5 +11,11 @@ export declare enum ProductTypeEnum {
11
11
  MULTICOMM_SERV_SA = "MULTICOMM_SERV_SA",
12
12
  MULTICENTER_SERV_SA = "MULTICENTER_SERV_SA",
13
13
  UNITELLER_REMIT = "UNITELLER_REMIT",
14
- WALLET_FUNDING = "WALLET_FUNDING"
14
+ /**
15
+ * Depósito en efectivo via Equality/Passport. La transacción canónica
16
+ * se persiste en FiadoTx_GT con `type=EQ_CASH_SA` + `subType=CASH_IN`
17
+ * + `relatedProductId=<equalityTransactionNumber>` (FK lógica a
18
+ * EqualityFundingPayment_GT).
19
+ */
20
+ EQ_CASH_SA = "EQ_CASH_SA"
15
21
  }
@@ -15,5 +15,11 @@ var ProductTypeEnum;
15
15
  ProductTypeEnum["MULTICOMM_SERV_SA"] = "MULTICOMM_SERV_SA";
16
16
  ProductTypeEnum["MULTICENTER_SERV_SA"] = "MULTICENTER_SERV_SA";
17
17
  ProductTypeEnum["UNITELLER_REMIT"] = "UNITELLER_REMIT";
18
- ProductTypeEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
18
+ /**
19
+ * Depósito en efectivo via Equality/Passport. La transacción canónica
20
+ * se persiste en FiadoTx_GT con `type=EQ_CASH_SA` + `subType=CASH_IN`
21
+ * + `relatedProductId=<equalityTransactionNumber>` (FK lógica a
22
+ * EqualityFundingPayment_GT).
23
+ */
24
+ ProductTypeEnum["EQ_CASH_SA"] = "EQ_CASH_SA";
19
25
  })(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
@@ -3,14 +3,10 @@ export * from "./FundingPaymentChannel";
3
3
  export * from "./FundingReferenceItem";
4
4
  export * from "./AuthorizeWalletFundingRequest";
5
5
  export * from "./AuthorizeWalletFundingResponse";
6
- export * from "./CancelWalletFundingRequest";
7
- export * from "./CancelWalletFundingResponse";
8
6
  export * from "./ListWalletFundingReferencesRequest";
9
7
  export * from "./ListWalletFundingReferencesResponse";
10
8
  export * from "./CreateFundingReferenceRequest";
11
9
  export * from "./CreateFundingReferenceResponse";
12
- export * from "./CancelFundingReferenceRequest";
13
- export * from "./CancelFundingReferenceResponse";
14
10
  export * from "./ListFundingReferencesRequest";
15
11
  export * from "./ListFundingReferencesResponse";
16
12
  export * from "./ValidateWalletFundingRequest";
@@ -23,5 +19,3 @@ export * from "./ReverseWalletFundingRequest";
23
19
  export * from "./ReverseWalletFundingResponse";
24
20
  export * from "./AuthorizeFundingRequest";
25
21
  export * from "./AuthorizeFundingResponse";
26
- export * from "./CancelFundingRequest";
27
- export * from "./CancelFundingResponse";
@@ -19,14 +19,10 @@ __exportStar(require("./FundingPaymentChannel"), exports);
19
19
  __exportStar(require("./FundingReferenceItem"), exports);
20
20
  __exportStar(require("./AuthorizeWalletFundingRequest"), exports);
21
21
  __exportStar(require("./AuthorizeWalletFundingResponse"), exports);
22
- __exportStar(require("./CancelWalletFundingRequest"), exports);
23
- __exportStar(require("./CancelWalletFundingResponse"), exports);
24
22
  __exportStar(require("./ListWalletFundingReferencesRequest"), exports);
25
23
  __exportStar(require("./ListWalletFundingReferencesResponse"), exports);
26
24
  __exportStar(require("./CreateFundingReferenceRequest"), exports);
27
25
  __exportStar(require("./CreateFundingReferenceResponse"), exports);
28
- __exportStar(require("./CancelFundingReferenceRequest"), exports);
29
- __exportStar(require("./CancelFundingReferenceResponse"), exports);
30
26
  __exportStar(require("./ListFundingReferencesRequest"), exports);
31
27
  __exportStar(require("./ListFundingReferencesResponse"), exports);
32
28
  __exportStar(require("./ValidateWalletFundingRequest"), exports);
@@ -39,5 +35,3 @@ __exportStar(require("./ReverseWalletFundingRequest"), exports);
39
35
  __exportStar(require("./ReverseWalletFundingResponse"), exports);
40
36
  __exportStar(require("./AuthorizeFundingRequest"), exports);
41
37
  __exportStar(require("./AuthorizeFundingResponse"), exports);
42
- __exportStar(require("./CancelFundingRequest"), exports);
43
- __exportStar(require("./CancelFundingResponse"), exports);
@@ -12,5 +12,12 @@ export declare enum WalletFundingErrorCodeEnum {
12
12
  REFERENCE_ALREADY_PAID = "REFERENCE_ALREADY_PAID",
13
13
  AMOUNT_MISMATCH = "AMOUNT_MISMATCH",
14
14
  PROVIDER_REJECTED = "PROVIDER_REJECTED",
15
- PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT"
15
+ PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
16
+ /**
17
+ * Connector (o servicio downstream) está en modo mantenimiento manual.
18
+ * Devuelto en outbound cuando `EQUALITY_MAINTENANCE_MODE=true`. Para el
19
+ * inbound (webhooks), Equality recibe `responseCode 99` directamente
20
+ * (sin pasar por este enum).
21
+ */
22
+ MAINTENANCE_MODE = "MAINTENANCE_MODE"
16
23
  }
@@ -17,4 +17,11 @@ var WalletFundingErrorCodeEnum;
17
17
  WalletFundingErrorCodeEnum["AMOUNT_MISMATCH"] = "AMOUNT_MISMATCH";
18
18
  WalletFundingErrorCodeEnum["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
19
19
  WalletFundingErrorCodeEnum["PROVIDER_TIMEOUT"] = "PROVIDER_TIMEOUT";
20
+ /**
21
+ * Connector (o servicio downstream) está en modo mantenimiento manual.
22
+ * Devuelto en outbound cuando `EQUALITY_MAINTENANCE_MODE=true`. Para el
23
+ * inbound (webhooks), Equality recibe `responseCode 99` directamente
24
+ * (sin pasar por este enum).
25
+ */
26
+ WalletFundingErrorCodeEnum["MAINTENANCE_MODE"] = "MAINTENANCE_MODE";
20
27
  })(WalletFundingErrorCodeEnum || (exports.WalletFundingErrorCodeEnum = WalletFundingErrorCodeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.107.0",
3
+ "version": "3.109.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -11,5 +11,11 @@ export enum ProductTypeEnum {
11
11
  MULTICOMM_SERV_SA = "MULTICOMM_SERV_SA",
12
12
  MULTICENTER_SERV_SA = "MULTICENTER_SERV_SA",
13
13
  UNITELLER_REMIT = "UNITELLER_REMIT",
14
- WALLET_FUNDING = "WALLET_FUNDING"
14
+ /**
15
+ * Depósito en efectivo via Equality/Passport. La transacción canónica
16
+ * se persiste en FiadoTx_GT con `type=EQ_CASH_SA` + `subType=CASH_IN`
17
+ * + `relatedProductId=<equalityTransactionNumber>` (FK lógica a
18
+ * EqualityFundingPayment_GT).
19
+ */
20
+ EQ_CASH_SA = "EQ_CASH_SA"
15
21
  }
@@ -3,14 +3,10 @@ export * from "./FundingPaymentChannel";
3
3
  export * from "./FundingReferenceItem";
4
4
  export * from "./AuthorizeWalletFundingRequest";
5
5
  export * from "./AuthorizeWalletFundingResponse";
6
- export * from "./CancelWalletFundingRequest";
7
- export * from "./CancelWalletFundingResponse";
8
6
  export * from "./ListWalletFundingReferencesRequest";
9
7
  export * from "./ListWalletFundingReferencesResponse";
10
8
  export * from "./CreateFundingReferenceRequest";
11
9
  export * from "./CreateFundingReferenceResponse";
12
- export * from "./CancelFundingReferenceRequest";
13
- export * from "./CancelFundingReferenceResponse";
14
10
  export * from "./ListFundingReferencesRequest";
15
11
  export * from "./ListFundingReferencesResponse";
16
12
  export * from "./ValidateWalletFundingRequest";
@@ -23,5 +19,3 @@ export * from "./ReverseWalletFundingRequest";
23
19
  export * from "./ReverseWalletFundingResponse";
24
20
  export * from "./AuthorizeFundingRequest";
25
21
  export * from "./AuthorizeFundingResponse";
26
- export * from "./CancelFundingRequest";
27
- export * from "./CancelFundingResponse";
@@ -13,4 +13,11 @@ export enum WalletFundingErrorCodeEnum {
13
13
  AMOUNT_MISMATCH = "AMOUNT_MISMATCH",
14
14
  PROVIDER_REJECTED = "PROVIDER_REJECTED",
15
15
  PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
16
+ /**
17
+ * Connector (o servicio downstream) está en modo mantenimiento manual.
18
+ * Devuelto en outbound cuando `EQUALITY_MAINTENANCE_MODE=true`. Para el
19
+ * inbound (webhooks), Equality recibe `responseCode 99` directamente
20
+ * (sin pasar por este enum).
21
+ */
22
+ MAINTENANCE_MODE = "MAINTENANCE_MODE",
16
23
  }
@@ -1,8 +0,0 @@
1
- import { IsString, MaxLength } from "class-validator";
2
-
3
- export class CancelFundingReferenceRequest {
4
- /** Referencia Passport (PK de EqualityFundingReference_GT). */
5
- @IsString() @MaxLength(64) reference!: string;
6
- @IsString() @MaxLength(64) directoryId!: string;
7
- @IsString() @MaxLength(64) idempotencyKey!: string;
8
- }
@@ -1,8 +0,0 @@
1
- import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
- import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
-
4
- export class CancelFundingReferenceResponse {
5
- reference!: string;
6
- status!: BenefitPaymentStatusEnum;
7
- errorCode?: WalletFundingErrorCodeEnum;
8
- }
@@ -1,13 +0,0 @@
1
- import { IsString, MaxLength } from "class-validator";
2
-
3
- /**
4
- * Request del cancel via Centro de Beneficios (spec 13 v2.0).
5
- * `reference` viaja en el path, `directoryId` se resuelve del JWT.
6
- * `providerModuleName` permite al marketplace rutear al publisher correcto
7
- * sin tener que persistir el mapping (el wallet-app sabe el moduleName
8
- * porque vino en la respuesta del authorize).
9
- */
10
- export class CancelFundingRequest {
11
- @IsString() @MaxLength(64) idempotencyKey!: string;
12
- @IsString() @MaxLength(128) providerModuleName!: string;
13
- }
@@ -1,15 +0,0 @@
1
- import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
- import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
-
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
- export class CancelFundingResponse {
11
- reference!: string;
12
- status!: BenefitPaymentStatusEnum;
13
- errorCode?: WalletFundingErrorCodeEnum;
14
- message?: string;
15
- }
@@ -1,5 +0,0 @@
1
- import { IsString, MaxLength } from "class-validator";
2
-
3
- export class CancelWalletFundingRequest {
4
- @IsString() @MaxLength(64) idempotencyKey!: string;
5
- }
@@ -1,8 +0,0 @@
1
- import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
- import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
-
4
- export class CancelWalletFundingResponse {
5
- status!: BenefitPaymentStatusEnum;
6
- errorCode?: WalletFundingErrorCodeEnum;
7
- reference?: string;
8
- }