var readerEvents: AsyncStream<PaymentCardReader.Event>
Stream of payment card reader events from Apple’s ProximityReader framework
class KoardMerchantSDK
var readerEvents: AsyncStream<PaymentCardReader.Event>
func auth(transactionId: String, amount: Int, breakdown: PaymentBreakdown?, eventId: String?) async throws -> TransactionResponse
func capture(transactionId: String, amount: Int?, breakdown: PaymentBreakdown?, eventId: String?) async throws -> TransactionResponse
func confirm(transaction: String, confirm: Bool) async throws -> KoardTransaction
func createFallbackLink(amount: Int, breakdown: PaymentBreakdown?) async throws -> FallbackResponse
func deinitializeCardReader()
func getActiveLocationID() -> String?
func getMerchantAccount() async throws -> AccountBase
func getToken() async throws -> PaymentCardReader.Token
func initialize(options: KoardOptions, apiKey: String)
func isAccountLinked() async throws -> Bool
func linkAccount() throws
func locations(request: GetLocationsRequest) async throws -> [Location]
func login(code: String, pin: String) async throws
func logout()
func preauth(amount: Int, breakdown: PaymentBreakdown?, currency: CurrencyCode, eventId: String?) async throws -> TransactionResponse
func prepare() async throws
func presentTutorial(from: UIViewController) throws
func refund(transactionID: String, amount: Int?, eventId: String?) async throws -> TransactionResponse
func refund(transactionId: String, amount: Int?, eventId: String?) async throws -> TransactionResponse
func reverse(transactionId: String, amount: Int?, eventId: String?) async throws -> TransactionResponse
func sale(amount: Int, breakdown: PaymentBreakdown?, currency: CurrencyCode, eventId: String?, type: PaymentType) async throws -> TransactionResponse
func searchTransactions(String) async throws -> TransactionHistoryResponse
func searchTransactionsAdvanced(searchTerm: String?, startDate: Date?, endDate: Date?, statuses: [String]?, types: [String]?, cardNumber: String?, minAmount: Int?, maxAmount: Int?, eventId: String?, limit: Int, offset: Int, sortBy: String, sortOrder: String) async throws -> TransactionHistoryResponse
func sendReceipts(transactionId: String, email: String?, phoneNumber: String?) async throws -> SendReceiptsResponse
func setActiveLocationID(String)
func transactionHistory(request: GetTransactionHistoryRequest) async throws -> TransactionHistoryResponse
func transactionsByCardNumber(String) async throws -> TransactionHistoryResponse
func transactionsByDateRange(startDate: Date, endDate: Date) async throws -> TransactionHistoryResponse
func transactionsByStatus(String) async throws -> TransactionHistoryResponse
func transactionsByStatusAndTypeStrings(statuses: [String], types: [String]) async throws -> TransactionHistoryResponse
func transactionsByStatuses([String]) async throws -> TransactionHistoryResponse
func transactionsByStatusesAndTypes(statuses: [KoardTransaction.Status], types: [PaymentType]) async throws -> TransactionHistoryResponse
func transactionsByType(PaymentType) async throws -> TransactionHistoryResponse
PaymentType
.func transactionsByTypeString(String) async throws -> TransactionHistoryResponse
func transactionsByTypeStrings([String]) async throws -> TransactionHistoryResponse
func transactionsByTypes([PaymentType]) async throws -> TransactionHistoryResponse