UNPKG

@takentrade/takentrade-libs

Version:
98 lines (97 loc) 3.73 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetWithdrawalHistoryDto = exports.VerifyWithdrawalDto = exports.InitiateWithdrawalDto = void 0; const swagger_1 = require("@nestjs/swagger"); const class_validator_1 = require("class-validator"); class InitiateWithdrawalDto { amount; bankCode; accountNumber; narration; metadata; userId; } exports.InitiateWithdrawalDto = InitiateWithdrawalDto; __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsNumber)(), (0, class_validator_1.IsNotEmpty)() ], InitiateWithdrawalDto.prototype, "amount", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)() ], InitiateWithdrawalDto.prototype, "bankCode", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)() ], InitiateWithdrawalDto.prototype, "accountNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsOptional)() ], InitiateWithdrawalDto.prototype, "narration", void 0); __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsOptional)() ], InitiateWithdrawalDto.prototype, "metadata", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsUUID)(), (0, class_validator_1.IsNotEmpty)() ], InitiateWithdrawalDto.prototype, "userId", void 0); class VerifyWithdrawalDto { reference; userId; } exports.VerifyWithdrawalDto = VerifyWithdrawalDto; __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsString)(), (0, class_validator_1.IsNotEmpty)() ], VerifyWithdrawalDto.prototype, "reference", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsUUID)(), (0, class_validator_1.IsNotEmpty)() ], VerifyWithdrawalDto.prototype, "userId", void 0); class GetWithdrawalHistoryDto { startDate; endDate; page; limit; userId; } exports.GetWithdrawalHistoryDto = GetWithdrawalHistoryDto; __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsOptional)() ], GetWithdrawalHistoryDto.prototype, "startDate", void 0); __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsString)(), (0, class_validator_1.IsOptional)() ], GetWithdrawalHistoryDto.prototype, "endDate", void 0); __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsNumber)(), (0, class_validator_1.IsOptional)() ], GetWithdrawalHistoryDto.prototype, "page", void 0); __decorate([ (0, swagger_1.ApiProperty)({ required: false }), (0, class_validator_1.IsNumber)(), (0, class_validator_1.IsOptional)() ], GetWithdrawalHistoryDto.prototype, "limit", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, class_validator_1.IsUUID)(), (0, class_validator_1.IsNotEmpty)() ], GetWithdrawalHistoryDto.prototype, "userId", void 0);