resurgence-data 1.0.43 → 1.1.0
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 +2 -0
- package/dist/biller/biller.dto.js +17 -1
- package/dist/exception/index.d.ts +1 -0
- package/dist/exception/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/payment/api-key.data.d.ts +21 -0
- package/dist/payment/api-key.data.js +41 -0
- package/dist/payment/api-key.dto.d.ts +0 -0
- package/dist/payment/api-key.dto.js +1 -0
- package/dist/payment/index.d.ts +1 -0
- package/dist/payment/index.js +17 -0
- package/dist/types/biller.type.d.ts +1 -0
- package/dist/types/biller.type.js +4 -0
- package/package.json +1 -1
- package/src/biller/biller.dto.ts +13 -1
- package/src/exception/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/payment/api-key.data.ts +28 -0
- package/src/payment/api-key.dto.ts +0 -0
- package/src/payment/index.ts +1 -0
- package/src/types/biller.type.ts +1 -0
@@ -1534,9 +1534,25 @@ __decorate([
|
|
1534
1534
|
example: 10.5,
|
1535
1535
|
}),
|
1536
1536
|
(0, class_validator_1.IsNotEmpty)({ message: "Discount value must not be empty" }),
|
1537
|
-
(0, class_validator_1.
|
1537
|
+
(0, class_validator_1.IsNumber)(undefined, { message: "Discount value must be a valid number" }),
|
1538
1538
|
__metadata("design:type", Number)
|
1539
1539
|
], CreateInvoiceDto.prototype, "discountValue", void 0);
|
1540
|
+
__decorate([
|
1541
|
+
(0, swagger_1.ApiProperty)({
|
1542
|
+
description: "Total for invoice",
|
1543
|
+
example: 20030,
|
1544
|
+
}),
|
1545
|
+
(0, class_validator_1.IsInt)({ message: "Discount value must be a valid number" }),
|
1546
|
+
__metadata("design:type", Number)
|
1547
|
+
], CreateInvoiceDto.prototype, "total", void 0);
|
1548
|
+
__decorate([
|
1549
|
+
(0, swagger_1.ApiProperty)({
|
1550
|
+
description: "Total for invoice service charges",
|
1551
|
+
example: 1000,
|
1552
|
+
}),
|
1553
|
+
(0, class_validator_1.IsNumber)(undefined, { message: "Discount value must be a valid number" }),
|
1554
|
+
__metadata("design:type", Number)
|
1555
|
+
], CreateInvoiceDto.prototype, "totalService", void 0);
|
1540
1556
|
__decorate([
|
1541
1557
|
(0, swagger_1.ApiProperty)({
|
1542
1558
|
description: "The type of discount applied to the invoice",
|
package/dist/exception/index.js
CHANGED
@@ -21,3 +21,4 @@ __exportStar(require("./authorization.exception"), exports);
|
|
21
21
|
__exportStar(require("./database.exception"), exports);
|
22
22
|
__exportStar(require("./integration.exception"), exports);
|
23
23
|
__exportStar(require("./process.exception"), exports);
|
24
|
+
__exportStar(require("./data.exception"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare class BillerApiKeyDto {
|
2
|
+
billerId: string;
|
3
|
+
active: boolean;
|
4
|
+
apiKey: string;
|
5
|
+
environment?: string;
|
6
|
+
}
|
7
|
+
export declare class UpdateBillerApiKeyDto {
|
8
|
+
id: string;
|
9
|
+
billerId: string;
|
10
|
+
active?: boolean;
|
11
|
+
apiKey?: string;
|
12
|
+
environment?: string;
|
13
|
+
}
|
14
|
+
export declare class BillerKeyResponseDTO {
|
15
|
+
production: string;
|
16
|
+
test: string;
|
17
|
+
}
|
18
|
+
export declare class BillerEnvironmentKeyResponseDTO {
|
19
|
+
environment: string;
|
20
|
+
key: string;
|
21
|
+
}
|
@@ -0,0 +1,41 @@
|
|
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.BillerEnvironmentKeyResponseDTO = exports.BillerKeyResponseDTO = exports.UpdateBillerApiKeyDto = exports.BillerApiKeyDto = void 0;
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
14
|
+
class BillerApiKeyDto {
|
15
|
+
}
|
16
|
+
exports.BillerApiKeyDto = BillerApiKeyDto;
|
17
|
+
class UpdateBillerApiKeyDto {
|
18
|
+
}
|
19
|
+
exports.UpdateBillerApiKeyDto = UpdateBillerApiKeyDto;
|
20
|
+
class BillerKeyResponseDTO {
|
21
|
+
}
|
22
|
+
exports.BillerKeyResponseDTO = BillerKeyResponseDTO;
|
23
|
+
__decorate([
|
24
|
+
(0, swagger_1.ApiProperty)({ description: "production key" }),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], BillerKeyResponseDTO.prototype, "production", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, swagger_1.ApiProperty)({ description: "test key" }),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], BillerKeyResponseDTO.prototype, "test", void 0);
|
31
|
+
class BillerEnvironmentKeyResponseDTO {
|
32
|
+
}
|
33
|
+
exports.BillerEnvironmentKeyResponseDTO = BillerEnvironmentKeyResponseDTO;
|
34
|
+
__decorate([
|
35
|
+
(0, swagger_1.ApiProperty)({ description: "environment" }),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], BillerEnvironmentKeyResponseDTO.prototype, "environment", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, swagger_1.ApiProperty)({ description: "key" }),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], BillerEnvironmentKeyResponseDTO.prototype, "key", void 0);
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./api-key.data";
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./api-key.data"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const environments: string[];
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -1358,8 +1358,20 @@ export class CreateInvoiceDto extends BaseDTO {
|
|
1358
1358
|
example: 10.5,
|
1359
1359
|
})
|
1360
1360
|
@IsNotEmpty({ message: "Discount value must not be empty" })
|
1361
|
-
@
|
1361
|
+
@IsNumber(undefined, { message: "Discount value must be a valid number" })
|
1362
1362
|
discountValue: number;
|
1363
|
+
@ApiProperty({
|
1364
|
+
description: "Total for invoice",
|
1365
|
+
example: 20030,
|
1366
|
+
})
|
1367
|
+
@IsInt({ message: "Discount value must be a valid number" })
|
1368
|
+
total?: number;
|
1369
|
+
@ApiProperty({
|
1370
|
+
description: "Total for invoice service charges",
|
1371
|
+
example: 1000,
|
1372
|
+
})
|
1373
|
+
@IsNumber(undefined, { message: "Discount value must be a valid number" })
|
1374
|
+
totalService?: number;
|
1363
1375
|
|
1364
1376
|
@ApiProperty({
|
1365
1377
|
description: "The type of discount applied to the invoice",
|
package/src/exception/index.ts
CHANGED
package/src/index.ts
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
import { ApiProperty } from "@nestjs/swagger";
|
2
|
+
|
3
|
+
export class BillerApiKeyDto {
|
4
|
+
billerId: string;
|
5
|
+
active: boolean;
|
6
|
+
apiKey: string;
|
7
|
+
environment?: string;
|
8
|
+
}
|
9
|
+
export class UpdateBillerApiKeyDto {
|
10
|
+
id: string;
|
11
|
+
billerId: string;
|
12
|
+
active?: boolean;
|
13
|
+
apiKey?: string;
|
14
|
+
environment?: string;
|
15
|
+
}
|
16
|
+
|
17
|
+
export class BillerKeyResponseDTO {
|
18
|
+
@ApiProperty({ description: "production key" })
|
19
|
+
production: string;
|
20
|
+
@ApiProperty({ description: "test key" })
|
21
|
+
test: string;
|
22
|
+
}
|
23
|
+
export class BillerEnvironmentKeyResponseDTO {
|
24
|
+
@ApiProperty({ description: "environment" })
|
25
|
+
environment: string;
|
26
|
+
@ApiProperty({ description: "key" })
|
27
|
+
key: string;
|
28
|
+
}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./api-key.data";
|
@@ -0,0 +1 @@
|
|
1
|
+
export const environments = ["TEST", "LIVE"];
|