DefaultSudoVirtualCardsSimulatorClient
public class DefaultSudoVirtualCardsSimulatorClient : SudoVirtualCardsSimulatorClient
Default Client API Endpoint for interacting with the virtual cards service simulator.
-
Initialize a default Sudo virtual cards simulator instance.
This initializer will load configuration from the main bundle - please ensure you have a correctly configured configuration in sudoplatformconfig.json.
Declaration
Swift
public convenience init() throws -
Initialize a default Sudo virtual cards simulator instance.
Declaration
Swift
convenience public init(config: SudoVirtualCardsSimulatorConfig) throwsParameters
configConfiguration to establish connection with service.
-
simulateAuthorizationWithInput(_:Asynchronous) Declaration
Swift
public func simulateAuthorizationWithInput(_ input: SimulateAuthorizationInput) async throws -> SimulateAuthorizationResponse -
simulateIncrementalAuthorizationWithInput(_:Asynchronous) Declaration
Swift
public func simulateIncrementalAuthorizationWithInput( _ input: SimulateIncrementalAuthorizationInput ) async throws -> SimulateAuthorizationResponse -
simulateReversalWithInput(_:Asynchronous) Declaration
Swift
public func simulateReversalWithInput(_ input: SimulateReversalInput) async throws -> SimulateReversalResponse -
simulateAuthorizationExpiryWithId(_:Asynchronous) Declaration
Swift
public func simulateAuthorizationExpiryWithId(_ id: String) async throws -> SimulateAuthorizationExpiryResponse -
simulateRefundWithInput(_:Asynchronous) Declaration
Swift
public func simulateRefundWithInput(_ input: SimulateRefundInput) async throws -> SimulateRefundResponse -
simulateDebitWithInput(_:Asynchronous) Declaration
Swift
public func simulateDebitWithInput(_ input: SimulateDebitInput) async throws -> SimulateDebitResponse
-
getSimulatorMerchants()AsynchronousDeclaration
Swift
public func getSimulatorMerchants() async throws -> [SimulatorMerchant] -
getSimulatorConversionRates()AsynchronousDeclaration
Swift
public func getSimulatorConversionRates() async throws -> [CurrencyAmount]
DefaultSudoVirtualCardsSimulatorClient Class Reference