public function create($orderId, $fulfillmentId, FulfillmentEvent &$fulfillmentEvent)
    {
        $data = $fulfillmentEvent->exportData();
        $endpoint = '/admin/orders/'.$orderId.'/fulfillments/'.$fulfillmentId.'/events.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'fulfillment_event' => $data
            )
        );
        $fulfillmentEvent->setData($response['fulfillment_event']);
    }
public function create($orderId, $fulfillmentId, FulfillmentEvent &$fulfillmentEvent)
    {
        $data = $fulfillmentEvent->exportData();
        $endpoint = '/admin/orders/'.$orderId.'/fulfillments/'.$fulfillmentId.'/events.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'fulfillment_event' => $data
            )
        );
        $fulfillmentEvent->setData($response['fulfillment_event']);
    }
public function create ( $ orderId , $ fulfillmentId , FulfillmentEvent & $ fulfillmentEvent ) { $ data = $ fulfillmentEvent -> exportData ( ) ; $ endpoint = '/admin/orders/' . $ orderId . '/fulfillments/' . $ fulfillmentId . '/events.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'fulfillment_event' => $ data ) ) ; $ fulfillmentEvent -> setData ( $ response [ 'fulfillment_event' ] ) ; }
Create a fulfillment event

@link   https://help.shopify.com/api/reference/fulfillmentevent#create
@param  integer          $orderId
@param  integer          $fulfillmentId
@param  FulfillmentEvent $fulfillmentEvent
@return void
Create a fulfillment event