Class: Hws::Connectors::Dto::CreditVirtualAccountResponse

Inherits:
Response show all
Defined in:
lib/hws-connectors/dto/virtual_account/credit_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(credit_time:, beneficiary:, remitter:, amount:, payment_type:, bank_ref_num:, meta: {}) ⇒ CreditVirtualAccountResponse

Returns a new instance of CreditVirtualAccountResponse.



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

def initialize(credit_time:, beneficiary:, remitter:, amount:, payment_type:, bank_ref_num:, meta: {})
  @credit_time = credit_time
  @beneficiary = beneficiary
  @remitter = remitter
  @amount = amount
  @payment_type = payment_type
  @bank_ref_num = bank_ref_num
  super(meta: meta)
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#bank_ref_numObject

Returns the value of attribute bank_ref_num.



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

def bank_ref_num
  @bank_ref_num
end

#beneficiaryObject

Returns the value of attribute beneficiary.



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

def beneficiary
  @beneficiary
end

#credit_timeObject

Returns the value of attribute credit_time.



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

def credit_time
  @credit_time
end

#payment_typeObject

Returns the value of attribute payment_type.



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

def payment_type
  @payment_type
end

#remitterObject

Returns the value of attribute remitter.



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

def remitter
  @remitter
end