@fiado/type-kit 1.9.41 → 1.9.43

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.
@@ -0,0 +1,4 @@
1
+ export declare class ExternalAccountType {
2
+ id?: number;
3
+ name?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalAccountType = void 0;
4
+ class ExternalAccountType {
5
+ }
6
+ exports.ExternalAccountType = ExternalAccountType;
@@ -6,8 +6,7 @@ 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.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
10
- exports.IsValueValid = IsValueValid;
9
+ exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
11
10
  const class_validator_1 = require("class-validator");
12
11
  const Status_1 = require("../enums/Status");
13
12
  const UpdateKey_1 = require("../enums/UpdateKey");
@@ -71,3 +70,4 @@ function IsValueValid(validationOptions) {
71
70
  });
72
71
  };
73
72
  }
73
+ exports.IsValueValid = IsValueValid;
@@ -6,8 +6,7 @@ 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.IsPhoneNumberConstraint = void 0;
10
- exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
9
+ exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
11
10
  const class_validator_1 = require("class-validator");
12
11
  const regex_1 = require("../../helpers/constans/regex");
13
12
  let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
@@ -37,3 +36,4 @@ function IsPhoneNumberFiado(validationOptions) {
37
36
  });
38
37
  };
39
38
  }
39
+ exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
@@ -0,0 +1,6 @@
1
+ import { DocumentSideEnum } from "../../identity";
2
+ export declare class CentralPaymentsDocumentImages {
3
+ side: DocumentSideEnum;
4
+ url: string;
5
+ extension: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CentralPaymentsDocumentImages = void 0;
4
+ class CentralPaymentsDocumentImages {
5
+ }
6
+ exports.CentralPaymentsDocumentImages = CentralPaymentsDocumentImages;
@@ -0,0 +1,6 @@
1
+ import { IdentificationDocument } from "../../identity";
2
+ import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
3
+ export declare class CentralPaymentsDocumentUploadRequest {
4
+ documentInfo: IdentificationDocument;
5
+ documentImages: CentralPaymentsDocumentImages[];
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CentralPaymentsDocumentUploadRequest = void 0;
4
+ class CentralPaymentsDocumentUploadRequest {
5
+ }
6
+ exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
package/bin/index.js CHANGED
@@ -15,23 +15,13 @@ 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
- 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
- })();
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
35
25
  Object.defineProperty(exports, "__esModule", { value: true });
36
26
  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;
37
27
  exports.Account = __importStar(require("./account"));
@@ -0,0 +1,28 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPriceListDirectoriesResponse = void 0;
4
+ class GetPriceListDirectoriesResponse {
5
+ }
6
+ exports.GetPriceListDirectoriesResponse = GetPriceListDirectoriesResponse;
@@ -0,0 +1,4 @@
1
+ export declare class GetServiceListAppResponse {
2
+ items: any[];
3
+ index: string | null;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceListAppResponse = void 0;
4
+ class GetServiceListAppResponse {
5
+ }
6
+ exports.GetServiceListAppResponse = GetServiceListAppResponse;
@@ -0,0 +1,4 @@
1
+ export declare class GetServiceMembershipListAResponse {
2
+ items: any[];
3
+ index: string | null;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceMembershipListAResponse = void 0;
4
+ class GetServiceMembershipListAResponse {
5
+ }
6
+ exports.GetServiceMembershipListAResponse = GetServiceMembershipListAResponse;
@@ -0,0 +1,5 @@
1
+ export declare enum ServiceProviderEnum {
2
+ CP = "CP",
3
+ TERN = "TERN",
4
+ PAGOCONFIADO = "PAGOCONFIADO"
5
+ }
@@ -0,0 +1,9 @@
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 = {}));
@@ -2,22 +2,27 @@ import { CollectionType } from "../../collector";
2
2
  import { Company } from "../../company";
3
3
  import { DirectoryResponse } from "../../directory";
4
4
  import { PeopleResponse } from "../../identity";
5
+ import { Provider } from "../../provider";
5
6
  import { CreditContractInfo } from "./CreditContractInfo";
