Class: BayonetClient::Ecommerce
- Inherits:
-
Object
- Object
- BayonetClient::Ecommerce
- Defined in:
- lib/bayonet_client/ecommerce.rb
Constant Summary collapse
- BASE_PATH =
"/sigma"
Class Method Summary collapse
- .block(params) ⇒ Object
- .consult(params) ⇒ Object
- .feedback_historical(params) ⇒ Object
- .remove_from_block(params) ⇒ Object
- .remove_from_whitelist(params) ⇒ Object
- .update_transaction(params) ⇒ Object
- .whitelist(params) ⇒ Object
Class Method Details
.block(params) ⇒ Object
29 30 31 |
# File 'lib/bayonet_client/ecommerce.rb', line 29 def self.block(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/labels/block/add", params) end |
.consult(params) ⇒ Object
9 10 11 |
# File 'lib/bayonet_client/ecommerce.rb', line 9 def self.consult(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/consult", params) end |
.feedback_historical(params) ⇒ Object
13 14 15 |
# File 'lib/bayonet_client/ecommerce.rb', line 13 def self.feedback_historical(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/feedback-historical", params) end |
.remove_from_block(params) ⇒ Object
33 34 35 |
# File 'lib/bayonet_client/ecommerce.rb', line 33 def self.remove_from_block(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/labels/block/remove", params) end |
.remove_from_whitelist(params) ⇒ Object
25 26 27 |
# File 'lib/bayonet_client/ecommerce.rb', line 25 def self.remove_from_whitelist(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/labels/whitelist/remove", params) end |
.update_transaction(params) ⇒ Object
17 18 19 |
# File 'lib/bayonet_client/ecommerce.rb', line 17 def self.update_transaction(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/update-transaction", params) end |
.whitelist(params) ⇒ Object
21 22 23 |
# File 'lib/bayonet_client/ecommerce.rb', line 21 def self.whitelist(params) BayonetClient::ApiHelper.request("#{BASE_PATH}/labels/whitelist/add", params) end |