class JeraPayment::Api::Iugu::Withdrawal

Constants

BASE_ENDPOINT

Public Class Methods

index(query = nil, access_token = nil) click to toggle source
# File lib/jera_payment/api/iugu/withdrawal.rb, line 13
def self.index(query = nil, access_token = nil)
  response = get(BASE_ENDPOINT, query, access_token)
end
request_withdrawal(id, body = {}, access_token = nil) click to toggle source
# File lib/jera_payment/api/iugu/withdrawal.rb, line 7
def self.request_withdrawal(id, body = {}, access_token = nil)
  url = "accounts/#{id}/request_withdraw"

  response = post(url, body, access_token)
end
show(id, access_token = nil) click to toggle source
# File lib/jera_payment/api/iugu/withdrawal.rb, line 17
def self.show(id, access_token = nil)
  url = "#{BASE_ENDPOINT}/#{id}"

  response = get(url, nil, access_token)
end