Cancellation request model
Represents a cancellation request for a given order. Can be used to confirm cancellation in a second step.
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
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
getAuthorization() : string
Used for order settlement
string
getCurrency() : string
Returns an alphanumeric currency code according to ISO 4217.
string
getOrderId() : integer
integer
getRefundAmount() : float
float
getSettlementData(string $reason = '') : array
string
Description why this order is cancelled
array
Hash array to be submitted as POST data
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