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.



6
7
8
# File 'lib/authorize_net/cim/customer_profile.rb', line 6

def customer_profile_id
  @customer_profile_id
end

#payment_profilesObject

Returns the value of attribute payment_profiles.



6
7
8
# File 'lib/authorize_net/cim/customer_profile.rb', line 6

def payment_profiles
  @payment_profiles
end

Instance Method Details

#to_hashObject



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

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