resurgence-data 1.1.30 → 1.1.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.
@@ -42,6 +42,11 @@ export declare class CreateTransactionDto extends BaseDTO {
|
|
42
42
|
type: "CREDIT" | "DEBIT";
|
43
43
|
remarks?: string;
|
44
44
|
}
|
45
|
+
export declare class BillerCreateContactDto {
|
46
|
+
contactName: string;
|
47
|
+
emailAddress: string;
|
48
|
+
phoneNumber: string;
|
49
|
+
}
|
45
50
|
/**
|
46
51
|
* DTO for `Biller`
|
47
52
|
*/
|
@@ -56,6 +61,7 @@ export declare class CreateBillerDto extends BaseDTO {
|
|
56
61
|
chargeConfigurations?: CreateBillerChargeConfigurationDto[];
|
57
62
|
createdAt?: string;
|
58
63
|
updatedAt?: string;
|
64
|
+
contactDetails?: BillerCreateContactDto;
|
59
65
|
}
|
60
66
|
export declare class UpdateBillerDto extends BaseDTO {
|
61
67
|
id: 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.EnrollBillerSettlementAccount = exports.EnrollBillerDto = 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;
|
12
|
+
exports.EnrollBillerSettlementAccount = exports.EnrollBillerDto = 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.BillerCreateContactDto = 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
|
const dto_type_1 = require("../types/dto.type");
|
@@ -167,6 +167,25 @@ __decorate([
|
|
167
167
|
(0, class_validator_1.IsString)({ message: "Remarks must be a string." }),
|
168
168
|
__metadata("design:type", String)
|
169
169
|
], CreateTransactionDto.prototype, "remarks", void 0);
|
170
|
+
class BillerCreateContactDto {
|
171
|
+
}
|
172
|
+
exports.BillerCreateContactDto = BillerCreateContactDto;
|
173
|
+
__decorate([
|
174
|
+
(0, swagger_1.ApiProperty)({ description: "The contacts full name.", example: "James Mckinley" }),
|
175
|
+
(0, class_validator_1.IsString)({ message: "Contact name must be a string." }),
|
176
|
+
__metadata("design:type", String)
|
177
|
+
], BillerCreateContactDto.prototype, "contactName", void 0);
|
178
|
+
__decorate([
|
179
|
+
(0, swagger_1.ApiProperty)({ description: "Email Address of the biller contact.", example: "james@mchinley.com" }),
|
180
|
+
(0, class_validator_1.IsString)({ message: "Email address must be a string." }),
|
181
|
+
(0, class_validator_1.IsEmail)({}, { message: "Email address must be a valid email address." }),
|
182
|
+
__metadata("design:type", String)
|
183
|
+
], BillerCreateContactDto.prototype, "emailAddress", void 0);
|
184
|
+
__decorate([
|
185
|
+
(0, swagger_1.ApiProperty)({ description: "The last update timestamp of the biller.", example: "23489399488" }),
|
186
|
+
(0, class_validator_1.IsPhoneNumber)("NG", { message: "Phone number must be a valid Nigerian phone number." }),
|
187
|
+
__metadata("design:type", String)
|
188
|
+
], BillerCreateContactDto.prototype, "phoneNumber", void 0);
|
170
189
|
/**
|
171
190
|
* DTO for `Biller`
|
172
191
|
*/
|
@@ -229,6 +248,11 @@ __decorate([
|
|
229
248
|
(0, class_validator_1.IsString)({ message: "UpdatedAt must be a string." }),
|
230
249
|
__metadata("design:type", String)
|
231
250
|
], CreateBillerDto.prototype, "updatedAt", void 0);
|
251
|
+
__decorate([
|
252
|
+
(0, swagger_1.ApiProperty)({ description: "The contact information for the biller.", required: false }),
|
253
|
+
(0, class_validator_1.IsOptional)(),
|
254
|
+
__metadata("design:type", BillerCreateContactDto)
|
255
|
+
], CreateBillerDto.prototype, "contactDetails", void 0);
|
232
256
|
class UpdateBillerDto extends dto_type_1.BaseDTO {
|
233
257
|
}
|
234
258
|
exports.UpdateBillerDto = UpdateBillerDto;
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -15,6 +15,8 @@ import {
|
|
15
15
|
IsDateString,
|
16
16
|
MaxLength,
|
17
17
|
IsArray,
|
18
|
+
IsPhoneNumber,
|
19
|
+
IsEmail,
|
18
20
|
} from "class-validator";
|
19
21
|
import { BaseDTO } from "../types/dto.type";
|
20
22
|
import { BillerApiKeyDto } from "../payment/api-key";
|
@@ -150,6 +152,19 @@ export class CreateTransactionDto extends BaseDTO {
|
|
150
152
|
remarks?: string;
|
151
153
|
}
|
152
154
|
|
155
|
+
export class BillerCreateContactDto {
|
156
|
+
@ApiProperty({ description: "The contacts full name.", example: "James Mckinley" })
|
157
|
+
@IsString({ message: "Contact name must be a string." })
|
158
|
+
contactName: string;
|
159
|
+
@ApiProperty({ description: "Email Address of the biller contact.", example: "james@mchinley.com" })
|
160
|
+
@IsString({ message: "Email address must be a string." })
|
161
|
+
@IsEmail({}, { message: "Email address must be a valid email address." })
|
162
|
+
emailAddress: string;
|
163
|
+
@ApiProperty({ description: "The last update timestamp of the biller.", example: "23489399488" })
|
164
|
+
@IsPhoneNumber("NG", { message: "Phone number must be a valid Nigerian phone number." })
|
165
|
+
phoneNumber: string;
|
166
|
+
}
|
167
|
+
|
153
168
|
/**
|
154
169
|
* DTO for `Biller`
|
155
170
|
*/
|
@@ -202,6 +217,10 @@ export class CreateBillerDto extends BaseDTO {
|
|
202
217
|
@IsOptional()
|
203
218
|
@IsString({ message: "UpdatedAt must be a string." })
|
204
219
|
updatedAt?: string;
|
220
|
+
|
221
|
+
@ApiProperty({ description: "The contact information for the biller.", required: false })
|
222
|
+
@IsOptional()
|
223
|
+
contactDetails?: BillerCreateContactDto;
|
205
224
|
}
|
206
225
|
|
207
226
|
export class UpdateBillerDto extends BaseDTO {
|