Class: Hws::Connectors::Dto::PayoutRequest

Inherits:
Request show all
Defined in:
lib/hws-connectors/dto/payout/payout_request.rb

Constant Summary

Constants inherited from Hws::Connectors

VERSION

Instance Attribute Summary collapse

Attributes inherited from Request

#meta, #reference_number

Instance Method Summary collapse

Methods inherited from Hws::Connectors

configure, logging?

Methods included from Helper

included

Constructor Details

#initialize(beneficiary:, amount:, payment_type:, reference_number: nil, meta: {}) ⇒ PayoutRequest

Returns a new instance of PayoutRequest.



4
5
6
7
8
9
# File 'lib/hws-connectors/dto/payout/payout_request.rb', line 4

def initialize(beneficiary:, amount:, payment_type:, reference_number: nil, meta: {})
  @beneficiary = beneficiary
  @amount = amount
  @payment_type = payment_type
  super(reference_number: reference_number, meta: meta)
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#beneficiaryObject

Returns the value of attribute beneficiary.



2
3
4
# File 'lib/hws-connectors/dto/payout/payout_request.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_request.rb', line 2

def payment_type
  @payment_type
end