public function getWalletInfo($walletRequest)
    {
        if (!$walletRequest instanceof WalletRequest) {
            $walletRequest = new WalletRequest($walletRequest);
        }

        ObjectRecursiveValidator::validate($walletRequest);
        $walletSerializer = new WalletSerializer($walletRequest);

        return $this->execute($walletRequest->getTransport($walletSerializer), WalletResponse::class);
    }
public function getWalletInfo($walletRequest)
    {
        if (!$walletRequest instanceof WalletRequest) {
            $walletRequest = new WalletRequest($walletRequest);
        }

        ObjectRecursiveValidator::validate($walletRequest);
        $walletSerializer = new WalletSerializer($walletRequest);

        return $this->execute($walletRequest->getTransport($walletSerializer), WalletResponse::class);
    }
@param string|WalletRequest $walletRequest

@return AbstractResponse

@throws ResponseException
@throws TransportException