Class: Portmone::Responses::RefundOrderStatus

Inherits:
OrderStatus show all
Defined in:
lib/portmone/responses/refund_order_status.rb

Instance Attribute Summary

Attributes inherited from BaseResponse

#response, #xml_data

Instance Method Summary collapse

Methods inherited from OrderStatus

#actual_amount, #amount, #order, #paid?, #reversed?, #reversed_amount, #transactions

Methods inherited from BaseResponse

#http_status, #initialize

Constructor Details

This class inherits a constructor from Portmone::Responses::BaseResponse

Instance Method Details

#success?Boolean

Returns:

  • (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