Module: FidorApi::Client::DSL::Transfers::Classic

Defined in:
lib/fidor_api/client/dsl/transfers/classic.rb

Instance Method Summary collapse

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, options = {})
  check_transfer_support! :classic
  fetch(:single, FidorApi::Model::Transfer::Classic::Internal, "internal_transfers/#{id}", options)
end

#internal_transfers(options = {}) ⇒ Object



6
7
8
9
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 6

def internal_transfers(options = {})
  check_transfer_support! :classic
  fetch(:collection, FidorApi::Model::Transfer::Classic::Internal, 'internal_transfers', options)
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

#sepa_transfer(id, options = {}) ⇒ Object



31
32
33
34
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 31

def sepa_transfer(id, options = {})
  check_transfer_support! :classic
  fetch(:single, FidorApi::Model::Transfer::Classic::SEPA, "sepa_credit_transfers/#{id}", options)
end

#sepa_transfers(options = {}) ⇒ Object



26
27
28
29
# File 'lib/fidor_api/client/dsl/transfers/classic.rb', line 26

def sepa_transfers(options = {})
  check_transfer_support! :classic
  fetch(:collection, FidorApi::Model::Transfer::Classic::SEPA, 'sepa_credit_transfers', options)
end