resurgence-data 1.0.27 → 1.0.29
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.
@@ -129,9 +129,15 @@ export declare class CustomerResponseDTO {
|
|
129
129
|
biller: BillerResponseDTO;
|
130
130
|
invoices: InvoiceResponseDTO[];
|
131
131
|
}
|
132
|
+
export declare class BillerItemCategoryResponseDTO {
|
133
|
+
id: string;
|
134
|
+
name: string;
|
135
|
+
description?: string;
|
136
|
+
}
|
132
137
|
export declare class BillerItemResponseDTO {
|
133
138
|
id: string;
|
134
139
|
billerId: string;
|
140
|
+
name: string;
|
135
141
|
amount: number;
|
136
142
|
source?: string;
|
137
143
|
customerIdentifierName?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InvoiceResponseDTO = exports.BillerItemResponseDTO = exports.CustomerResponseDTO = exports.BillerContactResponseDTO = exports.GoLiveRequestResponseDTO = exports.BillerDocumentResponseDTO = exports.OnboardedAccountResponseDTO = exports.SettlementAccountResponseDTO = exports.BillerChargeConfigurationResponseDTO = exports.BillerProfileResponseDTO = exports.BillerResponseDTO = exports.BankResponseDTO = exports.ServiceResponseDTO = exports.BillerCategoryResponseDTO = void 0;
|
3
|
+
exports.InvoiceResponseDTO = exports.BillerItemResponseDTO = exports.BillerItemCategoryResponseDTO = exports.CustomerResponseDTO = exports.BillerContactResponseDTO = exports.GoLiveRequestResponseDTO = exports.BillerDocumentResponseDTO = exports.OnboardedAccountResponseDTO = exports.SettlementAccountResponseDTO = exports.BillerChargeConfigurationResponseDTO = exports.BillerProfileResponseDTO = exports.BillerResponseDTO = exports.BankResponseDTO = exports.ServiceResponseDTO = exports.BillerCategoryResponseDTO = void 0;
|
4
4
|
class BillerCategoryResponseDTO {
|
5
5
|
}
|
6
6
|
exports.BillerCategoryResponseDTO = BillerCategoryResponseDTO;
|
@@ -37,6 +37,9 @@ exports.BillerContactResponseDTO = BillerContactResponseDTO;
|
|
37
37
|
class CustomerResponseDTO {
|
38
38
|
}
|
39
39
|
exports.CustomerResponseDTO = CustomerResponseDTO;
|
40
|
+
class BillerItemCategoryResponseDTO {
|
41
|
+
}
|
42
|
+
exports.BillerItemCategoryResponseDTO = BillerItemCategoryResponseDTO;
|
40
43
|
class BillerItemResponseDTO {
|
41
44
|
}
|
42
45
|
exports.BillerItemResponseDTO = BillerItemResponseDTO;
|
@@ -181,9 +181,20 @@ 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;
|
197
|
+
name?: string;
|
187
198
|
source?: string;
|
188
199
|
customerIdentifierName?: string;
|
189
200
|
serviceFee: number;
|
@@ -194,7 +205,9 @@ export declare class CreateBillerItemDto {
|
|
194
205
|
export declare class UpdateBillerItemDto {
|
195
206
|
id: string;
|
196
207
|
billerId?: string;
|
208
|
+
itemCategoryId?: string;
|
197
209
|
amount?: number;
|
210
|
+
name?: string;
|
198
211
|
source?: string;
|
199
212
|
customerIdentifierName?: string;
|
200
213
|
serviceFee?: number;
|
@@ -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",
|
@@ -1176,6 +1239,15 @@ __decorate([
|
|
1176
1239
|
(0, class_validator_1.IsNotEmpty)({ message: "Amount must not be empty" }),
|
1177
1240
|
__metadata("design:type", Number)
|
1178
1241
|
], CreateBillerItemDto.prototype, "amount", void 0);
|
1242
|
+
__decorate([
|
1243
|
+
(0, swagger_1.ApiProperty)({
|
1244
|
+
description: "The name of the biller item",
|
1245
|
+
example: "Utility Bill",
|
1246
|
+
required: false,
|
1247
|
+
}),
|
1248
|
+
(0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
|
1249
|
+
__metadata("design:type", String)
|
1250
|
+
], CreateBillerItemDto.prototype, "name", void 0);
|
1179
1251
|
__decorate([
|
1180
1252
|
(0, swagger_1.ApiProperty)({
|
1181
1253
|
description: "The source of the biller item",
|
@@ -1256,6 +1328,15 @@ __decorate([
|
|
1256
1328
|
(0, class_validator_1.IsString)({ message: "Biller ID must be a valid string" }),
|
1257
1329
|
__metadata("design:type", String)
|
1258
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);
|
1259
1340
|
__decorate([
|
1260
1341
|
(0, swagger_1.ApiProperty)({
|
1261
1342
|
description: "The amount associated with the biller item",
|
@@ -1266,6 +1347,16 @@ __decorate([
|
|
1266
1347
|
(0, class_validator_1.IsOptional)(),
|
1267
1348
|
__metadata("design:type", Number)
|
1268
1349
|
], UpdateBillerItemDto.prototype, "amount", void 0);
|
1350
|
+
__decorate([
|
1351
|
+
(0, swagger_1.ApiProperty)({
|
1352
|
+
description: "The name of the biller item",
|
1353
|
+
example: "Utility Bill",
|
1354
|
+
required: false,
|
1355
|
+
}),
|
1356
|
+
(0, class_validator_1.IsString)({ message: "Name must be a valid string" }),
|
1357
|
+
(0, class_validator_1.IsOptional)(),
|
1358
|
+
__metadata("design:type", String)
|
1359
|
+
], UpdateBillerItemDto.prototype, "name", void 0);
|
1269
1360
|
__decorate([
|
1270
1361
|
(0, swagger_1.ApiProperty)({
|
1271
1362
|
description: "The source of the biller item",
|
package/package.json
CHANGED
@@ -141,9 +141,16 @@ export class CustomerResponseDTO {
|
|
141
141
|
invoices: InvoiceResponseDTO[];
|
142
142
|
}
|
143
143
|
|
144
|
+
export class BillerItemCategoryResponseDTO {
|
145
|
+
id: string;
|
146
|
+
name: string;
|
147
|
+
description?: string;
|
148
|
+
}
|
149
|
+
|
144
150
|
export class BillerItemResponseDTO {
|
145
151
|
id: string;
|
146
152
|
billerId: string;
|
153
|
+
name: string;
|
147
154
|
amount: number;
|
148
155
|
source?: string;
|
149
156
|
customerIdentifierName?: string;
|
package/src/biller/biller.dto.ts
CHANGED
@@ -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,
|
@@ -1040,6 +1096,13 @@ export class CreateBillerItemDto {
|
|
1040
1096
|
@IsNotEmpty({ message: "Amount must not be empty" })
|
1041
1097
|
amount: number;
|
1042
1098
|
|
1099
|
+
@ApiProperty({
|
1100
|
+
description: "The name of the biller item",
|
1101
|
+
example: "Utility Bill",
|
1102
|
+
required: false,
|
1103
|
+
})
|
1104
|
+
@IsString({ message: "Name must be a valid string" })
|
1105
|
+
name?: string;
|
1043
1106
|
@ApiProperty({
|
1044
1107
|
description: "The source of the biller item",
|
1045
1108
|
example: "Utility Bill",
|
@@ -1111,6 +1174,14 @@ export class UpdateBillerItemDto {
|
|
1111
1174
|
@IsString({ message: "Biller ID must be a valid string" })
|
1112
1175
|
billerId?: string;
|
1113
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
|
+
|
1114
1185
|
@ApiProperty({
|
1115
1186
|
description: "The amount associated with the biller item",
|
1116
1187
|
example: 100,
|
@@ -1120,6 +1191,15 @@ export class UpdateBillerItemDto {
|
|
1120
1191
|
@IsOptional()
|
1121
1192
|
amount?: number;
|
1122
1193
|
|
1194
|
+
@ApiProperty({
|
1195
|
+
description: "The name of the biller item",
|
1196
|
+
example: "Utility Bill",
|
1197
|
+
required: false,
|
1198
|
+
})
|
1199
|
+
@IsString({ message: "Name must be a valid string" })
|
1200
|
+
@IsOptional()
|
1201
|
+
name?: string;
|
1202
|
+
|
1123
1203
|
@ApiProperty({
|
1124
1204
|
description: "The source of the biller item",
|
1125
1205
|
example: "Utility Bill",
|