QueryStringFactory

Factory for HTTP request query strings, converts a Map of into a query string like "?p1=v1&p2=v2"

Functions

Link copied to clipboard
fun compactParams(params: Map<String, *>): Map<String, Any>

Copy the {@param params} map and recursively remove null and empty values. The Stripe API requires that parameters with null values are removed from requests.

Link copied to clipboard
fun create(params: Map<String, *>?): String

Create a query string from a Map

Link copied to clipboard

Create a query string from a Map with possible empty values, remove the empty values first