Class: AuthorizeNet::CIM::CustomerProfile

Inherits:
AuthorizeNet::Customer show all
Includes:
Model
Defined in:
lib/authorize_net/cim/customer_profile.rb

Overview

Models a customer profile.

Instance Attribute Summary collapse

Attributes inherited from AuthorizeNet::Customer

#address, #description, #email, #fax, #id, #ip, #phone

Instance Method Summary collapse

Methods included from Model

#initialize, #to_a

Instance Attribute Details

#customer_profile_idObject

Returns the value of attribute customer_profile_id.



8
9
10
# File 'lib/authorize_net/cim/customer_profile.rb', line 8

def customer_profile_id
  @customer_profile_id
end

#payment_profilesObject

Returns the value of attribute payment_profiles.



8
9
10
# File 'lib/authorize_net/cim/customer_profile.rb', line 8

def payment_profiles
  @payment_profiles
end

Instance Method Details

#to_hashObject



10
11
12
13
14
15
# File 'lib/authorize_net/cim/customer_profile.rb', line 10

def to_hash
  hash = super
  hash.delete_if {|k, v| v.nil?}
  hash[:payment_profiles] = handle_multivalue_hashing(@payment_profiles)
  hash
end