class Ingenico::Connect::SDK::Domain::Services::IINDetail

@attr [true/false] is_allowed_in_context @attr [Integer] payment_product_id

Attributes

is_allowed_in_context[RW]
payment_product_id[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/services/iin_detail.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'isAllowedInContext'
    @is_allowed_in_context = hash['isAllowedInContext']
  end
  if hash.has_key? 'paymentProductId'
    @payment_product_id = hash['paymentProductId']
  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/services/iin_detail.rb, line 20
def to_h
  hash = super
  hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
  hash
end