Class: Worldline::Connect::SDK::V1::Domain::PaymentProduct840CustomerAccount
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProduct840CustomerAccount
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb
Instance Attribute Summary collapse
-
#account_id ⇒ String
The current value of account_id.
-
#billing_agreement_id ⇒ String
The current value of billing_agreement_id.
-
#company_name ⇒ String
The current value of company_name.
-
#contact_phone ⇒ String
The current value of contact_phone.
-
#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 Domain::DataObject
Instance Attribute Details
#account_id ⇒ String
Returns the current value of account_id.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def account_id @account_id end |
#billing_agreement_id ⇒ String
Returns the current value of billing_agreement_id.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def billing_agreement_id @billing_agreement_id end |
#company_name ⇒ String
Returns the current value of company_name.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def company_name @company_name end |
#contact_phone ⇒ String
Returns the current value of contact_phone.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def contact_phone @contact_phone end |
#country_code ⇒ String
Returns the current value of country_code.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def country_code @country_code end |
#customer_account_status ⇒ String
Returns the current value of customer_account_status.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def customer_account_status @customer_account_status end |
#customer_address_status ⇒ String
Returns the current value of customer_address_status.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def customer_address_status @customer_address_status end |
#first_name ⇒ String
Returns the current value of first_name.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def first_name @first_name end |
#payer_id ⇒ String
Returns the current value of payer_id.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def payer_id @payer_id end |
#surname ⇒ String
Returns the current value of surname.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 22 def surname @surname end |
Instance Method Details
#from_hash(hash) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 60 def from_hash(hash) super if hash.has_key? 'accountId' @account_id = hash['accountId'] end if hash.has_key? 'billingAgreementId' @billing_agreement_id = hash['billingAgreementId'] end if hash.has_key? 'companyName' @company_name = hash['companyName'] end if hash.has_key? 'contactPhone' @contact_phone = hash['contactPhone'] end if hash.has_key? 'countryCode' @country_code = hash['countryCode'] end 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? 'firstName' @first_name = hash['firstName'] end if hash.has_key? 'payerId' @payer_id = hash['payerId'] end if hash.has_key? 'surname' @surname = hash['surname'] end end |
#to_h ⇒ Hash
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product840_customer_account.rb', line 45 def to_h hash = super hash['accountId'] = @account_id unless @account_id.nil? hash['billingAgreementId'] = @billing_agreement_id unless @billing_agreement_id.nil? hash['companyName'] = @company_name unless @company_name.nil? hash['contactPhone'] = @contact_phone unless @contact_phone.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 |