Class: OnlinePayments::SDK::Domain::RefundPaymentProduct840CustomerAccount
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::RefundPaymentProduct840CustomerAccount
- Defined in:
- lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb
Instance Attribute Summary collapse
-
#customer_account_status ⇒ String
The current value of customer_account_status.
-
#customer_address_status ⇒ String
The current value of customer_address_status.
-
#payer_id ⇒ String
The current value of payer_id.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#customer_account_status ⇒ String
Returns the current value of customer_account_status.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 12 def customer_account_status @customer_account_status end |
#customer_address_status ⇒ String
Returns 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_id ⇒ String
Returns 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
26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 26 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 ⇒ Hash
18 19 20 21 22 23 24 |
# File 'lib/onlinepayments/sdk/domain/refund_payment_product840_customer_account.rb', line 18 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 |