resurgence-data 1.1.36 → 1.1.37

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.
@@ -12,6 +12,7 @@ export declare class PaymentRequestDto {
12
12
  invoiceId?: string;
13
13
  paymentPageId?: string;
14
14
  transactionTotal: number;
15
+ currency: string;
15
16
  requestChannel: string;
16
17
  processorId?: string;
17
18
  ipAddress?: string;
@@ -30,6 +31,7 @@ export declare class APIPaymentRequestDto {
30
31
  invoiceId?: string;
31
32
  paymentPageId?: string;
32
33
  ipAddress?: string;
34
+ currency: string;
33
35
  transactionTotal: number;
34
36
  requestUrl?: string;
35
37
  redirectUrl?: string;
@@ -83,6 +83,11 @@ __decorate([
83
83
  (0, class_validator_1.IsInt)({ message: "Transaction Total must be the lowest currency denomination" }),
84
84
  __metadata("design:type", Number)
85
85
  ], PaymentRequestDto.prototype, "transactionTotal", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiProperty)({ description: "Charge currency" }),
88
+ (0, class_validator_1.IsNotEmpty)({ message: "Please check your currency" }),
89
+ __metadata("design:type", String)
90
+ ], PaymentRequestDto.prototype, "currency", void 0);
86
91
  __decorate([
87
92
  (0, swagger_1.ApiProperty)({ description: "Channel through which the request was made" }),
88
93
  (0, class_validator_1.IsIn)(["WEB", "MOBILE", "POS"], { message: "Request channel must be one of 'WEB', 'MOBILE', 'POS'" }),
@@ -180,6 +185,11 @@ __decorate([
180
185
  (0, class_validator_1.IsIP)("4", { message: "IP address must be a valid IP address" }),
181
186
  __metadata("design:type", String)
182
187
  ], APIPaymentRequestDto.prototype, "ipAddress", void 0);
188
+ __decorate([
189
+ (0, swagger_1.ApiProperty)({ description: "Charge currency" }),
190
+ (0, class_validator_1.IsNotEmpty)({ message: "Please check your currency" }),
191
+ __metadata("design:type", String)
192
+ ], APIPaymentRequestDto.prototype, "currency", void 0);
183
193
  __decorate([
184
194
  (0, swagger_1.ApiProperty)({ description: "Total amount of the transaction" }),
185
195
  (0, class_validator_1.IsNotEmpty)({ message: "Transaction Total is required" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -73,6 +73,10 @@ export class PaymentRequestDto {
73
73
  @IsInt({ message: "Transaction Total must be the lowest currency denomination" })
74
74
  transactionTotal: number;
75
75
 
76
+ @ApiProperty({ description: "Charge currency" })
77
+ @IsNotEmpty({ message: "Please check your currency" })
78
+ currency: string;
79
+
76
80
  @ApiProperty({ description: "Channel through which the request was made" })
77
81
  @IsIn(["WEB", "MOBILE", "POS"], { message: "Request channel must be one of 'WEB', 'MOBILE', 'POS'" })
78
82
  @IsNotEmpty({ message: "Request channel is required" })
@@ -153,6 +157,10 @@ export class APIPaymentRequestDto {
153
157
  @IsIP("4", { message: "IP address must be a valid IP address" })
154
158
  ipAddress?: string;
155
159
 
160
+ @ApiProperty({ description: "Charge currency" })
161
+ @IsNotEmpty({ message: "Please check your currency" })
162
+ currency: string;
163
+
156
164
  @ApiProperty({ description: "Total amount of the transaction" })
157
165
  @IsNotEmpty({ message: "Transaction Total is required" })
158
166
  @IsInt({ message: "Transaction Total must be the lowest currency denomination" })