Class: Workarea::GlobalE::Api::NotifyOrderRefunded

Inherits:
Object
  • Object
show all
Defined in:
app/services/workarea/global_e/api/notify_order_refunded.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order, order_refund) ⇒ NotifyOrderRefunded

Returns a new instance of NotifyOrderRefunded.



7
8
9
10
# File 'app/services/workarea/global_e/api/notify_order_refunded.rb', line 7

def initialize(order, order_refund)
  @order = order
  @order_refund = order_refund
end

Instance Attribute Details

#orderObject (readonly)

Returns the value of attribute order.



5
6
7
# File 'app/services/workarea/global_e/api/notify_order_refunded.rb', line 5

def order
  @order
end

#order_refundObject (readonly)

Returns the value of attribute order_refund.



5
6
7
# File 'app/services/workarea/global_e/api/notify_order_refunded.rb', line 5

def order_refund
  @order_refund
end

Instance Method Details

#responseObject



12
13
14
15
16
17
18
# File 'app/services/workarea/global_e/api/notify_order_refunded.rb', line 12

def response
  @response ||=
    begin
      refund_items
      Merchant::ResponseInfo.new(order: order)
    end
end