Builder
public struct Builder
Builds a Gini Pay Api Library
-
Creates a Gini Pay Api Library
Declaration
Swift
public init(client: Client, api: APIDomain = .default, userApi: UserDomain = .default, logLevel: LogLevel = .none)
Parameters
client
The Gini API client credentials
api
The Gini 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. -
Creates a Gini Pay 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)
-
Undocumented
Declaration
Swift
public func build() -> GiniApiLib