Other Classes

The following classes are available globally.

  • The Log class provides generic logging functionality with overridable closures to be used for redirecting log output.

    The logger provides closures for overriding various behaviors: Logging proceeds through the following path: CCLog.x –> xPrint –> xFormatter –> defaultLogPrint - CCLog.x : - Log entry point for all logging. Static, cannot be overriden. - xPrint : - Calls the formatter to obtain the log format, then defaultLogPrint on the proper queue to perform the logging. - Debug (.d, dPrint) and Test (.t, tPrint) calls are compiler flagged out using the DEBUG flag - This is a static var containing a closure. Assign your own closure at runtime to override the default behavior, for example if you want the debug or test log statements to occur without the DEBUG flag set. - If you do override, please ensure that you spin off your logging onto the dispatchQueue (note the lowercase…) for optimal performance. defaultLogPrint will correct the queue if you forget, but this will involve an extra call. - xFormatter: - Processes the provided inputs into the formatted string for output on screen. - This is a static var containing a closure. Assign your own closure at runtime to override the default behavior, for example to remove the [TEST] or DEBUG formatting. - defaultLogPrint: - Final log function, which iterates through the user assigned log handlers and finally prints to console. Static, cannot be overriden. - addLogHandler: - Log handlers are called every time a CCLog.x call is made (inside defaultLogPrint). - Called from the dispatchQueue (lowercase…) queue. - Returns an integer which can be used to remove the log handler in the future (for example once your ViewController closes). Contains weak references to the handlers, but if you don’t tell us to remove the handler it will still cost cycles to iterate over the no longer valid handlers. - removeLogHandler: - Removes a log handler using the integer index returned from addLogHandler - timeStampEnabled: - When true, a timestamp will be added to the beginning of every statement (default false) - dateFormatter: - The formatter used to provide the time stamp for timeStampEnabled. - Set the format at runtime to change the time stamp format. - verbosePrinting: - When true, logs are printed in full - When false, logs are truncated to the maxPrintingLength (default) - maxPrintingLength: - The maximum length of logs printed when verbsePrinting is false

    By default, Debug and Test level logs do nothing unless the DEBUG compiler flag is set.

    See more

    Declaration

    Swift

    public class CCLog
  • A base response for

    See more

    Declaration

    Swift

    public class BaseResponse : NSObject, Mappable
  • Declaration

    Swift

    public class BaseTransactionRequest : NSObject, Mappable
  • requests the device log a message to the server

    See more

    Declaration

    Swift

    public class CloverDeviceLogMessage : Message
  • Contains information about the connected device

    See more

    Declaration

    Swift

    public class DeviceInfo : NSObject
  • Declaration

    Swift

    public class PaymentResponse : BaseResponse
  • This class represents the key values that should be used when setting region specific transaction data in a request using the setRegionalExtras(Map) in a request. The values can be used in conjunction with keys to induce the desired effect during the processing of a transaction on the Clover payment device.

    See more

    Declaration

    Swift

    public final class RegionalExtras
  • Declaration

    Swift

    public class ResultStatusEnum : Mappable
  • options for displaying the receipt options screen

    See more

    Declaration

    Swift

    public class ShowPaymentReceiptOptionsRequest
  • Provides base capabilities for TransactionRequests like SaleRequest, AuthRequest, etc.

    See more

    Declaration

    Swift

    public class TransactionRequest : BaseTransactionRequest
  • Autogenerated by Avro

    DO NOT EDIT DIRECTLY

    See more

    Declaration

    Swift

    public class DisplayPayment : Mappable