resurgence-data 1.0.28 → 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,6 +129,11 @@ 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;
|
@@ -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,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
@@ -141,6 +141,12 @@ 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;
|
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,
|
@@ -1118,6 +1174,14 @@ export class UpdateBillerItemDto {
|
|
1118
1174
|
@IsString({ message: "Biller ID must be a valid string" })
|
1119
1175
|
billerId?: string;
|
1120
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
|
+
|
1121
1185
|
@ApiProperty({
|
1122
1186
|
description: "The amount associated with the biller item",
|
1123
1187
|
example: 100,
|