TransactionInfo

final public class TransactionInfo : CustomStringConvertible, CustomDebugStringConvertible, ExtendedEquatable

Mutable Model for specific details of a Transaction

  • Title property constant which can be used with subscript to set and get the title from a transactionInfo instance

    Declaration

    Swift

    public static let title: String
  • Description property constant which can be used with the subscript to set and get the description from a transactionInfo instance

    Declaration

    Swift

    public static let description: String
  • Location property constant which can be used with the subscript to set and get the location from a transactionInfo instance

    Declaration

    Swift

    public static let location: String
  • Title of the transaction. Set and get using subscript.

    Set :

    transactionInfo[TransactionInfo.title] = "A title"
    

    Get:

    let title = transactionInfo[TransactionInfo.title]
    

    Declaration

    Swift

    public internal(set) var title: String? {
      get
      }
  • Transaction description details. Set and get using subscript.

    Set :

    transaction[TransactionInfo.description] = "A description"
    

    Get :

    let desc = transactionInfo[TransactionInfo.description]
    

    Declaration

    Swift

    public internal(set) var transactionDescription: String? {
      get
      }
  • Location of the transaction as an array of coordinates e.g. [Latitude, Longitude]. Can be set/get directly or by using a subscript.

    Set :

    transactionInfo.location = [CLLocationDegrees(0.1278,CLLocationDegrees(51.50)]

    transactionInfo[TransactionInfo.location] = [CLLocationDegrees(0.1278,CLLocationDegrees(51.50)]

    Get :

    let location = transactionInfo.location

    let location = transactionInfo[TransactionInfo.location]

    Declaration

    Swift

    public var location: [CLLocationDegrees]?
  • Additional properties for a transaction. Set and get using subscript.

    Set :

    transactionInfo["additional-info-key"] = "Some additional information"
    

    Get :

    let additionalInfo = transactionInfo["additional-info-key"]
    

    Declaration

    Swift

    public internal(set) var additionalProperties: AdditionalProperties {
      get
      }
  • Init

    Declaration

    Swift

    public init()
  • TransactionInfo subscript

    Declaration

    Swift

    public subscript(key: String) -> Any? { get set }

    Parameters

    key

    Key of property to return

  • CustomStringConvertible

    Declaration

    Swift

    public var description: String { get }
  • CustomDebugStringConvertible

    Declaration

    Swift

    public var debugDescription: String { get }