class AuthorizeNet::CIM::PaymentProfile

Models a payment profile.

Attributes

billing_address[RW]
cust_type[RW]
customer_payment_profile_id[RW]
payment_method[RW]

Public Instance Methods

to_hash() click to toggle source
# File lib/authorize_net/cim/payment_profile.rb, line 25
def to_hash
  hash = {
    :cust_type => @cust_type,
    :customer_payment_profile_id => @customer_payment_profile_id
  }
  hash.delete_if {|k, v| v.nil?}
  hash.merge!(@billing_address.to_hash) unless @billing_address.nil?
  hash.merge!(@payment_method.to_hash) unless @payment_method.nil?
  hash
end