Class: SagePay::Server::RefundResponse
- Defined in:
- lib/sage_pay/server/refund_response.rb
Instance Attribute Summary
Attributes inherited from Response
#status, #status_detail, #vps_protocol
Instance Method Summary collapse
Methods inherited from Response
attr_accessor_if_ok, #error?, #failed?, from_response_body, #initialize, #invalid?, #malformed?, #ok?
Constructor Details
This class inherits a constructor from SagePay::Server::Response
Instance Method Details
#tx_auth_no ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/sage_pay/server/refund_response.rb', line 21 def tx_auth_no if ok? @tx_auth_no else raise RuntimeError, "Unable to retrieve the authorisation number as the status was not OK." end end |
#vps_tx_id ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/sage_pay/server/refund_response.rb', line 13 def vps_tx_id if ok? @vps_tx_id else raise RuntimeError, "Unable to retrieve the transaction id as the status was not OK." end end |