Class: Xendit::Payout

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

Class Method Summary collapse

Class Method Details

.cancel(id, **opts) ⇒ Object



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

def cancel(id, **opts)
  ApiClient.post "v2/payouts/#{id}/cancel", opts
end

.channels(**opts) ⇒ Object



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

def channels(**opts)
  ApiClient.get "payouts_channels", opts
end

.create(**opts) ⇒ Object



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

def create(**opts)
  ApiClient.post "v2/payouts", opts
end

.get_by_id(id, **opts) ⇒ Object



18
19
20
# File 'lib/xendit/resources/payout.rb', line 18

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

.get_by_reference_id(reference_id, **opts) ⇒ Object



22
23
24
# File 'lib/xendit/resources/payout.rb', line 22

def get_by_reference_id(reference_id, **opts)
  ApiClient.get "v2/payouts", {reference_id: reference_id}, opts
end