resurgence-data 1.0.29 → 1.0.31

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.
@@ -15,11 +15,12 @@ import {
15
15
  IsDateString,
16
16
  MaxLength,
17
17
  } from "class-validator";
18
+ import { BaseDTO } from "../types/dto.type";
18
19
 
19
20
  /**
20
21
  * DTO for `BillerCategory`
21
22
  */
22
- export class CreateBillerCategoryDto {
23
+ export class CreateBillerCategoryDto extends BaseDTO {
23
24
  @ApiProperty({ description: "The name of the biller category.", example: "Utilities" })
24
25
  @IsNotEmpty({ message: "Name is required." })
25
26
  @IsString({ message: "Name must be a string." })
@@ -38,7 +39,7 @@ export class CreateBillerCategoryDto {
38
39
  /**
39
40
  * DTO for `BillerCategory`
40
41
  */
41
- export class UpdateBillerCategoryDto {
42
+ export class UpdateBillerCategoryDto extends BaseDTO {
42
43
  @ApiProperty({
43
44
  description: "Unique identifier for the BillerProfile",
44
45
  example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
@@ -65,7 +66,7 @@ export class UpdateBillerCategoryDto {
65
66
  /**
66
67
  * DTO for `Bank`
67
68
  */
68
- export class CreateBankDto {
69
+ export class CreateBankDto extends BaseDTO {
69
70
  @ApiProperty({ description: "The name of the bank.", example: "First Bank" })
70
71
  @IsNotEmpty({ message: "Name is required." })
71
72
  @IsString({ message: "Name must be a string." })
@@ -95,7 +96,7 @@ export class CreateBankDto {
95
96
  /**
96
97
  * DTO for `Charge`
97
98
  */
98
- export class CreateChargeDto {
99
+ export class CreateChargeDto extends BaseDTO {
99
100
  @ApiProperty({ description: "The name of the charge.", example: "Service Fee" })
100
101
  @IsNotEmpty({ message: "Name is required." })
101
102
  @IsString({ message: "Name must be a string." })
@@ -121,7 +122,7 @@ export class CreateChargeDto {
121
122
  /**
122
123
  * DTO for `Transaction`
123
124
  */
124
- export class CreateTransactionDto {
125
+ export class CreateTransactionDto extends BaseDTO {
125
126
  @ApiProperty({ description: "The amount involved in the transaction.", example: 1000 })
126
127
  @IsNotEmpty({ message: "Amount is required." })
127
128
  @IsNumber({}, { message: "Amount must be a number." })
@@ -150,7 +151,7 @@ export class CreateTransactionDto {
150
151
  /**
151
152
  * DTO for `Biller`
152
153
  */
153
- export class CreateBillerDto {
154
+ export class CreateBillerDto extends BaseDTO {
154
155
  @ApiProperty({ description: "The unique ID of the biller.", example: "uuid-value" })
155
156
  @IsOptional()
156
157
  @IsString({ message: "ID must be a string." })
@@ -204,7 +205,7 @@ export class CreateBillerDto {
204
205
  updatedAt?: string;
205
206
  }
206
207
 
207
- export class UpdateBillerDto {
208
+ export class UpdateBillerDto extends BaseDTO {
208
209
  @ApiProperty({ description: "The unique ID of the biller.", example: "uuid-value" })
209
210
  @IsOptional()
210
211
  @IsString({ message: "ID must be a string." })
@@ -254,7 +255,7 @@ export enum TIME_DELIMITER {
254
255
  MONTH = "MONTH",
255
256
  }
256
257
 
257
- export class BillerProfileDTO {
258
+ export class BillerProfileDTO extends BaseDTO {
258
259
  @ApiProperty({
259
260
  description: "Unique identifier for the BillerProfile",
260
261
  example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
@@ -302,7 +303,7 @@ export class BillerProfileDTO {
302
303
  delimiter?: TIME_DELIMITER;
303
304
  }
304
305
 
305
- export class UpdateBillerProfileDTO {
306
+ export class UpdateBillerProfileDTO extends BaseDTO {
306
307
  @ApiProperty({
307
308
  description: "Unique identifier for the BillerProfile",
308
309
  example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
@@ -350,7 +351,7 @@ export class UpdateBillerProfileDTO {
350
351
  delimiter?: TIME_DELIMITER;
351
352
  }
352
353
 
353
- export class CreateSettlementAccountDto {
354
+ export class CreateSettlementAccountDto extends BaseDTO {
354
355
  @ApiProperty({
355
356
  description: "The ID of the biller",
356
357
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -403,7 +404,7 @@ export class CreateSettlementAccountDto {
403
404
  currency: string;
404
405
  }
405
406
 
406
- export class UpdateSettlementAccountDto {
407
+ export class UpdateSettlementAccountDto extends BaseDTO {
407
408
  @IsNotEmpty({ message: "ID must be provided" })
408
409
  @IsString({ message: "ID must be a valid string" })
409
410
  @IsUUID()
@@ -467,7 +468,7 @@ export class UpdateSettlementAccountDto {
467
468
  currency?: string;
468
469
  }
469
470
 
470
- export class CreateBillerChargeConfigurationDto {
471
+ export class CreateBillerChargeConfigurationDto extends BaseDTO {
471
472
  @ApiProperty({
472
473
  description: "The ID of the service",
473
474
  example: "550e8400-e29b-41d4-a716-446655440001",
@@ -564,7 +565,7 @@ export class CreateBillerChargeConfigurationDto {
564
565
  percentAmount?: number;
565
566
  }
566
567
 
567
- export class UpdateBillerChargeConfigurationDto {
568
+ export class UpdateBillerChargeConfigurationDto extends BaseDTO {
568
569
  @IsNotEmpty({ message: "ID must be provided" })
569
570
  @IsString({ message: "ID must be a valid string" })
570
571
  @IsUUID()
@@ -677,7 +678,7 @@ export class UpdateBillerChargeConfigurationDto {
677
678
  percentAmount?: number;
678
679
  }
679
680
 
680
- export class CreateBillerDocumentDto {
681
+ export class CreateBillerDocumentDto extends BaseDTO {
681
682
  @ApiProperty({
682
683
  description: "The ID of the biller",
683
684
  example: "550e8400-e29b-41d4-a716-446655440002",
@@ -703,7 +704,7 @@ export class CreateBillerDocumentDto {
703
704
  type: string;
704
705
  }
705
706
 
706
- export class UpdateBillerDocumentDto {
707
+ export class UpdateBillerDocumentDto extends BaseDTO {
707
708
  @ApiProperty({
708
709
  description: "The ID of the biller",
709
710
  example: "550e8400-e29b-41d4-a716-446655440002",
@@ -732,7 +733,7 @@ export class UpdateBillerDocumentDto {
732
733
  type?: string;
733
734
  }
734
735
 
735
- export class CreateGoLiveRequestDto {
736
+ export class CreateGoLiveRequestDto extends BaseDTO {
736
737
  @ApiProperty({
737
738
  description: "The ID of the biller",
738
739
  example: "550e8400-e29b-41d4-a716-446655440003",
@@ -750,7 +751,7 @@ export class CreateGoLiveRequestDto {
750
751
  status: string;
751
752
  }
752
753
 
753
- export class UpdateGoLiveRequestDto {
754
+ export class UpdateGoLiveRequestDto extends BaseDTO {
754
755
  @ApiProperty({
755
756
  description: "The ID of the biller",
756
757
  example: "550e8400-e29b-41d4-a716-446655440003",
@@ -770,7 +771,7 @@ export class UpdateGoLiveRequestDto {
770
771
  status?: string;
771
772
  }
772
773
 
773
- export class CreateBillerContactDto {
774
+ export class CreateBillerContactDto extends BaseDTO {
774
775
  @ApiProperty({
775
776
  description: "The ID of the biller",
776
777
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -850,7 +851,7 @@ export class CreateBillerContactDto {
850
851
  state: string;
851
852
  }
852
853
 
853
- export class UpdateBillerContactDto {
854
+ export class UpdateBillerContactDto extends BaseDTO {
854
855
  @ApiProperty({
855
856
  description: "The ID of the contact",
856
857
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -947,7 +948,7 @@ export class UpdateBillerContactDto {
947
948
  state?: string;
948
949
  }
949
950
 
950
- export class CreateCustomerDto {
951
+ export class CreateCustomerDto extends BaseDTO {
951
952
  @ApiProperty({
952
953
  description: "The ID of the biller",
953
954
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -985,7 +986,7 @@ export class CreateCustomerDto {
985
986
  phoneNumber?: string;
986
987
  }
987
988
 
988
- export class UpdateCustomerDto {
989
+ export class UpdateCustomerDto extends BaseDTO {
989
990
  @ApiProperty({
990
991
  description: "The ID of the customer",
991
992
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -1024,7 +1025,7 @@ export class UpdateCustomerDto {
1024
1025
  phoneNumber?: string;
1025
1026
  }
1026
1027
 
1027
- export class BillerItemCategoryDto {
1028
+ export class BillerItemCategoryDto extends BaseDTO {
1028
1029
  @ApiProperty({
1029
1030
  description: "Name of the biller item category",
1030
1031
  maxLength: 100,
@@ -1043,7 +1044,7 @@ export class BillerItemCategoryDto {
1043
1044
  description?: string;
1044
1045
  }
1045
1046
 
1046
- export class UpdateBillerItemCategoryDto {
1047
+ export class UpdateBillerItemCategoryDto extends BaseDTO {
1047
1048
  @ApiProperty({
1048
1049
  description: "Unique identifier for the biller item category",
1049
1050
  type: String,
@@ -1071,7 +1072,7 @@ export class UpdateBillerItemCategoryDto {
1071
1072
  description?: string;
1072
1073
  }
1073
1074
 
1074
- export class CreateBillerItemDto {
1075
+ export class CreateBillerItemDto extends BaseDTO {
1075
1076
  @ApiProperty({
1076
1077
  description: "The ID of the biller",
1077
1078
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -1156,7 +1157,7 @@ export class CreateBillerItemDto {
1156
1157
  external: boolean;
1157
1158
  }
1158
1159
 
1159
- export class UpdateBillerItemDto {
1160
+ export class UpdateBillerItemDto extends BaseDTO {
1160
1161
  @ApiProperty({
1161
1162
  description: "The ID of the biller item",
1162
1163
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -1256,7 +1257,7 @@ export class UpdateBillerItemDto {
1256
1257
  external?: boolean;
1257
1258
  }
1258
1259
 
1259
- export class CreateInvoiceDto {
1260
+ export class CreateInvoiceDto extends BaseDTO {
1260
1261
  @ApiProperty({
1261
1262
  description: "The ID of the biller",
1262
1263
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -1306,7 +1307,7 @@ export class CreateInvoiceDto {
1306
1307
  status: string;
1307
1308
  }
1308
1309
 
1309
- export class UpdateInvoiceDto {
1310
+ export class UpdateInvoiceDto extends BaseDTO {
1310
1311
  @ApiProperty({
1311
1312
  description: "The ID of the invoice",
1312
1313
  example: "550e8400-e29b-41d4-a716-446655440000",
@@ -0,0 +1,6 @@
1
+ import { IsOptional } from "class-validator";
2
+
3
+ export class BaseDTO {
4
+ @IsOptional()
5
+ requestUserId: string;
6
+ }