resurgence-data 1.1.53 → 1.1.55
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.
@@ -36,7 +36,7 @@ __decorate([
|
|
36
36
|
__decorate([
|
37
37
|
(0, swagger_1.ApiProperty)({ description: "Total amount of the transaction" }),
|
38
38
|
(0, class_validator_1.IsNotEmpty)({ message: "Transaction Total is required" }),
|
39
|
-
(0, class_validator_1.
|
39
|
+
(0, class_validator_1.IsNumberString)({ no_symbols: true }, { message: "Transaction Total must be a number" }),
|
40
40
|
__metadata("design:type", Number)
|
41
41
|
], TransactionSplitDto.prototype, "transactionTotal", void 0);
|
42
42
|
class PaymentRequestDto {
|
@@ -80,7 +80,7 @@ __decorate([
|
|
80
80
|
__decorate([
|
81
81
|
(0, swagger_1.ApiProperty)({ description: "Total amount of the transaction" }),
|
82
82
|
(0, class_validator_1.IsNotEmpty)({ message: "Transaction Total is required" }),
|
83
|
-
(0, class_validator_1.IsInt)({ message: "
|
83
|
+
(0, class_validator_1.IsInt)({ message: "Invalid transaction total format" }),
|
84
84
|
__metadata("design:type", Number)
|
85
85
|
], PaymentRequestDto.prototype, "transactionTotal", void 0);
|
86
86
|
__decorate([
|
@@ -193,7 +193,7 @@ __decorate([
|
|
193
193
|
__decorate([
|
194
194
|
(0, swagger_1.ApiProperty)({ description: "Total amount of the transaction" }),
|
195
195
|
(0, class_validator_1.IsNotEmpty)({ message: "Transaction Total is required" }),
|
196
|
-
(0, class_validator_1.
|
196
|
+
(0, class_validator_1.IsNumberString)({ no_symbols: true }, { message: "Transaction Total must be a number" }),
|
197
197
|
__metadata("design:type", Number)
|
198
198
|
], APIPaymentRequestDto.prototype, "transactionTotal", void 0);
|
199
199
|
__decorate([
|
package/package.json
CHANGED
@@ -34,7 +34,7 @@ export class TransactionSplitDto {
|
|
34
34
|
|
35
35
|
@ApiProperty({ description: "Total amount of the transaction" })
|
36
36
|
@IsNotEmpty({ message: "Transaction Total is required" })
|
37
|
-
@
|
37
|
+
@IsNumberString({ no_symbols: true }, { message: "Transaction Total must be a number" })
|
38
38
|
transactionTotal: number;
|
39
39
|
}
|
40
40
|
|
@@ -70,7 +70,7 @@ export class PaymentRequestDto {
|
|
70
70
|
|
71
71
|
@ApiProperty({ description: "Total amount of the transaction" })
|
72
72
|
@IsNotEmpty({ message: "Transaction Total is required" })
|
73
|
-
@IsInt({ message: "
|
73
|
+
@IsInt({ message: "Invalid transaction total format" })
|
74
74
|
transactionTotal: number;
|
75
75
|
|
76
76
|
@ApiProperty({ description: "Charge currency" })
|
@@ -163,7 +163,7 @@ export class APIPaymentRequestDto {
|
|
163
163
|
|
164
164
|
@ApiProperty({ description: "Total amount of the transaction" })
|
165
165
|
@IsNotEmpty({ message: "Transaction Total is required" })
|
166
|
-
@
|
166
|
+
@IsNumberString({ no_symbols: true }, { message: "Transaction Total must be a number" })
|
167
167
|
transactionTotal: number;
|
168
168
|
|
169
169
|
@ApiProperty({ description: "URL of the request", required: false })
|