resurgence-data 1.1.22 → 1.1.24

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.
@@ -39,7 +39,7 @@ export declare class APIPaymentRequestDto {
39
39
  customerPhoneNumber?: string;
40
40
  transactionSplits?: TransactionSplitDto[];
41
41
  }
42
- export declare class cardChargeDTO {
42
+ export declare class CardChargeDTO {
43
43
  currency: string;
44
44
  cardNumber: string;
45
45
  cvv: string;
@@ -18,7 +18,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
18
18
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- exports.cardChargeDTO = exports.APIPaymentRequestDto = exports.PaymentRequestDto = exports.TransactionSplitDto = void 0;
21
+ exports.CardChargeDTO = exports.APIPaymentRequestDto = exports.PaymentRequestDto = exports.TransactionSplitDto = void 0;
22
22
  const swagger_1 = require("@nestjs/swagger");
23
23
  const class_validator_1 = require("class-validator");
24
24
  const class_validator_2 = require("class-validator");
@@ -236,59 +236,59 @@ __decorate([
236
236
  (0, class_validator_2.IsOptional)(),
237
237
  __metadata("design:type", Array)
238
238
  ], APIPaymentRequestDto.prototype, "transactionSplits", void 0);
239
- class cardChargeDTO {
239
+ class CardChargeDTO {
240
240
  }
241
- exports.cardChargeDTO = cardChargeDTO;
241
+ exports.CardChargeDTO = CardChargeDTO;
242
242
  __decorate([
243
243
  (0, swagger_1.ApiProperty)({ description: "Charge currency" }),
244
244
  (0, class_validator_1.IsNotEmpty)({ message: "Please check your currency" }),
245
245
  __metadata("design:type", String)
246
- ], cardChargeDTO.prototype, "currency", void 0);
246
+ ], CardChargeDTO.prototype, "currency", void 0);
247
247
  __decorate([
248
248
  (0, swagger_1.ApiProperty)({ description: "Card number" }),
249
249
  (0, class_validator_1.IsNotEmpty)({ message: "Seems you need to check the card number" }),
250
250
  (0, class_validator_1.IsNumberString)(),
251
251
  (0, class_validator_1.MinLength)(8, { message: "Please check you card number" }),
252
252
  __metadata("design:type", String)
253
- ], cardChargeDTO.prototype, "cardNumber", void 0);
253
+ ], CardChargeDTO.prototype, "cardNumber", void 0);
254
254
  __decorate([
255
255
  (0, swagger_1.ApiProperty)({ description: "Charge CVV" }),
256
256
  (0, class_validator_1.IsNotEmpty)({ message: "You must provide a security code" }),
257
257
  (0, class_validator_1.IsNumberString)(),
258
258
  (0, class_validator_1.Length)(3, 3, { message: "Please check your security code" }),
259
259
  __metadata("design:type", String)
260
- ], cardChargeDTO.prototype, "cvv", void 0);
260
+ ], CardChargeDTO.prototype, "cvv", void 0);
261
261
  __decorate([
262
262
  (0, swagger_1.ApiProperty)({ description: "Card Expiry month" }),
263
263
  (0, class_validator_1.IsNotEmpty)({ message: "Check your card expiry month" }),
264
264
  (0, class_validator_1.IsNumberString)(),
265
265
  (0, class_validator_1.Length)(2, 2, { message: "Expiry month must be 2 digits" }),
266
266
  __metadata("design:type", String)
267
- ], cardChargeDTO.prototype, "expiryMonth", void 0);
267
+ ], CardChargeDTO.prototype, "expiryMonth", void 0);
268
268
  __decorate([
269
269
  (0, swagger_1.ApiProperty)({ description: "Card Expiry year" }),
270
270
  (0, class_validator_1.IsNotEmpty)({ message: "Check your card expiry year" }),
271
271
  (0, class_validator_1.IsNumberString)(),
272
272
  (0, class_validator_1.Length)(2, 2, { message: "Expiry year must be 2 digits" }),
273
273
  __metadata("design:type", String)
274
- ], cardChargeDTO.prototype, "expiryYear", void 0);
274
+ ], CardChargeDTO.prototype, "expiryYear", void 0);
275
275
  __decorate([
276
276
  (0, swagger_1.ApiProperty)({ description: "Email address for the customer" }),
277
277
  (0, class_validator_1.IsNotEmpty)({ message: "Customer email address is required" }),
278
278
  __metadata("design:type", String)
279
- ], cardChargeDTO.prototype, "emailAddress", void 0);
279
+ ], CardChargeDTO.prototype, "emailAddress", void 0);
280
280
  __decorate([
281
281
  (0, swagger_1.ApiProperty)({ description: "Transaction reference" }),
282
282
  (0, class_validator_1.IsNotEmpty)({ message: "Transaction reference is required" }),
283
283
  __metadata("design:type", String)
284
- ], cardChargeDTO.prototype, "transactionReference", void 0);
284
+ ], CardChargeDTO.prototype, "transactionReference", void 0);
285
285
  __decorate([
286
286
  (0, swagger_1.ApiProperty)({ description: "Card holders full name" }),
287
287
  (0, class_validator_2.IsOptional)(),
288
288
  __metadata("design:type", String)
289
- ], cardChargeDTO.prototype, "cardHolderName", void 0);
289
+ ], CardChargeDTO.prototype, "cardHolderName", void 0);
290
290
  __decorate([
291
291
  (0, swagger_1.ApiProperty)({ description: "3D Secure redirect url for customer" }),
292
292
  (0, class_validator_2.IsOptional)(),
293
293
  __metadata("design:type", String)
294
- ], cardChargeDTO.prototype, "redirectUrl", void 0);
294
+ ], CardChargeDTO.prototype, "redirectUrl", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -197,7 +197,7 @@ export class APIPaymentRequestDto {
197
197
  transactionSplits?: TransactionSplitDto[];
198
198
  }
199
199
 
200
- export class cardChargeDTO {
200
+ export class CardChargeDTO {
201
201
  @ApiProperty({ description: "Charge currency" })
202
202
  @IsNotEmpty({ message: "Please check your currency" })
203
203
  currency: string;