Class: Hws::Connectors::Dto::PayoutRequest
- Inherits:
-
Request
- Object
- Hws::Connectors
- Request
- Hws::Connectors::Dto::PayoutRequest
- Defined in:
- lib/hws-connectors/dto/payout/payout_request.rb
Constant Summary
Constants inherited from Hws::Connectors
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#beneficiary ⇒ Object
Returns the value of attribute beneficiary.
-
#payment_type ⇒ Object
Returns the value of attribute payment_type.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(beneficiary:, amount:, payment_type:, reference_number: nil, meta: {}) ⇒ PayoutRequest
constructor
A new instance of PayoutRequest.
Methods inherited from Hws::Connectors
Methods included from Helper
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: ) end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
2 3 4 |
# File 'lib/hws-connectors/dto/payout/payout_request.rb', line 2 def amount @amount end |
#beneficiary ⇒ Object
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_type ⇒ Object
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 |