Class: Buckaruby::StatusRequest

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

Overview

Request for getting the status of a transaction.

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



240
241
242
243
244
245
246
247
# File 'lib/buckaruby/request.rb', line 240

def build_request_params(options)
  params = {}

  params[:brq_transaction] = options[:transaction_id] if options[:transaction_id]
  params[:brq_payment] = options[:payment_id] if options[:payment_id]

  params
end

#operationObject



236
237
238
# File 'lib/buckaruby/request.rb', line 236

def operation
  Operation::TRANSACTION_STATUS
end