Class: Wirecard::Elastic::Request::Body::Params::Refund
- Inherits:
-
Object
- Object
- Wirecard::Elastic::Request::Body::Params::Refund
- Defined in:
- lib/wirecard/elastic/request/body/params/refund.rb
Constant Summary collapse
- REQUEST_IP_ADDRESS =
the request IP address is for now a static local address
"127.0.0.1".freeze
- REFUND_MAP =
each transaction its symetric refund term
{:purchase => :'refund-purchase', :debit => :'refund-debit'}.freeze
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#deliver! ⇒ Object
output the hash.
-
#initialize(origin) ⇒ Refund
constructor
A new instance of Refund.
Constructor Details
#initialize(origin) ⇒ Refund
Returns a new instance of Refund.
18 19 20 |
# File 'lib/wirecard/elastic/request/body/params/refund.rb', line 18 def initialize(origin) @origin = origin end |
Instance Attribute Details
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
16 17 18 |
# File 'lib/wirecard/elastic/request/body/params/refund.rb', line 16 def origin @origin end |
Instance Method Details
#deliver! ⇒ Object
output the hash
23 24 25 |
# File 'lib/wirecard/elastic/request/body/params/refund.rb', line 23 def deliver! local.merge(remote) end |