public function build()
 {
     $refund = new Refund();
     $refund->setAmount($this->getAmount());
     $refund->setReason($this->getReason());
     $refund->setMetaData($this->getMetaData());
     $refundRequest = new RefundRequest();
     $refundRequest->setRefundApplicationFee($this->isRefundApplicationFee());
     $refundRequest->setReverseTransfer($this->isReverseTransfer());
     $refund->setRequest($refundRequest);
     return $refund;
 }
 public function build()
 {
     $refund = new Refund();
     $refund->setMetaData($this->getMetaData());
     return $refund;
 }