Builder
public struct Builder
Builds a Gini Bank API Library
-
Undocumented
Declaration
Swift
public var sessionDelegate: URLSessionDelegate?
-
Creates a Gini Bank API Library.
Declaration
Swift
public init(client: Client, api: APIDomain = .default, userApi: UserDomain = .default, logLevel: LogLevel = .none, sessionDelegate: URLSessionDelegate? = nil)
Parameters
client
The Gini Bank API client credentials
api
The Gini Bank API that the library interacts with.
APIDomain.default
by defaultuserApi
The Gini User API that the library interacts with.
UserDomain.default
by defaultlogLevel
The log level.
LogLevel.none
by default.sessionDelegate
The session delegate
URLSessionDelegate
will be set for Gini Bank API Library withPinning
. -
Creates a Gini Bank API Library to be used with a transparent proxy and a custom api access token source.
Declaration
Swift
public init(customApiDomain: String, alternativeTokenSource: AlternativeTokenSource, logLevel: LogLevel = .none, sessionDelegate: URLSessionDelegate? = nil)
-
Undocumented
Declaration
Swift
public func build() -> GiniBankAPI