Class: Ravelin::Transaction

Inherits:
RavelinObject show all
Defined in:
lib/ravelin/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RavelinObject

attr_accessor, attr_required, required_attributes, #serializable_hash, #validate

Constructor Details

#initialize(params) ⇒ Transaction

Returns a new instance of Transaction.



28
29
30
31
32
33
34
35
# File 'lib/ravelin/transaction.rb', line 28

def initialize(params)
  unless params['3ds'].nil?
    self.three_d_secure = ThreeDSecure.new(params['3ds'])
    params.delete('3ds')
  end

  super(params)
end

Instance Attribute Details

#auth_codeObject

Returns the value of attribute auth_code.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def auth_code
  @auth_code
end

#avs_result_codeObject

Returns the value of attribute avs_result_code.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def avs_result_code
  @avs_result_code
end

#creditObject

Returns the value of attribute credit.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def credit
  @credit
end

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def currency
  @currency
end

#customObject

Returns the value of attribute custom.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def custom
  @custom
end

#cvv_result_codeObject

Returns the value of attribute cvv_result_code.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def cvv_result_code
  @cvv_result_code
end

#debitObject

Returns the value of attribute debit.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def debit
  @debit
end

#decline_codeObject

Returns the value of attribute decline_code.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def decline_code
  @decline_code
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def email
  @email
end

#gatewayObject

Returns the value of attribute gateway.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def gateway
  @gateway
end

#gateway_referenceObject

Returns the value of attribute gateway_reference.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def gateway_reference
  @gateway_reference
end

#successObject

Returns the value of attribute success.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def success
  @success
end

#three_d_secureObject

Returns the value of attribute three_d_secure.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def three_d_secure
  @three_d_secure
end

#timeObject

Returns the value of attribute time.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def time
  @time
end

#transaction_idObject

Returns the value of attribute transaction_id.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def transaction_id
  @transaction_id
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/ravelin/transaction.rb', line 3

def type
  @type
end