@fiado/type-kit 3.43.1 → 3.45.0

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.
Files changed (97) hide show
  1. package/bin/index.d.ts +1 -0
  2. package/bin/index.js +2 -1
  3. package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +20 -0
  4. package/bin/messagesConnector/dtos/SendMessageRequest.js +118 -0
  5. package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +5 -0
  6. package/bin/messagesConnector/dtos/VerifyOtpRequest.js +34 -0
  7. package/bin/messagesConnector/index.d.ts +2 -0
  8. package/bin/messagesConnector/index.js +2 -0
  9. package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.d.ts +13 -0
  10. package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.js +63 -0
  11. package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.d.ts +10 -0
  12. package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.js +6 -0
  13. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +5 -0
  14. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
  15. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
  16. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
  17. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
  18. package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
  19. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
  20. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
  21. package/bin/walletFunding/dtos/CreateFundingReferenceRequest.d.ts +13 -0
  22. package/bin/walletFunding/dtos/CreateFundingReferenceRequest.js +65 -0
  23. package/bin/walletFunding/dtos/CreateFundingReferenceResponse.d.ts +10 -0
  24. package/bin/walletFunding/dtos/CreateFundingReferenceResponse.js +6 -0
  25. package/bin/walletFunding/dtos/CreditWalletFundingRequest.d.ts +10 -0
  26. package/bin/walletFunding/dtos/CreditWalletFundingRequest.js +55 -0
  27. package/bin/walletFunding/dtos/CreditWalletFundingResponse.d.ts +8 -0
  28. package/bin/walletFunding/dtos/CreditWalletFundingResponse.js +6 -0
  29. package/bin/walletFunding/dtos/FundingProviderReferenceData.d.ts +12 -0
  30. package/bin/walletFunding/dtos/FundingProviderReferenceData.js +9 -0
  31. package/bin/walletFunding/dtos/ListFundingReferencesRequest.d.ts +5 -0
  32. package/bin/walletFunding/dtos/ListFundingReferencesRequest.js +27 -0
  33. package/bin/walletFunding/dtos/ListFundingReferencesResponse.d.ts +4 -0
  34. package/bin/walletFunding/dtos/ListFundingReferencesResponse.js +6 -0
  35. package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.d.ts +6 -0
  36. package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.js +28 -0
  37. package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.d.ts +16 -0
  38. package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.js +9 -0
  39. package/bin/walletFunding/dtos/ReverseWalletFundingRequest.d.ts +9 -0
  40. package/bin/walletFunding/dtos/ReverseWalletFundingRequest.js +51 -0
  41. package/bin/walletFunding/dtos/ReverseWalletFundingResponse.d.ts +7 -0
  42. package/bin/walletFunding/dtos/ReverseWalletFundingResponse.js +6 -0
  43. package/bin/walletFunding/dtos/ValidateWalletFundingRequest.d.ts +9 -0
  44. package/bin/walletFunding/dtos/ValidateWalletFundingRequest.js +51 -0
  45. package/bin/walletFunding/dtos/ValidateWalletFundingResponse.d.ts +6 -0
  46. package/bin/walletFunding/dtos/ValidateWalletFundingResponse.js +6 -0
  47. package/bin/walletFunding/dtos/index.d.ts +19 -0
  48. package/bin/walletFunding/dtos/index.js +35 -0
  49. package/bin/walletFunding/enums/FundingMethodEnum.d.ts +3 -0
  50. package/bin/walletFunding/enums/FundingMethodEnum.js +7 -0
  51. package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.d.ts +16 -0
  52. package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.js +20 -0
  53. package/bin/walletFunding/enums/WalletFundingModeEnum.d.ts +4 -0
  54. package/bin/walletFunding/enums/WalletFundingModeEnum.js +8 -0
  55. package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.d.ts +6 -0
  56. package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.js +10 -0
  57. package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.d.ts +6 -0
  58. package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.js +10 -0
  59. package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.d.ts +8 -0
  60. package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.js +12 -0
  61. package/bin/walletFunding/enums/index.d.ts +6 -0
  62. package/bin/walletFunding/enums/index.js +22 -0
  63. package/bin/walletFunding/index.d.ts +2 -0
  64. package/bin/walletFunding/index.js +18 -0
  65. package/package.json +1 -1
  66. package/src/index.ts +1 -0
  67. package/src/messagesConnector/dtos/SendMessageRequest.ts +23 -0
  68. package/src/messagesConnector/dtos/VerifyOtpRequest.ts +8 -0
  69. package/src/messagesConnector/index.ts +2 -0
  70. package/src/walletFunding/dtos/AuthorizeWalletFundingRequest.ts +18 -0
  71. package/src/walletFunding/dtos/AuthorizeWalletFundingResponse.ts +11 -0
  72. package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +7 -0
  73. package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +8 -0
  74. package/src/walletFunding/dtos/CancelWalletFundingRequest.ts +5 -0
  75. package/src/walletFunding/dtos/CancelWalletFundingResponse.ts +8 -0
  76. package/src/walletFunding/dtos/CreateFundingReferenceRequest.ts +18 -0
  77. package/src/walletFunding/dtos/CreateFundingReferenceResponse.ts +11 -0
  78. package/src/walletFunding/dtos/CreditWalletFundingRequest.ts +12 -0
  79. package/src/walletFunding/dtos/CreditWalletFundingResponse.ts +9 -0
  80. package/src/walletFunding/dtos/FundingProviderReferenceData.ts +10 -0
  81. package/src/walletFunding/dtos/ListFundingReferencesRequest.ts +7 -0
  82. package/src/walletFunding/dtos/ListFundingReferencesResponse.ts +5 -0
  83. package/src/walletFunding/dtos/ListWalletFundingReferencesRequest.ts +8 -0
  84. package/src/walletFunding/dtos/ListWalletFundingReferencesResponse.ts +18 -0
  85. package/src/walletFunding/dtos/ReverseWalletFundingRequest.ts +11 -0
  86. package/src/walletFunding/dtos/ReverseWalletFundingResponse.ts +8 -0
  87. package/src/walletFunding/dtos/ValidateWalletFundingRequest.ts +11 -0
  88. package/src/walletFunding/dtos/ValidateWalletFundingResponse.ts +7 -0
  89. package/src/walletFunding/dtos/index.ts +19 -0
  90. package/src/walletFunding/enums/FundingMethodEnum.ts +3 -0
  91. package/src/walletFunding/enums/WalletFundingErrorCodeEnum.ts +16 -0
  92. package/src/walletFunding/enums/WalletFundingModeEnum.ts +4 -0
  93. package/src/walletFunding/enums/WalletFundingPaymentStatusEnum.ts +6 -0
  94. package/src/walletFunding/enums/WalletFundingReferenceStatusEnum.ts +6 -0
  95. package/src/walletFunding/enums/WalletFundingRefundReasonEnum.ts +8 -0
  96. package/src/walletFunding/enums/index.ts +6 -0
  97. package/src/walletFunding/index.ts +2 -0
