/**
  * Fill fields of payment data objects by date from PaynetEasy response.
  *
  * @param       PaymentTransaction      $paymentTransaction     Payment transaction to fill.
  * @param       Response                $response               PaynetEasy response to get data from.
  */
 protected function setFieldsFromResponse(PaymentTransaction $paymentTransaction, Response $response)
 {
     $payment = $paymentTransaction->getPayment();
     $card = $payment->getRecurrentCardFrom();
     if ($response->offsetExists('card-ref-id')) {
         $card->setPaynetId($response['card-ref-id']);
     }
     if ($response->offsetExists('last-four-digits')) {
         $card->setLastFourDigits($response['last-four-digits']);
     }
     if ($response->offsetExists('bin')) {
         $card->setBin($response['bin']);
     }
     if ($response->offsetExists('cardholder-name')) {
         $card->setCardPrintedName($response['cardholder-name']);
     }
     if ($response->offsetExists('card-exp-month')) {
         $card->setExpireMonth($response['card-exp-month']);
     }
     if ($response->offsetExists('card-exp-year')) {
         $card->setExpireYear($response['card-exp-year']);
     }
     if ($response->offsetExists('card-hash-id')) {
         $card->setCardHashId($response['card-hash-id']);
     }
     if ($response->offsetExists('card-type')) {
         $card->setCardType($response['card-type']);
     }
 }