Class: TigerPayment::Customer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Customer

Returns a new instance of Customer.



47
48
49
50
51
52
53
54
55
56
# File 'lib/tiger-payment/customer.rb', line 47

def initialize(params = {})
  params.each_pair do |k,v|
    if v == [{}]
      instance_variable_set('@'+k, nil)
    else
      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/customer.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/customer.rb', line 3

def 
  @account_type
end

#address_1Object (readonly)

Returns the value of attribute address_1.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.rb', line 3

def address_2
  @address_2
end

#cc_binObject (readonly)

Returns the value of attribute cc_bin.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.rb', line 3

def 
  @check_account
end

#check_hashObject (readonly)

Returns the value of attribute check_hash.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.rb', line 3

def check_name
  @check_name
end

#cityObject (readonly)

Returns the value of attribute city.



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

def city
  @city
end

#companyObject (readonly)

Returns the value of attribute company.



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

def company
  @company
end

#countryObject (readonly)

Returns the value of attribute country.



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

def country
  @country
end

#customer_vault_idObject (readonly)

Returns the value of attribute customer_vault_id.



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

def customer_vault_id
  @customer_vault_id
end

#customertaxidObject (readonly)

Returns the value of attribute customertaxid.



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

def customertaxid
  @customertaxid
end

#emailObject (readonly)

Returns the value of attribute email.



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

def email
  @email
end

#faxObject (readonly)

Returns the value of attribute fax.



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

def fax
  @fax
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#phoneObject (readonly)

Returns the value of attribute phone.



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

def phone
  @phone
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.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/customer.rb', line 3

def sec_code
  @sec_code
end

#shippingObject (readonly)

Returns the value of attribute shipping.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.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/customer.rb', line 3

def shipping_last_name
  @shipping_last_name
end

#shipping_postal_codeObject (readonly)

Returns the value of attribute shipping_postal_code.



3
4
5
# File 'lib/tiger-payment/customer.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/customer.rb', line 3

def shipping_state
  @shipping_state
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number.



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

def tracking_number
  @tracking_number
end

#websiteObject (readonly)

Returns the value of attribute website.



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

def website
  @website
end