Class: Shift4::Blacklist
Overview
Blacklist can be used to block unwanted charges.
Class Method Summary
collapse
communicator, communicator=
Class Method Details
.create(params, config = Configuration) ⇒ Object
8
9
10
|
# File 'lib/shift4/blacklist.rb', line 8
def self.create(params, config = Configuration)
communicator.post("#{config.api_url}/blacklist", json: params, config: config)
end
|
.delete(blacklist_rule_id, config = Configuration) ⇒ Object
16
17
18
|
# File 'lib/shift4/blacklist.rb', line 16
def self.delete(blacklist_rule_id, config = Configuration)
communicator.delete("#{config.api_url}/blacklist/#{blacklist_rule_id}", config: config)
end
|
.list(params = nil, config = Configuration) ⇒ Object
20
21
22
|
# File 'lib/shift4/blacklist.rb', line 20
def self.list(params = nil, config = Configuration)
communicator.get("#{config.api_url}/blacklist", query: params, config: config)
end
|
.retrieve(blacklist_rule_id, config = Configuration) ⇒ Object
12
13
14
|
# File 'lib/shift4/blacklist.rb', line 12
def self.retrieve(blacklist_rule_id, config = Configuration)
communicator.get("#{config.api_url}/blacklist/#{blacklist_rule_id}", config: config)
end
|