public function getPayout($payoutParam)
    {
        if (is_int($payoutParam)) {
            $payout = new GetPayoutRequestById($payoutParam);
        } else if (is_array($payoutParam)) {
            $payout = RequestCreator::create(GetPayoutRequest::class, $payoutParam);
        } else {
            $payout = $payoutParam;
        }

        ObjectRecursiveValidator::validate($payout);
        $payoutSerializer = new GetPayoutSerializer($payout);
        $payoutTransport = new GetPayoutTransport($payoutSerializer);

        return $this->execute($payoutTransport, GetPayoutResponse::class);
    }
public function getPayout($payoutParam)
    {
        if (is_int($payoutParam)) {
            $payout = new GetPayoutRequestById($payoutParam);
        } else if (is_array($payoutParam)) {
            $payout = RequestCreator::create(GetPayoutRequest::class, $payoutParam);
        } else {
            $payout = $payoutParam;
        }

        ObjectRecursiveValidator::validate($payout);
        $payoutSerializer = new GetPayoutSerializer($payout);
        $payoutTransport = new GetPayoutTransport($payoutSerializer);

        return $this->execute($payoutTransport, GetPayoutResponse::class);
    }
@param int|array|GetPayoutRequest|GetPayoutRequestById|AbstractRequest $payoutParam

@return GetPayoutResponse|AbstractResponse

@throws TransportException
@throws JsonParseException
@throws ResponseException
@throws ResponseParseException
@throws RequestParseException