Class: OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount
- Defined in:
- lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb
Instance Attribute Summary collapse
-
#account_id ⇒ String
The current value of account_id.
-
#company_name ⇒ String
The current value of company_name.
-
#country_code ⇒ String
The current value of country_code.
-
#customer_account_status ⇒ String
The current value of customer_account_status.
-
#customer_address_status ⇒ String
The current value of customer_address_status.
-
#first_name ⇒ String
The current value of first_name.
-
#payer_id ⇒ String
The current value of payer_id.
-
#surname ⇒ String
The current value of surname.
Instance Method Summary collapse
Methods inherited from OnlinePayments::SDK::DataObject
Instance Attribute Details
#account_id ⇒ String
Returns the current value of account_id.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def account_id @account_id end |
#company_name ⇒ String
Returns the current value of company_name.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def company_name @company_name end |
#country_code ⇒ String
Returns the current value of country_code.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def country_code @country_code end |
#customer_account_status ⇒ String
Returns the current value of customer_account_status.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def customer_account_status @customer_account_status end |
#customer_address_status ⇒ String
Returns the current value of customer_address_status.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def customer_address_status @customer_address_status end |
#first_name ⇒ String
Returns the current value of first_name.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def first_name @first_name end |
#payer_id ⇒ String
Returns the current value of payer_id.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def payer_id @payer_id end |
#surname ⇒ String
Returns the current value of surname.
17 18 19 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 17 def surname @surname end |
Instance Method Details
#from_hash(hash) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 41 def from_hash(hash) super @account_id = hash['accountId'] if hash.key? 'accountId' @company_name = hash['companyName'] if hash.key? 'companyName' @country_code = hash['countryCode'] if hash.key? 'countryCode' @customer_account_status = hash['customerAccountStatus'] if hash.key? 'customerAccountStatus' @customer_address_status = hash['customerAddressStatus'] if hash.key? 'customerAddressStatus' @first_name = hash['firstName'] if hash.key? 'firstName' @payer_id = hash['payerId'] if hash.key? 'payerId' @surname = hash['surname'] if hash.key? 'surname' end |
#to_h ⇒ Hash
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb', line 28 def to_h hash = super hash['accountId'] = @account_id unless @account_id.nil? hash['companyName'] = @company_name unless @company_name.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 |