searchSubscriptions

suspend fun searchSubscriptions(status: String?, createdBefore: Int?, createdAfter: Int?): Pair<List<Subscription>?, NetworkingError?>

Searches for subscriptions matching the given filter criteria.

Return

A pair containing a list of matching Subscription objects on success, or a NetworkingError on failure.

Parameters

status

Optional subscription status to filter by (e.g., "active", "cancelled").

createdBefore

Optional Unix timestamp; returns subscriptions created before this time.

createdAfter

Optional Unix timestamp; returns subscriptions created after this time.


fun searchSubscriptions(status: String?, createdBefore: Int?, createdAfter: Int?, completionHandler: (List<Subscription>?, NetworkingError?) -> Unit)

Searches for subscriptions matching the given filter criteria and delivers the result via callback.

Parameters

status

Optional subscription status to filter by (e.g., "active", "cancelled").

createdBefore

Optional Unix timestamp; returns subscriptions created before this time.

createdAfter

Optional Unix timestamp; returns subscriptions created after this time.

completionHandler

Invoked with a list of matching Subscription objects on success, or a NetworkingError on failure.