@fiado/type-kit 3.96.0 → 3.98.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.
@@ -5,5 +5,7 @@ export declare enum BenefitFlowEnum {
5
5
  INSURANCE = "INSURANCE",
6
6
  DONATION = "DONATION",
7
7
  PHARMACY = "PHARMACY",
8
- REMITTANCE = "REMITTANCE"
8
+ REMITTANCE = "REMITTANCE",
9
+ /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
10
+ WALLET_FUNDING = "WALLET_FUNDING"
9
11
  }
@@ -10,4 +10,6 @@ var BenefitFlowEnum;
10
10
  BenefitFlowEnum["DONATION"] = "DONATION";
11
11
  BenefitFlowEnum["PHARMACY"] = "PHARMACY";
12
12
  BenefitFlowEnum["REMITTANCE"] = "REMITTANCE";
13
+ /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
14
+ BenefitFlowEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
13
15
  })(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
3
+ * Provider-agnóstico: cada connector mapea los strings nativos del provider
4
+ * al enum estándar Fiado.
5
+ */
6
+ export declare enum FundingWebhookTypeEnum {
7
+ /** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
8
+ CONSULT = "CONSULT",
9
+ /** Pago confirmado del provider tras cobrar en caja. */
10
+ PAYMENT = "PAYMENT",
11
+ /** Reverso/anulación del provider. */
12
+ REVERSE = "REVERSE"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FundingWebhookTypeEnum = void 0;
4
+ /**
5
+ * Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
6
+ * Provider-agnóstico: cada connector mapea los strings nativos del provider
7
+ * al enum estándar Fiado.
8
+ */
9
+ var FundingWebhookTypeEnum;
10
+ (function (FundingWebhookTypeEnum) {
11
+ /** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
12
+ FundingWebhookTypeEnum["CONSULT"] = "CONSULT";
13
+ /** Pago confirmado del provider tras cobrar en caja. */
14
+ FundingWebhookTypeEnum["PAYMENT"] = "PAYMENT";
15
+ /** Reverso/anulación del provider. */
16
+ FundingWebhookTypeEnum["REVERSE"] = "REVERSE";
17
+ })(FundingWebhookTypeEnum || (exports.FundingWebhookTypeEnum = FundingWebhookTypeEnum = {}));
@@ -1,6 +1,14 @@
1
1
  export declare enum WalletFundingPaymentStatusEnum {
2
+ /** Webhook consult procesado — pre-check OK, esperando webhook payment. */
2
3
  CONSULTED = "CONSULTED",
4
+ /** Pago aplicado al wallet via processor.credit. */
3
5
  APPLIED = "APPLIED",
6
+ /** Pago revertido via processor.reverse. */
4
7
  REVERSED = "REVERSED",
5
- QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND"
8
+ /** Cliente ya gastó el dinero — ops resuelve manualmente. */
9
+ QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND",
10
+ /** Webhook rechazado en pre-check (processor rechaza consult/credit). */
11
+ REJECTED = "REJECTED",
12
+ /** Excepción no controlada en el handler. */
13
+ FAILED = "FAILED"
6
14
  }
@@ -3,8 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WalletFundingPaymentStatusEnum = void 0;
4
4
  var WalletFundingPaymentStatusEnum;
5
5
  (function (WalletFundingPaymentStatusEnum) {
6
+ /** Webhook consult procesado — pre-check OK, esperando webhook payment. */
6
7
  WalletFundingPaymentStatusEnum["CONSULTED"] = "CONSULTED";
8
+ /** Pago aplicado al wallet via processor.credit. */
7
9
  WalletFundingPaymentStatusEnum["APPLIED"] = "APPLIED";
10
+ /** Pago revertido via processor.reverse. */
8
11
  WalletFundingPaymentStatusEnum["REVERSED"] = "REVERSED";
12
+ /** Cliente ya gastó el dinero — ops resuelve manualmente. */
9
13
  WalletFundingPaymentStatusEnum["QUEUED_FOR_REFUND"] = "QUEUED_FOR_REFUND";
14
+ /** Webhook rechazado en pre-check (processor rechaza consult/credit). */
15
+ WalletFundingPaymentStatusEnum["REJECTED"] = "REJECTED";
16
+ /** Excepción no controlada en el handler. */
17
+ WalletFundingPaymentStatusEnum["FAILED"] = "FAILED";
10
18
  })(WalletFundingPaymentStatusEnum || (exports.WalletFundingPaymentStatusEnum = WalletFundingPaymentStatusEnum = {}));
@@ -1,6 +1,14 @@
1
1
  export declare enum WalletFundingReferenceStatusEnum {
2
+ /** Persistido al inicio del create, antes de llamar al provider. */
3
+ PENDING = "PENDING",
4
+ /** Referencia generada por el provider, esperando pago en caja. */
2
5
  ACTIVE = "ACTIVE",
6
+ /** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
3
7
  PAID = "PAID",
8
+ /** Vencida sin pago (cron `ExpireReferences`). */
4
9
  EXPIRED = "EXPIRED",
5
- CANCELLED = "CANCELLED"
10
+ /** Cancelada por el usuario u ops antes de pagar. */
11
+ CANCELLED = "CANCELLED",
12
+ /** El provider rechazó/falló la creación (registro de incidente). */
13
+ FAILED = "FAILED"
6
14
  }
@@ -3,8 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WalletFundingReferenceStatusEnum = void 0;
4
4
  var WalletFundingReferenceStatusEnum;
5
5
  (function (WalletFundingReferenceStatusEnum) {
6
+ /** Persistido al inicio del create, antes de llamar al provider. */
7
+ WalletFundingReferenceStatusEnum["PENDING"] = "PENDING";
8
+ /** Referencia generada por el provider, esperando pago en caja. */
6
9
  WalletFundingReferenceStatusEnum["ACTIVE"] = "ACTIVE";
10
+ /** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
7
11
  WalletFundingReferenceStatusEnum["PAID"] = "PAID";
12
+ /** Vencida sin pago (cron `ExpireReferences`). */
8
13
  WalletFundingReferenceStatusEnum["EXPIRED"] = "EXPIRED";
14
+ /** Cancelada por el usuario u ops antes de pagar. */
9
15
  WalletFundingReferenceStatusEnum["CANCELLED"] = "CANCELLED";
16
+ /** El provider rechazó/falló la creación (registro de incidente). */
17
+ WalletFundingReferenceStatusEnum["FAILED"] = "FAILED";
10
18
  })(WalletFundingReferenceStatusEnum || (exports.WalletFundingReferenceStatusEnum = WalletFundingReferenceStatusEnum = {}));
@@ -5,3 +5,4 @@ export * from "./WalletFundingPaymentStatusEnum";
5
5
  export * from "./WalletFundingErrorCodeEnum";
6
6
  export * from "./WalletFundingRefundReasonEnum";
7
7
  export * from "./PaymentCodeTypeEnum";
8
+ export * from "./FundingWebhookTypeEnum";
@@ -21,3 +21,4 @@ __exportStar(require("./WalletFundingPaymentStatusEnum"), exports);
21
21
  __exportStar(require("./WalletFundingErrorCodeEnum"), exports);
22
22
  __exportStar(require("./WalletFundingRefundReasonEnum"), exports);
23
23
  __exportStar(require("./PaymentCodeTypeEnum"), exports);
24
+ __exportStar(require("./FundingWebhookTypeEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.96.0",
3
+ "version": "3.98.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -6,4 +6,6 @@ export enum BenefitFlowEnum {
6
6
  DONATION = "DONATION",
7
7
  PHARMACY = "PHARMACY",
8
8
  REMITTANCE = "REMITTANCE",
9
+ /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
10
+ WALLET_FUNDING = "WALLET_FUNDING",
9
11
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
3
+ * Provider-agnóstico: cada connector mapea los strings nativos del provider
4
+ * al enum estándar Fiado.
5
+ */
6
+ export enum FundingWebhookTypeEnum {
7
+ /** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
8
+ CONSULT = "CONSULT",
9
+ /** Pago confirmado del provider tras cobrar en caja. */
10
+ PAYMENT = "PAYMENT",
11
+ /** Reverso/anulación del provider. */
12
+ REVERSE = "REVERSE",
13
+ }
@@ -1,6 +1,14 @@
1
1
  export enum WalletFundingPaymentStatusEnum {
2
+ /** Webhook consult procesado — pre-check OK, esperando webhook payment. */
2
3
  CONSULTED = "CONSULTED",
4
+ /** Pago aplicado al wallet via processor.credit. */
3
5
  APPLIED = "APPLIED",
6
+ /** Pago revertido via processor.reverse. */
4
7
  REVERSED = "REVERSED",
8
+ /** Cliente ya gastó el dinero — ops resuelve manualmente. */
5
9
  QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND",
10
+ /** Webhook rechazado en pre-check (processor rechaza consult/credit). */
11
+ REJECTED = "REJECTED",
12
+ /** Excepción no controlada en el handler. */
13
+ FAILED = "FAILED",
6
14
  }
@@ -1,6 +1,14 @@
1
1
  export enum WalletFundingReferenceStatusEnum {
2
+ /** Persistido al inicio del create, antes de llamar al provider. */
3
+ PENDING = "PENDING",
4
+ /** Referencia generada por el provider, esperando pago en caja. */
2
5
  ACTIVE = "ACTIVE",
6
+ /** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
3
7
  PAID = "PAID",
8
+ /** Vencida sin pago (cron `ExpireReferences`). */
4
9
  EXPIRED = "EXPIRED",
10
+ /** Cancelada por el usuario u ops antes de pagar. */
5
11
  CANCELLED = "CANCELLED",
12
+ /** El provider rechazó/falló la creación (registro de incidente). */
13
+ FAILED = "FAILED",
6
14
  }
@@ -5,3 +5,4 @@ export * from "./WalletFundingPaymentStatusEnum";
5
5
  export * from "./WalletFundingErrorCodeEnum";
6
6
  export * from "./WalletFundingRefundReasonEnum";
7
7
  export * from "./PaymentCodeTypeEnum";
8
+ export * from "./FundingWebhookTypeEnum";