Class: InvestecOpenApi::Models::Transfer

Inherits:
Object
  • Object
show all
Defined in:
lib/investec_open_api/models/transfer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(beneficiary_account_id, amount, my_reference, their_reference) ⇒ Transfer

Returns a new instance of Transfer.

Parameters:

  • beneficiary_account_id (String)
  • amount (Float)
  • my_reference (String)
  • their_reference (String)


11
12
13
14
15
16
17
18
19
20
21
# File 'lib/investec_open_api/models/transfer.rb', line 11

def initialize(
  ,
  amount,
  my_reference,
  their_reference
)
  @beneficiary_account_id = 
  @amount = amount.to_s
  @my_reference = my_reference
  @their_reference = their_reference
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



5
6
7
# File 'lib/investec_open_api/models/transfer.rb', line 5

def amount
  @amount
end

#beneficiary_account_idObject (readonly)

Returns the value of attribute beneficiary_account_id.



5
6
7
# File 'lib/investec_open_api/models/transfer.rb', line 5

def 
  @beneficiary_account_id
end

#my_referenceObject (readonly)

Returns the value of attribute my_reference.



5
6
7
# File 'lib/investec_open_api/models/transfer.rb', line 5

def my_reference
  @my_reference
end

#their_referenceObject (readonly)

Returns the value of attribute their_reference.



5
6
7
# File 'lib/investec_open_api/models/transfer.rb', line 5

def their_reference
  @their_reference
end

Instance Method Details

#to_hObject



23
24
25
26
27
28
29
30
# File 'lib/investec_open_api/models/transfer.rb', line 23

def to_h
  {
    beneficiaryAccountId: @beneficiary_account_id,
    amount: @amount,
    myReference: @my_reference,
    theirReference: @their_reference
  }
end