class Ingenico::Connect::SDK::Domain::Payment::PaymentCreationOutput
@attr [true/false] is_new_token
@attr [String] token @attr [true/false] tokenization_succeeded
Attributes
is_new_token[RW]
token[RW]
tokenization_succeeded[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences#from_hash
# File lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb, line 31 def from_hash(hash) super 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::Domain::Payment::PaymentCreationReferences#to_h
# File lib/ingenico/connect/sdk/domain/payment/payment_creation_output.rb, line 23 def to_h hash = super 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