class Ingenico::Connect::SDK::Domain::Token::CreateTokenResponse
@attr [true/false] is_new_token
@attr [String] original_payment_id
@attr [String] token
Attributes
is_new_token[RW]
original_payment_id[RW]
token[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/token/create_token_response.rb, line 31 def from_hash(hash) super if hash.has_key? 'isNewToken' @is_new_token = hash['isNewToken'] end if hash.has_key? 'originalPaymentId' @original_payment_id = hash['originalPaymentId'] end if hash.has_key? 'token' @token = hash['token'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/token/create_token_response.rb, line 23 def to_h hash = super hash['isNewToken'] = @is_new_token unless @is_new_token.nil? hash['originalPaymentId'] = @original_payment_id unless @original_payment_id.nil? hash['token'] = @token unless @token.nil? hash end