Class: Hws::Connectors::Dto::PayoutResponse

Inherits:
Response show all
Defined in:
lib/hws-connectors/dto/payout/payout_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:, account_holder: nil, amount:, payment_type:, txn_time:, status:, bank_ref_num: nil, message: nil, meta: {}) ⇒ PayoutResponse

Returns a new instance of PayoutResponse.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hws-connectors/dto/payout/payout_response.rb', line 5

def initialize(reference_number:, beneficiary:, account_holder: nil, amount:, payment_type:, txn_time:, status:, bank_ref_num: nil,
               message: nil, meta: {})
  @reference_number = reference_number
  @beneficiary = beneficiary
  @account_holder = 
  @amount = amount
  @payment_type = payment_type
  @txn_time = txn_time
  @status = status
  @bank_ref_num = bank_ref_num
  super(message: message, meta: meta)
end

Instance Attribute Details

#account_holderObject

Returns the value of attribute account_holder.



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

def 
  @account_holder
end

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#bank_ref_numObject

Returns the value of attribute bank_ref_num.



3
4
5
# File 'lib/hws-connectors/dto/payout/payout_response.rb', line 3

def bank_ref_num
  @bank_ref_num
end

#beneficiaryObject

Returns the value of attribute beneficiary.



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

def beneficiary
  @beneficiary
end

#payment_typeObject

Returns the value of attribute payment_type.



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

def payment_type
  @payment_type
end

#reference_numberObject

Returns the value of attribute reference_number.



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

def reference_number
  @reference_number
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/hws-connectors/dto/payout/payout_response.rb', line 3

def status
  @status
end

#txn_timeObject

Returns the value of attribute txn_time.



3
4
5
# File 'lib/hws-connectors/dto/payout/payout_response.rb', line 3

def txn_time
  @txn_time
end