class SixSaferpay::SixBatch::Close
Attributes
request_header[RW]
terminal_id[RW]
Public Class Methods
new(request_header: nil, terminal_id: )
click to toggle source
# File lib/six_saferpay/api/six_batch/requests/close.rb, line 9 def initialize(request_header: nil, terminal_id: ) @request_header = request_header || SixSaferpay::RequestHeader.new() @terminal_id = terminal_id end
Public Instance Methods
response_class()
click to toggle source
# File lib/six_saferpay/api/six_batch/requests/close.rb, line 31 def response_class SixSaferpay::SixBatch::CloseResponse end
to_hash()
click to toggle source
# File lib/six_saferpay/api/six_batch/requests/close.rb, line 15 def to_hash hash = Hash.new hash.merge!(request_header: @request_header.to_h) if @request_header hash.merge!(terminal_id: @terminal_id) if @terminal_id hash end
Also aliased as: to_h
to_json()
click to toggle source
# File lib/six_saferpay/api/six_batch/requests/close.rb, line 23 def to_json to_hash.to_json end
url()
click to toggle source
# File lib/six_saferpay/api/six_batch/requests/close.rb, line 27 def url '/Payment/v1/Batch/Close' end