Class: Worldline::Connect::SDK::V1::Domain::CustomerAccount
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::CustomerAccount
- Defined in:
- lib/worldline/connect/sdk/v1/domain/customer_account.rb
Instance Attribute Summary collapse
-
#authentication ⇒ Worldline::Connect::SDK::V1::Domain::CustomerAccountAuthentication
The current value of authentication.
-
#change_date ⇒ String
The current value of change_date.
-
#changed_during_checkout ⇒ true/false
The current value of changed_during_checkout.
-
#create_date ⇒ String
The current value of create_date.
-
#had_suspicious_activity ⇒ true/false
The current value of had_suspicious_activity.
-
#has_forgotten_password ⇒ true/false
The current value of has_forgotten_password.
-
#has_password ⇒ true/false
The current value of has_password.
-
#password_change_date ⇒ String
The current value of password_change_date.
-
#password_changed_during_checkout ⇒ true/false
The current value of password_changed_during_checkout.
-
#payment_account_on_file ⇒ Worldline::Connect::SDK::V1::Domain::PaymentAccountOnFile
The current value of payment_account_on_file.
-
#payment_account_on_file_type ⇒ String
The current value of payment_account_on_file_type.
-
#payment_activity ⇒ Worldline::Connect::SDK::V1::Domain::CustomerPaymentActivity
The current value of payment_activity.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#authentication ⇒ Worldline::Connect::SDK::V1::Domain::CustomerAccountAuthentication
Returns the current value of authentication.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def authentication @authentication end |
#change_date ⇒ String
Returns the current value of change_date.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def change_date @change_date end |
#changed_during_checkout ⇒ true/false
Returns the current value of changed_during_checkout.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def changed_during_checkout @changed_during_checkout end |
#create_date ⇒ String
Returns the current value of create_date.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def create_date @create_date end |
#had_suspicious_activity ⇒ true/false
Returns the current value of had_suspicious_activity.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def had_suspicious_activity @had_suspicious_activity end |
#has_forgotten_password ⇒ true/false
Returns the current value of has_forgotten_password.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def has_forgotten_password @has_forgotten_password end |
#has_password ⇒ true/false
Returns the current value of has_password.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def has_password @has_password end |
#password_change_date ⇒ String
Returns the current value of password_change_date.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def password_change_date @password_change_date end |
#password_changed_during_checkout ⇒ true/false
Returns the current value of password_changed_during_checkout.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def password_changed_during_checkout @password_changed_during_checkout end |
#payment_account_on_file ⇒ Worldline::Connect::SDK::V1::Domain::PaymentAccountOnFile
Returns the current value of payment_account_on_file.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def payment_account_on_file @payment_account_on_file end |
#payment_account_on_file_type ⇒ String
Returns the current value of payment_account_on_file_type.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def payment_account_on_file_type @payment_account_on_file_type end |
#payment_activity ⇒ Worldline::Connect::SDK::V1::Domain::CustomerPaymentActivity
Returns the current value of payment_activity.
27 28 29 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 27 def payment_activity @payment_activity end |
Instance Method Details
#from_hash(hash) ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 71 def from_hash(hash) super if hash.has_key? 'authentication' raise TypeError, "value '%s' is not a Hash" % [hash['authentication']] unless hash['authentication'].is_a? Hash @authentication = Worldline::Connect::SDK::V1::Domain::CustomerAccountAuthentication.new_from_hash(hash['authentication']) end if hash.has_key? 'changeDate' @change_date = hash['changeDate'] end if hash.has_key? 'changedDuringCheckout' @changed_during_checkout = hash['changedDuringCheckout'] end if hash.has_key? 'createDate' @create_date = hash['createDate'] end if hash.has_key? 'hadSuspiciousActivity' @had_suspicious_activity = hash['hadSuspiciousActivity'] end if hash.has_key? 'hasForgottenPassword' @has_forgotten_password = hash['hasForgottenPassword'] end if hash.has_key? 'hasPassword' @has_password = hash['hasPassword'] end if hash.has_key? 'passwordChangeDate' @password_change_date = hash['passwordChangeDate'] end if hash.has_key? 'passwordChangedDuringCheckout' @password_changed_during_checkout = hash['passwordChangedDuringCheckout'] end if hash.has_key? 'paymentAccountOnFile' raise TypeError, "value '%s' is not a Hash" % [hash['paymentAccountOnFile']] unless hash['paymentAccountOnFile'].is_a? Hash @payment_account_on_file = Worldline::Connect::SDK::V1::Domain::PaymentAccountOnFile.new_from_hash(hash['paymentAccountOnFile']) end if hash.has_key? 'paymentAccountOnFileType' @payment_account_on_file_type = hash['paymentAccountOnFileType'] end if hash.has_key? 'paymentActivity' raise TypeError, "value '%s' is not a Hash" % [hash['paymentActivity']] unless hash['paymentActivity'].is_a? Hash @payment_activity = Worldline::Connect::SDK::V1::Domain::CustomerPaymentActivity.new_from_hash(hash['paymentActivity']) end end |
#to_h ⇒ Hash
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/worldline/connect/sdk/v1/domain/customer_account.rb', line 54 def to_h hash = super hash['authentication'] = @authentication.to_h unless @authentication.nil? hash['changeDate'] = @change_date unless @change_date.nil? hash['changedDuringCheckout'] = @changed_during_checkout unless @changed_during_checkout.nil? hash['createDate'] = @create_date unless @create_date.nil? hash['hadSuspiciousActivity'] = @had_suspicious_activity unless @had_suspicious_activity.nil? hash['hasForgottenPassword'] = @has_forgotten_password unless @has_forgotten_password.nil? hash['hasPassword'] = @has_password unless @has_password.nil? hash['passwordChangeDate'] = @password_change_date unless @password_change_date.nil? hash['passwordChangedDuringCheckout'] = @password_changed_during_checkout unless @password_changed_during_checkout.nil? hash['paymentAccountOnFile'] = @payment_account_on_file.to_h unless @payment_account_on_file.nil? hash['paymentAccountOnFileType'] = @payment_account_on_file_type unless @payment_account_on_file_type.nil? hash['paymentActivity'] = @payment_activity.to_h unless @payment_activity.nil? hash end |