original_string: 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'];
      }
code: 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'];
      }
code_tokens: 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' ] ; }
docstring: 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
docstring_tokens: Send an invite