code: 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);
      }
docs: @param string|WalletRequest $walletRequest
  
  @return AbstractResponse
  
  @throws ResponseException
  @throws TransportException