Inheritance: extends SerializerAbstract
 /**
  * @return array
  */
 protected function serializeDelivery()
 {
     /** @var $delivery \Payu\Component\Delivery */
     $delivery = $this->request->getDelivery();
     if (!$delivery) {
         return array();
     }
     return parent::serializeDelivery();
 }
 public function build()
 {
     $request = new PaymentRequest($this->card, $this->order, $this->billing, $this->delivery, $this->basket);
     $validator = new PaymentRequestValidator($request);
     $validator->validate();
     $serializer = new PaymentRequestSerializer($request, $this->configuration);
     $rawData = $serializer->serialize();
     $request->setRawData($rawData);
     return $request;
 }