Class: OnlinePayments::SDK::Domain::RefundPaymentProduct840CustomerAccount

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#customer_account_statusString

Returns the current value of customer_account_status.

Returns:

  • (String)

    the current value of customer_account_status



12
13
14
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 12

def 
  
end

#customer_address_statusString

Returns the current value of customer_address_status.

Returns:

  • (String)

    the current value of customer_address_status



12
13
14
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 12

def customer_address_status
  @customer_address_status
end

#payer_idString

Returns the current value of payer_id.

Returns:

  • (String)

    the current value of payer_id



12
13
14
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 12

def payer_id
  @payer_id
end

Instance Method Details

#from_hash(hash) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 29

def from_hash(hash)
  super
  if hash.has_key? 'customerAccountStatus'
     = 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_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 21

def to_h
  hash = super
  hash['customerAccountStatus'] =  unless .nil?
  hash['customerAddressStatus'] = @customer_address_status unless @customer_address_status.nil?
  hash['payerId'] = @payer_id unless @payer_id.nil?
  hash
end