module PlentyClient::Ticket
Constants
- ADD_MESSAGE
- CREATE_TICKET
- GET_TICKET
- LIST_TICKETS
Public Class Methods
add_message(ticket_id, body = {})
click to toggle source
# File lib/plenty_client/ticket.rb, line 22 def add_message(ticket_id, body = {}) post(build_endpoint(ADD_MESSAGE, ticket: ticket_id), body) end
create(body = {})
click to toggle source
# File lib/plenty_client/ticket.rb, line 18 def create(body = {}) post(build_endpoint(CREATE_TICKET), body) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/ticket.rb, line 14 def list(headers = {}, &block) get(build_endpoint(LIST_TICKETS), headers, &block) end
update(ticket_id, body = {})
click to toggle source
# File lib/plenty_client/ticket.rb, line 26 def update(ticket_id, body = {}) put(build_endpoint(UPDATE_TICKET, ticket: ticket_id), body) end