Class: Filter

Filter

new Filter()

Specify a filter for subscriptions.
Source:

Extends

Methods

created_at(from, to) → {Filter}

Add filtering by created_at
Parameters:
Name Type Description
from number | Date the start date of the filter, either as Date or Unix-time number.
to number | Date the end date of the filter, either as Date or Unix-time number.
Source:
Returns:
the same filter.
Type
Filter

offer(offer) → {Filter}

Add filtering by offer
Parameters:
Name Type Description
offer string | Offer the offer object or its id.
Source:
Returns:
the same filter.
Type
Filter