Class HandlingTimeFilter

Removes offers based on handling time constraints.

Class Summary

For Amazon - the filters will consider the handling time group that the offer is in. For example: If the filter is called with a value of 1, then it considers the handling time group of 0-2 days.

Using the handling time filter:

var amazon = FILLZ.SOURCE.AMAZONUS.v1;
var filter = FILLZ.FILTERS.v1;
var o1 = amazon.offers(filter.handling_time.greater_than(1));
// o1 will contain all Offers whose handling time is in a group above, but not including, 0-2 days
// ie: 3-7 days, 8-13 days, or 14 or more days
var o2 = amazon.offers(filter.handling_time.less_than_or_equal(5));
// o2 will contain all Offers whose handling time is in the 3-7 days group and below. ie: 0-2 days or 3-7 days
var o3 = amazon.offers(filter.handling_time.equal_to(9));
// o3 will contain all Offers whose handling time is in the 8-13 days group

The current Amazon handling time groups are:

  • 0-2 days
  • 3-7 days
  • 8-13 days
  • 14 or more days

Methods

  • less_than(value)

    Returns true if Offer value is less than value.

  • less_than_or_equal(value)

    Returns true if Offer value is less than or equal to value

  • greater_than(value)

    Returns true if Offer value is greater than value

  • greater_than_or_equal(value)

    Returns true if Offer value is greater than or equal to value

  • equal_to(value)

    Returns true if Offer value is equal to value

  • within(min,max)

    Returns true if Offer value is greater or equal to min and less or equal to max.