class PlentyClient::Account::Contact::Type
Constants
- CREATE_A_CONTACT_TYPE
- DELETE_A_CONTACT_TYPE
- FIND_A_CONTACT_TYPE
- LIST_A_CONTACT_TYPES
- UPDATE_A_CONTACT_TYPE
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/account/contact/type.rb, line 25 def create(body = {}) post(CREATE_A_CONTACT_TYPE, body) end
destroy(type, body = {})
click to toggle source
# File lib/plenty_client/account/contact/type.rb, line 33 def destroy(type, body = {}) delete(build_endpoint(DELETE_A_CONTACT_TYPE, type: type), body) end
find(type, headers = {}, &block)
click to toggle source
# File lib/plenty_client/account/contact/type.rb, line 21 def find(type, headers = {}, &block) get(build_endpoint(FIND_A_CONTACT_TYPE, type: type), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/account/contact/type.rb, line 17 def list(headers = {}, &block) get(build_endpoint(LIST_A_CONTACT_TYPES), headers, &block) end
update(type, body = {})
click to toggle source
# File lib/plenty_client/account/contact/type.rb, line 29 def update(type, body = {}) put(build_endpoint(UPDATE_A_CONTACT_TYPE, type: type), body) end