Class: Polar::Refund
Class Method Summary
collapse
Methods inherited from Resource
handle_list, handle_none, handle_one
Class Method Details
.create(params) ⇒ Object
10
11
12
13
|
# File 'lib/polar/resources/refund.rb', line 10
def self.create(params)
response = Client.post_request("/v1/refunds", **params)
handle_one(response)
end
|
.list(params = {}) ⇒ Object
5
6
7
8
|
# File 'lib/polar/resources/refund.rb', line 5
def self.list(params = {})
response = Client.get_request("/v1/refunds", **params)
handle_list(response)
end
|