src/Operation/OrderConfirm.php
public function send(OrderInterface $order, $customerId = null)
    {
        $request = new ApiRequest();
        if (!empty($customerId)) {
            $request->setPath(ApiRequest::PATH_ORDER_TAGGING);
            $replaceParams = array('{m}' => $this->account->getName(), '{cid}' => $customerId);
        } else {
            $request->setPath(ApiRequest::PATH_UNMATCHED_ORDER_TAGGING);
            $replaceParams = array('{m}' => $this->account->getName());
        }
        if (is_string($this->activeDomain)) {
            $request->setActiveDomainHeader($this->activeDomain);
        }
        if (is_string($this->account->getName())) {
            $request->setNostoAccountHeader($this->account->getName());
        }
        $request->setReplaceParams($replaceParams);
        $response = $request->post($order);
        return self::checkResponse($request, $response);
    }
public function send(OrderInterface $order, $customerId = null)
    {
        $request = new ApiRequest();
        if (!empty($customerId)) {
            $request->setPath(ApiRequest::PATH_ORDER_TAGGING);
            $replaceParams = array('{m}' => $this->account->getName(), '{cid}' => $customerId);
        } else {
            $request->setPath(ApiRequest::PATH_UNMATCHED_ORDER_TAGGING);
            $replaceParams = array('{m}' => $this->account->getName());
        }
        if (is_string($this->activeDomain)) {
            $request->setActiveDomainHeader($this->activeDomain);
        }
        if (is_string($this->account->getName())) {
            $request->setNostoAccountHeader($this->account->getName());
        }
        $request->setReplaceParams($replaceParams);
        $response = $request->post($order);
        return self::checkResponse($request, $response);
    }
public function send ( OrderInterface $ order , $ customerId = null ) { $ request = new ApiRequest ( ) ; if ( ! empty ( $ customerId ) ) { $ request -> setPath ( ApiRequest :: PATH_ORDER_TAGGING ) ; $ replaceParams = array ( '{m}' => $ this -> account -> getName ( ) , '{cid}' => $ customerId ) ; } else { $ request -> setPath ( ApiRequest :: PATH_UNMATCHED_ORDER_TAGGING ) ; $ replaceParams = array ( '{m}' => $ this -> account -> getName ( ) ) ; } if ( is_string ( $ this -> activeDomain ) ) { $ request -> setActiveDomainHeader ( $ this -> activeDomain ) ; } if ( is_string ( $ this -> account -> getName ( ) ) ) { $ request -> setNostoAccountHeader ( $ this -> account -> getName ( ) ) ; } $ request -> setReplaceParams ( $ replaceParams ) ; $ response = $ request -> post ( $ order ) ; return self :: checkResponse ( $ request , $ response ) ; }
Sends the OrderConfirm confirmation to Nosto.

@param OrderInterface $order the placed OrderConfirm model.
@param string|null $customerId the Nosto customer ID of the user who placed the OrderConfirm.
@return true on success.
@throws AbstractHttpException
Sends the OrderConfirm confirmation to Nosto .