RoutexRefreshClient
constructor(baseUrl: Url = DEFAULT_BASE_URL, httpTransport: HttpTransport = defaultHttpTransport(), userInSession: UserInSession? = null)
Construct a client.
Parameters
baseUrl
Base URL of the YAXI API. Defaults to the production endpoint.
httpTransport
HTTP transport. Defaults to a Ktor engine selected per platform.
userInSession
Indicates a user is in session for every service call this client makes, lifting the bank's limit on requests without one (see UserInSession). null (default) makes calls without a user in session.
constructor(baseUrl: String, httpTransport: HttpTransport = defaultHttpTransport(), userInSession: UserInSession? = null)
Convenience overload that parses baseUrl as a Ktor Url.