@@ -0,0 +1,8 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+
4
+ export class CancelWalletFundingResponse {
5
+ status!: BenefitPaymentStatusEnum;
6
+ errorCode?: WalletFundingErrorCodeEnum;
7
+ fundingId?: string;
8
+ }
@@ -0,0 +1,18 @@
1
+ import {
2
+ IsString, IsEmail, IsEnum, IsOptional, IsNumber, IsPositive,
3
+ Length, IsDateString, MaxLength,
4
+ } from "class-validator";
5
+ import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
6
+
7
+ export class CreateFundingReferenceRequest {
8
+ @IsString() @MaxLength(64) fundingId!: string;
9
+ @IsString() @MaxLength(64) directoryId!: string;
10
+ @IsString() @MaxLength(64) walletAccountId!: string;
11
+ @IsString() @MaxLength(128) name!: string;
12
+ @IsEmail() email!: string;
13
+ @IsEnum(WalletFundingModeEnum) mode!: WalletFundingModeEnum;
14
+ @IsOptional() @IsNumber() @IsPositive() amount?: number;
15
+ @IsString() @Length(3, 3) currencyCode!: string;
16
+ @IsDateString() expiresAt!: string;
17
+ @IsString() @MaxLength(64) idempotencyKey!: string;
18
+ }
@@ -0,0 +1,11 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
4
+
5
+ export class CreateFundingReferenceResponse {
6
+ fundingId!: string;
7
+ status!: BenefitPaymentStatusEnum;
8
+ errorCode?: WalletFundingErrorCodeEnum;
9
+ expiresAt?: string;
10
+ providerData?: FundingProviderReferenceData;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { IsString, IsNumber, IsPositive, Length, IsDateString, MaxLength } from "class-validator";
2
+
3
+ export class CreditWalletFundingRequest {
4
+ @IsString() @MaxLength(64) directoryId!: string;
5
+ @IsString() @MaxLength(64) walletAccountId!: string;
6
+ @IsNumber() @IsPositive() amount!: number;
7
+ @IsString() @Length(3, 3) currencyCode!: string;
8
+ @IsString() @MaxLength(32) providerName!: string;
9
+ @IsString() @MaxLength(128) providerReference!: string;
10
+ @IsString() @MaxLength(64) providerTxId!: string;
11
+ @IsDateString() paidAt!: string;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+
4
+ export class CreditWalletFundingResponse {
5
+ status!: BenefitPaymentStatusEnum;
6
+ errorCode?: WalletFundingErrorCodeEnum;
7
+ transactionNumber?: string;
8
+ noAuthorization?: string;
9
+ }
@@ -0,0 +1,10 @@
1
+ export class FundingProviderReferenceItem {
2
+ reference!: string;
3
+ centers!: Array<{ name: string; logo: string }>;
4
+ centerId!: number | string;
5
+ barcode!: string;
6
+ }
7
+
8
+ export class FundingProviderReferenceData {
9
+ references!: FundingProviderReferenceItem[];
10
+ }
@@ -0,0 +1,7 @@
1
+ import { IsString, IsOptional, IsEnum, MaxLength } from "class-validator";
2
+ import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenceStatusEnum";
3
+
4
+ export class ListFundingReferencesRequest {
5
+ @IsString() @MaxLength(64) directoryId!: string;
6
+ @IsOptional() @IsEnum(WalletFundingReferenceStatusEnum) status?: WalletFundingReferenceStatusEnum;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { WalletFundingReferenceListItem } from "./ListWalletFundingReferencesResponse";
2
+
3
+ export class ListFundingReferencesResponse {
4
+ items!: WalletFundingReferenceListItem[];
5
+ }
@@ -0,0 +1,8 @@
1
+ import { IsOptional, IsEnum } from "class-validator";
2
+ import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenceStatusEnum";
3
+ import { FundingMethodEnum } from "../enums/FundingMethodEnum";
4
+
5
+ export class ListWalletFundingReferencesRequest {
6
+ @IsOptional() @IsEnum(WalletFundingReferenceStatusEnum) status?: WalletFundingReferenceStatusEnum;
7
+ @IsOptional() @IsEnum(FundingMethodEnum) method?: FundingMethodEnum;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenceStatusEnum";
2
+ import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
3
+ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
4
+
5
+ export class WalletFundingReferenceListItem {
6
+ fundingId!: string;
7
+ mode!: WalletFundingModeEnum;
8
+ amount?: number;
9
+ currencyCode!: string;
10
+ status!: WalletFundingReferenceStatusEnum;
11
+ expiresAt!: string;
12
+ createdAt!: string;
13
+ providerData!: FundingProviderReferenceData;
14
+ }
15
+
16
+ export class ListWalletFundingReferencesResponse {
17
+ items!: WalletFundingReferenceListItem[];
18
+ }
@@ -0,0 +1,11 @@
1
+ import { IsString, IsNumber, IsPositive, Length, MaxLength } from "class-validator";
2
+
3
+ export class ReverseWalletFundingRequest {
4
+ @IsString() @MaxLength(64) directoryId!: string;
5
+ @IsString() @MaxLength(64) walletAccountId!: string;
6
+ @IsNumber() @IsPositive() amount!: number;
7
+ @IsString() @Length(3, 3) currencyCode!: string;
8
+ @IsString() @MaxLength(32) providerName!: string;
9
+ @IsString() @MaxLength(128) providerReference!: string;
10
+ @IsString() @MaxLength(64) providerTxId!: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+
4
+ export class ReverseWalletFundingResponse {
5
+ status!: BenefitPaymentStatusEnum;
6
+ errorCode?: WalletFundingErrorCodeEnum;
7
+ transactionNumber?: string;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { IsString, IsNumber, IsPositive, Length, MaxLength } from "class-validator";
2
+
3
+ export class ValidateWalletFundingRequest {
4
+ @IsString() @MaxLength(64) directoryId!: string;
5
+ @IsString() @MaxLength(64) walletAccountId!: string;
6
+ @IsNumber() @IsPositive() amount!: number;
7
+ @IsString() @Length(3, 3) currencyCode!: string;
8
+ @IsString() @MaxLength(32) providerName!: string;
9
+ @IsString() @MaxLength(128) providerReference!: string;
10
+ @IsString() @MaxLength(64) providerTxId!: string;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
2
+
3
+ export class ValidateWalletFundingResponse {
4
+ authorized!: boolean;
5
+ errorCode?: WalletFundingErrorCodeEnum;
6
+ message?: string;
7
+ }
@@ -0,0 +1,19 @@
1
+ export * from "./FundingProviderReferenceData";
2
+ export * from "./AuthorizeWalletFundingRequest";
3
+ export * from "./AuthorizeWalletFundingResponse";
4
+ export * from "./CancelWalletFundingRequest";
5
+ export * from "./CancelWalletFundingResponse";
6
+ export * from "./ListWalletFundingReferencesRequest";
7
+ export * from "./ListWalletFundingReferencesResponse";
8
+ export * from "./CreateFundingReferenceRequest";
9
+ export * from "./CreateFundingReferenceResponse";
10
+ export * from "./CancelFundingReferenceRequest";
11
+ export * from "./CancelFundingReferenceResponse";
12
+ export * from "./ListFundingReferencesRequest";
13
+ export * from "./ListFundingReferencesResponse";
14
+ export * from "./ValidateWalletFundingRequest";
15
+ export * from "./ValidateWalletFundingResponse";
16
+ export * from "./CreditWalletFundingRequest";
17
+ export * from "./CreditWalletFundingResponse";
18
+ export * from "./ReverseWalletFundingRequest";
19
+ export * from "./ReverseWalletFundingResponse";
@@ -0,0 +1,3 @@
1
+ export enum FundingMethodEnum {
2
+ CASH = "CASH",
3
+ }
@@ -0,0 +1,16 @@
1
+ export enum WalletFundingErrorCodeEnum {
2
+ WALLET_NOT_ACTIVE = "WALLET_NOT_ACTIVE",
3
+ KYC_REQUIRED = "KYC_REQUIRED",
4
+ AMOUNT_EXCEEDS_LEVEL_LIMIT = "AMOUNT_EXCEEDS_LEVEL_LIMIT",
5
+ MONTHLY_LIMIT_EXCEEDED = "MONTHLY_LIMIT_EXCEEDED",
6
+ AML_BLOCKED = "AML_BLOCKED",
7
+ TOO_MANY_ACTIVE_REFERENCES = "TOO_MANY_ACTIVE_REFERENCES",
8
+ REFERENCE_NOT_FOUND = "REFERENCE_NOT_FOUND",
9
+ REFERENCE_NOT_CANCELABLE = "REFERENCE_NOT_CANCELABLE",
10
+ REFERENCE_EXPIRED = "REFERENCE_EXPIRED",
11
+ REFERENCE_CANCELLED = "REFERENCE_CANCELLED",
12
+ REFERENCE_ALREADY_PAID = "REFERENCE_ALREADY_PAID",
13
+ AMOUNT_MISMATCH = "AMOUNT_MISMATCH",
14
+ PROVIDER_REJECTED = "PROVIDER_REJECTED",
15
+ PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
16
+ }
@@ -0,0 +1,4 @@
1
+ export enum WalletFundingModeEnum {
2
+ FIXED = "FIXED",
3
+ OPEN = "OPEN",
4
+ }
@@ -0,0 +1,6 @@
1
+ export enum WalletFundingPaymentStatusEnum {
2
+ CONSULTED = "CONSULTED",
3
+ APPLIED = "APPLIED",
4
+ REVERSED = "REVERSED",
5
+ QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND",
6
+ }
@@ -0,0 +1,6 @@
1
+ export enum WalletFundingReferenceStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ PAID = "PAID",
4
+ EXPIRED = "EXPIRED",
5
+ CANCELLED = "CANCELLED",
6
+ }
@@ -0,0 +1,8 @@
1
+ export enum WalletFundingRefundReasonEnum {
2
+ WALLET_CANCELLED = "WALLET_CANCELLED",
3
+ AML_BLOCKED = "AML_BLOCKED",
4
+ LIMIT_EXCEEDED = "LIMIT_EXCEEDED",
5
+ WALLET_NOT_FOUND = "WALLET_NOT_FOUND",
6
+ PROCESSOR_FAILURE = "PROCESSOR_FAILURE",
7
+ INSUFFICIENT_BALANCE_FOR_REVERSE = "INSUFFICIENT_BALANCE_FOR_REVERSE",
8
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./FundingMethodEnum";
2
+ export * from "./WalletFundingModeEnum";
3
+ export * from "./WalletFundingReferenceStatusEnum";
4
+ export * from "./WalletFundingPaymentStatusEnum";
5
+ export * from "./WalletFundingErrorCodeEnum";
6
+ export * from "./WalletFundingRefundReasonEnum";
@@ -0,0 +1,2 @@
1
+ export * from "./enums";
2
+ export * from "./dtos";