public function sendInvite($customerId, CustomerInvite $invite = null)
    {
        $data = is_null($invite) ? array() : $invite->exportData();
        $endpoint = '/admin/customers/'.$customerId.'/send_invite.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'custom_invite' => $data
            )
        );
        return $response['customer_invite'];
    }
public function sendInvite($customerId, CustomerInvite $invite = null)
    {
        $data = is_null($invite) ? array() : $invite->exportData();
        $endpoint = '/admin/customers/'.$customerId.'/send_invite.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'custom_invite' => $data
            )
        );
        return $response['customer_invite'];
    }
public function sendInvite ( $ customerId , CustomerInvite $ invite = null ) { $ data = is_null ( $ invite ) ? array ( ) : $ invite -> exportData ( ) ; $ endpoint = '/admin/customers/' . $ customerId . '/send_invite.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'custom_invite' => $ data ) ) ; return $ response [ 'customer_invite' ] ; }
Send an invite

@todo   Return CustomInvite, instead of raw object
@link   https://help.shopify.com/api/reference/customer#send_invite
@param  integer $customerId
@return CustomerInvite
Send an invite