Skip to content

Commit

Permalink
Merge pull request #7 from maestro675/patch-2
Browse files Browse the repository at this point in the history
Update Order.php
  • Loading branch information
vladdnepr authored Jul 30, 2020
2 parents 5bd2ba9 + 84c3187 commit c5d1348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Domain/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public static function fromArray(array $data)

return new self(
$data['orderReference'],
new DateTime('@' . $data['createdDate']),
new DateTime(empty($data['createdDate']) ? null : '@' . $data['createdDate']),
$data['amount'],
$data['currency'],
$data['transactionStatus'],
new DateTime('@' . $data['processingDate']),
new DateTime(empty($data['processingDate']) ? null : '@' . $data['processingDate']),
$data['reasonCode'],
$data['reason'],
isset($data['cardPan']) ? $data['cardPan'] : null,
Expand Down Expand Up @@ -142,4 +142,4 @@ public function __construct(
$this->settlementAmount = $settlementAmount;
$this->refundAmount = $refundAmount;
}
}
}

0 comments on commit c5d1348

Please sign in to comment.