Class: Worldline::Connect::SDK::V1::Domain::PaymentCreationOutput
- Inherits:
-
PaymentCreationReferences
- Object
- Domain::DataObject
- PaymentCreationReferences
- Worldline::Connect::SDK::V1::Domain::PaymentCreationOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb
Instance Attribute Summary collapse
-
#is_checked_remember_me ⇒ true/false
The current value of is_checked_remember_me.
-
#is_new_token ⇒ true/false
The current value of is_new_token.
-
#token ⇒ String
The current value of token.
-
#tokenization_succeeded ⇒ true/false
The current value of tokenization_succeeded.
Attributes inherited from PaymentCreationReferences
#additional_reference, #external_reference
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#is_checked_remember_me ⇒ true/false
Returns the current value of is_checked_remember_me.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16 def is_checked_remember_me @is_checked_remember_me end |
#is_new_token ⇒ true/false
Returns the current value of is_new_token.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16 def is_new_token @is_new_token end |
#token ⇒ String
Returns the current value of token.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16 def token @token end |
#tokenization_succeeded ⇒ true/false
Returns the current value of tokenization_succeeded.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 16 def tokenization_succeeded @tokenization_succeeded end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 36 def from_hash(hash) super if hash.has_key? 'isCheckedRememberMe' @is_checked_remember_me = hash['isCheckedRememberMe'] end if hash.has_key? 'isNewToken' @is_new_token = hash['isNewToken'] end if hash.has_key? 'token' @token = hash['token'] end if hash.has_key? 'tokenizationSucceeded' @tokenization_succeeded = hash['tokenizationSucceeded'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_creation_output.rb', line 27 def to_h hash = super hash['isCheckedRememberMe'] = @is_checked_remember_me unless @is_checked_remember_me.nil? hash['isNewToken'] = @is_new_token unless @is_new_token.nil? hash['token'] = @token unless @token.nil? hash['tokenizationSucceeded'] = @tokenization_succeeded unless @tokenization_succeeded.nil? hash end |