6
7
  export declare class AuthorizeCollectorOrderRequest {
7
- executionId: string;
8
- orderId: string;
9
- peopleId: string;
10
- directoryId: string;
11
- currencyId: string;
12
- notional?: number;
13
- totalLockedAmount: number;
14
- totalToCollect: number;
15
- company: Company;
16
- type: CollectionType;
17
- servicePriceListId?: string;
18
- scheduleCollectionDate: string;
19
- creditContractInfo: CreditContractInfo;
20
- collectorTransactionId: string;
21
- peopleInfo: Partial<PeopleResponse>;
22
- directoryInfo: Partial<DirectoryResponse>;
8
+ batchId: string;
9
+ batchSize: number;
10
+ orders: {
11
+ executionId: string;
12
+ orderId: string;
13
+ peopleId: string;
14
+ directoryId: string;
15
+ currencyId: string;
16
+ totalLockedAmount?: number;
17
+ totalToCollect: number;
18
+ returnAmount: number;
19
+ company: Company;
20
+ provider: Provider;
21
+ type: CollectionType;
22
+ scheduleCollectionDate: number;
23
+ creditContractInfo?: CreditContractInfo;
24
+ collectorTransactionId?: string;
25
+ peopleInfo: Partial<PeopleResponse>;
26
+ directoryInfo: Partial<DirectoryResponse>;
27
+ }[];
23
28
  }
@@ -6,10 +6,12 @@ export declare class AuthorizeCollectorOrderResponse {
6
6
  status: CollectorOrderStatus;
7
7
  collectedAmount: number;
8
8
  remainingAmount: number;
9
- relatedChargebackId?: string;
10
- relatedChargebackAmount?: number;
11
9
  notes?: string;
10
+ processorExecutionDate: number;
12
11
  collectorTransactionId: string;
13
- timestamp: string;
12
+ relatedChargeBackId?: string;
13
+ relatedChargeBackAmount?: number;
14
+ relatedExternalId: string;
15
+ transactionNumber: string;
14
16
  creditContractInfo: CreditContractInfo;
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.9.41",
3
+ "version": "1.9.43",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -3,23 +3,29 @@ import { CollectionType } from "../../collector";
3
3
  import { Company } from "../../company";
4
4
  import { DirectoryResponse } from "../../directory";
5
5
  import { PeopleResponse } from "../../identity";
6
+ import { Provider } from "../../provider";
6
7
  import { CreditContractInfo } from "./CreditContractInfo";
7
8
 
8
9
  export class AuthorizeCollectorOrderRequest {
9
- executionId: string;
10
- orderId: string;
11
- peopleId: string;
12
- directoryId: string;
13
- currencyId: string;
14
- notional?: number;
15
- totalLockedAmount: number;
16
- totalToCollect: number;
17
- company: Company;
18
- type: CollectionType;
19
- servicePriceListId?: string;
20
- scheduleCollectionDate: string;
21
- creditContractInfo: CreditContractInfo;
22
- collectorTransactionId: string;
23
- peopleInfo: Partial<PeopleResponse>;
24
- directoryInfo: Partial<DirectoryResponse>;
10
+ batchId: string; // ID DEL LOTE
11
+ batchSize: number; // TAMAÑO DEL LOTE
12
+ orders:{
13
+ executionId: string; // ID DE EJECUCION
14
+ orderId: string; // ID DE LA ORDEN
15
+ peopleId: string; // PEOPLE ID
16
+ directoryId: string; // DIRECTORY ID
17
+ currencyId: string; // MONEDA
18
+ totalLockedAmount?: number; // MONTO TOTAL BLOQUEADO EN EL CREDIT CONTRACT
19
+ totalToCollect: number; // MONTO TOTAL A COBRAR
20
+ returnAmount: number; // MONTO A DEVOLVER
21
+ company: Company; // COMPAÑIA
22
+ provider: Provider; // PROVEEDOR
23
+ type: CollectionType; // TIPO DE COLECCION
24
+ scheduleCollectionDate: number; // FECHA PROGRAMADA DE LA COLECCION
25
+ creditContractInfo?: CreditContractInfo; // INFORMACION DEL CONTRATO DE CREDITO
26
+ collectorTransactionId?: string; // ID DE LA TRANSACCION DE COLLECTOR
27
+ peopleInfo: Partial<PeopleResponse>; // INFORMACION DE IDENTIDAD
28
+ directoryInfo: Partial<DirectoryResponse>; // INFORMACION DE DIRECTORIO
29
+ }[]
30
+
25
31
  }
@@ -7,10 +7,12 @@ export class AuthorizeCollectorOrderResponse {
7
7
  status: CollectorOrderStatus;
8
8
  collectedAmount: number;
9
9
  remainingAmount: number;
10
- relatedChargebackId?: string;
11
- relatedChargebackAmount?: number;
12
10
  notes?: string;
11
+ processorExecutionDate: number;
13
12
  collectorTransactionId: string;
14
- timestamp: string;
13
+ relatedChargeBackId?: string;
14
+ relatedChargeBackAmount?: number;
15
+ relatedExternalId: string;
16
+ transactionNumber: string;
15
17
  creditContractInfo: CreditContractInfo;
16
18
  }