Fulfillment

Ful­fill­ment objects are used to rep­re­sent saved fulfillments.

Attributes

Description

id

The ID of the fulfillment.

orderId

The ID of the order that the fulfillment belongs to.

trackingNumber

The tracking number that has been saved to the fulfillment.

Methods

Description

getOrder()

Returns the Order element that the fulfillment belongs to.

setOrder(Order $order)

Sets the Order that the fulfillment belongs to.

getTrackingCarrier()

Returns an instance of the tracking carrier.

getFulfillmentLines()

Returns an array of fulfillment lines.

setFulfillmentLines(array $fulfillmentLines)

Accepts an array of fulfillment lines and replaces all lines in the fulfillment.

addFulfillmentLine(FulfillmentLine $fulfillmentLine)

Appends a fulfillment line to the fulfillment.