module PlentyClient::Account::Contact
Constants
- CREATE_A_CONTACT
- DELETE_A_CONTACT
- FIND_A_CONTACT
- LIST_A_CONTACTS
- UPDATE_A_CONTACT
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/account/contact.rb, line 24 def create(body = {}) post(CREATE_A_CONTACT, body) end
destroy(contact_id, body = {})
click to toggle source
# File lib/plenty_client/account/contact.rb, line 32 def destroy(contact_id, body = {}) delete(build_endpoint(DELETE_A_CONTACT, contact: contact_id), body) end
find(contact_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/account/contact.rb, line 20 def find(contact_id, headers = {}, &block) get(build_endpoint(FIND_A_CONTACT, contact: contact_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/account/contact.rb, line 16 def list(headers = {}, &block) get(build_endpoint(LIST_A_CONTACTS), headers, &block) end
update(contact_id, body = {})
click to toggle source
# File lib/plenty_client/account/contact.rb, line 28 def update(contact_id, body = {}) put(build_endpoint(UPDATE_A_CONTACT, contact: contact_id), body) end