class Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840CustomerAccount

@attr [String] account_id @attr [String] billing_agreement_id @attr [String] company_name @attr [String] contact_phone @attr [String] country_code @attr [String] customer_account_status @attr [String] customer_address_status @attr [String] first_name @attr [String] payer_id @attr [String] surname

Attributes

account_id[RW]
billing_agreement_id[RW]
company_name[RW]
contact_phone[RW]
country_code[RW]
customer_account_status[RW]
customer_address_status[RW]
first_name[RW]
payer_id[RW]
surname[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb, line 59
def from_hash(hash)
  super
  if hash.has_key? 'accountId'
    @account_id = hash['accountId']
  end
  if hash.has_key? 'billingAgreementId'
    @billing_agreement_id = hash['billingAgreementId']
  end
  if hash.has_key? 'companyName'
    @company_name = hash['companyName']
  end
  if hash.has_key? 'contactPhone'
    @contact_phone = hash['contactPhone']
  end
  if hash.has_key? 'countryCode'
    @country_code = hash['countryCode']
  end
  if hash.has_key? 'customerAccountStatus'
    @customer_account_status = hash['customerAccountStatus']
  end
  if hash.has_key? 'customerAddressStatus'
    @customer_address_status = hash['customerAddressStatus']
  end
  if hash.has_key? 'firstName'
    @first_name = hash['firstName']
  end
  if hash.has_key? 'payerId'
    @payer_id = hash['payerId']
  end
  if hash.has_key? 'surname'
    @surname = hash['surname']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb, line 44
def to_h
  hash = super
  hash['accountId'] = @account_id unless @account_id.nil?
  hash['billingAgreementId'] = @billing_agreement_id unless @billing_agreement_id.nil?
  hash['companyName'] = @company_name unless @company_name.nil?
  hash['contactPhone'] = @contact_phone unless @contact_phone.nil?
  hash['countryCode'] = @country_code unless @country_code.nil?
  hash['customerAccountStatus'] = @customer_account_status unless @customer_account_status.nil?
  hash['customerAddressStatus'] = @customer_address_status unless @customer_address_status.nil?
  hash['firstName'] = @first_name unless @first_name.nil?
  hash['payerId'] = @payer_id unless @payer_id.nil?
  hash['surname'] = @surname unless @surname.nil?
  hash
end