Pagination support for Stripe API requests.
Provides version-aware pagination that automatically selects the appropriate pagination strategy:
Pagination support for Stripe API requests. Provides version-aware pagination that automatically selects the appropriate pagination strategy: - v1: Cursor-based pagination with starting_after/ending_before - v2: URL-based pagination with next_page_url
(get-paginator version)Returns the appropriate paginator for the API version.
Returns the appropriate paginator for the API version.
(paginate method url params options make-request-fn)(paginate method url params options make-request-fn first-page-result)Handles pagination for Stripe API requests.
Parameters:
Returns: If :auto-paginate? is true, returns a lazy sequence of all items across all pages. Otherwise, returns the result of a single API call.
Handles pagination for Stripe API requests. Parameters: - method: The HTTP method (:get, :post, etc.) - url: The API endpoint URL - params: The request parameters - options: Additional options, including :auto-paginate? - make-request-fn: A function that takes params and makes a single API request - first-page-result: (optional) Pre-fetched first page to avoid duplicate request Returns: If :auto-paginate? is true, returns a lazy sequence of all items across all pages. Otherwise, returns the result of a single API call.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |