Method: ProcessOut::TransactionOperation#initialize

Defined in:
lib/processout/transaction_operation.rb

#initialize(client, data = {}) ⇒ TransactionOperation

Initializes the TransactionOperation object Params:

client

ProcessOut client instance

data

data that can be used to fill the object



242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/processout/transaction_operation.rb', line 242

def initialize(client, data = {})
  @client = client

  self.id = data.fetch(:id, nil)
  self.transaction = data.fetch(:transaction, nil)
  self.transaction_id = data.fetch(:transaction_id, nil)
  self.token = data.fetch(:token, nil)
  self.token_id = data.fetch(:token_id, nil)
  self.card = data.fetch(:card, nil)
  self.card_id = data.fetch(:card_id, nil)
  self.gateway_configuration = data.fetch(:gateway_configuration, nil)
  self.gateway_configuration_id = data.fetch(:gateway_configuration_id, nil)
  self.amount = data.fetch(:amount, nil)
  self.currency = data.fetch(:currency, nil)
  self.is_attempt = data.fetch(:is_attempt, nil)
  self.has_failed = data.fetch(:has_failed, nil)
  self.is_accountable = data.fetch(:is_accountable, nil)
  self.type = data.fetch(:type, nil)
  self.gateway_operation_id = data.fetch(:gateway_operation_id, nil)
  self.arn = data.fetch(:arn, nil)
  self.error_code = data.fetch(:error_code, nil)
  self.gateway_data = data.fetch(:gateway_data, nil)
  self.payment_data_three_d_s_request = data.fetch(:payment_data_three_d_s_request, nil)
  self.payment_data_three_d_s_authentication = data.fetch(:payment_data_three_d_s_authentication, nil)
  self.payment_data_network_authentication = data.fetch(:payment_data_network_authentication, nil)
  self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, nil)
  self.scheme_id = data.fetch(:scheme_id, nil)
  self.payment_type = data.fetch(:payment_type, nil)
  self. = data.fetch(:metadata, nil)
  self.gateway_fee = data.fetch(:gateway_fee, nil)
  self.created_at = data.fetch(:created_at, nil)
  
end