zen_ex v0.3.2 ZenEx.Model.Ticket

Provides functions to operate Zendesk Ticket.

Summary

Functions

Create ticket

Create multiple tickets

Delete ticket specified by id

Delete multiple tickets specified by id

List tickets

Show ticket specified by id

Update ticket specified by id

Update multiple tickets specified by id

Functions

create(ticket)
create(%ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}) :: %ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}

Create ticket.

Examples

iex> ZenEx.Model.Ticket.create(%ZenEx.Entity.Ticket{requester_id: xxx, subject: "Ticket Subject", description: "Ticket desc", ...})
%ZenEx.Entity.Ticket{requester_id: xxx, ...}
create_many(tickets)
create_many([%ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}]) :: %ZenEx.Entity.JobStatus{id: term, message: term, progress: term, results: term, status: term, total: term, url: term}

Create multiple tickets.

Examples

iex> ZenEx.Model.Ticket.create_many([%ZenEx.Entity.Ticket{requester_id: xxx, subject: "Ticket Subject", description: "Ticket desc", ...}, ...])
%ZenEx.Entity.JobStatus{id: "xxx"}
destroy(id)
destroy(integer) :: :ok | :error

Delete ticket specified by id.

Examples

iex> ZenEx.Model.Ticket.destroy(1)
:ok
destroy_many(ids)
destroy_many([integer]) :: %ZenEx.Entity.JobStatus{id: term, message: term, progress: term, results: term, status: term, total: term, url: term}

Delete multiple tickets specified by id.

Examples

iex> ZenEx.Model.Ticket.destroy_many([xxx, ...])
%ZenEx.Entity.JobStatus{id: "xxx"}
list(opts \\ [])

List tickets.

Examples

iex> ZenEx.Model.Ticket.list
%ZenEx.Collection{}
show(id)
show(integer) :: %ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}

Show ticket specified by id.

Examples

iex> ZenEx.Model.Ticket.show(1)
%ZenEx.Entity.Ticket{id: 1, requester_id: xxx, subject: "Ticket Subject", description: "Ticket desc", ...}
update(ticket)
update(%ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}) :: %ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}

Update ticket specified by id.

Examples

iex> ZenEx.Model.Ticket.update(%ZenEx.Entity.Ticket{id: 1, requester_id: xxx, subject: "Ticket Subject", description: "Ticket desc", ...})
%ZenEx.Entity.Ticket{id: 1, requester_id: xxx, ...}
update_many(tickets)
update_many([%ZenEx.Entity.Ticket{assignee_id: term, collaborator_ids: term, created_at: term, custom_fields: term, description: term, due_at: term, external_id: term, forum_topic_id: term, group_id: term, has_incidents: term, id: term, organization_id: term, priority: term, problem_id: term, raw_subject: term, recipient: term, requester_id: term, satisfaction_rating: term, sharing_agreement_ids: term, status: term, subject: term, submitter_id: term, tags: term, ticket_form_id: term, type: term, updated_at: term, url: term, via: term}]) :: %ZenEx.Entity.JobStatus{id: term, message: term, progress: term, results: term, status: term, total: term, url: term}

Update multiple tickets specified by id.

Examples

iex> ZenEx.Model.Ticket.update_many([%ZenEx.Entity.Ticket{id: xxx, requester_id: xxx, subject: "Ticket Subject", description: "Ticket desc", ...}, ...])
%ZenEx.Entity.JobStatus{id: "xxx"}