Class: Ingenico::Connect::SDK::Domain::Payment::RefundPaymentProduct840CustomerAccount

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#customer_account_statusObject

String



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb', line 15

def 
  @customer_account_status
end

#customer_address_statusObject

String



18
19
20
# File 'lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb', line 18

def customer_address_status
  @customer_address_status
end

#payer_idObject

String



21
22
23
# File 'lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb', line 21

def payer_id
  @payer_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb', line 31

def from_hash(hash)
  super
  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?('payerId')
    @payer_id = hash['payerId']
  end
end

#to_hObject



23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb', line 23

def to_h
  hash = super
  add_to_hash(hash, 'customerAccountStatus', @customer_account_status)
  add_to_hash(hash, 'customerAddressStatus', @customer_address_status)
  add_to_hash(hash, 'payerId', @payer_id)
  hash
end