@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.
Files changed (49) hide show
  1. package/bin/card/dtos/Internal/ActivateBankAccountCardRequest.d.ts +8 -0
  2. package/bin/card/dtos/Internal/ActivateBankAccountCardRequest.js +6 -0
  3. package/bin/card/dtos/Internal/ActivateBankAccountCardResponse.d.ts +3 -0
  4. package/bin/card/dtos/Internal/ActivateBankAccountCardResponse.js +6 -0
  5. package/bin/card/dtos/Internal/CreateBankAccountCardRequest.d.ts +16 -0
  6. package/bin/card/dtos/Internal/CreateBankAccountCardRequest.js +6 -0
  7. package/bin/card/dtos/Internal/CreateBankAccountCardResponse.d.ts +7 -0
  8. package/bin/card/dtos/Internal/CreateBankAccountCardResponse.js +6 -0
  9. package/bin/card/dtos/Internal/CreateBankAccountCardShippingRequest.d.ts +14 -0
  10. package/bin/card/dtos/Internal/CreateBankAccountCardShippingRequest.js +6 -0
  11. package/bin/card/dtos/Internal/CreateBankAccountCardShippingResponse.d.ts +11 -0
  12. package/bin/card/dtos/Internal/CreateBankAccountCardShippingResponse.js +6 -0
  13. package/bin/card/dtos/Internal/GetBankAccountShippingRequest.d.ts +3 -0
  14. package/bin/card/dtos/Internal/GetBankAccountShippingRequest.js +6 -0
  15. package/bin/card/dtos/Internal/GetBankAccountShippingResponse.d.ts +19 -0
  16. package/bin/card/dtos/Internal/GetBankAccountShippingResponse.js +6 -0
  17. package/bin/card/dtos/Internal/UpdateBankAccountCardRequest.d.ts +20 -0
  18. package/bin/card/dtos/Internal/UpdateBankAccountCardRequest.js +6 -0
  19. package/bin/card/dtos/Internal/UpdateBankAccountCardResponse.d.ts +4 -0
  20. package/bin/card/dtos/Internal/UpdateBankAccountCardResponse.js +6 -0
  21. package/bin/card/enums/CardIssuing.d.ts +5 -0
  22. package/bin/card/enums/CardIssuing.js +9 -0
  23. package/bin/card/enums/ShippingStatus.d.ts +1 -1
  24. package/bin/card/enums/ShippingStatus.js +8 -8
  25. package/bin/card/index.d.ts +10 -1
  26. package/bin/card/index.js +11 -1
  27. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  28. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  29. package/bin/helpers/constans/regex.js +1 -1
  30. package/package.json +1 -1
  31. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +10 -0
  32. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +5 -0
  33. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +17 -0
  34. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +9 -0
  35. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +15 -0
  36. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +13 -0
  37. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +6 -0
  38. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +20 -0
  39. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +22 -0
  40. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +6 -0
  41. package/src/card/enums/CardIssuing.ts +7 -0
  42. package/src/card/enums/ShippingStatus.ts +1 -1
  43. package/src/card/index.ts +12 -1
  44. package/src/helpers/constans/regex.ts +1 -1
  45. package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
  46. package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
  47. package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
  48. package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
  49. package/src/card/dtos/CardCreateRequest.ts +0 -141
