(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.
(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.
(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.
(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.
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 |