DefaultSudoVirtualCardsClient

public class DefaultSudoVirtualCardsClient : SudoVirtualCardsClient

Default Client API Endpoint for interacting with the Virtual Cards Service.

Lifecycle

  • Initialize a DefaultSudoVirtualCardsClient instance. It uses configuration parameters defined in sudoplatformconfig.json file located in the app bundle.

    Declaration

    Swift

    public convenience init(
        keyNamespace: String = "com.sudoplatform.virtualcards",
        config: SudoVirtualCardsConfig? = nil,
        userClient: SudoUserClient
    ) throws

    Parameters

    keyNamespace

    Namespace to use for the keys and passwords. This should be left as the default property

    config

    Optional configuration to override AWS endpoint. It is recommended that this be left nil.

    userClient

    SudoUserClient instance used for authentication. Throws:

  • Declaration

    Swift

    public func reset() throws
  • createKeysIfAbsent() Asynchronous

    Declaration

    Swift

    public func createKeysIfAbsent() async throws -> CreateKeysIfAbsentResult

Methods

Transactions

Sandbox APIs