@fiado/type-kit 2.0.34 → 2.0.35
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/centralPayments/dtos/CentralPaymentsMetaDataInfo.d.ts +61 -0
- package/bin/centralPayments/dtos/CentralPaymentsMetaDataInfo.js +6 -0
- package/bin/centralPayments/index.d.ts +1 -0
- package/bin/centralPayments/index.js +1 -0
- package/bin/index.js +17 -7
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +2 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +10 -0
- package/package.json +1 -1
- package/src/centralPayments/dtos/CentralPaymentsMetaDataInfo.ts +61 -0
- package/src/centralPayments/index.ts +1 -0
- package/src/transaction/dtos/TransactionCreateRequest.ts +8 -1
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
|
@@ -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 = exports.IsReasonRequiredForCancelledStatusConstraint = 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");
|
|
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
|
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
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 {
|
|
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare class CentralPaymentsTransactionInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt?: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
directoryId?: string;
|
|
6
|
+
cardholderId?: string;
|
|
7
|
+
peopleId?: string;
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
tenantId?: string;
|
|
11
|
+
programId?: string;
|
|
12
|
+
eventId?: string;
|
|
13
|
+
eventType?: string;
|
|
14
|
+
transactionNumber?: string;
|
|
15
|
+
transactionId?: string;
|
|
16
|
+
transactionDatetime?: string;
|
|
17
|
+
transactionType?: string;
|
|
18
|
+
relatedTxId?: string;
|
|
19
|
+
provider?: string;
|
|
20
|
+
currencyId?: string;
|
|
21
|
+
transactionImpact?: string;
|
|
22
|
+
amount?: number;
|
|
23
|
+
feeAmount?: number;
|
|
24
|
+
runningBalance?: number;
|
|
25
|
+
runningBalanceCurrency?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
transactionExternalReference?: string;
|
|
28
|
+
error?: string;
|
|
29
|
+
cardholderPostalCode?: string;
|
|
30
|
+
processorActivityTypeCode?: string;
|
|
31
|
+
processorTransTypeCode?: string;
|
|
32
|
+
authTransId?: string;
|
|
33
|
+
cardBin?: string;
|
|
34
|
+
cardId?: string;
|
|
35
|
+
cardLastFour?: string;
|
|
36
|
+
currencyCode?: string;
|
|
37
|
+
deviceId?: string;
|
|
38
|
+
deviceType?: string;
|
|
39
|
+
extCardRefId?: string;
|
|
40
|
+
extCardRefNo?: string;
|
|
41
|
+
extTransRefNo?: string;
|
|
42
|
+
international?: boolean;
|
|
43
|
+
isoMessageType?: string;
|
|
44
|
+
isPreAuth?: boolean;
|
|
45
|
+
authExpirationDate?: string;
|
|
46
|
+
transactionReceiveDate?: string;
|
|
47
|
+
linkedTransactionId?: string;
|
|
48
|
+
completionTransactionId?: string;
|
|
49
|
+
merchantMcc?: string;
|
|
50
|
+
merchantId?: string;
|
|
51
|
+
merchantMccName?: string;
|
|
52
|
+
merchantMccGroup?: string;
|
|
53
|
+
merchantName?: string;
|
|
54
|
+
merchantCity?: string;
|
|
55
|
+
merchantRegion?: string;
|
|
56
|
+
merchantCountry?: string;
|
|
57
|
+
merchantPostalCode?: string;
|
|
58
|
+
network?: string;
|
|
59
|
+
originalTransactionId?: string;
|
|
60
|
+
responseCode?: string;
|
|
61
|
+
}
|
|
@@ -5,5 +5,6 @@ export * from './dtos/OOWAnswer';
|
|
|
5
5
|
export * from './dtos/GetMerchantLocationsQueryParams';
|
|
6
6
|
export * from './dtos/GetMerchantLocationsResponse';
|
|
7
7
|
export * from './dtos/MerchantLocation';
|
|
8
|
+
export * from './dtos/CentralPaymentsMetaDataInfo';
|
|
8
9
|
export * from './enums/ServiceStatusEnum';
|
|
9
10
|
export * from './enums/MerchantLocationDistanceUnitEnum';
|
|
@@ -21,5 +21,6 @@ __exportStar(require("./dtos/OOWAnswer"), exports);
|
|
|
21
21
|
__exportStar(require("./dtos/GetMerchantLocationsQueryParams"), exports);
|
|
22
22
|
__exportStar(require("./dtos/GetMerchantLocationsResponse"), exports);
|
|
23
23
|
__exportStar(require("./dtos/MerchantLocation"), exports);
|
|
24
|
+
__exportStar(require("./dtos/CentralPaymentsMetaDataInfo"), exports);
|
|
24
25
|
__exportStar(require("./enums/ServiceStatusEnum"), exports);
|
|
25
26
|
__exportStar(require("./enums/MerchantLocationDistanceUnitEnum"), exports);
|
package/bin/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = 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
37
|
exports.Account = __importStar(require("./account"));
|
|
@@ -180,3 +180,13 @@ __decorate([
|
|
|
180
180
|
(0, class_validator_1.IsNumber)(),
|
|
181
181
|
__metadata("design:type", Number)
|
|
182
182
|
], TransactionCreateRequest.prototype, "createdAt", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, class_validator_1.IsString)(),
|
|
185
|
+
(0, class_validator_1.IsOptional)(),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], TransactionCreateRequest.prototype, "metaDataCode", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, class_validator_1.IsString)(),
|
|
190
|
+
(0, class_validator_1.IsOptional)(),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], TransactionCreateRequest.prototype, "metaData", void 0);
|
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export class CentralPaymentsTransactionInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt?: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
directoryId?: string;
|
|
6
|
+
cardholderId?: string;
|
|
7
|
+
peopleId?: string;
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
tenantId?: string;
|
|
11
|
+
programId?: string;
|
|
12
|
+
eventId?: string;
|
|
13
|
+
eventType?: string;
|
|
14
|
+
transactionNumber?: string;
|
|
15
|
+
transactionId?: string;
|
|
16
|
+
transactionDatetime?: string;
|
|
17
|
+
transactionType?: string;
|
|
18
|
+
relatedTxId?: string;
|
|
19
|
+
provider?: string;
|
|
20
|
+
currencyId?: string;
|
|
21
|
+
transactionImpact?: string;
|
|
22
|
+
amount?: number;
|
|
23
|
+
feeAmount?: number;
|
|
24
|
+
runningBalance?: number;
|
|
25
|
+
runningBalanceCurrency?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
transactionExternalReference?: string;
|
|
28
|
+
error?: string;
|
|
29
|
+
cardholderPostalCode?: string;
|
|
30
|
+
processorActivityTypeCode?: string;
|
|
31
|
+
processorTransTypeCode?: string;
|
|
32
|
+
authTransId?: string;
|
|
33
|
+
cardBin?: string;
|
|
34
|
+
cardId?: string;
|
|
35
|
+
cardLastFour?: string;
|
|
36
|
+
currencyCode?: string;
|
|
37
|
+
deviceId?: string;
|
|
38
|
+
deviceType?: string;
|
|
39
|
+
extCardRefId?: string;
|
|
40
|
+
extCardRefNo?: string;
|
|
41
|
+
extTransRefNo?: string;
|
|
42
|
+
international?: boolean;
|
|
43
|
+
isoMessageType?: string;
|
|
44
|
+
isPreAuth?: boolean;
|
|
45
|
+
authExpirationDate?: string;
|
|
46
|
+
transactionReceiveDate?: string;
|
|
47
|
+
linkedTransactionId?: string;
|
|
48
|
+
completionTransactionId?: string;
|
|
49
|
+
merchantMcc?: string;
|
|
50
|
+
merchantId?: string;
|
|
51
|
+
merchantMccName?: string;
|
|
52
|
+
merchantMccGroup?: string;
|
|
53
|
+
merchantName?: string;
|
|
54
|
+
merchantCity?: string;
|
|
55
|
+
merchantRegion?: string;
|
|
56
|
+
merchantCountry?: string;
|
|
57
|
+
merchantPostalCode?: string;
|
|
58
|
+
network?: string;
|
|
59
|
+
originalTransactionId?: string;
|
|
60
|
+
responseCode?: string;
|
|
61
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from './dtos/OOWAnswer';
|
|
|
5
5
|
export * from './dtos/GetMerchantLocationsQueryParams';
|
|
6
6
|
export * from './dtos/GetMerchantLocationsResponse';
|
|
7
7
|
export * from './dtos/MerchantLocation';
|
|
8
|
+
export * from './dtos/CentralPaymentsMetaDataInfo';
|
|
8
9
|
|
|
9
10
|
export * from './enums/ServiceStatusEnum';
|
|
10
11
|
export * from './enums/MerchantLocationDistanceUnitEnum';
|
|
@@ -12,6 +12,7 @@ import {Product} from "./Product";
|
|
|
12
12
|
import {TransactionStatusEnum} from "../enums/TransactionStatusEnum";
|
|
13
13
|
|
|
14
14
|
export class TransactionCreateRequest {
|
|
15
|
+
|
|
15
16
|
@IsNotEmpty()
|
|
16
17
|
@IsString()
|
|
17
18
|
id: string;
|
|
@@ -138,6 +139,12 @@ export class TransactionCreateRequest {
|
|
|
138
139
|
|
|
139
140
|
@IsNumber()
|
|
140
141
|
createdAt: Number;
|
|
141
|
-
}
|
|
142
142
|
|
|
143
|
+
@IsString()
|
|
144
|
+
@IsOptional()
|
|
145
|
+
metaDataCode?: string;
|
|
143
146
|
|
|
147
|
+
@IsString()
|
|
148
|
+
@IsOptional()
|
|
149
|
+
metaData?: string;
|
|
150
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IdentificationDocument } from "../../identity";
|
|
2
|
-
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
-
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
-
documentInfo: IdentificationDocument;
|
|
5
|
-
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
-
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
-
}
|
|
6
|
-
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Company } from "../../company";
|
|
2
|
-
import { Provider } from "../../provider";
|
|
3
|
-
import { ServiceTypeEnum } from "../../services";
|
|
4
|
-
import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
|
|
5
|
-
export declare class GetPriceListDirectoriesResponse {
|
|
6
|
-
serviceId: string;
|
|
7
|
-
company: Company;
|
|
8
|
-
provider: Provider;
|
|
9
|
-
type: ServiceTypeEnum;
|
|
10
|
-
basePrice: number;
|
|
11
|
-
recurrence: ServiceRecurrenceEnum;
|
|
12
|
-
currencyId: string;
|
|
13
|
-
fees: any;
|
|
14
|
-
taxes: any;
|
|
15
|
-
globalDiscounts: {
|
|
16
|
-
discountType: string;
|
|
17
|
-
discountValue: number;
|
|
18
|
-
}[];
|
|
19
|
-
directories: {
|
|
20
|
-
directoryId: string;
|
|
21
|
-
appliedDiscounts: {
|
|
22
|
-
discountType: string;
|
|
23
|
-
discountValue: number;
|
|
24
|
-
source: string;
|
|
25
|
-
referenceId: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceProviderEnum = void 0;
|
|
4
|
-
var ServiceProviderEnum;
|
|
5
|
-
(function (ServiceProviderEnum) {
|
|
6
|
-
ServiceProviderEnum["CP"] = "CP";
|
|
7
|
-
ServiceProviderEnum["TERN"] = "TERN";
|
|
8
|
-
ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
|
|
9
|
-
})(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
|