Class CountryCodeFilter

Selects offers having a country code that matches a regexp.

This filter only works with FILLZ.SOURCE.ABEBOOKS.v2, FILLZ.SOURCE.AMAZONCA.v2, FILLZ.SOURCE.AMAZONDE.v2, FILLZ.SOURCE.AMAZONFR.v2, FILLZ.SOURCE.AMAZONUK.v2 and FILLZ.SOURCE.AMAZONUS.v2.

Class Summary

Using the CountryCode filter:

var abe = FILLZ.SOURCE.ABEBOOKS.v2;
var filter = FILLZ.FILTERS.v1;
//will keep only offers where the country code is US or CA
var offers = abe.offers(filter.country_code.matches(/ca|us/i));

Methods

  • matches(regexp)

    Returns true if Offer country matches regexp (which must be a RegExp)