Class: Hws::Connectors::Dto::VirtualAccountResponse

Inherits:
Response show all
Defined in:
lib/hws-connectors/dto/virtual_account/virtual_account_response.rb

Constant Summary

Constants inherited from Hws::Connectors

VERSION

Instance Attribute Summary collapse

Attributes inherited from Response

#message, #meta

Instance Method Summary collapse

Methods inherited from Hws::Connectors

configure, logging?

Methods included from Helper

included

Constructor Details

#initialize(reference_number:, beneficiary:, remitters: [], status: nil, balance: nil, message: nil, meta: {}) ⇒ VirtualAccountResponse

Returns a new instance of VirtualAccountResponse.



4
5
6
7
8
9
10
11
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 4

def initialize(reference_number:, beneficiary:, remitters: [], status: nil, balance: nil, message: nil, meta: {})
  @reference_number = reference_number
  @beneficiary = beneficiary
  @remitters = remitters
  @status = status
  @balance = balance
  super(message: message, meta: meta)
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



2
3
4
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2

def balance
  @balance
end

#beneficiaryObject

Returns the value of attribute beneficiary.



2
3
4
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2

def beneficiary
  @beneficiary
end

#reference_numberObject

Returns the value of attribute reference_number.



2
3
4
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2

def reference_number
  @reference_number
end

#remittersObject

Returns the value of attribute remitters.



2
3
4
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2

def remitters
  @remitters
end

#statusObject

Returns the value of attribute status.



2
3
4
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2

def status
  @status
end