resurgence-data 1.0.30 → 1.0.32
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.
- package/dist/biller/biller.dto.d.ts +28 -27
- package/dist/biller/biller.dto.js +28 -27
- package/dist/types/dto.type.d.ts +3 -0
- package/dist/types/dto.type.js +20 -0
- package/package.json +1 -1
- package/src/biller/biller.dto.ts +28 -27
- package/src/types/dto.type.ts +6 -0
@@ -1,14 +1,15 @@
|
|
1
|
+
import { BaseDTO } from "../types/dto.type";
|
1
2
|
/**
|
2
3
|
* DTO for `BillerCategory`
|
3
4
|
*/
|
4
|
-
export declare class CreateBillerCategoryDto {
|
5
|
+
export declare class CreateBillerCategoryDto extends BaseDTO {
|
5
6
|
name: string;
|
6
7
|
description?: string;
|
7
8
|
}
|
8
9
|
/**
|
9
10
|
* DTO for `BillerCategory`
|
10
11
|
*/
|
11
|
-
export declare class UpdateBillerCategoryDto {
|
12
|
+
export declare class UpdateBillerCategoryDto extends BaseDTO {
|
12
13
|
id: string;
|
13
14
|
name: string;
|
14
15
|
description?: string;
|
@@ -16,7 +17,7 @@ export declare class UpdateBillerCategoryDto {
|
|
16
17
|
/**
|
17
18
|
* DTO for `Bank`
|
18
19
|
*/
|
19
|
-
export declare class CreateBankDto {
|
20
|
+
export declare class CreateBankDto extends BaseDTO {
|
20
21
|
name: string;
|
21
22
|
slug: string;
|
22
23
|
code: string;
|
@@ -25,7 +26,7 @@ export declare class CreateBankDto {
|
|
25
26
|
/**
|
26
27
|
* DTO for `Charge`
|
27
28
|
*/
|
28
|
-
export declare class CreateChargeDto {
|
29
|
+
export declare class CreateChargeDto extends BaseDTO {
|
29
30
|
name: string;
|
30
31
|
type: "FIXED" | "PERCENTAGE";
|
31
32
|
value: number;
|
@@ -34,7 +35,7 @@ export declare class CreateChargeDto {
|
|
34
35
|
/**
|
35
36
|
* DTO for `Transaction`
|
36
37
|
*/
|
37
|
-
export declare class CreateTransactionDto {
|
38
|
+
export declare class CreateTransactionDto extends BaseDTO {
|
38
39
|
amount: number;
|
39
40
|
bankId: string;
|
40
41
|
type: "CREDIT" | "DEBIT";
|
@@ -43,7 +44,7 @@ export declare class CreateTransactionDto {
|
|
43
44
|
/**
|
44
45
|
* DTO for `Biller`
|
45
46
|
*/
|
46
|
-
export declare class CreateBillerDto {
|
47
|
+
export declare class CreateBillerDto extends BaseDTO {
|
47
48
|
id?: string;
|
48
49
|
categoryId: string;
|
49
50
|
billerProfileId?: string;
|
@@ -55,7 +56,7 @@ export declare class CreateBillerDto {
|
|
55
56
|
createdAt?: string;
|
56
57
|
updatedAt?: string;
|
57
58
|
}
|
58
|
-
export declare class UpdateBillerDto {
|
59
|
+
export declare class UpdateBillerDto extends BaseDTO {
|
59
60
|
id?: string;
|
60
61
|
categoryId?: string;
|
61
62
|
billerProfileId?: string;
|
@@ -70,21 +71,21 @@ export declare enum TIME_DELIMITER {
|
|
70
71
|
WEEK = "WEEK",
|
71
72
|
MONTH = "MONTH"
|
72
73
|
}
|
73
|
-
export declare class BillerProfileDTO {
|
74
|
+
export declare class BillerProfileDTO extends BaseDTO {
|
74
75
|
id: string;
|
75
76
|
name?: string;
|
76
77
|
hasTransactionLimit?: boolean;
|
77
78
|
transactionLimit?: number;
|
78
79
|
delimiter?: TIME_DELIMITER;
|
79
80
|
}
|
80
|
-
export declare class UpdateBillerProfileDTO {
|
81
|
+
export declare class UpdateBillerProfileDTO extends BaseDTO {
|
81
82
|
id: string;
|
82
83
|
name?: string;
|
83
84
|
hasTransactionLimit?: boolean;
|
84
85
|
transactionLimit?: number;
|
85
86
|
delimiter?: TIME_DELIMITER;
|
86
87
|
}
|
87
|
-
export declare class CreateSettlementAccountDto {
|
88
|
+
export declare class CreateSettlementAccountDto extends BaseDTO {
|
88
89
|
billerId: string;
|
89
90
|
bankId: string;
|
90
91
|
default?: boolean;
|
@@ -92,7 +93,7 @@ export declare class CreateSettlementAccountDto {
|
|
92
93
|
accountNumber: string;
|
93
94
|
currency: string;
|
94
95
|
}
|
95
|
-
export declare class UpdateSettlementAccountDto {
|
96
|
+
export declare class UpdateSettlementAccountDto extends BaseDTO {
|
96
97
|
id: string;
|
97
98
|
billerId?: string;
|
98
99
|
bankId?: string;
|
@@ -101,7 +102,7 @@ export declare class UpdateSettlementAccountDto {
|
|
101
102
|
accountNumber?: string;
|
102
103
|
currency?: string;
|
103
104
|
}
|
104
|
-
export declare class CreateBillerChargeConfigurationDto {
|
105
|
+
export declare class CreateBillerChargeConfigurationDto extends BaseDTO {
|
105
106
|
serviceId: string;
|
106
107
|
billerId: string;
|
107
108
|
active?: boolean;
|
@@ -114,7 +115,7 @@ export declare class CreateBillerChargeConfigurationDto {
|
|
114
115
|
fixedAmount?: number;
|
115
116
|
percentAmount?: number;
|
116
117
|
}
|
117
|
-
export declare class UpdateBillerChargeConfigurationDto {
|
118
|
+
export declare class UpdateBillerChargeConfigurationDto extends BaseDTO {
|
118
119
|
id: string;
|
119
120
|
serviceId?: string;
|
120
121
|
billerId: string;
|
@@ -128,25 +129,25 @@ export declare class UpdateBillerChargeConfigurationDto {
|
|
128
129
|
fixedAmount?: number;
|
129
130
|
percentAmount?: number;
|
130
131
|
}
|
131
|
-
export declare class CreateBillerDocumentDto {
|
132
|
+
export declare class CreateBillerDocumentDto extends BaseDTO {
|
132
133
|
billerId: string;
|
133
134
|
url: string;
|
134
135
|
type: string;
|
135
136
|
}
|
136
|
-
export declare class UpdateBillerDocumentDto {
|
137
|
+
export declare class UpdateBillerDocumentDto extends BaseDTO {
|
137
138
|
billerId?: string;
|
138
139
|
url?: string;
|
139
140
|
type?: string;
|
140
141
|
}
|
141
|
-
export declare class CreateGoLiveRequestDto {
|
142
|
+
export declare class CreateGoLiveRequestDto extends BaseDTO {
|
142
143
|
billerId: string;
|
143
144
|
status: string;
|
144
145
|
}
|
145
|
-
export declare class UpdateGoLiveRequestDto {
|
146
|
+
export declare class UpdateGoLiveRequestDto extends BaseDTO {
|
146
147
|
billerId?: string;
|
147
148
|
status?: string;
|
148
149
|
}
|
149
|
-
export declare class CreateBillerContactDto {
|
150
|
+
export declare class CreateBillerContactDto extends BaseDTO {
|
150
151
|
billerId: string;
|
151
152
|
contactName: string;
|
152
153
|
emailAddress: string;
|
@@ -157,7 +158,7 @@ export declare class CreateBillerContactDto {
|
|
157
158
|
city: string;
|
158
159
|
state: string;
|
159
160
|
}
|
160
|
-
export declare class UpdateBillerContactDto {
|
161
|
+
export declare class UpdateBillerContactDto extends BaseDTO {
|
161
162
|
id: string;
|
162
163
|
billerId?: string;
|
163
164
|
contactName?: string;
|
@@ -169,28 +170,28 @@ export declare class UpdateBillerContactDto {
|
|
169
170
|
city?: string;
|
170
171
|
state?: string;
|
171
172
|
}
|
172
|
-
export declare class CreateCustomerDto {
|
173
|
+
export declare class CreateCustomerDto extends BaseDTO {
|
173
174
|
billerId: string;
|
174
175
|
name: string;
|
175
176
|
emailAddress?: string;
|
176
177
|
phoneNumber?: string;
|
177
178
|
}
|
178
|
-
export declare class UpdateCustomerDto {
|
179
|
+
export declare class UpdateCustomerDto extends BaseDTO {
|
179
180
|
id: string;
|
180
181
|
name?: string;
|
181
182
|
emailAddress?: string;
|
182
183
|
phoneNumber?: string;
|
183
184
|
}
|
184
|
-
export declare class BillerItemCategoryDto {
|
185
|
+
export declare class BillerItemCategoryDto extends BaseDTO {
|
185
186
|
name: string;
|
186
187
|
description?: string;
|
187
188
|
}
|
188
|
-
export declare class UpdateBillerItemCategoryDto {
|
189
|
+
export declare class UpdateBillerItemCategoryDto extends BaseDTO {
|
189
190
|
id: string;
|
190
191
|
name: string;
|
191
192
|
description?: string;
|
192
193
|
}
|
193
|
-
export declare class CreateBillerItemDto {
|
194
|
+
export declare class CreateBillerItemDto extends BaseDTO {
|
194
195
|
billerId: string;
|
195
196
|
itemCategoryId?: string;
|
196
197
|
amount: number;
|
@@ -202,7 +203,7 @@ export declare class CreateBillerItemDto {
|
|
202
203
|
description?: string;
|
203
204
|
external: boolean;
|
204
205
|
}
|
205
|
-
export declare class UpdateBillerItemDto {
|
206
|
+
export declare class UpdateBillerItemDto extends BaseDTO {
|
206
207
|
id: string;
|
207
208
|
billerId?: string;
|
208
209
|
itemCategoryId?: string;
|
@@ -215,7 +216,7 @@ export declare class UpdateBillerItemDto {
|
|
215
216
|
description?: string;
|
216
217
|
external?: boolean;
|
217
218
|
}
|
218
|
-
export declare class CreateInvoiceDto {
|
219
|
+
export declare class CreateInvoiceDto extends BaseDTO {
|
219
220
|
billerId: string;
|
220
221
|
customerId: string;
|
221
222
|
discountValue: number;
|
@@ -223,7 +224,7 @@ export declare class CreateInvoiceDto {
|
|
223
224
|
dueDate: string;
|
224
225
|
status: string;
|
225
226
|
}
|
226
|
-
export declare class UpdateInvoiceDto {
|
227
|
+
export declare class UpdateInvoiceDto extends BaseDTO {
|
227
228
|
id: string;
|
228
229
|
billerId?: string;
|
229
230
|
customerId?: string;
|
@@ -12,10 +12,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
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
|
+
const dto_type_1 = require("../types/dto.type");
|
15
16
|
/**
|
16
17
|
* DTO for `BillerCategory`
|
17
18
|
*/
|
18
|
-
class CreateBillerCategoryDto {
|
19
|
+
class CreateBillerCategoryDto extends dto_type_1.BaseDTO {
|
19
20
|
}
|
20
21
|
exports.CreateBillerCategoryDto = CreateBillerCategoryDto;
|
21
22
|
__decorate([
|
@@ -38,7 +39,7 @@ __decorate([
|
|
38
39
|
/**
|
39
40
|
* DTO for `BillerCategory`
|
40
41
|
*/
|
41
|
-
class UpdateBillerCategoryDto {
|
42
|
+
class UpdateBillerCategoryDto extends dto_type_1.BaseDTO {
|
42
43
|
}
|
43
44
|
exports.UpdateBillerCategoryDto = UpdateBillerCategoryDto;
|
44
45
|
__decorate([
|
@@ -69,7 +70,7 @@ __decorate([
|
|
69
70
|
/**
|
70
71
|
* DTO for `Bank`
|
71
72
|
*/
|
72
|
-
class CreateBankDto {
|
73
|
+
class CreateBankDto extends dto_type_1.BaseDTO {
|
73
74
|
}
|
74
75
|
exports.CreateBankDto = CreateBankDto;
|
75
76
|
__decorate([
|
@@ -104,7 +105,7 @@ __decorate([
|
|
104
105
|
/**
|
105
106
|
* DTO for `Charge`
|
106
107
|
*/
|
107
|
-
class CreateChargeDto {
|
108
|
+
class CreateChargeDto extends dto_type_1.BaseDTO {
|
108
109
|
}
|
109
110
|
exports.CreateChargeDto = CreateChargeDto;
|
110
111
|
__decorate([
|
@@ -135,7 +136,7 @@ __decorate([
|
|
135
136
|
/**
|
136
137
|
* DTO for `Transaction`
|
137
138
|
*/
|
138
|
-
class CreateTransactionDto {
|
139
|
+
class CreateTransactionDto extends dto_type_1.BaseDTO {
|
139
140
|
}
|
140
141
|
exports.CreateTransactionDto = CreateTransactionDto;
|
141
142
|
__decorate([
|
@@ -169,7 +170,7 @@ __decorate([
|
|
169
170
|
/**
|
170
171
|
* DTO for `Biller`
|
171
172
|
*/
|
172
|
-
class CreateBillerDto {
|
173
|
+
class CreateBillerDto extends dto_type_1.BaseDTO {
|
173
174
|
}
|
174
175
|
exports.CreateBillerDto = CreateBillerDto;
|
175
176
|
__decorate([
|
@@ -234,7 +235,7 @@ __decorate([
|
|
234
235
|
(0, class_validator_1.IsString)({ message: "UpdatedAt must be a string." }),
|
235
236
|
__metadata("design:type", String)
|
236
237
|
], CreateBillerDto.prototype, "updatedAt", void 0);
|
237
|
-
class UpdateBillerDto {
|
238
|
+
class UpdateBillerDto extends dto_type_1.BaseDTO {
|
238
239
|
}
|
239
240
|
exports.UpdateBillerDto = UpdateBillerDto;
|
240
241
|
__decorate([
|
@@ -293,7 +294,7 @@ var TIME_DELIMITER;
|
|
293
294
|
TIME_DELIMITER["WEEK"] = "WEEK";
|
294
295
|
TIME_DELIMITER["MONTH"] = "MONTH";
|
295
296
|
})(TIME_DELIMITER || (exports.TIME_DELIMITER = TIME_DELIMITER = {}));
|
296
|
-
class BillerProfileDTO {
|
297
|
+
class BillerProfileDTO extends dto_type_1.BaseDTO {
|
297
298
|
}
|
298
299
|
exports.BillerProfileDTO = BillerProfileDTO;
|
299
300
|
__decorate([
|
@@ -347,7 +348,7 @@ __decorate([
|
|
347
348
|
(0, class_validator_1.IsOptional)(),
|
348
349
|
__metadata("design:type", String)
|
349
350
|
], BillerProfileDTO.prototype, "delimiter", void 0);
|
350
|
-
class UpdateBillerProfileDTO {
|
351
|
+
class UpdateBillerProfileDTO extends dto_type_1.BaseDTO {
|
351
352
|
}
|
352
353
|
exports.UpdateBillerProfileDTO = UpdateBillerProfileDTO;
|
353
354
|
__decorate([
|
@@ -401,7 +402,7 @@ __decorate([
|
|
401
402
|
(0, class_validator_1.IsOptional)(),
|
402
403
|
__metadata("design:type", String)
|
403
404
|
], UpdateBillerProfileDTO.prototype, "delimiter", void 0);
|
404
|
-
class CreateSettlementAccountDto {
|
405
|
+
class CreateSettlementAccountDto extends dto_type_1.BaseDTO {
|
405
406
|
}
|
406
407
|
exports.CreateSettlementAccountDto = CreateSettlementAccountDto;
|
407
408
|
__decorate([
|
@@ -461,7 +462,7 @@ __decorate([
|
|
461
462
|
(0, class_validator_1.Length)(3, 5, { message: "Currency must be between 3 and 5 characters" }),
|
462
463
|
__metadata("design:type", String)
|
463
464
|
], CreateSettlementAccountDto.prototype, "currency", void 0);
|
464
|
-
class UpdateSettlementAccountDto {
|
465
|
+
class UpdateSettlementAccountDto extends dto_type_1.BaseDTO {
|
465
466
|
}
|
466
467
|
exports.UpdateSettlementAccountDto = UpdateSettlementAccountDto;
|
467
468
|
__decorate([
|
@@ -533,7 +534,7 @@ __decorate([
|
|
533
534
|
(0, class_validator_1.IsOptional)(),
|
534
535
|
__metadata("design:type", String)
|
535
536
|
], UpdateSettlementAccountDto.prototype, "currency", void 0);
|
536
|
-
class CreateBillerChargeConfigurationDto {
|
537
|
+
class CreateBillerChargeConfigurationDto extends dto_type_1.BaseDTO {
|
537
538
|
}
|
538
539
|
exports.CreateBillerChargeConfigurationDto = CreateBillerChargeConfigurationDto;
|
539
540
|
__decorate([
|
@@ -640,7 +641,7 @@ __decorate([
|
|
640
641
|
(0, class_validator_1.IsOptional)(),
|
641
642
|
__metadata("design:type", Number)
|
642
643
|
], CreateBillerChargeConfigurationDto.prototype, "percentAmount", void 0);
|
643
|
-
class UpdateBillerChargeConfigurationDto {
|
644
|
+
class UpdateBillerChargeConfigurationDto extends dto_type_1.BaseDTO {
|
644
645
|
}
|
645
646
|
exports.UpdateBillerChargeConfigurationDto = UpdateBillerChargeConfigurationDto;
|
646
647
|
__decorate([
|
@@ -763,7 +764,7 @@ __decorate([
|
|
763
764
|
(0, class_validator_1.IsOptional)(),
|
764
765
|
__metadata("design:type", Number)
|
765
766
|
], UpdateBillerChargeConfigurationDto.prototype, "percentAmount", void 0);
|
766
|
-
class CreateBillerDocumentDto {
|
767
|
+
class CreateBillerDocumentDto extends dto_type_1.BaseDTO {
|
767
768
|
}
|
768
769
|
exports.CreateBillerDocumentDto = CreateBillerDocumentDto;
|
769
770
|
__decorate([
|
@@ -793,7 +794,7 @@ __decorate([
|
|
793
794
|
(0, class_validator_1.IsString)({ message: "Document type must be a valid string" }),
|
794
795
|
__metadata("design:type", String)
|
795
796
|
], CreateBillerDocumentDto.prototype, "type", void 0);
|
796
|
-
class UpdateBillerDocumentDto {
|
797
|
+
class UpdateBillerDocumentDto extends dto_type_1.BaseDTO {
|
797
798
|
}
|
798
799
|
exports.UpdateBillerDocumentDto = UpdateBillerDocumentDto;
|
799
800
|
__decorate([
|
@@ -826,7 +827,7 @@ __decorate([
|
|
826
827
|
(0, class_validator_1.IsOptional)(),
|
827
828
|
__metadata("design:type", String)
|
828
829
|
], UpdateBillerDocumentDto.prototype, "type", void 0);
|
829
|
-
class CreateGoLiveRequestDto {
|
830
|
+
class CreateGoLiveRequestDto extends dto_type_1.BaseDTO {
|
830
831
|
}
|
831
832
|
exports.CreateGoLiveRequestDto = CreateGoLiveRequestDto;
|
832
833
|
__decorate([
|
@@ -847,7 +848,7 @@ __decorate([
|
|
847
848
|
(0, class_validator_1.IsString)({ message: "Status must be a valid string" }),
|
848
849
|
__metadata("design:type", String)
|
849
850
|
], CreateGoLiveRequestDto.prototype, "status", void 0);
|
850
|
-
class UpdateGoLiveRequestDto {
|
851
|
+
class UpdateGoLiveRequestDto extends dto_type_1.BaseDTO {
|
851
852
|
}
|
852
853
|
exports.UpdateGoLiveRequestDto = UpdateGoLiveRequestDto;
|
853
854
|
__decorate([
|
@@ -870,7 +871,7 @@ __decorate([
|
|
870
871
|
(0, class_validator_1.IsOptional)(),
|
871
872
|
__metadata("design:type", String)
|
872
873
|
], UpdateGoLiveRequestDto.prototype, "status", void 0);
|
873
|
-
class CreateBillerContactDto {
|
874
|
+
class CreateBillerContactDto extends dto_type_1.BaseDTO {
|
874
875
|
}
|
875
876
|
exports.CreateBillerContactDto = CreateBillerContactDto;
|
876
877
|
__decorate([
|
@@ -960,7 +961,7 @@ __decorate([
|
|
960
961
|
(0, class_validator_1.Length)(1, 50, { message: "State must be between 1 and 50 characters" }),
|
961
962
|
__metadata("design:type", String)
|
962
963
|
], CreateBillerContactDto.prototype, "state", void 0);
|
963
|
-
class UpdateBillerContactDto {
|
964
|
+
class UpdateBillerContactDto extends dto_type_1.BaseDTO {
|
964
965
|
}
|
965
966
|
exports.UpdateBillerContactDto = UpdateBillerContactDto;
|
966
967
|
__decorate([
|
@@ -1068,7 +1069,7 @@ __decorate([
|
|
1068
1069
|
(0, class_validator_1.IsOptional)(),
|
1069
1070
|
__metadata("design:type", String)
|
1070
1071
|
], UpdateBillerContactDto.prototype, "state", void 0);
|
1071
|
-
class CreateCustomerDto {
|
1072
|
+
class CreateCustomerDto extends dto_type_1.BaseDTO {
|
1072
1073
|
}
|
1073
1074
|
exports.CreateCustomerDto = CreateCustomerDto;
|
1074
1075
|
__decorate([
|
@@ -1111,7 +1112,7 @@ __decorate([
|
|
1111
1112
|
(0, class_validator_1.IsOptional)(),
|
1112
1113
|
__metadata("design:type", String)
|
1113
1114
|
], CreateCustomerDto.prototype, "phoneNumber", void 0);
|
1114
|
-
class UpdateCustomerDto {
|
1115
|
+
class UpdateCustomerDto extends dto_type_1.BaseDTO {
|
1115
1116
|
}
|
1116
1117
|
exports.UpdateCustomerDto = UpdateCustomerDto;
|
1117
1118
|
__decorate([
|
@@ -1155,7 +1156,7 @@ __decorate([
|
|
1155
1156
|
(0, class_validator_1.IsOptional)(),
|
1156
1157
|
__metadata("design:type", String)
|
1157
1158
|
], UpdateCustomerDto.prototype, "phoneNumber", void 0);
|
1158
|
-
class BillerItemCategoryDto {
|
1159
|
+
class BillerItemCategoryDto extends dto_type_1.BaseDTO {
|
1159
1160
|
}
|
1160
1161
|
exports.BillerItemCategoryDto = BillerItemCategoryDto;
|
1161
1162
|
__decorate([
|
@@ -1177,7 +1178,7 @@ __decorate([
|
|
1177
1178
|
(0, class_validator_1.IsOptional)(),
|
1178
1179
|
__metadata("design:type", String)
|
1179
1180
|
], BillerItemCategoryDto.prototype, "description", void 0);
|
1180
|
-
class UpdateBillerItemCategoryDto {
|
1181
|
+
class UpdateBillerItemCategoryDto extends dto_type_1.BaseDTO {
|
1181
1182
|
}
|
1182
1183
|
exports.UpdateBillerItemCategoryDto = UpdateBillerItemCategoryDto;
|
1183
1184
|
__decorate([
|
@@ -1209,7 +1210,7 @@ __decorate([
|
|
1209
1210
|
(0, class_validator_1.IsOptional)(),
|
1210
1211
|
__metadata("design:type", String)
|
1211
1212
|
], UpdateBillerItemCategoryDto.prototype, "description", void 0);
|
1212
|
-
class CreateBillerItemDto {
|
1213
|
+
class CreateBillerItemDto extends dto_type_1.BaseDTO {
|
1213
1214
|
}
|
1214
1215
|
exports.CreateBillerItemDto = CreateBillerItemDto;
|
1215
1216
|
__decorate([
|
@@ -1306,7 +1307,7 @@ __decorate([
|
|
1306
1307
|
(0, class_validator_1.IsNotEmpty)({ message: "External must not be empty" }),
|
1307
1308
|
__metadata("design:type", Boolean)
|
1308
1309
|
], CreateBillerItemDto.prototype, "external", void 0);
|
1309
|
-
class UpdateBillerItemDto {
|
1310
|
+
class UpdateBillerItemDto extends dto_type_1.BaseDTO {
|
1310
1311
|
}
|
1311
1312
|
exports.UpdateBillerItemDto = UpdateBillerItemDto;
|
1312
1313
|
__decorate([
|
@@ -1418,7 +1419,7 @@ __decorate([
|
|
1418
1419
|
(0, class_validator_1.IsOptional)(),
|
1419
1420
|
__metadata("design:type", Boolean)
|
1420
1421
|
], UpdateBillerItemDto.prototype, "external", void 0);
|
1421
|
-
class CreateInvoiceDto {
|
1422
|
+
class CreateInvoiceDto extends dto_type_1.BaseDTO {
|
1422
1423
|
}
|
1423
1424
|
exports.CreateInvoiceDto = CreateInvoiceDto;
|
1424
1425
|
__decorate([
|
@@ -1475,7 +1476,7 @@ __decorate([
|
|
1475
1476
|
(0, class_validator_1.IsEnum)(["PENDING", "PAID", "CANCELLED"], { message: "Status must be PENDING, PAID, or CANCELLED" }),
|
1476
1477
|
__metadata("design:type", String)
|
1477
1478
|
], CreateInvoiceDto.prototype, "status", void 0);
|
1478
|
-
class UpdateInvoiceDto {
|
1479
|
+
class UpdateInvoiceDto extends dto_type_1.BaseDTO {
|
1479
1480
|
}
|
1480
1481
|
exports.UpdateInvoiceDto = UpdateInvoiceDto;
|
1481
1482
|
__decorate([
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.BaseDTO = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class BaseDTO {
|
15
|
+
}
|
16
|
+
exports.BaseDTO = BaseDTO;
|
17
|
+
__decorate([
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], BaseDTO.prototype, "requestUserId", void 0);
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -15,11 +15,12 @@ import {
|
|
15
15
|
IsDateString,
|
16
16
|
MaxLength,
|
17
17
|
} from "class-validator";
|
18
|
+
import { BaseDTO } from "../types/dto.type";
|
18
19
|
|
19
20
|
/**
|
20
21
|
* DTO for `BillerCategory`
|
21
22
|
*/
|
22
|
-
export class CreateBillerCategoryDto {
|
23
|
+
export class CreateBillerCategoryDto extends BaseDTO {
|
23
24
|
@ApiProperty({ description: "The name of the biller category.", example: "Utilities" })
|
24
25
|
@IsNotEmpty({ message: "Name is required." })
|
25
26
|
@IsString({ message: "Name must be a string." })
|
@@ -38,7 +39,7 @@ export class CreateBillerCategoryDto {
|
|
38
39
|
/**
|
39
40
|
* DTO for `BillerCategory`
|
40
41
|
*/
|
41
|
-
export class UpdateBillerCategoryDto {
|
42
|
+
export class UpdateBillerCategoryDto extends BaseDTO {
|
42
43
|
@ApiProperty({
|
43
44
|
description: "Unique identifier for the BillerProfile",
|
44
45
|
example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
|
@@ -65,7 +66,7 @@ export class UpdateBillerCategoryDto {
|
|
65
66
|
/**
|
66
67
|
* DTO for `Bank`
|
67
68
|
*/
|
68
|
-
export class CreateBankDto {
|
69
|
+
export class CreateBankDto extends BaseDTO {
|
69
70
|
@ApiProperty({ description: "The name of the bank.", example: "First Bank" })
|
70
71
|
@IsNotEmpty({ message: "Name is required." })
|
71
72
|
@IsString({ message: "Name must be a string." })
|
@@ -95,7 +96,7 @@ export class CreateBankDto {
|
|
95
96
|
/**
|
96
97
|
* DTO for `Charge`
|
97
98
|
*/
|
98
|
-
export class CreateChargeDto {
|
99
|
+
export class CreateChargeDto extends BaseDTO {
|
99
100
|
@ApiProperty({ description: "The name of the charge.", example: "Service Fee" })
|
100
101
|
@IsNotEmpty({ message: "Name is required." })
|
101
102
|
@IsString({ message: "Name must be a string." })
|
@@ -121,7 +122,7 @@ export class CreateChargeDto {
|
|
121
122
|
/**
|
122
123
|
* DTO for `Transaction`
|
123
124
|
*/
|
124
|
-
export class CreateTransactionDto {
|
125
|
+
export class CreateTransactionDto extends BaseDTO {
|
125
126
|
@ApiProperty({ description: "The amount involved in the transaction.", example: 1000 })
|
126
127
|
@IsNotEmpty({ message: "Amount is required." })
|
127
128
|
@IsNumber({}, { message: "Amount must be a number." })
|
@@ -150,7 +151,7 @@ export class CreateTransactionDto {
|
|
150
151
|
/**
|
151
152
|
* DTO for `Biller`
|
152
153
|
*/
|
153
|
-
export class CreateBillerDto {
|
154
|
+
export class CreateBillerDto extends BaseDTO {
|
154
155
|
@ApiProperty({ description: "The unique ID of the biller.", example: "uuid-value" })
|
155
156
|
@IsOptional()
|
156
157
|
@IsString({ message: "ID must be a string." })
|
@@ -204,7 +205,7 @@ export class CreateBillerDto {
|
|
204
205
|
updatedAt?: string;
|
205
206
|
}
|
206
207
|
|
207
|
-
export class UpdateBillerDto {
|
208
|
+
export class UpdateBillerDto extends BaseDTO {
|
208
209
|
@ApiProperty({ description: "The unique ID of the biller.", example: "uuid-value" })
|
209
210
|
@IsOptional()
|
210
211
|
@IsString({ message: "ID must be a string." })
|
@@ -254,7 +255,7 @@ export enum TIME_DELIMITER {
|
|
254
255
|
MONTH = "MONTH",
|
255
256
|
}
|
256
257
|
|
257
|
-
export class BillerProfileDTO {
|
258
|
+
export class BillerProfileDTO extends BaseDTO {
|
258
259
|
@ApiProperty({
|
259
260
|
description: "Unique identifier for the BillerProfile",
|
260
261
|
example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
|
@@ -302,7 +303,7 @@ export class BillerProfileDTO {
|
|
302
303
|
delimiter?: TIME_DELIMITER;
|
303
304
|
}
|
304
305
|
|
305
|
-
export class UpdateBillerProfileDTO {
|
306
|
+
export class UpdateBillerProfileDTO extends BaseDTO {
|
306
307
|
@ApiProperty({
|
307
308
|
description: "Unique identifier for the BillerProfile",
|
308
309
|
example: "e8be631d-cf95-4c9d-9d2f-91fca1da8cdb",
|
@@ -350,7 +351,7 @@ export class UpdateBillerProfileDTO {
|
|
350
351
|
delimiter?: TIME_DELIMITER;
|
351
352
|
}
|
352
353
|
|
353
|
-
export class CreateSettlementAccountDto {
|
354
|
+
export class CreateSettlementAccountDto extends BaseDTO {
|
354
355
|
@ApiProperty({
|
355
356
|
description: "The ID of the biller",
|
356
357
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -403,7 +404,7 @@ export class CreateSettlementAccountDto {
|
|
403
404
|
currency: string;
|
404
405
|
}
|
405
406
|
|
406
|
-
export class UpdateSettlementAccountDto {
|
407
|
+
export class UpdateSettlementAccountDto extends BaseDTO {
|
407
408
|
@IsNotEmpty({ message: "ID must be provided" })
|
408
409
|
@IsString({ message: "ID must be a valid string" })
|
409
410
|
@IsUUID()
|
@@ -467,7 +468,7 @@ export class UpdateSettlementAccountDto {
|
|
467
468
|
currency?: string;
|
468
469
|
}
|
469
470
|
|
470
|
-
export class CreateBillerChargeConfigurationDto {
|
471
|
+
export class CreateBillerChargeConfigurationDto extends BaseDTO {
|
471
472
|
@ApiProperty({
|
472
473
|
description: "The ID of the service",
|
473
474
|
example: "550e8400-e29b-41d4-a716-446655440001",
|
@@ -564,7 +565,7 @@ export class CreateBillerChargeConfigurationDto {
|
|
564
565
|
percentAmount?: number;
|
565
566
|
}
|
566
567
|
|
567
|
-
export class UpdateBillerChargeConfigurationDto {
|
568
|
+
export class UpdateBillerChargeConfigurationDto extends BaseDTO {
|
568
569
|
@IsNotEmpty({ message: "ID must be provided" })
|
569
570
|
@IsString({ message: "ID must be a valid string" })
|
570
571
|
@IsUUID()
|
@@ -677,7 +678,7 @@ export class UpdateBillerChargeConfigurationDto {
|
|
677
678
|
percentAmount?: number;
|
678
679
|
}
|
679
680
|
|
680
|
-
export class CreateBillerDocumentDto {
|
681
|
+
export class CreateBillerDocumentDto extends BaseDTO {
|
681
682
|
@ApiProperty({
|
682
683
|
description: "The ID of the biller",
|
683
684
|
example: "550e8400-e29b-41d4-a716-446655440002",
|
@@ -703,7 +704,7 @@ export class CreateBillerDocumentDto {
|
|
703
704
|
type: string;
|
704
705
|
}
|
705
706
|
|
706
|
-
export class UpdateBillerDocumentDto {
|
707
|
+
export class UpdateBillerDocumentDto extends BaseDTO {
|
707
708
|
@ApiProperty({
|
708
709
|
description: "The ID of the biller",
|
709
710
|
example: "550e8400-e29b-41d4-a716-446655440002",
|
@@ -732,7 +733,7 @@ export class UpdateBillerDocumentDto {
|
|
732
733
|
type?: string;
|
733
734
|
}
|
734
735
|
|
735
|
-
export class CreateGoLiveRequestDto {
|
736
|
+
export class CreateGoLiveRequestDto extends BaseDTO {
|
736
737
|
@ApiProperty({
|
737
738
|
description: "The ID of the biller",
|
738
739
|
example: "550e8400-e29b-41d4-a716-446655440003",
|
@@ -750,7 +751,7 @@ export class CreateGoLiveRequestDto {
|
|
750
751
|
status: string;
|
751
752
|
}
|
752
753
|
|
753
|
-
export class UpdateGoLiveRequestDto {
|
754
|
+
export class UpdateGoLiveRequestDto extends BaseDTO {
|
754
755
|
@ApiProperty({
|
755
756
|
description: "The ID of the biller",
|
756
757
|
example: "550e8400-e29b-41d4-a716-446655440003",
|
@@ -770,7 +771,7 @@ export class UpdateGoLiveRequestDto {
|
|
770
771
|
status?: string;
|
771
772
|
}
|
772
773
|
|
773
|
-
export class CreateBillerContactDto {
|
774
|
+
export class CreateBillerContactDto extends BaseDTO {
|
774
775
|
@ApiProperty({
|
775
776
|
description: "The ID of the biller",
|
776
777
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -850,7 +851,7 @@ export class CreateBillerContactDto {
|
|
850
851
|
state: string;
|
851
852
|
}
|
852
853
|
|
853
|
-
export class UpdateBillerContactDto {
|
854
|
+
export class UpdateBillerContactDto extends BaseDTO {
|
854
855
|
@ApiProperty({
|
855
856
|
description: "The ID of the contact",
|
856
857
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -947,7 +948,7 @@ export class UpdateBillerContactDto {
|
|
947
948
|
state?: string;
|
948
949
|
}
|
949
950
|
|
950
|
-
export class CreateCustomerDto {
|
951
|
+
export class CreateCustomerDto extends BaseDTO {
|
951
952
|
@ApiProperty({
|
952
953
|
description: "The ID of the biller",
|
953
954
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -985,7 +986,7 @@ export class CreateCustomerDto {
|
|
985
986
|
phoneNumber?: string;
|
986
987
|
}
|
987
988
|
|
988
|
-
export class UpdateCustomerDto {
|
989
|
+
export class UpdateCustomerDto extends BaseDTO {
|
989
990
|
@ApiProperty({
|
990
991
|
description: "The ID of the customer",
|
991
992
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -1024,7 +1025,7 @@ export class UpdateCustomerDto {
|
|
1024
1025
|
phoneNumber?: string;
|
1025
1026
|
}
|
1026
1027
|
|
1027
|
-
export class BillerItemCategoryDto {
|
1028
|
+
export class BillerItemCategoryDto extends BaseDTO {
|
1028
1029
|
@ApiProperty({
|
1029
1030
|
description: "Name of the biller item category",
|
1030
1031
|
maxLength: 100,
|
@@ -1043,7 +1044,7 @@ export class BillerItemCategoryDto {
|
|
1043
1044
|
description?: string;
|
1044
1045
|
}
|
1045
1046
|
|
1046
|
-
export class UpdateBillerItemCategoryDto {
|
1047
|
+
export class UpdateBillerItemCategoryDto extends BaseDTO {
|
1047
1048
|
@ApiProperty({
|
1048
1049
|
description: "Unique identifier for the biller item category",
|
1049
1050
|
type: String,
|
@@ -1071,7 +1072,7 @@ export class UpdateBillerItemCategoryDto {
|
|
1071
1072
|
description?: string;
|
1072
1073
|
}
|
1073
1074
|
|
1074
|
-
export class CreateBillerItemDto {
|
1075
|
+
export class CreateBillerItemDto extends BaseDTO {
|
1075
1076
|
@ApiProperty({
|
1076
1077
|
description: "The ID of the biller",
|
1077
1078
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -1156,7 +1157,7 @@ export class CreateBillerItemDto {
|
|
1156
1157
|
external: boolean;
|
1157
1158
|
}
|
1158
1159
|
|
1159
|
-
export class UpdateBillerItemDto {
|
1160
|
+
export class UpdateBillerItemDto extends BaseDTO {
|
1160
1161
|
@ApiProperty({
|
1161
1162
|
description: "The ID of the biller item",
|
1162
1163
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -1256,7 +1257,7 @@ export class UpdateBillerItemDto {
|
|
1256
1257
|
external?: boolean;
|
1257
1258
|
}
|
1258
1259
|
|
1259
|
-
export class CreateInvoiceDto {
|
1260
|
+
export class CreateInvoiceDto extends BaseDTO {
|
1260
1261
|
@ApiProperty({
|
1261
1262
|
description: "The ID of the biller",
|
1262
1263
|
example: "550e8400-e29b-41d4-a716-446655440000",
|
@@ -1306,7 +1307,7 @@ export class CreateInvoiceDto {
|
|
1306
1307
|
status: string;
|
1307
1308
|
}
|
1308
1309
|
|
1309
|
-
export class UpdateInvoiceDto {
|
1310
|
+
export class UpdateInvoiceDto extends BaseDTO {
|
1310
1311
|
@ApiProperty({
|
1311
1312
|
description: "The ID of the invoice",
|
1312
1313
|
example: "550e8400-e29b-41d4-a716-446655440000",
|