FTMCCodeType

Contents

public enum FTMCCodeType

Enumerator used as parameter to request a QR or barcode image for a given code from the Fintiv Code Generator

  • qr: generate QR case
  • barcode: generate barcode case

Cases

qr

case qr

barcode

case barcode

FTMCCouponImage

Contents

public enum FTMCCouponImage

Fintiv coupon image type

  • thumbnail: whether image is a coupon thumbnail
  • brand: whether the image is a coupon’s bran image
  • coupon: whther theimage is a main coupon

Cases

thumbnail

case thumbnail

brand

case brand

coupon

case coupon

FTMCCouponRedemptionType

Contents

public enum FTMCCouponRedemptionType : String

Coupon code redemption type

  • qrCode: QR Based coupon
  • barCode: Barcode based coupon

Cases

qrCode

case qrCode = "QR_CODE"

barCode

case barCode = "BARCODE"

FTMCCouponType

Contents

public enum FTMCCouponType

The type of the coupon

  • available: A coupon that is available but not added to the Person’s list of coupons
  • person: A coupon that has been added to a person (coupon instance)

Cases

available

case available

person

case person

Methods

typeString()
public func typeString() -> String

Human readable description of the coupon type

  • Returns: string describing the coupon type

FTMCResult

Contents

public enum FTMCResult<T, Error: Swift.Error>

Fintiv Mobile Commerce enumerator with typed success & failure cases

  • success: on .success(let type<T>) returns objects with the specified type
  • failure: on .error(let error) return an FTMCNetworkError (enum itself)

Cases

success(_:)

case success(T)

failure(_:)

case failure(Error)

FTMCStampCardType

Contents

public enum FTMCStampCardType : String

Stamp Card’s type

  • available: a stamp card that is available to be added to a Person
  • instance: a stamp card that has been added to the Person

Cases

available

case available

instance

case instance

Methods

title()
public func title() -> String

Title string for the stamp card

  • Returns: a printable version of the enum type

FTMCStampEventType

Contents

public enum FTMCStampEventType

Fintiv Mobile Commerce stamp and reward scanner controller usage type (enum)

  • stamp: Use for adding a stamp to a stamp card
  • redeem: User for scanning a reward’s QR Code

Cases

stamp

case stamp

redeem

case redeem

FTMCStampRedemptionType

Contents

public enum FTMCStampRedemptionType : String

Stamp card redemption type

  • QR: QR based stamp card
  • barcode: Bardcode based stamp card

Cases

QR

case QR = "QR"

barcode

case barcode = "BARCODE"

FintivError

Contents

  • Cases
    • offline
    • timeout
    • unparsableResponse
    • invalidSession
    • invalidStatusCode(_:_:)
  • Methods
    • typeString()
public enum FintivError : Swift.Error

Fintiv Error

  • offline: offline or unreachable service
  • timeout: request failed due to inactivity
  • unparsableResponse: expected type could not be initialized
  • invalidSession: missing or expired token
  • invalidStatusCode: http request code not in 200…299 range

Cases

offline

case offline

timeout

case timeout

unparsableResponse

case unparsableResponse

invalidSession

case invalidSession

invalidStatusCode(_:_:)

case invalidStatusCode(Int, String)

Methods

typeString()
public func typeString() -> String

Human readable description of the error

  • Returns: a string describing the error type