@fiado/type-kit 1.0.75 → 1.0.77
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/card/dtos/Internal/ActivateBankAccountCardRequest.d.ts +8 -0
- package/bin/card/dtos/Internal/ActivateBankAccountCardRequest.js +6 -0
- package/bin/card/dtos/Internal/ActivateBankAccountCardResponse.d.ts +3 -0
- package/bin/card/dtos/Internal/ActivateBankAccountCardResponse.js +6 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardRequest.d.ts +16 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardRequest.js +6 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardResponse.d.ts +7 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardResponse.js +6 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardShippingRequest.d.ts +14 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardShippingRequest.js +6 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardShippingResponse.d.ts +11 -0
- package/bin/card/dtos/Internal/CreateBankAccountCardShippingResponse.js +6 -0
- package/bin/card/dtos/Internal/GetBankAccountShippingRequest.d.ts +3 -0
- package/bin/card/dtos/Internal/GetBankAccountShippingRequest.js +6 -0
- package/bin/card/dtos/Internal/GetBankAccountShippingResponse.d.ts +19 -0
- package/bin/card/dtos/Internal/GetBankAccountShippingResponse.js +6 -0
- package/bin/card/dtos/Internal/UpdateBankAccountCardRequest.d.ts +20 -0
- package/bin/card/dtos/Internal/UpdateBankAccountCardRequest.js +6 -0
- package/bin/card/dtos/Internal/UpdateBankAccountCardResponse.d.ts +4 -0
- package/bin/card/dtos/Internal/UpdateBankAccountCardResponse.js +6 -0
- package/bin/card/enums/CardIssuing.d.ts +5 -0
- package/bin/card/enums/CardIssuing.js +9 -0
- package/bin/card/enums/ShippingStatus.d.ts +1 -1
- package/bin/card/enums/ShippingStatus.js +8 -8
- package/bin/card/index.d.ts +10 -1
- package/bin/card/index.js +11 -1
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/helpers/constans/regex.js +1 -1
- package/package.json +1 -1
- package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +10 -0
- package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +5 -0
- package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +17 -0
- package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +9 -0
- package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +15 -0
- package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +13 -0
- package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +6 -0
- package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +20 -0
- package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +22 -0
- package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +6 -0
- package/src/card/enums/CardIssuing.ts +7 -0
- package/src/card/enums/ShippingStatus.ts +1 -1
- package/src/card/index.ts +12 -1
- package/src/helpers/constans/regex.ts +1 -1
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
- package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
- package/src/card/dtos/CardCreateRequest.ts +0 -141
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { CardIssuing } from "../../enums/CardIssuing";
|
|
3
|
+
import { CardType } from "../../enums/CardType";
|
|
4
|
+
export declare class CreateBankAccountCardRequest {
|
|
5
|
+
externalUserId?: string;
|
|
6
|
+
externalAccountId?: string;
|
|
7
|
+
cardType: CardType;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
address: AddressResponse;
|
|
11
|
+
nominated: boolean;
|
|
12
|
+
directoryId?: string;
|
|
13
|
+
typeOfDirectoryId?: string;
|
|
14
|
+
previousCardId?: string;
|
|
15
|
+
issuing: CardIssuing;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { TypeOfDocument } from "../../../identity/dtos/TypeOfDocument";
|
|
3
|
+
export declare class CreateBankAccountCardShippingRequest {
|
|
4
|
+
externalCardId?: string;
|
|
5
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
6
|
+
documentNumber?: string;
|
|
7
|
+
phoneNumber?: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
address: AddressResponse;
|
|
11
|
+
nominated: boolean;
|
|
12
|
+
email?: string;
|
|
13
|
+
userId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateBankAccountCardShippingRequest = void 0;
|
|
4
|
+
class CreateBankAccountCardShippingRequest {
|
|
5
|
+
}
|
|
6
|
+
exports.CreateBankAccountCardShippingRequest = CreateBankAccountCardShippingRequest;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateBankAccountCardShippingResponse = void 0;
|
|
4
|
+
class CreateBankAccountCardShippingResponse {
|
|
5
|
+
}
|
|
6
|
+
exports.CreateBankAccountCardShippingResponse = CreateBankAccountCardShippingResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExternalShippingStatus } from "../../enums/ExternalShippingStatus";
|
|
2
|
+
import { ExternalShippingStatusDetail } from "../../enums/ExternalShippingStatusDetails";
|
|
3
|
+
export declare class GetBankAccountShippingResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
courier: {
|
|
6
|
+
company: string;
|
|
7
|
+
trackingNumber?: string;
|
|
8
|
+
trackingUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
status: ExternalShippingStatus;
|
|
11
|
+
statusDetail: ExternalShippingStatusDetail;
|
|
12
|
+
type: string;
|
|
13
|
+
shippingAddress: object;
|
|
14
|
+
reciever: {
|
|
15
|
+
name: string;
|
|
16
|
+
lastName: string;
|
|
17
|
+
phoneNumber: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { ExternalShippingStatus } from "../../enums/ExternalShippingStatus";
|
|
3
|
+
import { ExternalShippingStatusDetail } from "../../enums/ExternalShippingStatusDetails";
|
|
4
|
+
import { ShippingStatus } from "../../enums/ShippingStatus";
|
|
5
|
+
import { Status } from "../../enums/Status";
|
|
6
|
+
export declare class UpdateBankAccountCardRequest {
|
|
7
|
+
cardId: string;
|
|
8
|
+
nominated?: boolean | null;
|
|
9
|
+
status?: Status | null;
|
|
10
|
+
pin?: string | null;
|
|
11
|
+
externalShippingId?: string;
|
|
12
|
+
externalShippingStatus?: ExternalShippingStatus | null;
|
|
13
|
+
externalShippingStatusDetail?: ExternalShippingStatusDetail | null;
|
|
14
|
+
shippingStatus?: ShippingStatus | null;
|
|
15
|
+
shippingTrackingNumber?: string | null;
|
|
16
|
+
shippingTrackingUrl?: string | null;
|
|
17
|
+
firstName?: string | null;
|
|
18
|
+
lastName?: string | null;
|
|
19
|
+
address?: AddressResponse | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardIssuing = void 0;
|
|
4
|
+
var CardIssuing;
|
|
5
|
+
(function (CardIssuing) {
|
|
6
|
+
CardIssuing["NEW"] = "NEW";
|
|
7
|
+
CardIssuing["REISSUE"] = "REISSUE";
|
|
8
|
+
CardIssuing["REPLACE"] = "REPLACE";
|
|
9
|
+
})(CardIssuing || (exports.CardIssuing = CardIssuing = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(
|
|
3
|
+
exports.ShippingStatus = void 0;
|
|
4
|
+
var ShippingStatus;
|
|
5
|
+
(function (ShippingStatus) {
|
|
6
|
+
ShippingStatus["REQUESTED"] = "REQUESTED";
|
|
7
|
+
ShippingStatus["IN_TRANSIT"] = "IN_TRANSIT";
|
|
8
|
+
ShippingStatus["DELIVERED"] = "DELIVERED";
|
|
9
|
+
ShippingStatus["WITH_ISSUE"] = "WITH_ISSUE";
|
|
10
|
+
})(ShippingStatus || (exports.ShippingStatus = ShippingStatus = {}));
|
package/bin/card/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
export * from './dtos/Internal/ActivateBankAccountCardRequest';
|
|
2
|
+
export * from './dtos/Internal/ActivateBankAccountCardResponse';
|
|
3
|
+
export * from './dtos/Internal/CreateBankAccountCardRequest';
|
|
4
|
+
export * from './dtos/Internal/CreateBankAccountCardResponse';
|
|
5
|
+
export * from './dtos/Internal/CreateBankAccountCardShippingRequest';
|
|
6
|
+
export * from './dtos/Internal/CreateBankAccountCardShippingResponse';
|
|
7
|
+
export * from './dtos/Internal/GetBankAccountShippingRequest';
|
|
8
|
+
export * from './dtos/Internal/GetBankAccountShippingResponse';
|
|
9
|
+
export * from './dtos/Internal/UpdateBankAccountCardRequest';
|
|
10
|
+
export * from './dtos/Internal/UpdateBankAccountCardResponse';
|
|
1
11
|
export * from './dtos/CardActivateRequest';
|
|
2
12
|
export * from './dtos/CardApplicationRequest';
|
|
3
|
-
export * from './dtos/CardCreateRequest';
|
|
4
13
|
export * from './dtos/CardUpdateRequest';
|
|
5
14
|
export * from './dtos/CardCreateAdditionalRequest';
|
|
6
15
|
export * from './dtos/CardBalanceResponse';
|
package/bin/card/index.js
CHANGED
|
@@ -14,10 +14,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
//dtos/internal
|
|
18
|
+
__exportStar(require("./dtos/Internal/ActivateBankAccountCardRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/Internal/ActivateBankAccountCardResponse"), exports);
|
|
20
|
+
__exportStar(require("./dtos/Internal/CreateBankAccountCardRequest"), exports);
|
|
21
|
+
__exportStar(require("./dtos/Internal/CreateBankAccountCardResponse"), exports);
|
|
22
|
+
__exportStar(require("./dtos/Internal/CreateBankAccountCardShippingRequest"), exports);
|
|
23
|
+
__exportStar(require("./dtos/Internal/CreateBankAccountCardShippingResponse"), exports);
|
|
24
|
+
__exportStar(require("./dtos/Internal/GetBankAccountShippingRequest"), exports);
|
|
25
|
+
__exportStar(require("./dtos/Internal/GetBankAccountShippingResponse"), exports);
|
|
26
|
+
__exportStar(require("./dtos/Internal/UpdateBankAccountCardRequest"), exports);
|
|
27
|
+
__exportStar(require("./dtos/Internal/UpdateBankAccountCardResponse"), exports);
|
|
17
28
|
//dtos
|
|
18
29
|
__exportStar(require("./dtos/CardActivateRequest"), exports);
|
|
19
30
|
__exportStar(require("./dtos/CardApplicationRequest"), exports);
|
|
20
|
-
__exportStar(require("./dtos/CardCreateRequest"), exports);
|
|
21
31
|
__exportStar(require("./dtos/CardUpdateRequest"), exports);
|
|
22
32
|
__exportStar(require("./dtos/CardCreateAdditionalRequest"), exports);
|
|
23
33
|
__exportStar(require("./dtos/CardBalanceResponse"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.GroupDirectoryRetationsUpdateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GroupDirectoryRetationsUpdateRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.Length)(1, 20),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
|
|
@@ -6,4 +6,4 @@ exports.regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[
|
|
|
6
6
|
// Expresión regular para validar fecha ISO 8601
|
|
7
7
|
exports.regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
8
8
|
// Expresión regular para validar un número de teléfono
|
|
9
|
-
exports.regexPhoneNumber =
|
|
9
|
+
exports.regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { CardIssuing } from "../../enums/CardIssuing";
|
|
3
|
+
import { CardType } from "../../enums/CardType";
|
|
4
|
+
|
|
5
|
+
export class CreateBankAccountCardRequest {
|
|
6
|
+
externalUserId?: string;
|
|
7
|
+
externalAccountId?: string;
|
|
8
|
+
cardType: CardType;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
address: AddressResponse;
|
|
12
|
+
nominated: boolean;
|
|
13
|
+
directoryId?: string;
|
|
14
|
+
typeOfDirectoryId?: string;
|
|
15
|
+
previousCardId?: string;
|
|
16
|
+
issuing: CardIssuing;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { TypeOfDocument } from "../../../identity/dtos/TypeOfDocument";
|
|
3
|
+
|
|
4
|
+
export class CreateBankAccountCardShippingRequest {
|
|
5
|
+
externalCardId?: string;
|
|
6
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
7
|
+
documentNumber?: string;
|
|
8
|
+
phoneNumber?: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
address: AddressResponse;
|
|
12
|
+
nominated: boolean;
|
|
13
|
+
email?: string;
|
|
14
|
+
userId?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExternalShippingStatus } from "../../enums/ExternalShippingStatus";
|
|
2
|
+
import { ExternalShippingStatusDetail } from "../../enums/ExternalShippingStatusDetails";
|
|
3
|
+
|
|
4
|
+
export class GetBankAccountShippingResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
courier: {
|
|
7
|
+
company: string;
|
|
8
|
+
trackingNumber?: string;
|
|
9
|
+
trackingUrl?: string;
|
|
10
|
+
};
|
|
11
|
+
status: ExternalShippingStatus;
|
|
12
|
+
statusDetail: ExternalShippingStatusDetail;
|
|
13
|
+
type: string;
|
|
14
|
+
shippingAddress: object;
|
|
15
|
+
reciever: {
|
|
16
|
+
name: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
phoneNumber: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { ExternalShippingStatus } from "../../enums/ExternalShippingStatus";
|
|
3
|
+
import { ExternalShippingStatusDetail } from "../../enums/ExternalShippingStatusDetails";
|
|
4
|
+
import { ShippingStatus } from "../../enums/ShippingStatus";
|
|
5
|
+
import { Status } from "../../enums/Status";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class UpdateBankAccountCardRequest {
|
|
9
|
+
cardId: string;
|
|
10
|
+
nominated?: boolean | null;
|
|
11
|
+
status?: Status | null;
|
|
12
|
+
pin?: string | null;
|
|
13
|
+
externalShippingId?: string;
|
|
14
|
+
externalShippingStatus?: ExternalShippingStatus | null;
|
|
15
|
+
externalShippingStatusDetail?: ExternalShippingStatusDetail | null;
|
|
16
|
+
shippingStatus?: ShippingStatus | null;
|
|
17
|
+
shippingTrackingNumber?: string | null;
|
|
18
|
+
shippingTrackingUrl?: string | null;
|
|
19
|
+
firstName?: string | null;
|
|
20
|
+
lastName?: string | null;
|
|
21
|
+
address?: AddressResponse | null;
|
|
22
|
+
}
|
package/src/card/index.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
//dtos/internal
|
|
3
|
+
export * from './dtos/Internal/ActivateBankAccountCardRequest';
|
|
4
|
+
export * from './dtos/Internal/ActivateBankAccountCardResponse';
|
|
5
|
+
export * from './dtos/Internal/CreateBankAccountCardRequest';
|
|
6
|
+
export * from './dtos/Internal/CreateBankAccountCardResponse';
|
|
7
|
+
export * from './dtos/Internal/CreateBankAccountCardShippingRequest';
|
|
8
|
+
export * from './dtos/Internal/CreateBankAccountCardShippingResponse';
|
|
9
|
+
export * from './dtos/Internal/GetBankAccountShippingRequest';
|
|
10
|
+
export * from './dtos/Internal/GetBankAccountShippingResponse';
|
|
11
|
+
export * from './dtos/Internal/UpdateBankAccountCardRequest';
|
|
12
|
+
export * from './dtos/Internal/UpdateBankAccountCardResponse';
|
|
13
|
+
|
|
2
14
|
//dtos
|
|
3
15
|
export * from './dtos/CardActivateRequest';
|
|
4
16
|
export * from './dtos/CardApplicationRequest';
|
|
5
|
-
export * from './dtos/CardCreateRequest';
|
|
6
17
|
export * from './dtos/CardUpdateRequest';
|
|
7
18
|
export * from './dtos/CardCreateAdditionalRequest';
|
|
8
19
|
export * from './dtos/CardBalanceResponse';
|
|
@@ -5,7 +5,7 @@ export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]
|
|
|
5
5
|
// Expresión regular para validar fecha ISO 8601
|
|
6
6
|
export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
7
7
|
// Expresión regular para validar un número de teléfono
|
|
8
|
-
export const regexPhoneNumber =
|
|
8
|
+
export const regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsEnum, ValidateNested, IsNumber, Min, Max, Length, Matches } from 'class-validator';
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
4
|
-
import { CardType } from '../enums/CardType';
|
|
5
|
-
import { Brand } from '../enums/Brand';
|
|
6
|
-
import { OwnershipType } from '../enums/OwnershipType';
|
|
7
|
-
import { Status } from '../enums/Status';
|
|
8
|
-
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
9
|
-
import { Shipping } from '../../address';
|
|
10
|
-
|
|
11
|
-
export class CardCreateRequest {
|
|
12
|
-
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsString()
|
|
15
|
-
@Matches(regexUuidV4,
|
|
16
|
-
{
|
|
17
|
-
message: 'id must be a valid UUID v4',
|
|
18
|
-
})
|
|
19
|
-
id?: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsString()
|
|
23
|
-
@Matches(regexUuidV4,
|
|
24
|
-
{
|
|
25
|
-
message: 'accountId must be a valid UUID v4 or null',
|
|
26
|
-
})
|
|
27
|
-
accountId?: string;
|
|
28
|
-
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
@Matches(regexIso8601, {
|
|
32
|
-
message: 'activationDate must be a valid ISO 8601 date string',
|
|
33
|
-
})
|
|
34
|
-
activationDate?: string;
|
|
35
|
-
|
|
36
|
-
@IsEnum(CountryId)
|
|
37
|
-
countryId: CountryId;
|
|
38
|
-
|
|
39
|
-
@IsEnum(CardType)
|
|
40
|
-
type: CardType;
|
|
41
|
-
|
|
42
|
-
@IsString()
|
|
43
|
-
@Matches(regexUuidV4,
|
|
44
|
-
{
|
|
45
|
-
message: 'directoryId must be a valid UUID v4',
|
|
46
|
-
})
|
|
47
|
-
directoryId?: string;
|
|
48
|
-
|
|
49
|
-
@IsString()
|
|
50
|
-
@Length(1, 100)
|
|
51
|
-
externalCardId: string;
|
|
52
|
-
|
|
53
|
-
@IsString()
|
|
54
|
-
@Length(1, 100)
|
|
55
|
-
externalUserId: string;
|
|
56
|
-
|
|
57
|
-
@IsOptional()
|
|
58
|
-
@IsString()
|
|
59
|
-
@Length(1, 100)
|
|
60
|
-
externalShipmentId: string;
|
|
61
|
-
|
|
62
|
-
@IsOptional()
|
|
63
|
-
@IsString()
|
|
64
|
-
@Length(1, 50)
|
|
65
|
-
shipmentProvider: string;
|
|
66
|
-
|
|
67
|
-
@IsOptional()
|
|
68
|
-
@IsString()
|
|
69
|
-
@Length(1, 50)
|
|
70
|
-
externalShipmentTrackingId: string;
|
|
71
|
-
|
|
72
|
-
@IsOptional()
|
|
73
|
-
@IsString()
|
|
74
|
-
@Length(1, 200)
|
|
75
|
-
externalShipmentTrackingUrl: string;
|
|
76
|
-
|
|
77
|
-
@IsOptional()
|
|
78
|
-
@IsString()
|
|
79
|
-
@Length(1, 50)
|
|
80
|
-
holderName: string;
|
|
81
|
-
|
|
82
|
-
@IsOptional()
|
|
83
|
-
@IsString()
|
|
84
|
-
@Length(1, 50)
|
|
85
|
-
holderLastName: string;
|
|
86
|
-
|
|
87
|
-
@IsOptional()
|
|
88
|
-
@IsString()
|
|
89
|
-
@Length(1, 200)
|
|
90
|
-
imageUrl?: string;
|
|
91
|
-
|
|
92
|
-
@IsEnum(Brand)
|
|
93
|
-
brand: Brand;
|
|
94
|
-
|
|
95
|
-
@IsEnum(OwnershipType)
|
|
96
|
-
ownershipType: OwnershipType;
|
|
97
|
-
|
|
98
|
-
@IsString()
|
|
99
|
-
@Length(4, 4)
|
|
100
|
-
lastFour: string;
|
|
101
|
-
|
|
102
|
-
@IsOptional()
|
|
103
|
-
@IsString()
|
|
104
|
-
@Length(1, 50)
|
|
105
|
-
providerName?: string;
|
|
106
|
-
|
|
107
|
-
@IsEnum(Status)
|
|
108
|
-
status: Status;
|
|
109
|
-
|
|
110
|
-
@IsOptional()
|
|
111
|
-
@IsString()
|
|
112
|
-
statusUpdateDate?: string;
|
|
113
|
-
|
|
114
|
-
@IsOptional()
|
|
115
|
-
@IsString()
|
|
116
|
-
@Length(1, 50)
|
|
117
|
-
tenantId?: string;
|
|
118
|
-
|
|
119
|
-
@IsOptional()
|
|
120
|
-
@IsNumber()
|
|
121
|
-
@Min(1)
|
|
122
|
-
@Max(9999999999)
|
|
123
|
-
spendLimitByTransaction?: number;
|
|
124
|
-
|
|
125
|
-
@IsOptional()
|
|
126
|
-
@IsNumber()
|
|
127
|
-
@Min(1)
|
|
128
|
-
@Max(9999999999)
|
|
129
|
-
spendLimitByDay?: number;
|
|
130
|
-
|
|
131
|
-
@IsOptional()
|
|
132
|
-
@IsNumber()
|
|
133
|
-
@Min(1)
|
|
134
|
-
@Max(9999999999)
|
|
135
|
-
spendLimitByMonth?: number;
|
|
136
|
-
|
|
137
|
-
@IsOptional()
|
|
138
|
-
@ValidateNested()
|
|
139
|
-
@Type(() => Shipping)
|
|
140
|
-
shippedAddress?: Shipping;
|
|
141
|
-
}
|