Class: Wirecard::Elastic::Request::Body::Params::Refund

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#originObject (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