resurgence-data 1.1.29 → 1.1.30

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.
@@ -248,3 +248,7 @@ export interface FlutterwaveOTPPayload {
248
248
  otp: string;
249
249
  flwRef: string;
250
250
  }
251
+ export interface TransactionCachePayload {
252
+ flwRef: string;
253
+ transactionReference: string;
254
+ }
@@ -61,3 +61,7 @@ export declare class CardChargeAuthorizationDto {
61
61
  country?: string;
62
62
  zipcode?: string;
63
63
  }
64
+ export declare class CardValidationPayload {
65
+ transactionReference: string;
66
+ otp: string;
67
+ }
@@ -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.CardChargeAuthorizationDto = exports.CardChargeDTO = exports.APIPaymentRequestDto = exports.PaymentRequestDto = exports.TransactionSplitDto = void 0;
12
+ exports.CardValidationPayload = exports.CardChargeAuthorizationDto = exports.CardChargeDTO = exports.APIPaymentRequestDto = exports.PaymentRequestDto = exports.TransactionSplitDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class TransactionSplitDto {
@@ -336,3 +336,16 @@ __decorate([
336
336
  (0, class_validator_1.IsString)({ message: "Please enter your zip code" }),
337
337
  __metadata("design:type", String)
338
338
  ], CardChargeAuthorizationDto.prototype, "zipcode", void 0);
339
+ class CardValidationPayload {
340
+ }
341
+ exports.CardValidationPayload = CardValidationPayload;
342
+ __decorate([
343
+ (0, swagger_1.ApiProperty)({ description: "Transaction reference" }),
344
+ (0, class_validator_1.IsNotEmpty)({ message: "Transaction reference is required" }),
345
+ __metadata("design:type", String)
346
+ ], CardValidationPayload.prototype, "transactionReference", void 0);
347
+ __decorate([
348
+ (0, swagger_1.ApiProperty)({ description: "OTP sent to the customer" }),
349
+ (0, class_validator_1.IsNotEmpty)({ message: "OTP is required" }),
350
+ __metadata("design:type", String)
351
+ ], CardValidationPayload.prototype, "otp", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -263,3 +263,7 @@ export interface FlutterwaveOTPPayload {
263
263
  otp: string;
264
264
  flwRef: string;
265
265
  }
266
+ export interface TransactionCachePayload {
267
+ flwRef: string;
268
+ transactionReference: string;
269
+ }
@@ -271,3 +271,13 @@ export class CardChargeAuthorizationDto {
271
271
  @IsString({ message: "Please enter your zip code" })
272
272
  zipcode?: string;
273
273
  }
274
+
275
+ export class CardValidationPayload {
276
+ @ApiProperty({ description: "Transaction reference" })
277
+ @IsNotEmpty({ message: "Transaction reference is required" })
278
+ transactionReference: string;
279
+
280
+ @ApiProperty({ description: "OTP sent to the customer" })
281
+ @IsNotEmpty({ message: "OTP is required" })
282
+ otp: string;
283
+ }