Liking cljdoc? Tell your friends :D

stripe-clojure.http.util


flatten-paramsclj

(flatten-params params)

Flatten a nested map into a flat map with dotted keys, handling arrays correctly for Stripe API.

Flatten a nested map into a flat map with dotted keys, handling arrays correctly for Stripe API.
sourceraw docstring

format-expandclj

(format-expand expand)

Format the expand parameter for Stripe API requests.

This function converts a list of fields to expand into the format required by Stripe's API.

Parameters:

  • expand: A list or string of fields to expand.

Returns: A map with the formatted expand parameters.

Format the expand parameter for Stripe API requests.

This function converts a list of fields to expand into the format required by Stripe's API.

Parameters:
- `expand`: A list or string of fields to expand.

Returns:
A map with the formatted expand parameters.
sourceraw docstring

format-headersclj

(format-headers headers)

Format a map of headers for Stripe API requests.

This function converts a map of headers with keywords as keys into a map with properly formatted header strings.

Parameters:

  • headers: A map of headers with keywords as keys.

Returns: A map with properly formatted header strings.

Format a map of headers for Stripe API requests.

This function converts a map of headers with keywords as keys into a map with
properly formatted header strings.

Parameters:
- `headers`: A map of headers with keywords as keys.

Returns:
A map with properly formatted header strings.
sourceraw docstring

keyword-to-headerclj

(keyword-to-header k)

Convert a keyword to a properly formatted header string.

This function converts a keyword (e.g., :stripe-account) into a header string (e.g., "Stripe-Account") required by Stripe's API.

Parameters:

  • k: A keyword representing the header.

Returns: A string formatted as a header.

Convert a keyword to a properly formatted header string.

This function converts a keyword (e.g., :stripe-account) into a header string
(e.g., "Stripe-Account") required by Stripe's API.

Parameters:
- `k`: A keyword representing the header.

Returns:
A string formatted as a header.
sourceraw docstring

transform-keysclj

(transform-keys m)

Recursively transforms keys in a map (including nested maps and vectors) from underscore to kebab-case.

Parameters:

  • m: The input map (can be nested).

Returns: A new map with all keys transformed to kebab-case.

Recursively transforms keys in a map (including nested maps and vectors) from underscore to kebab-case.

Parameters:
- `m`: The input map (can be nested).

Returns:
A new map with all keys transformed to kebab-case.
sourceraw docstring

underscore-to-kebabclj

(underscore-to-kebab s)

Converts a string with underscores to kebab-case.

Example:

  • hello_mellohello-mello
  • some_example_stringsome-example-string

Parameters:

  • s: The input string with underscores.

Returns: A kebab-case string.

Converts a string with underscores to kebab-case.

Example:
- `hello_mello` → `hello-mello`
- `some_example_string` → `some-example-string`

Parameters:
- `s`: The input string with underscores.

Returns:
A kebab-case string.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close