class Ingenico::Connect::SDK::Domain::Definitions::PaymentProductFilter

@attr [Array<Integer>] products
@attr [Array<String>] groups

def from_hash(hash)

def from_hash(hash)
  super
  if hash.has_key? 'groups'
    raise TypeError, "value '%s' is not an Array" % [hash['groups']] unless hash['groups'].is_a? Array
    @groups = []
    hash['groups'].each do |e|
      @groups << e
    end
  end
  if hash.has_key? 'products'
    raise TypeError, "value '%s' is not an Array" % [hash['products']] unless hash['products'].is_a? Array
    @products = []
    hash['products'].each do |e|
      @products << e
    end
  end
end

def to_h

Returns:
  • (Hash) -
def to_h
  hash = super
  hash['groups'] = @groups unless @groups.nil?
  hash['products'] = @products unless @products.nil?
  hash
end