class Ingenico::Direct::SDK::Domain::CreateHostedTokenizationRequest

@attr [true/false] ask_consumer_consent @attr [String] locale @attr [String] tokens @attr [String] variant

Attributes

locale[RW]
tokens[RW]
variant[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/create_hosted_tokenization_request.rb, line 30
def from_hash(hash)
  super
  @ask_consumer_consent = hash['askConsumerConsent'] if hash.key? 'askConsumerConsent'
  @locale = hash['locale'] if hash.key? 'locale'
  @tokens = hash['tokens'] if hash.key? 'tokens'
  @variant = hash['variant'] if hash.key? 'variant'
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/create_hosted_tokenization_request.rb, line 21
def to_h
  hash = super
  hash['askConsumerConsent'] = @ask_consumer_consent unless @ask_consumer_consent.nil?
  hash['locale'] = @locale unless @locale.nil?
  hash['tokens'] = @tokens unless @tokens.nil?
  hash['variant'] = @variant unless @variant.nil?
  hash
end