@fiado/type-kit 1.8.88 → 1.8.90

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.
@@ -1,8 +1,9 @@
1
1
  import { OperationEnum } from "../../transaction";
2
+ import { PocketOperationTypeEnum } from "../enums/PocketOperationTypeEnum";
2
3
  export declare class BankAccountPocketTransferRequest {
3
4
  externalAccountId: string;
4
5
  amount: number;
5
6
  transactionNumber?: string;
6
- preAuth?: boolean;
7
7
  operation: OperationEnum;
8
+ operationType: PocketOperationTypeEnum;
8
9
  }
@@ -28,7 +28,7 @@ __decorate([
28
28
  __metadata("design:type", String)
29
29
  ], CardApplicationRequest.prototype, "virtualOrPhysical", void 0);
30
30
  __decorate([
31
- (0, class_validator_1.IsNotEmpty)(),
31
+ (0, class_validator_1.IsOptional)(),
32
32
  __metadata("design:type", String)
33
33
  ], CardApplicationRequest.prototype, "addressId", void 0);
34
34
  __decorate([
@@ -0,0 +1,3 @@
1
+ export declare class ProviderTransactionReversalRequest {
2
+ externalTransactionIds: string[];
3
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProviderTransactionReversalRequest = void 0;
4
+ class ProviderTransactionReversalRequest {
5
+ }
6
+ exports.ProviderTransactionReversalRequest = ProviderTransactionReversalRequest;
@@ -0,0 +1,5 @@
1
+ export declare class ProviderTransactionReversalResponse {
2
+ externalTransactionId: string;
3
+ transactionNumber: string;
4
+ reversalStatus: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProviderTransactionReversalResponse = void 0;
4
+ class ProviderTransactionReversalResponse {
5
+ }
6
+ exports.ProviderTransactionReversalResponse = ProviderTransactionReversalResponse;
@@ -18,6 +18,8 @@ export * from './dtos/internal/TernTransactionItem';
18
18
  export * from './dtos/internal/ProviderTransactionMerchant';
19
19
  export * from './dtos/internal/ProviderTransactionPagination';
20
20
  export * from './dtos/internal/TransactionListResponse';
21
+ export * from './dtos/internal/ProviderTransactionReversalRequest';
22
+ export * from './dtos/internal/ProviderTransactionReversalResponse';
21
23
  export * from './enums/OperationEnum';
22
24
  export * from './enums/TransactionSourceEnum';
23
25
  export * from './enums/TransactionStatusEnum';
@@ -35,6 +35,8 @@ __exportStar(require("./dtos/internal/TernTransactionItem"), exports);
35
35
  __exportStar(require("./dtos/internal/ProviderTransactionMerchant"), exports);
36
36
  __exportStar(require("./dtos/internal/ProviderTransactionPagination"), exports);
37
37
  __exportStar(require("./dtos/internal/TransactionListResponse"), exports);
38
+ __exportStar(require("./dtos/internal/ProviderTransactionReversalRequest"), exports);
39
+ __exportStar(require("./dtos/internal/ProviderTransactionReversalResponse"), exports);
38
40
  //enums
39
41
  __exportStar(require("./enums/OperationEnum"), exports);
40
42
  __exportStar(require("./enums/TransactionSourceEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.88",
3
+ "version": "1.8.90",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,9 +1,10 @@
1
- import {OperationEnum} from "../../transaction";
1
+ import { OperationEnum } from "../../transaction";
2
+ import { PocketOperationTypeEnum } from "../enums/PocketOperationTypeEnum";
2
3
 
3
4
  export class BankAccountPocketTransferRequest {
4
5
  externalAccountId!: string;
5
6
  amount!: number;
6
7
  transactionNumber?: string;
7
- preAuth?: boolean;
8
8
  operation: OperationEnum;
9
+ operationType: PocketOperationTypeEnum;
9
10
  }
@@ -15,7 +15,7 @@ export class CardApplicationRequest {
15
15
  @IsEnum(VirtualOrPhysical)
16
16
  virtualOrPhysical: VirtualOrPhysical;
17
17
 
18
- @IsNotEmpty()
18
+ @IsOptional()
19
19
  addressId: string;
20
20
 
21
21
  @IsEnum(DeliveryChannel)
@@ -0,0 +1,3 @@
1
+ export class ProviderTransactionReversalRequest {
2
+ externalTransactionIds: string[];
3
+ }
@@ -0,0 +1,5 @@
1
+ export class ProviderTransactionReversalResponse {
2
+ externalTransactionId: string;
3
+ transactionNumber: string;
4
+ reversalStatus: string;
5
+ }
@@ -20,6 +20,8 @@ export * from './dtos/internal/TernTransactionItem';
20
20
  export * from './dtos/internal/ProviderTransactionMerchant';
21
21
  export * from './dtos/internal/ProviderTransactionPagination';
22
22
  export * from './dtos/internal/TransactionListResponse';
23
+ export * from './dtos/internal/ProviderTransactionReversalRequest';
24
+ export * from './dtos/internal/ProviderTransactionReversalResponse';
23
25
 
24
26
 
25
27
  //enums