@fiado/type-kit 1.0.17 → 1.0.19
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/account/index.d.ts +0 -1
- package/bin/account/index.js +0 -1
- package/bin/group/dtos/GroupResponse.d.ts +9 -0
- package/bin/group/dtos/GroupResponse.js +6 -0
- package/bin/group/enums/GroupStatus.d.ts +4 -0
- package/bin/group/enums/GroupStatus.js +8 -0
- package/bin/group/index.d.ts +2 -0
- package/bin/group/index.js +20 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +3 -1
- package/bin/servicePayment/dtos/ServicePaymentRequest.d.ts +6 -0
- package/bin/{card/dtos/CardRequestDto.js → servicePayment/dtos/ServicePaymentRequest.js} +18 -16
- package/bin/servicePayment/index.d.ts +1 -0
- package/bin/servicePayment/index.js +17 -0
- package/package.json +1 -1
- package/src/account/index.ts +0 -1
- package/src/card/dtos/CardBalanceResponse.ts +0 -1
- package/src/group/dtos/GroupResponse.ts +15 -0
- package/src/group/enums/GroupStatus.ts +7 -0
- package/src/group/index.ts +10 -0
- package/src/index.ts +3 -0
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +25 -0
- package/src/servicePayment/index.ts +1 -0
- package/bin/account/dtos/CreateAccountRequest.d.ts +0 -14
- package/bin/account/dtos/CreateAccountRequest.js +0 -65
- package/bin/account/dtos/CreatePockeRequest.d.ts +0 -4
- package/bin/account/dtos/CreatePockeRequest.js +0 -31
- package/bin/account/dtos/PocketResponse.d.ts +0 -0
- package/bin/account/dtos/PocketResponse.js +0 -0
- package/bin/account/interface/IAccountProvider.d.ts +0 -29
- package/bin/account/interface/IAccountProvider.js +0 -2
- package/bin/address/dtos/AddressShippingDto.d.ts +0 -11
- package/bin/address/dtos/AddressShippingDto.js +0 -57
- package/bin/address/dtos/CreateAddressRequest.d.ts +0 -3
- package/bin/address/dtos/CreateAddressRequest.js +0 -7
- package/bin/card/dtos/CardActivateDto.d.ts +0 -4
- package/bin/card/dtos/CardActivateDto.js +0 -26
- package/bin/card/dtos/CardActivateRequestDto.d.ts +0 -4
- package/bin/card/dtos/CardActivateRequestDto.js +0 -26
- package/bin/card/dtos/CardApplicationRequestDto.d.ts +0 -6
- package/bin/card/dtos/CardApplicationRequestDto.js +0 -34
- package/bin/card/dtos/CardRequestDto.d.ts +0 -6
- package/bin/card/dtos/CardUpdateRequestDto.d.ts +0 -5
- package/bin/card/dtos/CardUpdateRequestDto.js +0 -28
- package/bin/card/dtos/CreateCardDto.d.ts +0 -34
- package/bin/card/dtos/CreateCardDto.js +0 -176
- package/bin/card/dtos/CreateCardRequest.d.ts +0 -34
- package/bin/card/dtos/CreateCardRequest.js +0 -176
- package/bin/card/dtos/CreateCardRequestDto.d.ts +0 -34
- package/bin/card/dtos/CreateCardRequestDto.js +0 -176
- package/src/account/interface/IAccountProvider.ts +0 -33
package/bin/account/index.d.ts
CHANGED
package/bin/account/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GroupStatus = void 0;
|
|
4
|
+
var GroupStatus;
|
|
5
|
+
(function (GroupStatus) {
|
|
6
|
+
GroupStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
GroupStatus["INACTIVE"] = "INACTIVE";
|
|
8
|
+
})(GroupStatus || (exports.GroupStatus = GroupStatus = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//dtos
|
|
18
|
+
__exportStar(require("./dtos/GroupResponse"), exports);
|
|
19
|
+
//enums
|
|
20
|
+
__exportStar(require("./enums/GroupStatus"), exports);
|
package/bin/index.d.ts
CHANGED
|
@@ -8,5 +8,7 @@ export * as Currency from './currency';
|
|
|
8
8
|
export * as Directory from './directory';
|
|
9
9
|
export * as ExchangeRate from './exchangeRate';
|
|
10
10
|
export * as File from './identity';
|
|
11
|
+
export * as Group from './group';
|
|
11
12
|
export * as Identity from './provider';
|
|
12
13
|
export * as Header from './header';
|
|
14
|
+
export * as ServicePayment from './servicePayment';
|
package/bin/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Header = exports.Identity = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
26
|
+
exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Address = __importStar(require("./address"));
|
|
29
29
|
exports.App = __importStar(require("./app"));
|
|
@@ -34,5 +34,7 @@ exports.Currency = __importStar(require("./currency"));
|
|
|
34
34
|
exports.Directory = __importStar(require("./directory"));
|
|
35
35
|
exports.ExchangeRate = __importStar(require("./exchangeRate"));
|
|
36
36
|
exports.File = __importStar(require("./identity"));
|
|
37
|
+
exports.Group = __importStar(require("./group"));
|
|
37
38
|
exports.Identity = __importStar(require("./provider"));
|
|
38
39
|
exports.Header = __importStar(require("./header"));
|
|
40
|
+
exports.ServicePayment = __importStar(require("./servicePayment"));
|
|
@@ -9,26 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ServicePaymentRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
16
|
-
const CardType_1 = require("../enums/CardType");
|
|
17
|
-
const AddressShippingDto_1 = require("../../address/dtos/AddressShippingDto");
|
|
18
|
-
class CardRequest {
|
|
14
|
+
class ServicePaymentRequest {
|
|
19
15
|
}
|
|
20
|
-
exports.
|
|
16
|
+
exports.ServicePaymentRequest = ServicePaymentRequest;
|
|
21
17
|
__decorate([
|
|
22
|
-
(0, class_validator_1.
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.Length)(1, 50),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ServicePaymentRequest.prototype, "serviceId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.Length)(1, 100),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ServicePaymentRequest.prototype, "reference", void 0);
|
|
25
27
|
__decorate([
|
|
26
|
-
(0, class_validator_1.
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.Length)(1, 50),
|
|
27
30
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
31
|
+
], ServicePaymentRequest.prototype, "productId", void 0);
|
|
29
32
|
__decorate([
|
|
30
33
|
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
-
(0, class_validator_1.
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
], CardRequest.prototype, "address", void 0);
|
|
34
|
+
(0, class_validator_1.Min)(0.01),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ServicePaymentRequest.prototype, "amount", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/ServicePaymentRequest';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos/ServicePaymentRequest"), exports);
|
package/package.json
CHANGED
package/src/account/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -10,8 +10,11 @@ export * as Currency from './currency';
|
|
|
10
10
|
export * as Directory from './directory';
|
|
11
11
|
export * as ExchangeRate from './exchangeRate';
|
|
12
12
|
export * as File from './identity';
|
|
13
|
+
export * as Group from './group';
|
|
13
14
|
export * as Identity from './provider';
|
|
14
15
|
export * as Header from './header';
|
|
16
|
+
export * as ServicePayment from './servicePayment';
|
|
17
|
+
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ServicePaymentRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@Length(1, 50)
|
|
10
|
+
serviceId: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
@Length(1, 100)
|
|
14
|
+
reference: string;
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@Length(1, 50)
|
|
18
|
+
productId: string;
|
|
19
|
+
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
@Min(0.01)
|
|
22
|
+
amount: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/ServicePaymentRequest';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AddressResponse } from "../../address/dtos/AddressResponse";
|
|
2
|
-
import { Country } from "../../country/enums/Country";
|
|
3
|
-
export declare class CreateAccountRequest {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
typeOfDirectoryId: string;
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
phoneNumber: string;
|
|
9
|
-
address: AddressResponse;
|
|
10
|
-
email: string;
|
|
11
|
-
dob: string;
|
|
12
|
-
documentNumber: string;
|
|
13
|
-
countryId: Country;
|
|
14
|
-
}
|
|
@@ -1,65 +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.CreateAccountRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const AddressResponse_1 = require("../../address/dtos/AddressResponse");
|
|
15
|
-
const Country_1 = require("../../country/enums/Country");
|
|
16
|
-
const regex_1 = require("../../helpers/constans/regex");
|
|
17
|
-
const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
|
|
18
|
-
const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
|
|
19
|
-
class CreateAccountRequest {
|
|
20
|
-
}
|
|
21
|
-
exports.CreateAccountRequest = CreateAccountRequest;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
25
|
-
message: 'directoryId must be a valid UUID v4',
|
|
26
|
-
}),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CreateAccountRequest.prototype, "directoryId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsEnum)(TypeOfDirectoryId_1.TypeOfDirectoryId),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CreateAccountRequest.prototype, "typeOfDirectoryId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], CreateAccountRequest.prototype, "firstName", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], CreateAccountRequest.prototype, "lastName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], CreateAccountRequest.prototype, "phoneNumber", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.ValidateNested)(),
|
|
47
|
-
__metadata("design:type", AddressResponse_1.AddressResponse)
|
|
48
|
-
], CreateAccountRequest.prototype, "address", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_validator_1.IsEmail)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], CreateAccountRequest.prototype, "email", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsDateString)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], CreateAccountRequest.prototype, "dob", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsString)(),
|
|
59
|
-
(0, class_validator_1.Length)(1, 30),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], CreateAccountRequest.prototype, "documentNumber", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsEnum)(Country_1.Country),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], CreateAccountRequest.prototype, "countryId", void 0);
|
|
@@ -1,31 +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.CreatePocketRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const regex_1 = require("../../helpers/constans/regex");
|
|
15
|
-
class CreatePocketRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.CreatePocketRequest = CreatePocketRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
21
|
-
message: 'beneficiaryDirectoryId must be a valid UUID v4',
|
|
22
|
-
}),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CreatePocketRequest.prototype, "beneficiaryDirectoryId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
28
|
-
message: 'accountId must be a valid UUID v4',
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CreatePocketRequest.prototype, "accountId", void 0);
|
|
File without changes
|
|
File without changes
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AccountCreateRequest } from "../dtos/AccountCreateRequest";
|
|
2
|
-
import { AccountCreateResponse } from "../dtos/AccountCreateResponse";
|
|
3
|
-
import { AccountResponse } from "../dtos/AccountResponse";
|
|
4
|
-
import { PocketCreateRequest } from "../dtos/PocketCreateRequest";
|
|
5
|
-
/**
|
|
6
|
-
* Interfaz para el servicio de Account
|
|
7
|
-
*/
|
|
8
|
-
export interface IAccountProvider {
|
|
9
|
-
/**
|
|
10
|
-
* Obtiene los detalles de la cuenta a partir del ID de directorio.
|
|
11
|
-
* @path GET /accounts?directoryId={directoryId}
|
|
12
|
-
* @param directoryId El identificador del directorio asociado a la cuenta.
|
|
13
|
-
* @returns Los detalles de la cuenta.
|
|
14
|
-
*/
|
|
15
|
-
getByDirectoryId(directoryId: string): Promise<AccountResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Crea una nueva cuenta.
|
|
18
|
-
* @path POST /accounts
|
|
19
|
-
* @param input Los datos necesarios para crear la cuenta.
|
|
20
|
-
* @returns Los detalles de la cuenta creada.
|
|
21
|
-
*/
|
|
22
|
-
create(input: AccountCreateRequest): Promise<AccountCreateResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Crea un nuevo pocket para un beneficiario.
|
|
25
|
-
* @path POST /accounts/pockets
|
|
26
|
-
* @param input Los datos necesarios para crear el pocket.
|
|
27
|
-
*/
|
|
28
|
-
createBeneficiaryPocket(input: PocketCreateRequest): Promise<void>;
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
2
|
-
export declare class ShippingAddressDto {
|
|
3
|
-
municipality: string;
|
|
4
|
-
neighborhood: string;
|
|
5
|
-
postalCode: string;
|
|
6
|
-
street: string;
|
|
7
|
-
subRegion: string;
|
|
8
|
-
addressNumber: string;
|
|
9
|
-
internalNumber?: string;
|
|
10
|
-
countryId: CountryId;
|
|
11
|
-
}
|
|
@@ -1,57 +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.ShippingAddressDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
15
|
-
class ShippingAddressDto {
|
|
16
|
-
}
|
|
17
|
-
exports.ShippingAddressDto = ShippingAddressDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.Length)(2, 60),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], ShippingAddressDto.prototype, "municipality", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.Length)(2, 60),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], ShippingAddressDto.prototype, "neighborhood", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.Length)(5, 10),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], ShippingAddressDto.prototype, "postalCode", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
(0, class_validator_1.Length)(2, 100),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ShippingAddressDto.prototype, "street", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsString)(),
|
|
40
|
-
(0, class_validator_1.Length)(2, 60),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], ShippingAddressDto.prototype, "subRegion", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
(0, class_validator_1.Length)(1, 10),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], ShippingAddressDto.prototype, "addressNumber", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
(0, class_validator_1.Length)(1, 200),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], ShippingAddressDto.prototype, "internalNumber", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], ShippingAddressDto.prototype, "countryId", void 0);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateAddressRequest = void 0;
|
|
4
|
-
const AddressBase_1 = require("./AddressBase");
|
|
5
|
-
class CreateAddressRequest extends AddressBase_1.AddressBase {
|
|
6
|
-
}
|
|
7
|
-
exports.CreateAddressRequest = CreateAddressRequest;
|
|
@@ -1,26 +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.CardActivateDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
15
|
-
class CardActivateDto {
|
|
16
|
-
}
|
|
17
|
-
exports.CardActivateDto = CardActivateDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], CardActivateDto.prototype, "countryId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.Matches)(/^\d{16}$/),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CardActivateDto.prototype, "panOrCode", void 0);
|
|
@@ -1,26 +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.CardActivateRequestDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
15
|
-
class CardActivateRequestDto {
|
|
16
|
-
}
|
|
17
|
-
exports.CardActivateRequestDto = CardActivateRequestDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], CardActivateRequestDto.prototype, "countryId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.Matches)(/^\d{16}$/),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CardActivateRequestDto.prototype, "panOrCode", void 0);
|
|
@@ -1,34 +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.CardApplicationRequestDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
16
|
-
const CardType_1 = require("../enums/CardType");
|
|
17
|
-
const AddressShippingDto_1 = require("../../address/dtos/AddressShippingDto");
|
|
18
|
-
class CardApplicationRequestDto {
|
|
19
|
-
}
|
|
20
|
-
exports.CardApplicationRequestDto = CardApplicationRequestDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], CardApplicationRequestDto.prototype, "countryId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsEnum)(CardType_1.CardType),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CardApplicationRequestDto.prototype, "type", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
-
(0, class_validator_1.ValidateNested)(),
|
|
32
|
-
(0, class_transformer_1.Type)(() => AddressShippingDto_1.ShippingAddressDto),
|
|
33
|
-
__metadata("design:type", AddressShippingDto_1.ShippingAddressDto)
|
|
34
|
-
], CardApplicationRequestDto.prototype, "address", void 0);
|