@fiado/type-kit 3.99.1 → 3.100.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/GetWalletFundingLimitRequest.d.ts +14 -0
- package/bin/walletFunding/dtos/GetWalletFundingLimitRequest.js +40 -0
- package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.d.ts +22 -0
- package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.js +22 -0
- 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/GetWalletFundingLimitRequest.ts +16 -0
- package/src/walletFunding/dtos/GetWalletFundingLimitResponse.ts +22 -0
- package/src/walletFunding/dtos/index.ts +2 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint `POST /wallet-funding/limit` (processor) — devuelve el
|
|
3
|
+
* cap mensual del nivel del usuario y cuanto le queda disponible este mes,
|
|
4
|
+
* sin validar un monto especifico.
|
|
5
|
+
*
|
|
6
|
+
* Reusa los campos basicos de ValidateWalletFundingRequest (mismo flow de
|
|
7
|
+
* resolucion de cuenta + nivel), pero SIN `amount`/`providerName`/
|
|
8
|
+
* `providerReference`/`providerTxId` — no hay transaccion en curso.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GetWalletFundingLimitRequest {
|
|
11
|
+
directoryId: string;
|
|
12
|
+
walletAccountId: string;
|
|
13
|
+
currencyCode: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.GetWalletFundingLimitRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint `POST /wallet-funding/limit` (processor) — devuelve el
|
|
16
|
+
* cap mensual del nivel del usuario y cuanto le queda disponible este mes,
|
|
17
|
+
* sin validar un monto especifico.
|
|
18
|
+
*
|
|
19
|
+
* Reusa los campos basicos de ValidateWalletFundingRequest (mismo flow de
|
|
20
|
+
* resolucion de cuenta + nivel), pero SIN `amount`/`providerName`/
|
|
21
|
+
* `providerReference`/`providerTxId` — no hay transaccion en curso.
|
|
22
|
+
*/
|
|
23
|
+
class GetWalletFundingLimitRequest {
|
|
24
|
+
}
|
|
25
|
+
exports.GetWalletFundingLimitRequest = GetWalletFundingLimitRequest;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.MaxLength)(64),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GetWalletFundingLimitRequest.prototype, "directoryId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.MaxLength)(64),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], GetWalletFundingLimitRequest.prototype, "walletAccountId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.Length)(3, 3),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GetWalletFundingLimitRequest.prototype, "currencyCode", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response del endpoint `POST /wallet-funding/limit` (processor).
|
|
3
|
+
*
|
|
4
|
+
* Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
|
|
5
|
+
* disponible este mes, para que el wallet-app pueda mostrar "Disponible este
|
|
6
|
+
* mes: $X" antes de que el usuario haga cualquier deposito.
|
|
7
|
+
*
|
|
8
|
+
* Semantica de los campos opcionales:
|
|
9
|
+
* - `monthlyLimit === undefined` → el nivel del usuario es ILIMITADO (el
|
|
10
|
+
* accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
|
|
11
|
+
* `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
|
|
12
|
+
* - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
|
|
13
|
+
* − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
|
|
14
|
+
*
|
|
15
|
+
* `currency` siempre presente (default "MXN").
|
|
16
|
+
*/
|
|
17
|
+
export declare class GetWalletFundingLimitResponse {
|
|
18
|
+
monthlyLimit?: number;
|
|
19
|
+
monthlyConsumed?: number;
|
|
20
|
+
remainingAmount?: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWalletFundingLimitResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response del endpoint `POST /wallet-funding/limit` (processor).
|
|
6
|
+
*
|
|
7
|
+
* Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
|
|
8
|
+
* disponible este mes, para que el wallet-app pueda mostrar "Disponible este
|
|
9
|
+
* mes: $X" antes de que el usuario haga cualquier deposito.
|
|
10
|
+
*
|
|
11
|
+
* Semantica de los campos opcionales:
|
|
12
|
+
* - `monthlyLimit === undefined` → el nivel del usuario es ILIMITADO (el
|
|
13
|
+
* accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
|
|
14
|
+
* `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
|
|
15
|
+
* - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
|
|
16
|
+
* − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
|
|
17
|
+
*
|
|
18
|
+
* `currency` siempre presente (default "MXN").
|
|
19
|
+
*/
|
|
20
|
+
class GetWalletFundingLimitResponse {
|
|
21
|
+
}
|
|
22
|
+
exports.GetWalletFundingLimitResponse = GetWalletFundingLimitResponse;
|
|
@@ -15,6 +15,8 @@ export * from "./ListFundingReferencesRequest";
|
|
|
15
15
|
export * from "./ListFundingReferencesResponse";
|
|
16
16
|
export * from "./ValidateWalletFundingRequest";
|
|
17
17
|
export * from "./ValidateWalletFundingResponse";
|
|
18
|
+
export * from "./GetWalletFundingLimitRequest";
|
|
19
|
+
export * from "./GetWalletFundingLimitResponse";
|
|
18
20
|
export * from "./CreditWalletFundingRequest";
|
|
19
21
|
export * from "./CreditWalletFundingResponse";
|
|
20
22
|
export * from "./ReverseWalletFundingRequest";
|
|
@@ -31,6 +31,8 @@ __exportStar(require("./ListFundingReferencesRequest"), exports);
|
|
|
31
31
|
__exportStar(require("./ListFundingReferencesResponse"), exports);
|
|
32
32
|
__exportStar(require("./ValidateWalletFundingRequest"), exports);
|
|
33
33
|
__exportStar(require("./ValidateWalletFundingResponse"), exports);
|
|
34
|
+
__exportStar(require("./GetWalletFundingLimitRequest"), exports);
|
|
35
|
+
__exportStar(require("./GetWalletFundingLimitResponse"), exports);
|
|
34
36
|
__exportStar(require("./CreditWalletFundingRequest"), exports);
|
|
35
37
|
__exportStar(require("./CreditWalletFundingResponse"), exports);
|
|
36
38
|
__exportStar(require("./ReverseWalletFundingRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsString, Length, MaxLength } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request del endpoint `POST /wallet-funding/limit` (processor) — devuelve el
|
|
5
|
+
* cap mensual del nivel del usuario y cuanto le queda disponible este mes,
|
|
6
|
+
* sin validar un monto especifico.
|
|
7
|
+
*
|
|
8
|
+
* Reusa los campos basicos de ValidateWalletFundingRequest (mismo flow de
|
|
9
|
+
* resolucion de cuenta + nivel), pero SIN `amount`/`providerName`/
|
|
10
|
+
* `providerReference`/`providerTxId` — no hay transaccion en curso.
|
|
11
|
+
*/
|
|
12
|
+
export class GetWalletFundingLimitRequest {
|
|
13
|
+
@IsString() @MaxLength(64) directoryId!: string;
|
|
14
|
+
@IsString() @MaxLength(64) walletAccountId!: string;
|
|
15
|
+
@IsString() @Length(3, 3) currencyCode!: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response del endpoint `POST /wallet-funding/limit` (processor).
|
|
3
|
+
*
|
|
4
|
+
* Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
|
|
5
|
+
* disponible este mes, para que el wallet-app pueda mostrar "Disponible este
|
|
6
|
+
* mes: $X" antes de que el usuario haga cualquier deposito.
|
|
7
|
+
*
|
|
8
|
+
* Semantica de los campos opcionales:
|
|
9
|
+
* - `monthlyLimit === undefined` → el nivel del usuario es ILIMITADO (el
|
|
10
|
+
* accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
|
|
11
|
+
* `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
|
|
12
|
+
* - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
|
|
13
|
+
* − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
|
|
14
|
+
*
|
|
15
|
+
* `currency` siempre presente (default "MXN").
|
|
16
|
+
*/
|
|
17
|
+
export class GetWalletFundingLimitResponse {
|
|
18
|
+
monthlyLimit?: number;
|
|
19
|
+
monthlyConsumed?: number;
|
|
20
|
+
remainingAmount?: number;
|
|
21
|
+
currency!: string;
|
|
22
|
+
}
|
|
@@ -15,6 +15,8 @@ export * from "./ListFundingReferencesRequest";
|
|
|
15
15
|
export * from "./ListFundingReferencesResponse";
|
|
16
16
|
export * from "./ValidateWalletFundingRequest";
|
|
17
17
|
export * from "./ValidateWalletFundingResponse";
|
|
18
|
+
export * from "./GetWalletFundingLimitRequest";
|
|
19
|
+
export * from "./GetWalletFundingLimitResponse";
|
|
18
20
|
export * from "./CreditWalletFundingRequest";
|
|
19
21
|
export * from "./CreditWalletFundingResponse";
|
|
20
22
|
export * from "./ReverseWalletFundingRequest";
|