Sha256: 0a15af91827345cecb2615db850eabc3b15f850f2aa14d9b4eb96a19d9d39fdb
Contents?: true
Size: 823 Bytes
Versions: 6
Compression:
Stored size: 823 Bytes
Contents
module BillForward class PaymentMethod < MutableEntity @resource_path = BillForward::ResourcePath.new("payment-methods", "paymentMethod") class << self def get_by_link_id(id, query_params = {}, custom_client = nil) raise ArgumentError.new("id cannot be nil") if id.nil? endpoint = sprintf('link-id/%s', ERB::Util.url_encode(id) ) self.request_first('get', endpoint, query_params, custom_client) end 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems