From 257d0e9f09afa6577063b793972dde328f6b7756 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Wed, 18 Jun 2025 09:48:09 +0300 Subject: [PATCH] PM-1278 - return minWithdrawAmount in wallet details --- src/api/wallet/wallet.service.ts | 2 ++ src/dto/wallet.dto.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/api/wallet/wallet.service.ts b/src/api/wallet/wallet.service.ts index 69f2250..3c3ab40 100644 --- a/src/api/wallet/wallet.service.ts +++ b/src/api/wallet/wallet.service.ts @@ -13,6 +13,7 @@ import { } from 'src/shared/global/trolley.service'; import { Logger } from 'src/shared/global'; import { IdentityVerificationRepository } from '../repository/identity-verification.repo'; +import { ENV_CONFIG } from 'src/config'; /** * The winning service. @@ -101,6 +102,7 @@ export class WalletService { isSetupComplete: isIdentityVerified, }, ...(taxWithholdingDetails ?? {}), + minWithdrawAmount: ENV_CONFIG.TROLLEY_MINIMUM_PAYMENT_AMOUNT ?? 0, }; } catch (error) { this.logger.error('Getting winnings audit failed', error); diff --git a/src/dto/wallet.dto.ts b/src/dto/wallet.dto.ts index 129090d..02e1766 100644 --- a/src/dto/wallet.dto.ts +++ b/src/dto/wallet.dto.ts @@ -40,4 +40,5 @@ export class WalletDetailDto { primaryCurrency?: string | null; estimatedFees?: string | null; taxWithholdingPercentage?: string | null; + minWithdrawAmount: number; }