Module: PlentyClient::Market::Credentials
Constant Summary collapse
- LIST_MARKET_CREDENTIALS =
'/markets/credentials'
- FIND_MARKET_CREDENTIALS =
'/markets/credentials/{credentialsId}'
- CREATE_MARKET_CREDENTIALS =
'/markets/credentials'
- UPDATE_MARKET_CREDENTIALS =
'/markets/credentials/{credentialsId}'
- DELETE_MARKET_CREDENTIALS =
'/markets/credentials/{credentialsId}'
Class Method Summary collapse
- .create(body = {}) ⇒ Object
- .destroy(credentials_id, body = {}) ⇒ Object
- .find(credentials_id, headers = {}, &block) ⇒ Object
- .list(headers = {}, &block) ⇒ Object
- .update(credentials_id, body = {}) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.create(body = {}) ⇒ Object
24 25 26 |
# File 'lib/plenty_client/market/credentials.rb', line 24 def create(body = {}) post(build_endpoint(CREATE_MARKET_CREDENTIALS), body) end |
.destroy(credentials_id, body = {}) ⇒ Object
32 33 34 |
# File 'lib/plenty_client/market/credentials.rb', line 32 def destroy(credentials_id, body = {}) delete(build_endpoint(DELETE_MARKET_CREDENTIALS, credentials: credentials_id), body) end |
.find(credentials_id, headers = {}, &block) ⇒ Object
20 21 22 |
# File 'lib/plenty_client/market/credentials.rb', line 20 def find(credentials_id, headers = {}, &block) get(build_endpoint(FIND_MARKET_CREDENTIALS, credentials: credentials_id), headers, &block) end |
.list(headers = {}, &block) ⇒ Object
16 17 18 |
# File 'lib/plenty_client/market/credentials.rb', line 16 def list(headers = {}, &block) get(build_endpoint(LIST_MARKET_CREDENTIALS), headers, &block) end |
.update(credentials_id, body = {}) ⇒ Object
28 29 30 |
# File 'lib/plenty_client/market/credentials.rb', line 28 def update(credentials_id, body = {}) put(build_endpoint(UPDATE_MARKET_CREDENTIALS, credentials: credentials_id), body) end |