for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\AltaPay\Response\Partial\Transaction;
use Loevgaard\AltaPay\Response\Partial\PartialResponse;
class PaymentNatureService extends PartialResponse
{
/**
* @var string
*/
private $name;
* @var boolean
private $supportsRefunds;
private $supportsRelease;
private $supportsMultipleCaptures;
private $supportsMultipleRefunds;
* @return string
public function getName() : string
return $this->name;
}
* @return bool
public function getSupportsRefunds() : bool
return $this->supportsRefunds;
public function getSupportsRelease() : bool
return $this->supportsRelease;
public function getSupportsMultipleCaptures() : bool
return $this->supportsMultipleCaptures;
public function getSupportsMultipleRefunds() : bool
return $this->supportsMultipleRefunds;
protected function init()
$this->name = (string)$this->xmlDoc['name'];
$this->supportsRefunds = (string)$this->xmlDoc->SupportsRefunds === 'true';
$this->supportsRelease = (string)$this->xmlDoc->SupportsRelease === 'true';
$this->supportsMultipleCaptures = (string)$this->xmlDoc->SupportsMultipleCaptures === 'true';
$this->supportsMultipleRefunds = (string)$this->xmlDoc->SupportsMultipleRefunds === 'true';