Class RatingFilter

Removes offers based on buyer positive feedback ratings.

Class Summary

The filters will consider the rating of the offers, this filter is for Amazon sources only.

Using the Rating filter for amazon v1 sources:

For Amazon v1 sources - the filters will consider the Rating group that the offer is in.
For example:
If the filter is called with a value of 90. Then it considers the Rating group of 90-94%.

var amazon = FILLZ.SOURCE.AMAZONUS.v1;
var filter = FILLZ.FILTERS.v1;
var o1 = amazon.offers(filter.rating.greater_than(90));
// o1 will contain all Offers whose rating is in a group above, but not including, 90-94% (ie: 95-97%, 98-100%)
var o2 = amazon.offers(filter.rating.less_than_or_equal(90));
// o2 will contain all Offers whose rating is in the 90-94% group and below (including Just Launched)
var o3 = amazon.offers(filter.rating.equal_to(80));
// o3 will contain all Offers whose rating is in the 80-89% group

The current rating groups for amazon v1 sources are:

  • 98-100%
  • 95-97%
  • 90-94%
  • 80-89%
  • 70-79%
  • Less than 70%
  • Just Launched

Using the Rating filter for amazon v2 sources:

For Amazon v2 sources - the filter will consider the rating of the offer

var amazon = FILLZ.SOURCE.AMAZONUS.v2;
var filter = FILLZ.FILTERS.v1;
var o1 = amazon.offers(filter.rating.greater_than(90));
// o1 will contain all Offers whose rating is greater than 90%
var o2 = amazon.offers(filter.rating.less_than_or_equal(90));
// o2 will contain all Offers whose rating is less or equal than 90%
var o3 = amazon.offers(filter.rating.equal_to(80));
// o3 will contain all Offers whose rating is equal to 80%

The values of Amazon v2 ratings are:

  • Any percentage (integer)
  • Please note that sellers who are just launched will have a rating of 0

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.