Class: Airwallex::Resources::Refunds
Instance Attribute Summary
Attributes inherited from BaseResource
#client
Instance Method Summary
collapse
#initialize
Instance Method Details
#create(params = {}, idempotency_key: nil) ⇒ Object
6
7
8
9
|
# File 'lib/airwallex/resources/refunds.rb', line 6
def create(params = {}, idempotency_key: nil)
validate_params!(params)
post("/pa/refunds/create", params, {}, idempotency_key: idempotency_key)
end
|
#list(params = {}) ⇒ Object
16
17
18
19
|
# File 'lib/airwallex/resources/refunds.rb', line 16
def list(params = {})
validate_params!(params)
get("/pa/refunds", params)
end
|
#retrieve(id) ⇒ Object
11
12
13
14
|
# File 'lib/airwallex/resources/refunds.rb', line 11
def retrieve(id)
validate_id!(id)
get("/pa/refunds/#{id}")
end
|