class Ingenico::Direct::SDK::Domain::PaymentCreationOutput
@attr [String] external_reference
@attr [true/false] is_new_token
@attr [String] token @attr [true/false] tokenization_succeeded
Attributes
external_reference[RW]
is_new_token[RW]
token[RW]
tokenization_succeeded[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/payment_creation_output.rb, line 30 def from_hash(hash) super @external_reference = hash['externalReference'] if hash.key? 'externalReference' @is_new_token = hash['isNewToken'] if hash.key? 'isNewToken' @token = hash['token'] if hash.key? 'token' @tokenization_succeeded = hash['tokenizationSucceeded'] if hash.key? 'tokenizationSucceeded' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/payment_creation_output.rb, line 21 def to_h hash = super hash['externalReference'] = @external_reference unless @external_reference.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