Class: Ingenico::Connect::SDK::Domain::Payment::PaymentCreationOutput
- Inherits:
-
PaymentCreationReferences
- Object
- Ingenico::Connect::SDK::DataObject
- PaymentCreationReferences
- Ingenico::Connect::SDK::Domain::Payment::PaymentCreationOutput
- Defined in:
- lib/ingenico/connect/sdk/domain/payment/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 Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#is_checked_remember_me ⇒ true/false
Returns the current value of is_checked_remember_me.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 15 def is_checked_remember_me @is_checked_remember_me end |
#is_new_token ⇒ true/false
Returns the current value of is_new_token.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 15 def is_new_token @is_new_token end |
#token ⇒ String
Returns the current value of token.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 15 def token @token end |
#tokenization_succeeded ⇒ true/false
Returns the current value of tokenization_succeeded.
15 16 17 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 15 def tokenization_succeeded @tokenization_succeeded end |
Instance Method Details
#from_hash(hash) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 35 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
26 27 28 29 30 31 32 33 |
# File 'lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb', line 26 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 |