Class: Transfirst::Customer

Inherits:
API
  • Object
show all
Defined in:
lib/transfirst/customer.rb

Constant Summary collapse

BUSINESS_PHONE =
3
RECURRING_PAYMENT =
1
FETCH_NODE =
'custCrta'
FETCH_ID =
'id'

Constants inherited from API

API::ADD_ENTITY, API::MERCHANT_PROD_TYPE, API::MERCHANT_WEB_SERVICE, API::NO_API_ERROR, API::RECURRING, API::STATUS_ACTIVE, API::STATUS_INACTIVE, API::UPDATE_ENTITY, API::VERSION, API::XSD_PATH

Instance Attribute Summary collapse

Attributes inherited from API

#client, #gateway_id, #registration_key

Instance Method Summary collapse

Methods inherited from API

#make_request, #register

Constructor Details

#initialize(*args) ⇒ Customer

Returns a new instance of Customer.



12
13
14
15
16
# File 'lib/transfirst/customer.rb', line 12

def initialize(*args)
  api, attrs = *args
  @api = api
  @body = build_request(attrs)
end

Instance Attribute Details

#address_line1Object

Returns the value of attribute address_line1.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def address_line1
  @address_line1
end

#address_line2Object

Returns the value of attribute address_line2.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def address_line2
  @address_line2
end

#apiObject

Returns the value of attribute api.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def api
  @api
end

#cityObject

Returns the value of attribute city.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def city
  @city
end

#countryObject

Returns the value of attribute country.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def country
  @country
end

#emailObject

Returns the value of attribute email.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def email
  @email
end

#full_nameObject

Returns the value of attribute full_name.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def full_name
  @full_name
end

#phone_numberObject

Returns the value of attribute phone_number.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def phone_number
  @phone_number
end

#stateObject

Returns the value of attribute state.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def state
  @state
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def status
  @status
end

#tf_idObject

Returns the value of attribute tf_id.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def tf_id
  @tf_id
end

#zip_codeObject

Returns the value of attribute zip_code.



9
10
11
# File 'lib/transfirst/customer.rb', line 9

def zip_code
  @zip_code
end