Class: Buckaruby::TransactionSpecificationRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/buckaruby/request.rb

Overview

Request for a creating a transaction specification.

Instance Method Summary collapse

Methods inherited from Request

#execute, #initialize

Constructor Details

This class inherits a constructor from Buckaruby::Request

Instance Method Details

#build_request_params(options) ⇒ Object



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/buckaruby/request.rb', line 177

def build_request_params(options)
  params = {}

  if options[:payment_method]
    params[:brq_services] =
      if options[:payment_method].respond_to?(:join)
        options[:payment_method].join(',')
      else
        options[:payment_method]
      end
  end

  params[:brq_latestversiononly] = 'true'
  params[:brq_culture] = options[:culture] || Language::DUTCH

  params
end

#operationObject



173
174
175
# File 'lib/buckaruby/request.rb', line 173

def operation
  Operation::TRANSACTION_REQUEST_SPECIFICATION
end