resurgence-data 1.0.38 → 1.0.40
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.
@@ -135,6 +135,7 @@ export declare class CreateBillerDocumentDto extends BaseDTO {
|
|
135
135
|
type: string;
|
136
136
|
}
|
137
137
|
export declare class UpdateBillerDocumentDto extends BaseDTO {
|
138
|
+
id: string;
|
138
139
|
billerId?: string;
|
139
140
|
url?: string;
|
140
141
|
type?: string;
|
@@ -144,6 +145,7 @@ export declare class CreateGoLiveRequestDto extends BaseDTO {
|
|
144
145
|
status: string;
|
145
146
|
}
|
146
147
|
export declare class UpdateGoLiveRequestDto extends BaseDTO {
|
148
|
+
id: string;
|
147
149
|
billerId?: string;
|
148
150
|
status?: string;
|
149
151
|
}
|
@@ -198,6 +200,8 @@ export declare class CreateBillerItemDto extends BaseDTO {
|
|
198
200
|
amount: number;
|
199
201
|
name: string;
|
200
202
|
source?: string;
|
203
|
+
sourceIdentifier?: string;
|
204
|
+
images?: string[];
|
201
205
|
customerIdentifierName?: string;
|
202
206
|
serviceFee: number;
|
203
207
|
currency: string;
|
@@ -212,6 +216,8 @@ export declare class UpdateBillerItemDto extends BaseDTO {
|
|
212
216
|
amount?: number;
|
213
217
|
name?: string;
|
214
218
|
source?: string;
|
219
|
+
sourceIdentifier?: string;
|
220
|
+
images?: string[];
|
215
221
|
customerIdentifierName?: string;
|
216
222
|
serviceFee?: number;
|
217
223
|
currency?: string;
|
@@ -791,6 +791,15 @@ __decorate([
|
|
791
791
|
class UpdateBillerDocumentDto extends dto_type_1.BaseDTO {
|
792
792
|
}
|
793
793
|
exports.UpdateBillerDocumentDto = UpdateBillerDocumentDto;
|
794
|
+
__decorate([
|
795
|
+
(0, swagger_1.ApiProperty)({
|
796
|
+
description: "The ID of the document",
|
797
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
798
|
+
}),
|
799
|
+
(0, class_validator_1.IsNotEmpty)({ message: "ID must not be empty" }),
|
800
|
+
(0, class_validator_1.IsString)({ message: "ID must be a valid string" }),
|
801
|
+
__metadata("design:type", String)
|
802
|
+
], UpdateBillerDocumentDto.prototype, "id", void 0);
|
794
803
|
__decorate([
|
795
804
|
(0, swagger_1.ApiProperty)({
|
796
805
|
description: "The ID of the biller",
|
@@ -845,6 +854,15 @@ __decorate([
|
|
845
854
|
class UpdateGoLiveRequestDto extends dto_type_1.BaseDTO {
|
846
855
|
}
|
847
856
|
exports.UpdateGoLiveRequestDto = UpdateGoLiveRequestDto;
|
857
|
+
__decorate([
|
858
|
+
(0, swagger_1.ApiProperty)({
|
859
|
+
description: "The ID of the request",
|
860
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
861
|
+
}),
|
862
|
+
(0, class_validator_1.IsNotEmpty)({ message: "ID must not be empty" }),
|
863
|
+
(0, class_validator_1.IsString)({ message: "ID must be a valid string" }),
|
864
|
+
__metadata("design:type", String)
|
865
|
+
], UpdateGoLiveRequestDto.prototype, "id", void 0);
|
848
866
|
__decorate([
|
849
867
|
(0, swagger_1.ApiProperty)({
|
850
868
|
description: "The ID of the biller",
|
@@ -1262,6 +1280,26 @@ __decorate([
|
|
1262
1280
|
(0, class_validator_1.IsOptional)(),
|
1263
1281
|
__metadata("design:type", String)
|
1264
1282
|
], CreateBillerItemDto.prototype, "source", void 0);
|
1283
|
+
__decorate([
|
1284
|
+
(0, swagger_1.ApiProperty)({
|
1285
|
+
description: "Unique ID of the ite from source",
|
1286
|
+
example: "SI8w74q8923020",
|
1287
|
+
required: false,
|
1288
|
+
}),
|
1289
|
+
(0, class_validator_1.IsString)({ message: "Source ID must be a valid string" }),
|
1290
|
+
(0, class_validator_1.IsOptional)(),
|
1291
|
+
__metadata("design:type", String)
|
1292
|
+
], CreateBillerItemDto.prototype, "sourceIdentifier", void 0);
|
1293
|
+
__decorate([
|
1294
|
+
(0, swagger_1.ApiProperty)({
|
1295
|
+
description: "Array of Images for the item",
|
1296
|
+
example: "SI8w74q8923020",
|
1297
|
+
required: false,
|
1298
|
+
}),
|
1299
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of images" }),
|
1300
|
+
(0, class_validator_1.IsOptional)(),
|
1301
|
+
__metadata("design:type", Array)
|
1302
|
+
], CreateBillerItemDto.prototype, "images", void 0);
|
1265
1303
|
__decorate([
|
1266
1304
|
(0, swagger_1.ApiProperty)({
|
1267
1305
|
description: "The customer identifier name for the biller item",
|
@@ -1380,6 +1418,26 @@ __decorate([
|
|
1380
1418
|
(0, class_validator_1.IsOptional)(),
|
1381
1419
|
__metadata("design:type", String)
|
1382
1420
|
], UpdateBillerItemDto.prototype, "source", void 0);
|
1421
|
+
__decorate([
|
1422
|
+
(0, swagger_1.ApiProperty)({
|
1423
|
+
description: "Unique ID of the ite from source",
|
1424
|
+
example: "SI8w74q8923020",
|
1425
|
+
required: false,
|
1426
|
+
}),
|
1427
|
+
(0, class_validator_1.IsString)({ message: "Source ID must be a valid string" }),
|
1428
|
+
(0, class_validator_1.IsOptional)(),
|
1429
|
+
__metadata("design:type", String)
|
1430
|
+
], UpdateBillerItemDto.prototype, "sourceIdentifier", void 0);
|
1431
|
+
__decorate([
|
1432
|
+
(0, swagger_1.ApiProperty)({
|
1433
|
+
description: "Array of Images for the item",
|
1434
|
+
example: "SI8w74q8923020",
|
1435
|
+
required: false,
|
1436
|
+
}),
|
1437
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of images" }),
|
1438
|
+
(0, class_validator_1.IsOptional)(),
|
1439
|
+
__metadata("design:type", Array)
|
1440
|
+
], UpdateBillerItemDto.prototype, "images", void 0);
|
1383
1441
|
__decorate([
|
1384
1442
|
(0, swagger_1.ApiProperty)({
|
1385
1443
|
description: "The customer identifier name for the biller item",
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
IsDecimal,
|
15
15
|
IsDateString,
|
16
16
|
MaxLength,
|
17
|
+
IsArray,
|
17
18
|
} from "class-validator";
|
18
19
|
import { BaseDTO } from "../types/dto.type";
|
19
20
|
|
@@ -702,6 +703,14 @@ export class CreateBillerDocumentDto extends BaseDTO {
|
|
702
703
|
}
|
703
704
|
|
704
705
|
export class UpdateBillerDocumentDto extends BaseDTO {
|
706
|
+
@ApiProperty({
|
707
|
+
description: "The ID of the document",
|
708
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
709
|
+
})
|
710
|
+
@IsNotEmpty({ message: "ID must not be empty" })
|
711
|
+
@IsString({ message: "ID must be a valid string" })
|
712
|
+
id: string;
|
713
|
+
|
705
714
|
@ApiProperty({
|
706
715
|
description: "The ID of the biller",
|
707
716
|
example: "550e8400-e29b-41d4-a716-446655440002",
|
@@ -749,6 +758,14 @@ export class CreateGoLiveRequestDto extends BaseDTO {
|
|
749
758
|
}
|
750
759
|
|
751
760
|
export class UpdateGoLiveRequestDto extends BaseDTO {
|
761
|
+
@ApiProperty({
|
762
|
+
description: "The ID of the request",
|
763
|
+
example: "550e8400-e29b-41d4-a716-446655440000",
|
764
|
+
})
|
765
|
+
@IsNotEmpty({ message: "ID must not be empty" })
|
766
|
+
@IsString({ message: "ID must be a valid string" })
|
767
|
+
id: string;
|
768
|
+
|
752
769
|
@ApiProperty({
|
753
770
|
description: "The ID of the biller",
|
754
771
|
example: "550e8400-e29b-41d4-a716-446655440003",
|
@@ -1117,6 +1134,22 @@ export class CreateBillerItemDto extends BaseDTO {
|
|
1117
1134
|
@IsString({ message: "Source must be a valid string" })
|
1118
1135
|
@IsOptional()
|
1119
1136
|
source?: string;
|
1137
|
+
@ApiProperty({
|
1138
|
+
description: "Unique ID of the ite from source",
|
1139
|
+
example: "SI8w74q8923020",
|
1140
|
+
required: false,
|
1141
|
+
})
|
1142
|
+
@IsString({ message: "Source ID must be a valid string" })
|
1143
|
+
@IsOptional()
|
1144
|
+
sourceIdentifier?: string;
|
1145
|
+
@ApiProperty({
|
1146
|
+
description: "Array of Images for the item",
|
1147
|
+
example: "SI8w74q8923020",
|
1148
|
+
required: false,
|
1149
|
+
})
|
1150
|
+
@IsArray({ message: "Please provide a list of images" })
|
1151
|
+
@IsOptional()
|
1152
|
+
images?: string[];
|
1120
1153
|
|
1121
1154
|
@ApiProperty({
|
1122
1155
|
description: "The customer identifier name for the biller item",
|
@@ -1223,6 +1256,23 @@ export class UpdateBillerItemDto extends BaseDTO {
|
|
1223
1256
|
@IsOptional()
|
1224
1257
|
source?: string;
|
1225
1258
|
|
1259
|
+
@ApiProperty({
|
1260
|
+
description: "Unique ID of the ite from source",
|
1261
|
+
example: "SI8w74q8923020",
|
1262
|
+
required: false,
|
1263
|
+
})
|
1264
|
+
@IsString({ message: "Source ID must be a valid string" })
|
1265
|
+
@IsOptional()
|
1266
|
+
sourceIdentifier?: string;
|
1267
|
+
@ApiProperty({
|
1268
|
+
description: "Array of Images for the item",
|
1269
|
+
example: "SI8w74q8923020",
|
1270
|
+
required: false,
|
1271
|
+
})
|
1272
|
+
@IsArray({ message: "Please provide a list of images" })
|
1273
|
+
@IsOptional()
|
1274
|
+
images?: string[];
|
1275
|
+
|
1226
1276
|
@ApiProperty({
|
1227
1277
|
description: "The customer identifier name for the biller item",
|
1228
1278
|
example: "Customer ID",
|