class SixSaferpay::SixTransaction::AssertRefundResponse
Attributes
date[RW]
order_id[RW]
response_header[RW]
status[RW]
transaction_id[RW]
Public Class Methods
new(response_header:, transaction_id: , order_id: nil, status: , date: )
click to toggle source
# File lib/six_saferpay/api/six_transaction/responses/assert_refund_response.rb, line 14 def initialize(response_header:, transaction_id: , order_id: nil, status: , date: ) @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header @transaction_id = transaction_id @order_id = order_id @status = status @date = date end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/api/six_transaction/responses/assert_refund_response.rb, line 26 def to_hash hash = Hash.new hash.merge!(response_header: @response_header.to_h) if @response_header hash.merge!(transaction_id: @transaction_id) if @transaction_id hash.merge!(order_id: @order_id) if @order_id hash.merge!(status: @status) if @status hash.merge!(date: @date) if @date hash end
Also aliased as: to_h