Class: SynapsePay::MassPayEndpoint
Instance Attribute Summary
Attributes inherited from APIEndpoint
#client
Instance Method Summary
collapse
Methods inherited from APIEndpoint
#initialize
Instance Method Details
#all(params = {}, headers = {}) ⇒ Object
4
5
6
7
8
|
# File 'lib/synapse_pay/endpoints/mass_pay_endpoint.rb', line 4
def all(params={}, ={})
method = APIMethod.new(:post, "/masspay/show", params, , self)
json = @client.execute(method)
APIList.new(:MassPay, json[:mass_pays], method, @client)
end
|
#cancel(id, params = {}, headers = {}) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/synapse_pay/endpoints/mass_pay_endpoint.rb', line 10
def cancel(id, params={}, ={})
params = ParamsBuilder.merge({
:id => id,
}, params)
method = APIMethod.new(:post, "/masspay/cancel", params, , self)
json = @client.execute(method)
APIList.new(:MassPay, json[:mass_pays], method, @client)
end
|
#create(params = {}, headers = {}) ⇒ Object
19
20
21
22
23
|
# File 'lib/synapse_pay/endpoints/mass_pay_endpoint.rb', line 19
def create(params={}, ={})
method = APIMethod.new(:post, "/masspay/add", params, , self)
json = @client.execute(method)
APIList.new(:MassPay, json[:mass_pays], method, @client)
end
|