Class: Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840CustomerAccount
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payment::PaymentProduct840CustomerAccount
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb
Overview
Instance Attribute Summary collapse
-
#account_id ⇒ Object
String.
-
#billing_agreement_id ⇒ Object
String.
-
#company_name ⇒ Object
String.
-
#country_code ⇒ Object
String.
-
#customer_account_status ⇒ Object
String.
-
#customer_address_status ⇒ Object
String.
-
#first_name ⇒ Object
String.
-
#payer_id ⇒ Object
String.
-
#surname ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#account_id ⇒ Object
String
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 15 def account_id @account_id end |
#billing_agreement_id ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 18 def billing_agreement_id @billing_agreement_id end |
#company_name ⇒ Object
String
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 21 def company_name @company_name end |
#country_code ⇒ Object
String
24 25 26 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 24 def country_code @country_code end |
#customer_account_status ⇒ Object
String
27 28 29 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 27 def customer_account_status @customer_account_status end |
#customer_address_status ⇒ Object
String
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 30 def customer_address_status @customer_address_status end |
#first_name ⇒ Object
String
33 34 35 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 33 def first_name @first_name end |
#payer_id ⇒ Object
String
36 37 38 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 36 def payer_id @payer_id end |
#surname ⇒ Object
String
39 40 41 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 39 def surname @surname end |
Instance Method Details
#from_hash(hash) ⇒ Object
55 56 57 58 59 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 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 55 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?('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 ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb', line 41 def to_h hash = super add_to_hash(hash, 'accountId', @account_id) add_to_hash(hash, 'billingAgreementId', @billing_agreement_id) add_to_hash(hash, 'companyName', @company_name) add_to_hash(hash, 'countryCode', @country_code) add_to_hash(hash, 'customerAccountStatus', @customer_account_status) add_to_hash(hash, 'customerAddressStatus', @customer_address_status) add_to_hash(hash, 'firstName', @first_name) add_to_hash(hash, 'payerId', @payer_id) add_to_hash(hash, 'surname', @surname) hash end |