class BillForward::PaymentMethod

Public Class Methods

get_by_account_id(id, query_params = {}, custom_client = nil) click to toggle source
# File lib/bill_forward/entities/payment_method.rb, line 16
def get_by_account_id(id, query_params = {}, custom_client = nil)
  raise ArgumentError.new("id cannot be nil") if id.nil?

  endpoint = sprintf('account/%s',
                     ERB::Util.url_encode(id)
  )

  self.request_many('get', endpoint, query_params, custom_client)
end