@fiado/type-kit 1.1.56 → 1.1.57
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/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/transactionProcessor/dtos/AmountInfo.d.ts +6 -0
- package/bin/transactionProcessor/dtos/AmountInfo.js +6 -0
- package/bin/transactionProcessor/dtos/AmountInfoItem.d.ts +4 -0
- package/bin/transactionProcessor/dtos/AmountInfoItem.js +6 -0
- package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.d.ts +17 -0
- package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.js +6 -0
- package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.d.ts +16 -0
- package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.js +6 -0
- package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.d.ts → AuthorizeP2pTransactionRequest.d.ts} +1 -0
- package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.d.ts → AuthorizePocketTransactionRequest.d.ts} +2 -1
- package/{src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts → bin/transactionProcessor/dtos/CardInfo.d.ts} +6 -6
- package/bin/{pomelo/dtos/PomeloCreateUserRequest.js → transactionProcessor/dtos/CardInfo.js} +4 -0
- package/bin/transactionProcessor/dtos/InstallmentsInfo.d.ts +7 -0
- package/bin/transactionProcessor/dtos/InstallmentsInfo.js +6 -0
- package/bin/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.d.ts → MerchantInfo.d.ts} +1 -1
- package/bin/transactionProcessor/dtos/MerchantInfo.js +6 -0
- package/bin/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.d.ts → TransactionInfo.d.ts} +1 -1
- package/bin/transactionProcessor/dtos/TransactionInfo.js +6 -0
- package/bin/transactionProcessor/index.d.ts +10 -8
- package/bin/transactionProcessor/index.js +10 -8
- package/package.json +1 -1
- package/src/transaction/dtos/TransactionCreateRequest.ts +1 -1
- package/src/transactionProcessor/dtos/AmountInfo.ts +7 -0
- package/src/transactionProcessor/dtos/AmountInfoItem.ts +4 -0
- package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +18 -0
- package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +17 -0
- package/src/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.ts → AuthorizeP2pTransactionRequest.ts} +1 -0
- package/src/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.ts → AuthorizePocketTransactionRequest.ts} +2 -1
- package/{bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts → src/transactionProcessor/dtos/CardInfo.ts} +6 -6
- package/src/transactionProcessor/dtos/InstallmentsInfo.ts +7 -0
- package/src/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.ts → MerchantInfo.ts} +1 -1
- package/src/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.ts → TransactionInfo.ts} +1 -1
- package/src/transactionProcessor/index.ts +10 -8
- package/bin/account/dtos/AccountResponse.d.ts +0 -21
- package/bin/account/dtos/AccountResponse.js +0 -6
- package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
- package/bin/account/dtos/PocketCreateRequest.js +0 -31
- package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
- package/bin/account/dtos/PocketCreateResponse.js +0 -6
- package/bin/account/enums/AccountStatus.d.ts +0 -5
- package/bin/account/enums/AccountStatus.js +0 -9
- package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
- package/bin/card/dtos/CardCreateRequest.js +0 -176
- package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
- package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
- package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
- package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
- package/bin/pomelo/enums/CountryEnum.js +0 -12
- package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
- package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
- package/bin/pomelo/enums/SexEnum.d.ts +0 -4
- package/bin/pomelo/enums/SexEnum.js +0 -8
- package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
- package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
- package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
- package/bin/pomelo/enums/UserStatusEnum.js +0 -8
- package/bin/pomelo/index.d.ts +0 -7
- package/bin/pomelo/index.js +0 -25
- package/bin/tern/dtos/TernAddress.d.ts +0 -8
- package/bin/tern/dtos/TernAddress.js +0 -40
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
- package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
- package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
- package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
- package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
- package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
- package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
- package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
- package/bin/tern/dtos/TernGetUserRequest.js +0 -20
- package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
- package/bin/tern/dtos/TernGetUserResponse.js +0 -96
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
- package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
- package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
- package/bin/tern/index.d.ts +0 -11
- package/bin/tern/index.js +0 -29
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +0 -7
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +0 -4
- package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +0 -17
- /package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.js → AuthorizeP2pTransactionRequest.js} +0 -0
- /package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.js → AuthorizePocketTransactionRequest.js} +0 -0
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.CardUpdateKeyConstraint = void 0;
|
|
10
|
+
exports.IsValueValid = IsValueValid;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const Status_1 = require("../enums/Status");
|
|
12
13
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -54,4 +55,3 @@ function IsValueValid(validationOptions) {
|
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
exports.IsValueValid = IsValueValid;
|
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const regex_1 = require("../../helpers/constans/regex");
|
|
12
13
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -33,4 +34,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
33
34
|
});
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionInfo } from "./TransactionInfo";
|
|
2
|
+
import { MerchantInfo } from "./MerchantInfo";
|
|
3
|
+
import { CardInfo } from "./CardInfo";
|
|
4
|
+
import { AmountInfo } from "./AmountInfo";
|
|
5
|
+
import { CountryId } from "../../country";
|
|
6
|
+
import { InstallmentsInfo } from "./InstallmentsInfo";
|
|
7
|
+
export declare class AuthorizeCreditCardAdjustmentRequest {
|
|
8
|
+
idempotencyKey: string;
|
|
9
|
+
externalUserId: string;
|
|
10
|
+
cardInfo: CardInfo;
|
|
11
|
+
productCatalogId: string;
|
|
12
|
+
merchantInfo: MerchantInfo;
|
|
13
|
+
amountInfo: AmountInfo;
|
|
14
|
+
transactionInfo: TransactionInfo;
|
|
15
|
+
countryId: CountryId;
|
|
16
|
+
installments: InstallmentsInfo;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthorizeCreditCardAdjustmentRequest = void 0;
|
|
4
|
+
class AuthorizeCreditCardAdjustmentRequest {
|
|
5
|
+
}
|
|
6
|
+
exports.AuthorizeCreditCardAdjustmentRequest = AuthorizeCreditCardAdjustmentRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CardInfo } from "./CardInfo";
|
|
2
|
+
import { MerchantInfo } from "./MerchantInfo";
|
|
3
|
+
import { AmountInfo } from "./AmountInfo";
|
|
4
|
+
import { TransactionInfo } from "./TransactionInfo";
|
|
5
|
+
import { CountryId } from "../../country";
|
|
6
|
+
export declare class AuthorizeCreditCardPurchaseRequest {
|
|
7
|
+
idempotencyKey: string;
|
|
8
|
+
externalUserId: string;
|
|
9
|
+
cardInfo: CardInfo | null;
|
|
10
|
+
productCatalogId: string;
|
|
11
|
+
merchantInfo: MerchantInfo;
|
|
12
|
+
amountInfo: AmountInfo;
|
|
13
|
+
transactionInfo: TransactionInfo;
|
|
14
|
+
countryId: CountryId;
|
|
15
|
+
additionalData: any;
|
|
16
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { OperationEnum } from "
|
|
1
|
+
import { OperationEnum } from "../../transaction";
|
|
2
2
|
export declare class AuthorizePocketTransactionRequest {
|
|
3
3
|
idempotencyKey: string;
|
|
4
|
+
productCatalogId: string;
|
|
4
5
|
targetPocketId: string;
|
|
5
6
|
operation: OperationEnum;
|
|
6
7
|
amount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class
|
|
2
|
-
productType: string;
|
|
3
|
-
lastFour: string;
|
|
4
|
-
provider: string;
|
|
5
|
-
externalCardId: string;
|
|
6
|
-
}
|
|
1
|
+
export declare class CardInfo {
|
|
2
|
+
productType: string;
|
|
3
|
+
lastFour: string;
|
|
4
|
+
provider: string;
|
|
5
|
+
externalCardId: string;
|
|
6
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export * from './dtos/
|
|
2
|
-
export * from './dtos/
|
|
3
|
-
export * from './dtos/
|
|
4
|
-
export * from './dtos/
|
|
5
|
-
export * from './dtos/
|
|
6
|
-
export * from './dtos/
|
|
7
|
-
export * from './dtos/
|
|
8
|
-
export * from './dtos/
|
|
1
|
+
export * from './dtos/AmountInfo';
|
|
2
|
+
export * from './dtos/AmountInfoItem';
|
|
3
|
+
export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
|
|
4
|
+
export * from './dtos/AuthorizeCreditCardPurchaseRequest';
|
|
5
|
+
export * from './dtos/AuthorizeP2pTransactionRequest';
|
|
6
|
+
export * from './dtos/AuthorizePocketTransactionRequest';
|
|
7
|
+
export * from './dtos/CardInfo';
|
|
8
|
+
export * from './dtos/InstallmentsInfo';
|
|
9
|
+
export * from './dtos/MerchantInfo';
|
|
10
|
+
export * from './dtos/TransactionInfo';
|
|
9
11
|
export * from './enums/TransactionProcessorCodesEnum';
|
|
@@ -14,12 +14,14 @@ 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
|
-
__exportStar(require("./dtos/
|
|
18
|
-
__exportStar(require("./dtos/
|
|
19
|
-
__exportStar(require("./dtos/
|
|
20
|
-
__exportStar(require("./dtos/
|
|
21
|
-
__exportStar(require("./dtos/
|
|
22
|
-
__exportStar(require("./dtos/
|
|
23
|
-
__exportStar(require("./dtos/
|
|
24
|
-
__exportStar(require("./dtos/
|
|
17
|
+
__exportStar(require("./dtos/AmountInfo"), exports);
|
|
18
|
+
__exportStar(require("./dtos/AmountInfoItem"), exports);
|
|
19
|
+
__exportStar(require("./dtos/AuthorizeCreditCardAdjustmentRequest"), exports);
|
|
20
|
+
__exportStar(require("./dtos/AuthorizeCreditCardPurchaseRequest"), exports);
|
|
21
|
+
__exportStar(require("./dtos/AuthorizeP2pTransactionRequest"), exports);
|
|
22
|
+
__exportStar(require("./dtos/AuthorizePocketTransactionRequest"), exports);
|
|
23
|
+
__exportStar(require("./dtos/CardInfo"), exports);
|
|
24
|
+
__exportStar(require("./dtos/InstallmentsInfo"), exports);
|
|
25
|
+
__exportStar(require("./dtos/MerchantInfo"), exports);
|
|
26
|
+
__exportStar(require("./dtos/TransactionInfo"), exports);
|
|
25
27
|
__exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
|
|
2
2
|
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
3
|
import {CountryId} from "../../country";
|
|
4
4
|
import {OperationEnum} from "../enums/OperationEnum";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {TransactionInfo} from "./TransactionInfo";
|
|
2
|
+
import {MerchantInfo} from "./MerchantInfo";
|
|
3
|
+
import {CardInfo} from "./CardInfo";
|
|
4
|
+
import {AmountInfo} from "./AmountInfo";
|
|
5
|
+
import {CountryId} from "../../country";
|
|
6
|
+
import {InstallmentsInfo} from "./InstallmentsInfo";
|
|
7
|
+
|
|
8
|
+
export class AuthorizeCreditCardAdjustmentRequest {
|
|
9
|
+
idempotencyKey: string;
|
|
10
|
+
externalUserId: string;
|
|
11
|
+
cardInfo: CardInfo;
|
|
12
|
+
productCatalogId: string;
|
|
13
|
+
merchantInfo: MerchantInfo;
|
|
14
|
+
amountInfo: AmountInfo;
|
|
15
|
+
transactionInfo: TransactionInfo;
|
|
16
|
+
countryId: CountryId;
|
|
17
|
+
installments: InstallmentsInfo;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {CardInfo} from "./CardInfo";
|
|
2
|
+
import {MerchantInfo} from "./MerchantInfo";
|
|
3
|
+
import {AmountInfo} from "./AmountInfo";
|
|
4
|
+
import {TransactionInfo} from "./TransactionInfo";
|
|
5
|
+
import {CountryId} from "../../country";
|
|
6
|
+
|
|
7
|
+
export class AuthorizeCreditCardPurchaseRequest {
|
|
8
|
+
idempotencyKey: string;
|
|
9
|
+
externalUserId: string;
|
|
10
|
+
cardInfo: CardInfo | null;
|
|
11
|
+
productCatalogId: string;
|
|
12
|
+
merchantInfo: MerchantInfo;
|
|
13
|
+
amountInfo: AmountInfo;
|
|
14
|
+
transactionInfo: TransactionInfo;
|
|
15
|
+
countryId: CountryId;
|
|
16
|
+
additionalData: any;
|
|
17
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {OperationEnum} from "
|
|
1
|
+
import {OperationEnum} from "../../transaction";
|
|
2
2
|
|
|
3
3
|
export class AuthorizePocketTransactionRequest {
|
|
4
4
|
idempotencyKey: string;
|
|
5
|
+
productCatalogId: string;
|
|
5
6
|
targetPocketId: string;
|
|
6
7
|
operation: OperationEnum;
|
|
7
8
|
amount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
productType: string;
|
|
3
|
-
lastFour: string;
|
|
4
|
-
provider: string;
|
|
5
|
-
externalCardId: string;
|
|
6
|
-
}
|
|
1
|
+
export class CardInfo {
|
|
2
|
+
productType: string;
|
|
3
|
+
lastFour: string;
|
|
4
|
+
provider: string;
|
|
5
|
+
externalCardId: string;
|
|
6
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export * from './dtos/
|
|
2
|
-
export * from './dtos/
|
|
3
|
-
export * from './dtos/
|
|
4
|
-
export * from './dtos/
|
|
5
|
-
export * from './dtos/
|
|
6
|
-
export * from './dtos/
|
|
7
|
-
export * from './dtos/
|
|
8
|
-
export * from './dtos/
|
|
1
|
+
export * from './dtos/AmountInfo';
|
|
2
|
+
export * from './dtos/AmountInfoItem';
|
|
3
|
+
export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
|
|
4
|
+
export * from './dtos/AuthorizeCreditCardPurchaseRequest';
|
|
5
|
+
export * from './dtos/AuthorizeP2pTransactionRequest';
|
|
6
|
+
export * from './dtos/AuthorizePocketTransactionRequest';
|
|
7
|
+
export * from './dtos/CardInfo';
|
|
8
|
+
export * from './dtos/InstallmentsInfo';
|
|
9
|
+
export * from './dtos/MerchantInfo';
|
|
10
|
+
export * from './dtos/TransactionInfo';
|
|
9
11
|
|
|
10
12
|
export * from './enums/TransactionProcessorCodesEnum';
|
|
11
13
|
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Provider } from '../../provider/enums/Provider';
|
|
2
|
-
import { Country } from '../../country/enums/Country';
|
|
3
|
-
import { AccountStatus } from '../enums/AccountStatus';
|
|
4
|
-
import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
|
|
5
|
-
export declare class AccountResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
typeOfAccountId: string;
|
|
8
|
-
externalAccountId: string;
|
|
9
|
-
externalSubAccountId: string | null;
|
|
10
|
-
provider: Provider;
|
|
11
|
-
directoryId: string;
|
|
12
|
-
typeOfDirectoryId: TypeOfDirectoryId;
|
|
13
|
-
currentBalance: number;
|
|
14
|
-
balanceLock: number;
|
|
15
|
-
countryId: Country;
|
|
16
|
-
createDate: string;
|
|
17
|
-
lastUpdateDate: string;
|
|
18
|
-
accountNumber: string;
|
|
19
|
-
routingNumber: string;
|
|
20
|
-
status: AccountStatus;
|
|
21
|
-
}
|
|
@@ -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.PocketCreateRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const regex_1 = require("../../helpers/constans/regex");
|
|
15
|
-
class PocketCreateRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.PocketCreateRequest = PocketCreateRequest;
|
|
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
|
-
], PocketCreateRequest.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
|
-
], PocketCreateRequest.prototype, "accountId", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountStatus = void 0;
|
|
4
|
-
var AccountStatus;
|
|
5
|
-
(function (AccountStatus) {
|
|
6
|
-
AccountStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
AccountStatus["INACTIVE"] = "INACTIVE";
|
|
8
|
-
AccountStatus["BLOCKED"] = "BLOCKED";
|
|
9
|
-
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
2
|
-
import { CardType } from '../enums/CardType';
|
|
3
|
-
import { Brand } from '../enums/Brand';
|
|
4
|
-
import { OwnershipType } from '../enums/OwnershipType';
|
|
5
|
-
import { Status } from '../enums/Status';
|
|
6
|
-
import { Shipping } from '../../address';
|
|
7
|
-
export declare class CardCreateRequest {
|
|
8
|
-
id?: string;
|
|
9
|
-
accountId?: string;
|
|
10
|
-
activationDate?: string;
|
|
11
|
-
countryId: CountryId;
|
|
12
|
-
type: CardType;
|
|
13
|
-
directoryId?: string;
|
|
14
|
-
externalCardId: string;
|
|
15
|
-
externalUserId: string;
|
|
16
|
-
externalShipmentId: string;
|
|
17
|
-
shipmentProvider: string;
|
|
18
|
-
externalShipmentTrackingId: string;
|
|
19
|
-
externalShipmentTrackingUrl: string;
|
|
20
|
-
holderName: string;
|
|
21
|
-
holderLastName: string;
|
|
22
|
-
imageUrl?: string;
|
|
23
|
-
brand: Brand;
|
|
24
|
-
ownershipType: OwnershipType;
|
|
25
|
-
lastFour: string;
|
|
26
|
-
providerName?: string;
|
|
27
|
-
status: Status;
|
|
28
|
-
statusUpdateDate?: string;
|
|
29
|
-
tenantId?: string;
|
|
30
|
-
spendLimitByTransaction?: number;
|
|
31
|
-
spendLimitByDay?: number;
|
|
32
|
-
spendLimitByMonth?: number;
|
|
33
|
-
shippedAddress?: Shipping;
|
|
34
|
-
}
|