@fiado/type-kit 1.4.68 → 1.4.70
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/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/legal-documents-business/dtos/DirectoryAcceptanceRequest.d.ts +5 -0
- package/bin/legal-documents-business/dtos/DirectoryAcceptanceRequest.js +28 -0
- package/bin/legal-documents-business/dtos/LegalDocumentResponse.d.ts +13 -0
- package/bin/legal-documents-business/dtos/LegalDocumentResponse.js +6 -0
- package/bin/legal-documents-business/enums/LegalDocumentType.d.ts +8 -0
- package/bin/legal-documents-business/enums/LegalDocumentType.js +12 -0
- package/bin/legal-documents-business/index.d.ts +3 -0
- package/bin/legal-documents-business/index.js +19 -0
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +2 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +20 -0
- package/bin/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.d.ts +1 -0
- package/package.json +1 -1
- package/src/aa.json +0 -0
- package/src/index.ts +2 -0
- package/src/legal-documents-business/dtos/DirectoryAcceptanceRequest.ts +12 -0
- package/src/legal-documents-business/dtos/LegalDocumentResponse.ts +18 -0
- package/src/legal-documents-business/enums/LegalDocumentType.ts +12 -0
- package/src/legal-documents-business/index.ts +7 -0
- package/src/transaction/dtos/TransactionCreateRequest.ts +15 -2
- package/src/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.ts +1 -0
package/bin/index.d.ts
CHANGED
|
@@ -31,3 +31,4 @@ export * as BBVARst from './bbvaRst';
|
|
|
31
31
|
export * as FraudPreventionEngine from './fraudPreventionEngine';
|
|
32
32
|
export * as RiskProfile from './riskProfile';
|
|
33
33
|
export * as STPAccount from './stpAccount';
|
|
34
|
+
export * as LegalDocumentsBusiness from './legal-documents-business';
|
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.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = 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.Beneficiary = exports.Activity = exports.Account = void 0;
|
|
26
|
+
exports.LegalDocumentsBusiness = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = 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.Beneficiary = exports.Activity = exports.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Activity = __importStar(require("./activity"));
|
|
29
29
|
exports.Beneficiary = __importStar(require("./beneficiary"));
|
|
@@ -57,3 +57,4 @@ exports.BBVARst = __importStar(require("./bbvaRst"));
|
|
|
57
57
|
exports.FraudPreventionEngine = __importStar(require("./fraudPreventionEngine"));
|
|
58
58
|
exports.RiskProfile = __importStar(require("./riskProfile"));
|
|
59
59
|
exports.STPAccount = __importStar(require("./stpAccount"));
|
|
60
|
+
exports.LegalDocumentsBusiness = __importStar(require("./legal-documents-business"));
|
|
@@ -0,0 +1,28 @@
|
|
|
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.DirectoryAcceptanceRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DirectoryAcceptanceRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.DirectoryAcceptanceRequest = DirectoryAcceptanceRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], DirectoryAcceptanceRequest.prototype, "type", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DirectoryAcceptanceRequest.prototype, "version", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DirectoryAcceptanceRequest.prototype, "authSessionId", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LegalDocumentType } from "../enums/LegalDocumentType";
|
|
2
|
+
export declare class LegalDocumentResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
type: LegalDocumentType;
|
|
5
|
+
version: string;
|
|
6
|
+
content: string;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
createdby: string;
|
|
10
|
+
updatedby: string;
|
|
11
|
+
createdAT: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum LegalDocumentType {
|
|
2
|
+
TERMS_AND_CONDITIONS_APP = "TERMS_AND_CONDITIONS_APP",
|
|
3
|
+
TERMS_AND_CONDITIONS_USA = "TERMS_AND_CONDITIONS_USA",
|
|
4
|
+
TERMS_AND_CONDITIONS_MEX = "TERMS_AND_CONDITIONS_MEX",
|
|
5
|
+
PRIVACY_POLICY_USA = "PRIVACY_POLICY_USA",
|
|
6
|
+
PRIVACY_POLICY_MEX = "PRIVACY_POLICY_MEX",
|
|
7
|
+
COMMUNICATION_POLICIES = "COMMUNICATION_POLICIES"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LegalDocumentType = void 0;
|
|
4
|
+
var LegalDocumentType;
|
|
5
|
+
(function (LegalDocumentType) {
|
|
6
|
+
LegalDocumentType["TERMS_AND_CONDITIONS_APP"] = "TERMS_AND_CONDITIONS_APP";
|
|
7
|
+
LegalDocumentType["TERMS_AND_CONDITIONS_USA"] = "TERMS_AND_CONDITIONS_USA";
|
|
8
|
+
LegalDocumentType["TERMS_AND_CONDITIONS_MEX"] = "TERMS_AND_CONDITIONS_MEX";
|
|
9
|
+
LegalDocumentType["PRIVACY_POLICY_USA"] = "PRIVACY_POLICY_USA";
|
|
10
|
+
LegalDocumentType["PRIVACY_POLICY_MEX"] = "PRIVACY_POLICY_MEX";
|
|
11
|
+
LegalDocumentType["COMMUNICATION_POLICIES"] = "COMMUNICATION_POLICIES";
|
|
12
|
+
})(LegalDocumentType || (exports.LegalDocumentType = LegalDocumentType = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
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/DirectoryAcceptanceRequest"), exports);
|
|
18
|
+
__exportStar(require("./dtos/LegalDocumentResponse"), exports);
|
|
19
|
+
__exportStar(require("./enums/LegalDocumentType"), exports);
|
|
@@ -21,6 +21,8 @@ export declare class TransactionCreateRequest {
|
|
|
21
21
|
targetPagoConfiadoAccountId: string;
|
|
22
22
|
transactionDate: string;
|
|
23
23
|
sessionId: string;
|
|
24
|
+
disputeOrFraudFolio?: string;
|
|
25
|
+
disputeOrFraudId?: string;
|
|
24
26
|
currencyId: CountryId;
|
|
25
27
|
operation: OperationEnum;
|
|
26
28
|
notional: Notional;
|
|
@@ -94,6 +94,16 @@ __decorate([
|
|
|
94
94
|
(0, class_validator_1.IsString)(),
|
|
95
95
|
__metadata("design:type", String)
|
|
96
96
|
], TransactionCreateRequest.prototype, "sessionId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], TransactionCreateRequest.prototype, "disputeOrFraudFolio", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], TransactionCreateRequest.prototype, "disputeOrFraudId", void 0);
|
|
97
107
|
__decorate([
|
|
98
108
|
(0, class_validator_1.IsNotEmpty)(),
|
|
99
109
|
(0, class_validator_1.IsEnum)(country_1.CountryId),
|
|
@@ -139,3 +149,13 @@ __decorate([
|
|
|
139
149
|
(0, class_validator_1.IsEnum)(TransactionStatusEnum_1.TransactionStatusEnum),
|
|
140
150
|
__metadata("design:type", String)
|
|
141
151
|
], TransactionCreateRequest.prototype, "status", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, class_validator_1.IsNumber)(),
|
|
154
|
+
(0, class_validator_1.IsOptional)(),
|
|
155
|
+
__metadata("design:type", Number)
|
|
156
|
+
], TransactionCreateRequest.prototype, "pagoConfiadoAccountBalance", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, class_validator_1.IsNumber)(),
|
|
159
|
+
(0, class_validator_1.IsOptional)(),
|
|
160
|
+
__metadata("design:type", Number)
|
|
161
|
+
], TransactionCreateRequest.prototype, "targetPagoConfiadoAccountBalance", void 0);
|
package/package.json
CHANGED
package/src/aa.json
ADDED
|
File without changes
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LegalDocumentType } from "../enums/LegalDocumentType";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class LegalDocumentResponse {
|
|
6
|
+
|
|
7
|
+
id: string;
|
|
8
|
+
type: LegalDocumentType;
|
|
9
|
+
version: string;
|
|
10
|
+
content: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
description: string;
|
|
13
|
+
createdby: string;
|
|
14
|
+
updatedby: string;
|
|
15
|
+
createdAT: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum LegalDocumentType {
|
|
4
|
+
|
|
5
|
+
TERMS_AND_CONDITIONS_APP = 'TERMS_AND_CONDITIONS_APP',
|
|
6
|
+
TERMS_AND_CONDITIONS_USA = 'TERMS_AND_CONDITIONS_USA',
|
|
7
|
+
TERMS_AND_CONDITIONS_MEX = 'TERMS_AND_CONDITIONS_MEX',
|
|
8
|
+
PRIVACY_POLICY_USA = 'PRIVACY_POLICY_USA',
|
|
9
|
+
PRIVACY_POLICY_MEX = 'PRIVACY_POLICY_MEX',
|
|
10
|
+
COMMUNICATION_POLICIES = 'COMMUNICATION_POLICIES',
|
|
11
|
+
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
|
|
1
|
+
import {IsEnum, IsNotEmpty, IsNumber, IsOptional, 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";
|
|
@@ -72,6 +72,14 @@ export class TransactionCreateRequest {
|
|
|
72
72
|
@IsString()
|
|
73
73
|
sessionId: string;
|
|
74
74
|
|
|
75
|
+
@IsString()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
disputeOrFraudFolio?: string;
|
|
78
|
+
|
|
79
|
+
@IsString()
|
|
80
|
+
@IsOptional()
|
|
81
|
+
disputeOrFraudId?: string;
|
|
82
|
+
|
|
75
83
|
@IsNotEmpty()
|
|
76
84
|
@IsEnum(CountryId)
|
|
77
85
|
currencyId: CountryId;
|
|
@@ -107,8 +115,13 @@ export class TransactionCreateRequest {
|
|
|
107
115
|
@IsNotEmpty()
|
|
108
116
|
@IsEnum(TransactionStatusEnum)
|
|
109
117
|
status: TransactionStatusEnum;
|
|
110
|
-
|
|
118
|
+
|
|
119
|
+
@IsNumber()
|
|
120
|
+
@IsOptional()
|
|
111
121
|
pagoConfiadoAccountBalance?: Number;
|
|
122
|
+
|
|
123
|
+
@IsNumber()
|
|
124
|
+
@IsOptional()
|
|
112
125
|
targetPagoConfiadoAccountBalance?: Number;
|
|
113
126
|
}
|
|
114
127
|
|