Module: PaystackGateway::Refunds::TransactionRefundResponse
- Included in:
- CreateResponse, FetchRefundResponse
- Defined in:
- lib/paystack_gateway/refunds.rb
Overview
Common helpers for responses from refunds endpoints
Instance Method Summary collapse
Instance Method Details
#refund_failed? ⇒ Boolean
12 |
# File 'lib/paystack_gateway/refunds.rb', line 12 def refund_failed? = transaction_status == :failed |
#refund_pending? ⇒ Boolean
13 |
# File 'lib/paystack_gateway/refunds.rb', line 13 def refund_pending? = transaction_status.in?(%i[pending processing]) |
#refund_success? ⇒ Boolean
11 |
# File 'lib/paystack_gateway/refunds.rb', line 11 def refund_success? = transaction_status == :processed |