A fulfillment.
Public Properties | |
const | DIR = 'fulfillments' |
const | MAP |
const | SHIPMENT_COMPLETE = 'delivered' |
const | SHIPMENT_DELIVERING = 'out_for_delivery' |
const | SHIPMENT_FAILURE = 'failure' |
const | SHIPMENT_FREIGHTING = 'in_transit' |
const | SHIPMENT_LABEL_PRINTED = 'label_printed' |
const | SHIPMENT_LABEL_PURCHASED = 'label_purchased' |
const | SHIPMENT_PICKUP = 'ready_for_pickup' |
const | SHIPMENT_READY = 'confirmed' |
const | SHIPMENT_UNDELIVERED = 'attempted_delivery' |
const | STATUS_CANCELLED = 'cancelled' |
const | STATUS_ERROR = 'error' |
const | STATUS_FAILURE = 'failure' |
const | STATUS_OPEN = 'open' |
const | STATUS_PENDING = 'pending' |
const | STATUS_SUCCESS = 'success' |
const | TYPE = 'fulfillment' |
Public Properties inherited from AbstractEntity | |
const | DIR = '' |
All subclasses must redeclare this to match their REST directory (without container). More... | |
const | TYPE = '' |
All subclasses must redeclare this to match their types. More... | |
Public Properties inherited from Data | |
const | MAP = [] |
const | PATCH = [] |
Public Methods | |
$this | cancel () |
$this | complete () |
magic string | getCreatedAt () |
magic OrderItem[] | getLineItems () |
magic string | getLocationId () |
magic string | getName () |
Order | getOrder () |
magic string | getOrderId () |
injected More... | |
magic null Receipt | getReceipt () |
magic string | getService () |
magic string | getShipmentStatus () |
magic string | getStatus () |
magic string | getTrackingCompany () |
magic string[] | getTrackingNumbers () |
magic string[] | getTrackingUrls () |
magic string | getUpdatedAt () |
magic string | getVariantInventoryManagement () |
magic bool | isNotifyCustomer () |
OrderItem | newItem (string $orderItemId) |
$this | open () |
magic $this | setNotifyCustomer (bool $notify) |
magic $this | setTrackingCompany (string $company) |
magic $this | setTrackingNumbers (string[] $numbers) |
magic $this | setTrackingUrls (string[] $urls) |
Public Methods inherited from AbstractEntity | |
string | __toString () |
null string | getId () |
string[] | getPoolKeys () |
bool | hasId () |
$this | reload () |
Fully reloads the entity from Shopify. More... | |
Public Methods inherited from Data | |
mixed | __call (string $method, array $args) |
__construct ($caller, array $data=[]) | |
string | serialize () |
Dehydrated JSON encode. More... | |
array | toArray () |
void | unserialize ($serialized) |
Public Methods inherited from CreateTrait | |
$this | create () |
Protected Methods | |
_container () | |
The container/owner object, if any. More... | |
Protected Methods inherited from AbstractEntity | |
mixed | _get (string $field) |
Lazy-loads missing fields. More... | |
void | _onDelete () |
void | _onSave () |
void | _reload (string $field) |
Protected Methods inherited from Data | |
mixed | _hydrate (string $class, $item) |
A factory that also hydrates / caches entities. More... | |
array | _select ($subject, callable $filter,... $args) |
Magic method: selectField(callable $filter) More... | |
$this | _setData (array $data) |
Clears all diffs and sets all data, hydrating mapped fields. More... | |
$this | _setField (string $field, $value) |
Sets a value, hydrating if mapped, and clears the diff. More... | |
Protected Methods inherited from CreateTrait | |
string | _dir () |
The POST directory. More... | |
Additional Inherited Members | |
Protected Properties inherited from Data | |
Api | $api |
Pool | $pool |
Public Static Methods inherited from AbstractEntity | |
static null self | load ($caller, string $id, array $query=[]) |
static self[] | loadAll ($caller, string $path, array $query=[]) |
const MAP |
|
protected |
$this cancel | ( | ) |
$this complete | ( | ) |
magic string getCreatedAt | ( | ) |
magic string getLocationId | ( | ) |
magic string getName | ( | ) |
magic string getOrderId | ( | ) |
injected
magic null Receipt getReceipt | ( | ) |
magic string getService | ( | ) |
magic string getShipmentStatus | ( | ) |
magic string getStatus | ( | ) |
magic string getTrackingCompany | ( | ) |
magic string [] getTrackingNumbers | ( | ) |
magic string [] getTrackingUrls | ( | ) |
magic string getUpdatedAt | ( | ) |
magic string getVariantInventoryManagement | ( | ) |
magic bool isNotifyCustomer | ( | ) |
$this open | ( | ) |
magic $this setNotifyCustomer | ( | bool | $notify | ) |
magic $this setTrackingCompany | ( | string | $company | ) |
magic $this setTrackingNumbers | ( | string[] | $numbers | ) |
magic $this setTrackingUrls | ( | string[] | $urls | ) |