Class: TigerPayment::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/tiger-payment/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Transaction

Returns a new instance of Transaction.



64
65
66
67
68
69
70
71
72
73
74
# File 'lib/tiger-payment/transaction.rb', line 64

def initialize(params = {})
  params.each_pair do |k,v|
    if v == [{}]
      instance_variable_set('@'+k, nil)
    else
      value = Action.new(v.first) if k == 'action'
      value ||= v.size == 1 ? v.first : v
      instance_variable_set('@'+k, value)
    end
  end
end

Instance Attribute Details

#account_holder_typeObject (readonly)

Returns the value of attribute account_holder_type.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def 
  @account_holder_type
end

#account_typeObject (readonly)

Returns the value of attribute account_type.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def 
  @account_type
end

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def action
  @action
end

#address_1Object (readonly)

Returns the value of attribute address_1.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def address_1
  @address_1
end

#address_2Object (readonly)

Returns the value of attribute address_2.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def address_2
  @address_2
end

#authorization_codeObject (readonly)

Returns the value of attribute authorization_code.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def authorization_code
  @authorization_code
end

#avs_responseObject (readonly)

Returns the value of attribute avs_response.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def avs_response
  @avs_response
end

#cardholder_authObject (readonly)

Returns the value of attribute cardholder_auth.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cardholder_auth
  @cardholder_auth
end

#cavvObject (readonly)

Returns the value of attribute cavv.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cavv
  @cavv
end

#cavv_resultObject (readonly)

Returns the value of attribute cavv_result.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cavv_result
  @cavv_result
end

#cc_binObject (readonly)

Returns the value of attribute cc_bin.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cc_bin
  @cc_bin
end

#cc_expObject (readonly)

Returns the value of attribute cc_exp.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cc_exp
  @cc_exp
end

#cc_hashObject (readonly)

Returns the value of attribute cc_hash.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cc_hash
  @cc_hash
end

#cc_numberObject (readonly)

Returns the value of attribute cc_number.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cc_number
  @cc_number
end

#cell_phoneObject (readonly)

Returns the value of attribute cell_phone.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def cell_phone
  @cell_phone
end

#check_abaObject (readonly)

Returns the value of attribute check_aba.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def check_aba
  @check_aba
end

#check_accountObject (readonly)

Returns the value of attribute check_account.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def 
  @check_account
end

#check_hashObject (readonly)

Returns the value of attribute check_hash.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def check_hash
  @check_hash
end

#check_nameObject (readonly)

Returns the value of attribute check_name.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def check_name
  @check_name
end

#cityObject (readonly)

Returns the value of attribute city.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def city
  @city
end

#companyObject (readonly)

Returns the value of attribute company.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def company
  @company
end

#conditionObject (readonly)

Returns the value of attribute condition.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def condition
  @condition
end

#countryObject (readonly)

Returns the value of attribute country.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def country
  @country
end

#csc_responseObject (readonly)

Returns the value of attribute csc_response.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def csc_response
  @csc_response
end

#currencyObject (readonly)

Returns the value of attribute currency.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def currency
  @currency
end

#customeridObject (readonly)

Returns the value of attribute customerid.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def customerid
  @customerid
end

#customertaxidObject (readonly)

Returns the value of attribute customertaxid.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def customertaxid
  @customertaxid
end

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def email
  @email
end

#faxObject (readonly)

Returns the value of attribute fax.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def fax
  @fax
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def last_name
  @last_name
end

#order_descriptionObject (readonly)

Returns the value of attribute order_description.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def order_description
  @order_description
end

#order_idObject (readonly)

Returns the value of attribute order_id.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def order_id
  @order_id
end

#phoneObject (readonly)

Returns the value of attribute phone.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def phone
  @phone
end

#platform_idObject (readonly)

Returns the value of attribute platform_id.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def platform_id
  @platform_id
end

#ponumberObject (readonly)

Returns the value of attribute ponumber.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def ponumber
  @ponumber
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def postal_code
  @postal_code
end

#processor_idObject (readonly)

Returns the value of attribute processor_id.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def processor_id
  @processor_id
end

#sec_codeObject (readonly)

Returns the value of attribute sec_code.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def sec_code
  @sec_code
end

#shippingObject (readonly)

Returns the value of attribute shipping.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping
  @shipping
end

#shipping_address_1Object (readonly)

Returns the value of attribute shipping_address_1.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_address_1
  @shipping_address_1
end

#shipping_address_2Object (readonly)

Returns the value of attribute shipping_address_2.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_address_2
  @shipping_address_2
end

#shipping_carrierObject (readonly)

Returns the value of attribute shipping_carrier.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_carrier
  @shipping_carrier
end

#shipping_cityObject (readonly)

Returns the value of attribute shipping_city.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_city
  @shipping_city
end

#shipping_companyObject (readonly)

Returns the value of attribute shipping_company.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_company
  @shipping_company
end

#shipping_countryObject (readonly)

Returns the value of attribute shipping_country.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_country
  @shipping_country
end

#shipping_dateObject (readonly)

Returns the value of attribute shipping_date.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_date
  @shipping_date
end

#shipping_emailObject (readonly)

Returns the value of attribute shipping_email.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_email
  @shipping_email
end

#shipping_first_nameObject (readonly)

Returns the value of attribute shipping_first_name.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_first_name
  @shipping_first_name
end

#shipping_last_nameObject (readonly)

Returns the value of attribute shipping_last_name.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_last_name
  @shipping_last_name
end

#shipping_phoneObject (readonly)

Returns the value of attribute shipping_phone.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_phone
  @shipping_phone
end

#shipping_postal_codeObject (readonly)

Returns the value of attribute shipping_postal_code.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_postal_code
  @shipping_postal_code
end

#shipping_stateObject (readonly)

Returns the value of attribute shipping_state.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def shipping_state
  @shipping_state
end

#stateObject (readonly)

Returns the value of attribute state.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def state
  @state
end

#taxObject (readonly)

Returns the value of attribute tax.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def tax
  @tax
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def tracking_number
  @tracking_number
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def transaction_id
  @transaction_id
end

#transaction_typeObject (readonly)

Returns the value of attribute transaction_type.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def transaction_type
  @transaction_type
end

#websiteObject (readonly)

Returns the value of attribute website.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def website
  @website
end

#xidObject (readonly)

Returns the value of attribute xid.



3
4
5
# File 'lib/tiger-payment/transaction.rb', line 3

def xid
  @xid
end