Class: Portmone::Responses::RefundOrderStatus
- Inherits:
-
OrderStatus
- Object
- BaseResponse
- OrderStatus
- Portmone::Responses::RefundOrderStatus
- Defined in:
- lib/portmone/responses/refund_order_status.rb
Instance Attribute Summary
Attributes inherited from BaseResponse
Instance Method Summary collapse
Methods inherited from OrderStatus
#actual_amount, #amount, #order, #paid?, #reversed?, #reversed_amount, #transactions
Methods inherited from BaseResponse
Constructor Details
This class inherits a constructor from Portmone::Responses::BaseResponse
Instance Method Details
#success? ⇒ Boolean
2 3 4 |
# File 'lib/portmone/responses/refund_order_status.rb', line 2 def success? order.present? && error_code == '0' && order.status == 'RETURN' end |