@radio-retail/api-client
Advanced tools
Comparing version 2.2.1 to 3.0.0
@@ -23,12 +23,12 @@ const crud = require('../utils/crud'); | ||
approve(id, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/approve`, config).then(getData(config.raw)); | ||
approve(id, body = {}, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/approve`, body, config).then(getData(config.raw)); | ||
}, | ||
decline(id, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/decline`, config).then(getData(config.raw)); | ||
decline(id, body = {}, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/decline`, body, config).then(getData(config.raw)); | ||
}, | ||
cancel(id, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/cancel`, config).then(getData(config.raw)); | ||
cancel(id, body = {}, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/cancel`, body, config).then(getData(config.raw)); | ||
}, | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "2.2.1", | ||
"version": "3.0.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23840