Order model
Represents an order record retrieved from the API.
package |
NextEvent\PHPSDK\Model |
---|
__call(string $name, array $args) : mixed
If the source of your model contains, e.g. a property named 'my_property',
you can call getMyProperty()
to retrieve it's value.
string
array
mixed
__construct(array $source)
Parse source data.
Throws |
|
---|
array
The source data as received from the API
allTicketsIssued() : boolean
As opposed to hasTickets()
, this only returns true
if tickets for this order are available AND have been issued
as PDF documents.
boolean
expectDocuments() : boolean
boolean
get(string $var) : mixed
Should be used, if you expect the model to have custom properties which are not known/covered by the known getters
string
mixed
getCurrency() : string
string
ISO 4217 currency code
getDocuments() : array
array
of OrderDocument models
getExpires() : \NextEvent\PHPSDK\Model\DateTime|null
Can be null if the orders has no specific expiration date
\NextEvent\PHPSDK\Model\DateTime|null
getId() : integer
integer
orderId
getOrderDate() : \NextEvent\PHPSDK\Model\DateTime|null
getOrderItems() : array<mixed,\NextEvent\PHPSDK\Model\OrderItem>
getState() : string
Possible values are: payment, reservation, completed, aborted, replaced, cancelled
string
getTickets( $force = false) : array<mixed,\NextEvent\PHPSDK\Model\Ticket>
Throws |
|
---|
array<mixed,\NextEvent\PHPSDK\Model\Ticket>
getTotal() : float
float
getUuid() : string
string
UUID
hasDocuments() : boolean
This chech includes tickets
boolean
hasTickets() : boolean
boolean
isComplete() : boolean
boolean
isValid() : boolean
boolean
serialize() : string
Implements Serializable interface
string
toArray() : array
array
toLogContext() : array
Implements the LogContextInterface interface
array
toString() : string
string
unserialize( $serialized)
Implements Serializable interface