Errors

public class Errors : APIModel

Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

  • an application-specific error code, expressed as a string value.

    Declaration

    Swift

    public var code: String?
  • a human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized.

    Declaration

    Swift

    public var detail: String?
  • id

    A unique identifier for this particular occurrence of the problem.

    Declaration

    Swift

    public var id: String?
  • Undocumented

    Declaration

    Swift

    public var links: Links?
  • a meta object containing non-standard meta-information about the error.

    Declaration

    Swift

    public var meta: [String : Any]?
  • An object containing references to the source of the error.

    Declaration

    Swift

    public var source: Source?
  • the HTTP status code applicable to this problem, expressed as a string value.

    Declaration

    Swift

    public var status: String?
  • A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.

    Declaration

    Swift

    public var title: String?
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Links : APIModel
  • An object containing references to the source of the error.

    See more

    Declaration

    Swift

    public class Source : APIModel
  • Undocumented

    Declaration

    Swift

    public init(code: String? = nil, detail: String? = nil, id: String? = nil, links: Links? = nil, meta: [String : Any]? = nil, source: Source? = nil, status: String? = nil, title: String? = nil)
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

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

    Declaration

    Swift

    public func isEqual(to object: Any?) -> Bool
  • Declaration

    Swift

    public static func == (lhs: Errors, rhs: Errors) -> Bool