Updated RefundedPayment
This commit is contained in:
parent
22eeeca427
commit
20cd2aeacf
1 changed files with 6 additions and 2 deletions
|
@ -81,10 +81,14 @@ class RefundedPayment implements ObjectTypeInterface
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function fromArray(array $data): ObjectTypeInterface
|
||||
public static function fromArray(?array $data): ?RefundedPayment
|
||||
{
|
||||
$object = new self();
|
||||
if($data === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
$object = new self();
|
||||
$object->currency = $data['currency'];
|
||||
$object->total_amount = $data['total_amount'];
|
||||
$object->invoice_payload = $data['invoice_payload'];
|
||||
|
|
Loading…
Add table
Reference in a new issue