Sha256: f24622fd796e447e647f8329ccde5b54448950f01c79c8de9afd455a45fe177c
Contents?: true
Size: 725 Bytes
Versions: 46
Compression:
Stored size: 725 Bytes
Contents
module MangoPay # See children class: # - MangoPay::BankingAliasesIBAN class BankingAliases < Resource include HTTPCalls::Create include HTTPCalls::Update include HTTPCalls::Fetch class << self def create raise 'Cannot create a MangoPay::BankingAlias. See MangoPay::BankingAliasesIBAN' end def url(id = nil) if id "#{MangoPay.api_path}/bankingaliases/#{CGI.escape(id)}" else "#{MangoPay.api_path}/bankingaliases" end end def fetch_for_wallet(wallet_id, filters = {}) url = "#{MangoPay.api_path}/wallets/#{wallet_id}/bankingaliases" MangoPay.request(:get, url, {}, filters) end end end end
Version data entries
46 entries across 46 versions & 1 rubygems