resurgence-data 1.0.32 → 1.0.34

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.
@@ -53,6 +53,7 @@ export declare class CreateBillerDto extends BaseDTO {
53
53
  active: boolean;
54
54
  slug?: string;
55
55
  billerCode?: string;
56
+ chargeConfigurations?: CreateBillerChargeConfigurationDto[];
56
57
  createdAt?: string;
57
58
  updatedAt?: string;
58
59
  }
@@ -194,8 +195,9 @@ export declare class UpdateBillerItemCategoryDto extends BaseDTO {
194
195
  export declare class CreateBillerItemDto extends BaseDTO {
195
196
  billerId: string;
196
197
  itemCategoryId?: string;
198
+ itemCode?: string;
197
199
  amount: number;
198
- name?: string;
200
+ name: string;
199
201
  source?: string;
200
202
  customerIdentifierName?: string;
201
203
  serviceFee: number;
@@ -207,6 +209,7 @@ export declare class UpdateBillerItemDto extends BaseDTO {
207
209
  id: string;
208
210
  billerId?: string;
209
211
  itemCategoryId?: string;
212
+ itemCode?: string;
210
213
  amount?: number;
211
214
  name?: string;
212
215
  source?: string;
@@ -1231,6 +1231,15 @@ __decorate([
1231
1231
  (0, class_validator_1.IsOptional)(),
1232
1232
  __metadata("design:type", String)
1233
1233
  ], CreateBillerItemDto.prototype, "itemCategoryId", void 0);
1234
+ __decorate([
1235
+ (0, swagger_1.ApiProperty)({
1236
+ description: "The item code ",
1237
+ example: "ICO05678",
1238
+ }),
1239
+ (0, class_validator_1.IsString)({ message: "Item category code must be a valid string" }),
1240
+ (0, class_validator_1.IsOptional)(),
1241
+ __metadata("design:type", String)
1242
+ ], CreateBillerItemDto.prototype, "itemCode", void 0);
1234
1243
  __decorate([
1235
1244
  (0, swagger_1.ApiProperty)({
1236
1245
  description: "The amount associated with the biller item",
@@ -1338,6 +1347,15 @@ __decorate([
1338
1347
  (0, class_validator_1.IsOptional)(),
1339
1348
  __metadata("design:type", String)
1340
1349
  ], UpdateBillerItemDto.prototype, "itemCategoryId", void 0);
1350
+ __decorate([
1351
+ (0, swagger_1.ApiProperty)({
1352
+ description: "The item code ",
1353
+ example: "ICO05678",
1354
+ }),
1355
+ (0, class_validator_1.IsString)({ message: "Item category code must be a valid string" }),
1356
+ (0, class_validator_1.IsOptional)(),
1357
+ __metadata("design:type", String)
1358
+ ], UpdateBillerItemDto.prototype, "itemCode", void 0);
1341
1359
  __decorate([
1342
1360
  (0, swagger_1.ApiProperty)({
1343
1361
  description: "The amount associated with the biller item",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -194,6 +194,8 @@ export class CreateBillerDto extends BaseDTO {
194
194
  @Length(1, 15, { message: "Biller code must be between 1 and 15 characters long." })
195
195
  billerCode?: string;
196
196
 
197
+ chargeConfigurations?: CreateBillerChargeConfigurationDto[];
198
+
197
199
  @ApiProperty({ description: "The creation timestamp of the biller.", example: "2025-01-01T00:00:00Z" })
198
200
  @IsOptional()
199
201
  @IsString({ message: "CreatedAt must be a string." })
@@ -1089,6 +1091,14 @@ export class CreateBillerItemDto extends BaseDTO {
1089
1091
  @IsOptional()
1090
1092
  itemCategoryId?: string;
1091
1093
 
1094
+ @ApiProperty({
1095
+ description: "The item code ",
1096
+ example: "ICO05678",
1097
+ })
1098
+ @IsString({ message: "Item category code must be a valid string" })
1099
+ @IsOptional()
1100
+ itemCode?: string;
1101
+
1092
1102
  @ApiProperty({
1093
1103
  description: "The amount associated with the biller item",
1094
1104
  example: 100,
@@ -1103,7 +1113,7 @@ export class CreateBillerItemDto extends BaseDTO {
1103
1113
  required: false,
1104
1114
  })
1105
1115
  @IsString({ message: "Name must be a valid string" })
1106
- name?: string;
1116
+ name: string;
1107
1117
  @ApiProperty({
1108
1118
  description: "The source of the biller item",
1109
1119
  example: "Utility Bill",
@@ -1183,6 +1193,14 @@ export class UpdateBillerItemDto extends BaseDTO {
1183
1193
  @IsOptional()
1184
1194
  itemCategoryId?: string;
1185
1195
 
1196
+ @ApiProperty({
1197
+ description: "The item code ",
1198
+ example: "ICO05678",
1199
+ })
1200
+ @IsString({ message: "Item category code must be a valid string" })
1201
+ @IsOptional()
1202
+ itemCode?: string;
1203
+
1186
1204
  @ApiProperty({
1187
1205
  description: "The amount associated with the biller item",
1188
1206
  example: 100,