Class: Workarea::GlobalE::Api::NotifyOrderRefunded
- Inherits:
-
Object
- Object
- Workarea::GlobalE::Api::NotifyOrderRefunded
- Defined in:
- app/services/workarea/global_e/api/notify_order_refunded.rb
Instance Attribute Summary collapse
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#order_refund ⇒ Object
readonly
Returns the value of attribute order_refund.
Instance Method Summary collapse
-
#initialize(order, order_refund) ⇒ NotifyOrderRefunded
constructor
A new instance of NotifyOrderRefunded.
- #response ⇒ Object
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
#order ⇒ Object (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_refund ⇒ Object (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
#response ⇒ Object
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 |