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.
@@ -181,8 +181,18 @@ export declare class UpdateCustomerDto {
181
181
  emailAddress?: string;
182
182
  phoneNumber?: string;
183
183
  }
184
+ export declare class BillerItemCategoryDto {
185
+ name: string;
186
+ description?: string;
187
+ }
188
+ export declare class UpdateBillerItemCategoryDto {
189
+ id: string;
190
+ name: string;
191
+ description?: string;
192
+ }
184
193
  export declare class CreateBillerItemDto {
185
194
  billerId: string;
195
+ itemCategoryId?: string;
186
196
  amount: number;
187
197
  name?: string;
188
198
  source?: string;
@@ -195,6 +205,7 @@ export declare class CreateBillerItemDto {
195
205
  export declare class UpdateBillerItemDto {
196
206
  id: string;
197
207
  billerId?: string;
208
+ itemCategoryId?: string;
198
209
  amount?: number;
199
210
  name?: string;
200
211
  source?: string;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UpdateInvoiceDto = exports.CreateInvoiceDto = exports.UpdateBillerItemDto = exports.CreateBillerItemDto = exports.UpdateCustomerDto = exports.CreateCustomerDto = exports.UpdateBillerContactDto = exports.CreateBillerContactDto = exports.UpdateGoLiveRequestDto = exports.CreateGoLiveRequestDto = exports.UpdateBillerDocumentDto = exports.CreateBillerDocumentDto = exports.UpdateBillerChargeConfigurationDto = exports.CreateBillerChargeConfigurationDto = exports.UpdateSettlementAccountDto = exports.CreateSettlementAccountDto = exports.UpdateBillerProfileDTO = exports.BillerProfileDTO = exports.TIME_DELIMITER = exports.UpdateBillerDto = exports.CreateBillerDto = exports.CreateTransactionDto = exports.CreateChargeDto = exports.CreateBankDto = exports.UpdateBillerCategoryDto = exports.CreateBillerCategoryDto = void 0;
12
+ exports.UpdateInvoiceDto = exports.CreateInvoiceDto = exports.UpdateBillerItemDto = exports.CreateBillerItemDto = exports.UpdateBillerItemCategoryDto = exports.BillerItemCategoryDto = exports.UpdateCustomerDto = exports.CreateCustomerDto = exports.UpdateBillerContactDto = exports.CreateBillerContactDto = exports.UpdateGoLiveRequestDto = exports.CreateGoLiveRequestDto = exports.UpdateBillerDocumentDto = exports.CreateBillerDocumentDto = exports.UpdateBillerChargeConfigurationDto = exports.CreateBillerChargeConfigurationDto = exports.UpdateSettlementAccountDto = exports.CreateSettlementAccountDto = exports.UpdateBillerProfileDTO = exports.BillerProfileDTO = exports.TIME_DELIMITER = exports.UpdateBillerDto = exports.CreateBillerDto = exports.CreateTransactionDto = exports.CreateChargeDto = exports.CreateBankDto = exports.UpdateBillerCategoryDto = exports.CreateBillerCategoryDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  /**
@@ -1155,6 +1155,60 @@ __decorate([
1155
1155
  (0, class_validator_1.IsOptional)(),
1156
1156
  __metadata("design:type", String)
1157
1157
  ], UpdateCustomerDto.prototype, "phoneNumber", void 0);
1158
+ class BillerItemCategoryDto {
1159
+ }
1160
+ exports.BillerItemCategoryDto = BillerItemCategoryDto;
1161
+ __decorate([
1162
+ (0, swagger_1.ApiProperty)({
1163
+ description: "Name of the biller item category",
1164
+ maxLength: 100,
1165
+ }),
1166
+ (0, class_validator_1.IsString)(),
1167
+ (0, class_validator_1.IsNotEmpty)(),
1168
+ (0, class_validator_1.MaxLength)(100),
1169
+ __metadata("design:type", String)
1170
+ ], BillerItemCategoryDto.prototype, "name", void 0);
1171
+ __decorate([
1172
+ (0, swagger_1.ApiPropertyOptional)({
1173
+ description: "Description of the biller item category",
1174
+ type: String,
1175
+ }),
1176
+ (0, class_validator_1.IsString)(),
1177
+ (0, class_validator_1.IsOptional)(),
1178
+ __metadata("design:type", String)
1179
+ ], BillerItemCategoryDto.prototype, "description", void 0);
1180
+ class UpdateBillerItemCategoryDto {
1181
+ }
1182
+ exports.UpdateBillerItemCategoryDto = UpdateBillerItemCategoryDto;
1183
+ __decorate([
1184
+ (0, swagger_1.ApiProperty)({
1185
+ description: "Unique identifier for the biller item category",
1186
+ type: String,
1187
+ format: "uuid",
1188
+ }),
1189
+ (0, class_validator_1.IsUUID)(),
1190
+ (0, class_validator_1.IsNotEmpty)(),
1191
+ __metadata("design:type", String)
1192
+ ], UpdateBillerItemCategoryDto.prototype, "id", void 0);
1193
+ __decorate([
1194
+ (0, swagger_1.ApiProperty)({
1195
+ description: "Name of the biller item category",
1196
+ maxLength: 100,
1197
+ }),
1198
+ (0, class_validator_1.IsString)(),
1199
+ (0, class_validator_1.IsNotEmpty)(),
1200
+ (0, class_validator_1.MaxLength)(100),
1201
+ __metadata("design:type", String)
1202
+ ], UpdateBillerItemCategoryDto.prototype, "name", void 0);
1203
+ __decorate([
1204
+ (0, swagger_1.ApiPropertyOptional)({
1205
+ description: "Description of the biller item category",
1206
+ type: String,
1207
+ }),
1208
+ (0, class_validator_1.IsString)(),
1209
+ (0, class_validator_1.IsOptional)(),
1210
+ __metadata("design:type", String)
1211
+ ], UpdateBillerItemCategoryDto.prototype, "description", void 0);
1158
1212
  class CreateBillerItemDto {
1159
1213
  }
1160
1214
  exports.CreateBillerItemDto = CreateBillerItemDto;
@@ -1167,6 +1221,15 @@ __decorate([
1167
1221
  (0, class_validator_1.IsString)({ message: "Biller ID must be a valid string" }),
1168
1222
  __metadata("design:type", String)
1169
1223
  ], CreateBillerItemDto.prototype, "billerId", void 0);
1224
+ __decorate([
1225
+ (0, swagger_1.ApiProperty)({
1226
+ description: "The item category ID",
1227
+ example: "550e8400-e29b-41d4-a716-446655440000",
1228
+ }),
1229
+ (0, class_validator_1.IsString)({ message: "Item category ID must be a valid string" }),
1230
+ (0, class_validator_1.IsOptional)(),
1231
+ __metadata("design:type", String)
1232
+ ], CreateBillerItemDto.prototype, "itemCategoryId", void 0);
1170
1233
  __decorate([
1171
1234
  (0, swagger_1.ApiProperty)({
1172
1235
  description: "The amount associated with the biller item",
@@ -1265,6 +1328,15 @@ __decorate([
1265
1328
  (0, class_validator_1.IsString)({ message: "Biller ID must be a valid string" }),
1266
1329
  __metadata("design:type", String)
1267
1330
  ], UpdateBillerItemDto.prototype, "billerId", void 0);
1331
+ __decorate([
1332
+ (0, swagger_1.ApiProperty)({
1333
+ description: "The item category ID",
1334
+ example: "550e8400-e29b-41d4-a716-446655440000",
1335
+ }),
1336
+ (0, class_validator_1.IsString)({ message: "Item category ID must be a valid string" }),
1337
+ (0, class_validator_1.IsOptional)(),
1338
+ __metadata("design:type", String)
1339
+ ], UpdateBillerItemDto.prototype, "itemCategoryId", void 0);
1268
1340
  __decorate([
1269
1341
  (0, swagger_1.ApiProperty)({
1270
1342
  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.28",
3
+ "version": "1.0.30",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",