class Ingenico::Direct::SDK::Domain::RefundPaymentProduct840CustomerAccount

@attr [String] customer_account_status @attr [String] customer_address_status @attr [String] payer_id

Attributes

customer_account_status[RW]
customer_address_status[RW]
payer_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/refund_payment_product840_customer_account.rb, line 27
def from_hash(hash)
  super
  @customer_account_status = hash['customerAccountStatus'] if hash.key? 'customerAccountStatus'
  @customer_address_status = hash['customerAddressStatus'] if hash.key? 'customerAddressStatus'
  @payer_id = hash['payerId'] if hash.key? 'payerId'
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/refund_payment_product840_customer_account.rb, line 19
def to_h
  hash = super
  hash['customerAccountStatus'] = @customer_account_status unless @customer_account_status.nil?
  hash['customerAddressStatus'] = @customer_address_status unless @customer_address_status.nil?
  hash['payerId'] = @payer_id unless @payer_id.nil?
  hash
end