Class: Buckaruby::RefundTransactionRequest
- Defined in:
- lib/buckaruby/request.rb
Overview
Request for a creating a refund.
Instance Method Summary collapse
Methods inherited from Request
Constructor Details
This class inherits a constructor from Buckaruby::Request
Instance Method Details
#build_request_params(options) ⇒ Object
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/buckaruby/request.rb', line 202 def build_request_params() params = { brq_payment_method: [:payment_method], brq_amount_credit: Amount.new([:amount]).to_s, brq_currency: [:currency] || Currency::EURO, brq_invoicenumber: [:invoicenumber] } key = :"brq_service_#{[:payment_method]}_action" params[key] = Action::REFUND params[:brq_originaltransaction] = [:transaction_id] params end |
#operation ⇒ Object
198 199 200 |
# File 'lib/buckaruby/request.rb', line 198 def operation Operation::TRANSACTION_REQUEST end |