resurgence-data 1.0.28 → 1.0.30

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,4 +1,4 @@
1
- import { ApiProperty } from "@nestjs/swagger";
1
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
2
2
  import {
3
3
  IsNotEmpty,
4
4
  IsOptional,
@@ -13,6 +13,7 @@ import {
13
13
  Min,
14
14
  IsDecimal,
15
15
  IsDateString,
16
+ MaxLength,
16
17
  } from "class-validator";
17
18
 
18
19
  /**
@@ -1023,6 +1024,53 @@ export class UpdateCustomerDto {
1023
1024
  phoneNumber?: string;
1024
1025
  }
1025
1026
 
1027
+ export class BillerItemCategoryDto {
1028
+ @ApiProperty({
1029
+ description: "Name of the biller item category",
1030
+ maxLength: 100,
1031
+ })
1032
+ @IsString()
1033
+ @IsNotEmpty()
1034
+ @MaxLength(100)
1035
+ name: string;
1036
+
1037
+ @ApiPropertyOptional({
1038
+ description: "Description of the biller item category",
1039
+ type: String,
1040
+ })
1041
+ @IsString()
1042
+ @IsOptional()
1043
+ description?: string;
1044
+ }
1045
+
1046
+ export class UpdateBillerItemCategoryDto {
1047
+ @ApiProperty({
1048
+ description: "Unique identifier for the biller item category",
1049
+ type: String,
1050
+ format: "uuid",
1051
+ })
1052
+ @IsUUID()
1053
+ @IsNotEmpty()
1054
+ id: string;
1055
+
1056
+ @ApiProperty({
1057
+ description: "Name of the biller item category",
1058
+ maxLength: 100,
1059
+ })
1060
+ @IsString()
1061
+ @IsNotEmpty()
1062
+ @MaxLength(100)
1063
+ name: string;
1064
+
1065
+ @ApiPropertyOptional({
1066
+ description: "Description of the biller item category",
1067
+ type: String,
1068
+ })
1069
+ @IsString()
1070
+ @IsOptional()
1071
+ description?: string;
1072
+ }
1073
+
1026
1074
  export class CreateBillerItemDto {
1027
1075
  @ApiProperty({
1028
1076
  description: "The ID of the biller",
@@ -1032,6 +1080,14 @@ export class CreateBillerItemDto {
1032
1080
  @IsString({ message: "Biller ID must be a valid string" })
1033
1081
  billerId: string;
1034
1082
 
1083
+ @ApiProperty({
1084
+ description: "The item category ID",
1085
+ example: "550e8400-e29b-41d4-a716-446655440000",
1086
+ })
1087
+ @IsString({ message: "Item category ID must be a valid string" })
1088
+ @IsOptional()
1089
+ itemCategoryId?: string;
1090
+
1035
1091
  @ApiProperty({
1036
1092
  description: "The amount associated with the biller item",
1037
1093
  example: 100,
@@ -1118,6 +1174,14 @@ export class UpdateBillerItemDto {
1118
1174
  @IsString({ message: "Biller ID must be a valid string" })
1119
1175
  billerId?: string;
1120
1176
 
1177
+ @ApiProperty({
1178
+ description: "The item category ID",
1179
+ example: "550e8400-e29b-41d4-a716-446655440000",
1180
+ })
1181
+ @IsString({ message: "Item category ID must be a valid string" })
1182
+ @IsOptional()
1183
+ itemCategoryId?: string;
1184
+
1121
1185
  @ApiProperty({
1122
1186
  description: "The amount associated with the biller item",
1123
1187
  example: 100,