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



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/buckaruby/request.rb', line 181

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



177
178
179
# File 'lib/buckaruby/request.rb', line 177

def operation
  Operation::TRANSACTION_REQUEST_SPECIFICATION
end