CouponCodeFailedReason

public enum CouponCodeFailedReason : Error, FailedReasonType

An Error enum returned for VerifyCouponCode

  • 401 status code

    Declaration

    Swift

    case unauthorized
  • 404 status code

    Declaration

    Swift

    case notFound
  • 429 status code

    Declaration

    Swift

    case tooManyRequests
  • 500 status code

    Declaration

    Swift

    case internalServerError
  • Coupon code is known to be inactive

    Declaration

    Swift

    case inactive
  • Some information is missing from the request. Check the message

    Declaration

    Swift

    case missingInformation(message: String)
  • Fallback failure case not matching any other expected failure

    Declaration

    Swift

    case failed(reason: FailedReason)
  • Undocumented

    Declaration

    Swift

    public func failedReason() -> FailedReason?