Skip to content

Commit 44969cc

Browse files
committed
Date added.
1 parent 4dd706d commit 44969cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Account/Entities/InvoiceQuery.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ class InvoiceQuery
6161
*/
6262
public $status;
6363

64+
/**
65+
* @var \DateTime
66+
*/
67+
public $date;
68+
6469
/**
6570
* InvoiceQuery constructor.
6671
*
@@ -76,6 +81,10 @@ public function __construct($item = null)
7681
? DateTime::createFromFormat(DateTime::ISO8601, $item->resolution_date)
7782
: null;
7883

84+
$date = ($item->date != null)
85+
? DateTime::createFromFormat(DateTime::ISO8601, $item->date)
86+
: null;
87+
7988
$this->id = $item->id;
8089
$this->contactId = $item->contact_id;
8190
$this->amount = $item->amount;
@@ -86,6 +95,7 @@ public function __construct($item = null)
8695
$this->contactMethod = $item->contact_method;
8796
$this->resolution = $item->resolution;
8897
$this->resolutionDate = $resolutionDate;
98+
$this->date = $date;
8999
$this->status = $item->status;
90100
}
91101
}

0 commit comments

Comments
 (0)