resurgence-data 1.0.27 → 1.0.28

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.
@@ -132,6 +132,7 @@ export declare class CustomerResponseDTO {
132
132
  export declare class BillerItemResponseDTO {
133
133
  id: string;
134
134
  billerId: string;
135
+ name: string;
135
136
  amount: number;
136
137
  source?: string;
137
138
  customerIdentifierName?: string;
@@ -184,6 +184,7 @@ export declare class UpdateCustomerDto {
184
184
  export declare class CreateBillerItemDto {
185
185
  billerId: string;
186
186
  amount: number;
187
+ name?: string;
187
188
  source?: string;
188
189
  customerIdentifierName?: string;
189
190
  serviceFee: number;
@@ -195,6 +196,7 @@ export declare class UpdateBillerItemDto {
195
196
  id: string;
196
197
  billerId?: string;
197
198
  amount?: number;
199
+ name?: string;
198
200
  source?: string;
199
201
  customerIdentifierName?: string;
200
202
  serviceFee?: number;
@@ -1176,6 +1176,15 @@ __decorate([
1176
1176
  (0, class_validator_1.IsNotEmpty)({ message: "Amount must not be empty" }),
1177
1177
  __metadata("design:type", Number)
1178
1178
  ], CreateBillerItemDto.prototype, "amount", void 0);
1179
+ __decorate([
1180
+ (0, swagger_1.ApiProperty)({
1181
+ description: "The name of the biller item",
1182
+ example: "Utility Bill",
1183
+ required: false,
1184
+ }),
1185
+ (0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
1186
+ __metadata("design:type", String)
1187
+ ], CreateBillerItemDto.prototype, "name", void 0);
1179
1188
  __decorate([
1180
1189
  (0, swagger_1.ApiProperty)({
1181
1190
  description: "The source of the biller item",
@@ -1266,6 +1275,16 @@ __decorate([
1266
1275
  (0, class_validator_1.IsOptional)(),
1267
1276
  __metadata("design:type", Number)
1268
1277
  ], UpdateBillerItemDto.prototype, "amount", void 0);
1278
+ __decorate([
1279
+ (0, swagger_1.ApiProperty)({
1280
+ description: "The name of the biller item",
1281
+ example: "Utility Bill",
1282
+ required: false,
1283
+ }),
1284
+ (0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
1285
+ (0, class_validator_1.IsOptional)(),
1286
+ __metadata("design:type", String)
1287
+ ], UpdateBillerItemDto.prototype, "name", void 0);
1269
1288
  __decorate([
1270
1289
  (0, swagger_1.ApiProperty)({
1271
1290
  description: "The source of the biller item",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -144,6 +144,7 @@ export class CustomerResponseDTO {
144
144
  export class BillerItemResponseDTO {
145
145
  id: string;
146
146
  billerId: string;
147
+ name: string;
147
148
  amount: number;
148
149
  source?: string;
149
150
  customerIdentifierName?: string;
@@ -1040,6 +1040,13 @@ export class CreateBillerItemDto {
1040
1040
  @IsNotEmpty({ message: "Amount must not be empty" })
1041
1041
  amount: number;
1042
1042
 
1043
+ @ApiProperty({
1044
+ description: "The name of the biller item",
1045
+ example: "Utility Bill",
1046
+ required: false,
1047
+ })
1048
+ @IsString({ message: "Name must be a valid string" })
1049
+ name?: string;
1043
1050
  @ApiProperty({
1044
1051
  description: "The source of the biller item",
1045
1052
  example: "Utility Bill",
@@ -1120,6 +1127,15 @@ export class UpdateBillerItemDto {
1120
1127
  @IsOptional()
1121
1128
  amount?: number;
1122
1129
 
1130
+ @ApiProperty({
1131
+ description: "The name of the biller item",
1132
+ example: "Utility Bill",
1133
+ required: false,
1134
+ })
1135
+ @IsString({ message: "Name must be a valid string" })
1136
+ @IsOptional()
1137
+ name?: string;
1138
+
1123
1139
  @ApiProperty({
1124
1140
  description: "The source of the biller item",
1125
1141
  example: "Utility Bill",