@@ -0,0 +1,8 @@
1
+ export declare class ActivateBankAccountCardRequest {
2
+ externalAccountId?: string;
3
+ externalUserId?: string;
4
+ pin?: string;
5
+ pan?: string;
6
+ previousCardId?: string;
7
+ value?: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivateBankAccountCardRequest = void 0;
4
+ class ActivateBankAccountCardRequest {
5
+ }
6
+ exports.ActivateBankAccountCardRequest = ActivateBankAccountCardRequest;
@@ -0,0 +1,3 @@
1
+ export declare class ActivateBankAccountCardResponse {
2
+ activated: boolean;
3
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivateBankAccountCardResponse = void 0;
4
+ class ActivateBankAccountCardResponse {
5
+ }
6
+ exports.ActivateBankAccountCardResponse = ActivateBankAccountCardResponse;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBankAccountCardRequest = void 0;
4
+ class CreateBankAccountCardRequest {
5
+ }
6
+ exports.CreateBankAccountCardRequest = CreateBankAccountCardRequest;
@@ -0,0 +1,7 @@
1
+ import { Provider } from "../../../provider";
2
+ import { Status } from "../../enums/Status";
3
+ export declare class CreateBankAccountCardResponse {
4
+ externalCardId: string;
5
+ provider: Provider;
6
+ status: Status;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBankAccountCardResponse = void 0;
4
+ class CreateBankAccountCardResponse {
5
+ }
6
+ exports.CreateBankAccountCardResponse = CreateBankAccountCardResponse;
@@ -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,11 @@
1
+ export declare class CreateBankAccountCardShippingResponse {
2
+ externalShippingId: string;
3
+ type: string;
4
+ status: string;
5
+ statusDetail: string;
6
+ courier: {
7
+ company: string;
8
+ trackingNumber?: string;
9
+ trackingUrl?: string;
10
+ };
11
+ }
@@ -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,3 @@
1
+ export declare class GetBankAccountShippingRequest {
2
+ externalShippingId: string;
3
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetBankAccountShippingRequest = void 0;
4
+ class GetBankAccountShippingRequest {
5
+ }
6
+ exports.GetBankAccountShippingRequest = GetBankAccountShippingRequest;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetBankAccountShippingResponse = void 0;
4
+ class GetBankAccountShippingResponse {
5
+ }
6
+ exports.GetBankAccountShippingResponse = GetBankAccountShippingResponse;
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateBankAccountCardRequest = void 0;
4
+ class UpdateBankAccountCardRequest {
5
+ }
6
+ exports.UpdateBankAccountCardRequest = UpdateBankAccountCardRequest;
@@ -0,0 +1,4 @@
1
+ export declare class UpdateBankAccountCardResponse {
2
+ updatedAt: string;
3
+ updatedBy: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateBankAccountCardResponse = void 0;
4
+ class UpdateBankAccountCardResponse {
5
+ }
6
+ exports.UpdateBankAccountCardResponse = UpdateBankAccountCardResponse;
@@ -0,0 +1,5 @@
1
+ export declare enum CardIssuing {
2
+ NEW = "NEW",
3
+ REISSUE = "REISSUE",
4
+ REPLACE = "REPLACE"
5
+ }
@@ -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,4 +1,4 @@
1
- export declare enum ShippinStatus {
1
+ export declare enum ShippingStatus {
2
2
  REQUESTED = "REQUESTED",
3
3
  IN_TRANSIT = "IN_TRANSIT",
4
4
  DELIVERED = "DELIVERED",
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShippinStatus = void 0;
4
- var ShippinStatus;
5
- (function (ShippinStatus) {
6
- ShippinStatus["REQUESTED"] = "REQUESTED";
7
- ShippinStatus["IN_TRANSIT"] = "IN_TRANSIT";
8
- ShippinStatus["DELIVERED"] = "DELIVERED";
9
- ShippinStatus["WITH_ISSUE"] = "WITH_ISSUE";
10
- })(ShippinStatus || (exports.ShippinStatus = ShippinStatus = {}));
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 = {}));
@@ -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,3 @@
1
+ export declare class GroupDirectoryRetationsUpdateRequest {
2
+ agent: string;
3
+ }
@@ -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 = /^\+\d{12}$/;
9
+ exports.regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,10 @@
1
+
2
+
3
+ export class ActivateBankAccountCardRequest {
4
+ externalAccountId?: string;
5
+ externalUserId?: string;
6
+ pin?: string;
7
+ pan?: string;
8
+ previousCardId?: string;
9
+ value?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+
2
+
3
+ export class ActivateBankAccountCardResponse {
4
+ activated: boolean;
5
+ }
@@ -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,9 @@
1
+ import { Provider } from "../../../provider";
2
+ import { Status } from "../../enums/Status";
3
+
4
+
5
+ export class CreateBankAccountCardResponse {
6
+ externalCardId: string;
7
+ provider: Provider;
8
+ status: Status;
9
+ }
@@ -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,13 @@
1
+
2
+
3
+ export class CreateBankAccountCardShippingResponse {
4
+ externalShippingId: string;
5
+ type: string;
6
+ status: string;
7
+ statusDetail: string;
8
+ courier: {
9
+ company: string;
10
+ trackingNumber?: string;
11
+ trackingUrl?: string;
12
+ };
13
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+
4
+ export class GetBankAccountShippingRequest {
5
+ externalShippingId: string;
6
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export class UpdateBankAccountCardResponse {
4
+ updatedAt: string;
5
+ updatedBy: string;
6
+ }
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export enum CardIssuing {
4
+ NEW = "NEW",
5
+ REISSUE = "REISSUE",
6
+ REPLACE = "REPLACE"
7
+ }
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- export enum ShippinStatus {
4
+ export enum ShippingStatus {
5
5
  REQUESTED = "REQUESTED",
6
6
  IN_TRANSIT = "IN_TRANSIT",
7
7
  DELIVERED = "DELIVERED",
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 = /^\+\d{12}$/;
8
+ export const regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
9
9
 
10
10
 
11
11
 
@@ -1,5 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountOutput {
3
- externalAccountId: string;
4
- provider: Provider;
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountOutput = void 0;
4
- class CreateBankAccountOutput {
5
- }
6
- exports.CreateBankAccountOutput = CreateBankAccountOutput;
@@ -1,8 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountUserOutput {
3
- externalUserId: string;
4
- externalAccountId?: string;
5
- provider: Provider;
6
- accountNumber?: string;
7
- routingNumber?: string;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountUserOutput = void 0;
4
- class CreateBankAccountUserOutput {
5
- }
6
- exports.CreateBankAccountUserOutput = CreateBankAccountUserOutput;
@@ -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
- }