Liking cljdoc? Tell your friends :D

stripe-clojure.http.api-version

API version detection and constants for Stripe v1 and v2 APIs.

Key differences between v1 and v2:

  • Request encoding: v1 uses form-urlencoded, v2 uses JSON
  • Pagination: v1 uses cursor-based (starting_after), v2 uses URL-based (next_page_url)
  • Field expansion: v1 uses 'expand' parameter, v2 uses 'include' parameter
  • Idempotency: v1 has 24h window, v2 has 30d window
API version detection and constants for Stripe v1 and v2 APIs.

Key differences between v1 and v2:
- Request encoding: v1 uses form-urlencoded, v2 uses JSON
- Pagination: v1 uses cursor-based (starting_after), v2 uses URL-based (next_page_url)
- Field expansion: v1 uses 'expand' parameter, v2 uses 'include' parameter
- Idempotency: v1 has 24h window, v2 has 30d window
raw docstring

detect-versionclj

(detect-version endpoint)

Auto-detect API version from endpoint path.

Returns :v2 for paths starting with '/v2/', otherwise returns :v1. Returns :v1 for nil or empty endpoints.

Examples: (detect-version "/v1/customers") ; => :v1 (detect-version "/v2/core/events") ; => :v2

Auto-detect API version from endpoint path.

Returns :v2 for paths starting with '/v2/', otherwise returns :v1.
Returns :v1 for nil or empty endpoints.

Examples:
(detect-version "/v1/customers")  ; => :v1
(detect-version "/v2/core/events") ; => :v2
sourceraw docstring

V1clj

Stripe API version 1 identifier.

Stripe API version 1 identifier.
sourceraw docstring

v1?clj

(v1? version)

Returns true if the API version is v1.

Returns true if the API version is v1.
sourceraw docstring

V2clj

Stripe API version 2 identifier.

Stripe API version 2 identifier.
sourceraw docstring

v2?clj

(v2? version)

Returns true if the API version is v2.

Returns true if the API version is v2.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close