Module: FidorApi::Client::DSL::Transfers::Classic
- Defined in:
- lib/fidor_api/client/dsl/transfers/classic.rb
Instance Method Summary collapse
- #create_internal_transfer(attributes = {}) ⇒ Object
- #create_sepa_transfer(attributes = {}) ⇒ Object
- #internal_transfer(id, options = {}) ⇒ Object
- #internal_transfers(options = {}) ⇒ Object
- #new_internal_transfer(attributes = {}) ⇒ Object
- #new_sepa_transfer(attributes = {}) ⇒ Object
- #sepa_transfer(id, options = {}) ⇒ Object
- #sepa_transfers(options = {}) ⇒ Object
Instance Method Details
#create_internal_transfer(attributes = {}) ⇒ Object
21 22 23 24 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 21 def create_internal_transfer(attributes = {}) check_transfer_support! :classic create(FidorApi::Model::Transfer::Classic::Internal, 'internal_transfers', attributes) end |
#create_sepa_transfer(attributes = {}) ⇒ Object
41 42 43 44 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 41 def create_sepa_transfer(attributes = {}) check_transfer_support! :classic create(FidorApi::Model::Transfer::Classic::SEPA, 'sepa_credit_transfers', attributes) end |
#internal_transfer(id, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 11 def internal_transfer(id, = {}) check_transfer_support! :classic fetch(:single, FidorApi::Model::Transfer::Classic::Internal, "internal_transfers/#{id}", ) end |
#internal_transfers(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 6 def internal_transfers( = {}) check_transfer_support! :classic fetch(:collection, FidorApi::Model::Transfer::Classic::Internal, 'internal_transfers', ) end |
#new_internal_transfer(attributes = {}) ⇒ Object
16 17 18 19 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 16 def new_internal_transfer(attributes = {}) check_transfer_support! :classic Model::Transfer::Classic::Internal.new(attributes) end |
#new_sepa_transfer(attributes = {}) ⇒ Object
36 37 38 39 |
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 36 def new_sepa_transfer(attributes = {}) check_transfer_support! :classic Model::Transfer::Classic::SEPA.new(attributes) end |