Class: Xendit::Refund

Inherits:
Object
  • Object
show all
Defined in:
lib/xendit/resources/refund.rb

Class Method Summary collapse

Class Method Details

.create(**opts) ⇒ Object



6
7
8
# File 'lib/xendit/resources/refund.rb', line 6

def create(**opts)
  ApiClient.post "refunds", opts
end

.get_by_id(id, **opts) ⇒ Object



14
15
16
# File 'lib/xendit/resources/refund.rb', line 14

def get_by_id(id, **opts)
  ApiClient.get "refunds/#{id}", opts
end

.list(**opts) ⇒ Object



10
11
12
# File 'lib/xendit/resources/refund.rb', line 10

def list(**opts)
  ApiClient.get "refunds", opts
end