Functions

The following functions are available globally.

  • Convert string to Date on Mapper

    Declaration

    Swift

    public func extractDate(object: Any?) throws -> Date?
  • Get the min quantity, default should be 1

    Declaration

    Swift

    public func extractMinQuantity(object: Any?) throws -> Int
  • Convert price to integer value(as cents)

    Declaration

    Swift

    public func priceInt(object: Any?) -> Int?