OfferType

public enum OfferType : Codable, Equatable

Different types of Offer.

It can be of type:

  • Details
  • URL
  • Barcode
  • Certificate
  • Stellar
  • Custom String

Usage:

let detailsType: OfferType = .details
let urlType: OfferType = .url
let customType: OfferType = .custom("any_custom_string")
  • Undocumented

    Declaration

    Swift

    case details
  • url

    Undocumented

    Declaration

    Swift

    case url
  • Undocumented

    Declaration

    Swift

    case barcode
  • Undocumented

    Declaration

    Swift

    case certificate
  • Undocumented

    Declaration

    Swift

    case stellar
  • Undocumented

    Declaration

    Swift

    case custom(String)
  • Undocumented

    Declaration

    Swift

    public var stringValue: String { get }
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws