@fiado/type-kit 1.9.37 → 1.9.38

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.
@@ -2,20 +2,21 @@ import { CollectionType } from "../../collector";
2
2
  import { Company } from "../../company";
3
3
  import { DirectoryResponse } from "../../directory";
4
4
  import { PeopleResponse } from "../../identity";
5
+ import { CreditContractInfo } from "./CreditContractInfo";
5
6
  export declare class AuthorizeCollectorOrderRequest {
6
7
  executionId: string;
7
8
  orderId: string;
8
9
  peopleId: string;
9
10
  directoryId: string;
10
11
  currencyId: string;
11
- notional: number;
12
+ notional?: number;
13
+ totalLockedAmount: number;
12
14
  totalToCollect: number;
13
15
  company: Company;
14
16
  type: CollectionType;
15
17
  servicePriceListId?: string;
16
18
  scheduleCollectionDate: string;
17
- relatedProductIds?: string[];
18
- creditContractIds: string[];
19
+ creditContractInfo: CreditContractInfo;
19
20
  collectorTransactionId: string;
20
21
  peopleInfo: Partial<PeopleResponse>;
21
22
  directoryInfo: Partial<DirectoryResponse>;
@@ -1,14 +1,15 @@
1
1
  import { CollectorOrderStatus } from "../../collector";
2
+ import { CreditContractInfo } from "./CreditContractInfo";
2
3
  export declare class AuthorizeCollectorOrderResponse {
3
4
  orderId: string;
4
5
  executionId: string;
5
6
  status: CollectorOrderStatus;
6
7
  collectedAmount: number;
7
8
  remainingAmount: number;
8
- notes: string;
9
+ relatedChargebackId?: string;
10
+ relatedChargebackAmount?: number;
11
+ notes?: string;
9
12
  collectorTransactionId: string;
10
13
  timestamp: string;
11
- transactionNumber: string;
12
- relatedTransactionId: string;
13
- creditContractIds: string[];
14
+ creditContractInfo: CreditContractInfo;
14
15
  }
@@ -0,0 +1,6 @@
1
+ import { CreditContractStatusEnum } from "../enums/CreditContractStatusEnum";
2
+ export declare class CreditContractInfo {
3
+ creditContractId: string;
4
+ creditContractStatus: CreditContractStatusEnum;
5
+ relatedProductId?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreditContractInfo = void 0;
4
+ class CreditContractInfo {
5
+ }
6
+ exports.CreditContractInfo = CreditContractInfo;
@@ -0,0 +1,7 @@
1
+ export declare enum CreditContractStatusEnum {
2
+ ORIGINADO = "ORIGINADO",
3
+ COMPRADO = "COMPRADO",
4
+ COBRADO = "COBRADO",
5
+ SALDADO = "SALDADO",
6
+ ERROR = "ERROR"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreditContractStatusEnum = void 0;
4
+ var CreditContractStatusEnum;
5
+ (function (CreditContractStatusEnum) {
6
+ CreditContractStatusEnum["ORIGINADO"] = "ORIGINADO";
7
+ CreditContractStatusEnum["COMPRADO"] = "COMPRADO";
8
+ CreditContractStatusEnum["COBRADO"] = "COBRADO";
9
+ CreditContractStatusEnum["SALDADO"] = "SALDADO";
10
+ CreditContractStatusEnum["ERROR"] = "ERROR";
11
+ })(CreditContractStatusEnum || (exports.CreditContractStatusEnum = CreditContractStatusEnum = {}));
@@ -27,9 +27,11 @@ export * from './dtos/AuthorizeUsdAchTransactionRequest';
27
27
  export * from './dtos/AuthorizeMCSendTransactionRequest';
28
28
  export * from './dtos/AuthorizeCollectorOrderRequest';
29
29
  export * from './dtos/AuthorizeCollectorOrderResponse';
30
+ export * from './dtos/CreditContractInfo';
30
31
  export * from './enums/TransactionProcessorCodesEnum';
31
32
  export * from './enums/AsyncTxStatusEnum';
32
33
  export * from './enums/AppEnum';
33
34
  export * from './enums/TransactionInfoStatusEnum';
34
35
  export * from './enums/EventTypeEnum';
35
36
  export * from './enums/EventChannelEnum';
37
+ export * from './enums/CreditContractStatusEnum';
@@ -43,9 +43,11 @@ __exportStar(require("./dtos/AuthorizeUsdAchTransactionRequest"), exports);
43
43
  __exportStar(require("./dtos/AuthorizeMCSendTransactionRequest"), exports);
44
44
  __exportStar(require("./dtos/AuthorizeCollectorOrderRequest"), exports);
45
45
  __exportStar(require("./dtos/AuthorizeCollectorOrderResponse"), exports);
46
+ __exportStar(require("./dtos/CreditContractInfo"), exports);
46
47
  __exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
47
48
  __exportStar(require("./enums/AsyncTxStatusEnum"), exports);
48
49
  __exportStar(require("./enums/AppEnum"), exports);
49
50
  __exportStar(require("./enums/TransactionInfoStatusEnum"), exports);
50
51
  __exportStar(require("./enums/EventTypeEnum"), exports);
51
52
  __exportStar(require("./enums/EventChannelEnum"), exports);
53
+ __exportStar(require("./enums/CreditContractStatusEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.9.37",
3
+ "version": "1.9.38",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -3,6 +3,7 @@ import { CollectionType } from "../../collector";
3
3
  import { Company } from "../../company";
4
4
  import { DirectoryResponse } from "../../directory";
5
5
  import { PeopleResponse } from "../../identity";
6
+ import { CreditContractInfo } from "./CreditContractInfo";
6
7
 
7
8
  export class AuthorizeCollectorOrderRequest {
8
9
  executionId: string;
@@ -10,14 +11,14 @@ export class AuthorizeCollectorOrderRequest {
10
11
  peopleId: string;
11
12
  directoryId: string;
12
13
  currencyId: string;
13
- notional: number;
14
+ notional?: number;
15
+ totalLockedAmount: number;
14
16
  totalToCollect: number;
15
17
  company: Company;
16
18
  type: CollectionType;
17
19
  servicePriceListId?: string;
18
20
  scheduleCollectionDate: string;
19
- relatedProductIds?: string[];
20
- creditContractIds: string[];
21
+ creditContractInfo: CreditContractInfo;
21
22
  collectorTransactionId: string;
22
23
  peopleInfo: Partial<PeopleResponse>;
23
24
  directoryInfo: Partial<DirectoryResponse>;
@@ -1,4 +1,5 @@
1
1
  import { CollectorOrderStatus } from "../../collector";
2
+ import { CreditContractInfo } from "./CreditContractInfo";
2
3
 
3
4
  export class AuthorizeCollectorOrderResponse {
4
5
  orderId: string;
@@ -6,10 +7,10 @@ export class AuthorizeCollectorOrderResponse {
6
7
  status: CollectorOrderStatus;
7
8
  collectedAmount: number;
8
9
  remainingAmount: number;
9
- notes: string;
10
+ relatedChargebackId?: string;
11
+ relatedChargebackAmount?: number;
12
+ notes?: string;
10
13
  collectorTransactionId: string;
11
14
  timestamp: string;
12
- transactionNumber: string;
13
- relatedTransactionId: string;
14
- creditContractIds: string[];
15
+ creditContractInfo: CreditContractInfo;
15
16
  }
@@ -0,0 +1,7 @@
1
+ import { CreditContractStatusEnum } from "../enums/CreditContractStatusEnum";
2
+
3
+ export class CreditContractInfo {
4
+ creditContractId: string;
5
+ creditContractStatus: CreditContractStatusEnum;
6
+ relatedProductId?: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ export enum CreditContractStatusEnum {
2
+ ORIGINADO = "ORIGINADO",
3
+ COMPRADO = "COMPRADO",
4
+ COBRADO = "COBRADO",
5
+ SALDADO = "SALDADO",
6
+ ERROR = "ERROR"
7
+ }
@@ -27,6 +27,7 @@ export * from './dtos/AuthorizeUsdAchTransactionRequest';
27
27
  export * from './dtos/AuthorizeMCSendTransactionRequest';
28
28
  export * from './dtos/AuthorizeCollectorOrderRequest';
29
29
  export * from './dtos/AuthorizeCollectorOrderResponse';
30
+ export * from './dtos/CreditContractInfo';
30
31
 
31
32
  export * from './enums/TransactionProcessorCodesEnum';
32
33
  export * from './enums/AsyncTxStatusEnum';
@@ -34,4 +35,6 @@ export * from './enums/AppEnum';
34
35
  export * from './enums/TransactionInfoStatusEnum';
35
36
  export * from './enums/EventTypeEnum';
36
37
  export * from './enums/EventChannelEnum';
38
+ export * from './enums/CreditContractStatusEnum';
39
+
37
40