def create(deal_id, associated_contact)
      validate_type!(associated_contact)

      attributes = sanitize(associated_contact)
      _, _, root = @client.post("/deals/#{deal_id}/associated_contacts", attributes)

      AssociatedContact.new(root[:data])
    end
def create(deal_id, associated_contact)
      validate_type!(associated_contact)

      attributes = sanitize(associated_contact)
      _, _, root = @client.post("/deals/#{deal_id}/associated_contacts", attributes)

      AssociatedContact.new(root[:data])
    end
Create an associated contact

 post '/deals/{deal_id}/associated_contacts'

 Creates a deal's associated contact and its role
 If the specified deal or contact does not exist, the request will return an error

 @param deal_id [Integer] Unique identifier of a Deal
 @param associated_contact [AssociatedContact, Hash] Either object of the AssociatedContact type or Hash. This object's attributes describe the object to be created.
 @return [AssociatedContact] The resulting object represting created resource.