Class: TigerPayment::Transaction
- Inherits:
-
Object
- Object
- TigerPayment::Transaction
- Defined in:
- lib/tiger-payment/transaction.rb
Instance Attribute Summary collapse
-
#account_holder_type ⇒ Object
readonly
Returns the value of attribute account_holder_type.
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#address_1 ⇒ Object
readonly
Returns the value of attribute address_1.
-
#address_2 ⇒ Object
readonly
Returns the value of attribute address_2.
-
#authorization_code ⇒ Object
readonly
Returns the value of attribute authorization_code.
-
#avs_response ⇒ Object
readonly
Returns the value of attribute avs_response.
-
#cardholder_auth ⇒ Object
readonly
Returns the value of attribute cardholder_auth.
-
#cavv ⇒ Object
readonly
Returns the value of attribute cavv.
-
#cavv_result ⇒ Object
readonly
Returns the value of attribute cavv_result.
-
#cc_bin ⇒ Object
readonly
Returns the value of attribute cc_bin.
-
#cc_exp ⇒ Object
readonly
Returns the value of attribute cc_exp.
-
#cc_hash ⇒ Object
readonly
Returns the value of attribute cc_hash.
-
#cc_number ⇒ Object
readonly
Returns the value of attribute cc_number.
-
#cell_phone ⇒ Object
readonly
Returns the value of attribute cell_phone.
-
#check_aba ⇒ Object
readonly
Returns the value of attribute check_aba.
-
#check_account ⇒ Object
readonly
Returns the value of attribute check_account.
-
#check_hash ⇒ Object
readonly
Returns the value of attribute check_hash.
-
#check_name ⇒ Object
readonly
Returns the value of attribute check_name.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#csc_response ⇒ Object
readonly
Returns the value of attribute csc_response.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#customerid ⇒ Object
readonly
Returns the value of attribute customerid.
-
#customertaxid ⇒ Object
readonly
Returns the value of attribute customertaxid.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#fax ⇒ Object
readonly
Returns the value of attribute fax.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#order_description ⇒ Object
readonly
Returns the value of attribute order_description.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#platform_id ⇒ Object
readonly
Returns the value of attribute platform_id.
-
#ponumber ⇒ Object
readonly
Returns the value of attribute ponumber.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#processor_id ⇒ Object
readonly
Returns the value of attribute processor_id.
-
#sec_code ⇒ Object
readonly
Returns the value of attribute sec_code.
-
#shipping ⇒ Object
readonly
Returns the value of attribute shipping.
-
#shipping_address_1 ⇒ Object
readonly
Returns the value of attribute shipping_address_1.
-
#shipping_address_2 ⇒ Object
readonly
Returns the value of attribute shipping_address_2.
-
#shipping_carrier ⇒ Object
readonly
Returns the value of attribute shipping_carrier.
-
#shipping_city ⇒ Object
readonly
Returns the value of attribute shipping_city.
-
#shipping_company ⇒ Object
readonly
Returns the value of attribute shipping_company.
-
#shipping_country ⇒ Object
readonly
Returns the value of attribute shipping_country.
-
#shipping_date ⇒ Object
readonly
Returns the value of attribute shipping_date.
-
#shipping_email ⇒ Object
readonly
Returns the value of attribute shipping_email.
-
#shipping_first_name ⇒ Object
readonly
Returns the value of attribute shipping_first_name.
-
#shipping_last_name ⇒ Object
readonly
Returns the value of attribute shipping_last_name.
-
#shipping_phone ⇒ Object
readonly
Returns the value of attribute shipping_phone.
-
#shipping_postal_code ⇒ Object
readonly
Returns the value of attribute shipping_postal_code.
-
#shipping_state ⇒ Object
readonly
Returns the value of attribute shipping_state.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#tax ⇒ Object
readonly
Returns the value of attribute tax.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
-
#transaction_type ⇒ Object
readonly
Returns the value of attribute transaction_type.
-
#website ⇒ Object
readonly
Returns the value of attribute website.
-
#xid ⇒ Object
readonly
Returns the value of attribute xid.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Transaction
constructor
A new instance of Transaction.
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_type ⇒ Object (readonly)
Returns the value of attribute account_holder_type.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def account_holder_type @account_holder_type end |
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def account_type @account_type end |
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def action @action end |
#address_1 ⇒ Object (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_2 ⇒ Object (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_code ⇒ Object (readonly)
Returns the value of attribute authorization_code.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def @authorization_code end |
#avs_response ⇒ Object (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_auth ⇒ Object (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 |
#cavv ⇒ Object (readonly)
Returns the value of attribute cavv.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def cavv @cavv end |
#cavv_result ⇒ Object (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_bin ⇒ Object (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_exp ⇒ Object (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_hash ⇒ Object (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_number ⇒ Object (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_phone ⇒ Object (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_aba ⇒ Object (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_account ⇒ Object (readonly)
Returns the value of attribute check_account.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def check_account @check_account end |
#check_hash ⇒ Object (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_name ⇒ Object (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 |
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def city @city end |
#company ⇒ Object (readonly)
Returns the value of attribute company.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def company @company end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def condition @condition end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def country @country end |
#csc_response ⇒ Object (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 |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def currency @currency end |
#customerid ⇒ Object (readonly)
Returns the value of attribute customerid.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def customerid @customerid end |
#customertaxid ⇒ Object (readonly)
Returns the value of attribute customertaxid.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def customertaxid @customertaxid end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def email @email end |
#fax ⇒ Object (readonly)
Returns the value of attribute fax.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def fax @fax end |
#first_name ⇒ Object (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_name ⇒ Object (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_description ⇒ Object (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_id ⇒ Object (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 |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def phone @phone end |
#platform_id ⇒ Object (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 |
#ponumber ⇒ Object (readonly)
Returns the value of attribute ponumber.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def ponumber @ponumber end |
#postal_code ⇒ Object (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_id ⇒ Object (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_code ⇒ Object (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 |
#shipping ⇒ Object (readonly)
Returns the value of attribute shipping.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def shipping @shipping end |
#shipping_address_1 ⇒ Object (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_2 ⇒ Object (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_carrier ⇒ Object (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_city ⇒ Object (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_company ⇒ Object (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_country ⇒ Object (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_date ⇒ Object (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_email ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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_phone ⇒ Object (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_code ⇒ Object (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_state ⇒ Object (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 |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def state @state end |
#tax ⇒ Object (readonly)
Returns the value of attribute tax.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def tax @tax end |
#tracking_number ⇒ Object (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_id ⇒ Object (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_type ⇒ Object (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 |
#website ⇒ Object (readonly)
Returns the value of attribute website.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def website @website end |
#xid ⇒ Object (readonly)
Returns the value of attribute xid.
3 4 5 |
# File 'lib/tiger-payment/transaction.rb', line 3 def xid @xid end |