Extends
Methods
amount(amount, equality) → {Filter}
Add filtering by amount. e.g. "300" or ">300" or "<300"
Parameters:
Name | Type | Description |
---|---|---|
amount |
string | number | the target amount |
equality |
string | Filter.EQUALITY | equality for the filter. If none is specified EQUAL is used. |
- Source:
Returns:
the same filter.
- Type
- Filter
client(client) → {Filter}
Add filtering by payment
Parameters:
Name | Type | Description |
---|---|---|
client |
string | Client | the client object or its id. |
- Source:
Returns:
the same filter.
- Type
- Filter
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
description(description) → {Filter}
Add filtering by description
Parameters:
Name | Type | Description |
---|---|---|
description |
string | the description |
- Source:
Returns:
the same filter.
- Type
- Filter
payment(payment) → {Filter}
Add filtering by payment
Parameters:
Name | Type | Description |
---|---|---|
payment |
string | Payment | the payment object or its id. |
- Source:
Returns:
the same filter.
- Type
- Filter
status(status) → {Filter}
Add filtering by status
Parameters:
Name | Type | Description |
---|---|---|
status |
string | Transaction.Status | the status to be filtered. |
- Source:
Returns:
the same filter.
- Type
- Filter
updated_at(from, to) → {Filter}
Add filtering by updated_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