UserCheckoutResult

struct UserCheckoutResult
extension UserCheckoutResult : Decodable, Equatable

The result for a User/Checkout Query

  • Undocumented

    Declaration

    Swift

    var errorMessage: String { get }
  • Undocumented

    Declaration

    Swift

    var hasErrors: Bool { get }
  • Note that GQL often returns an empty funding option list, even if the user has FIs added to their account, when there are unrelated errors present

    Declaration

    Swift

    var hasNoAvailableFI: Bool { get }
  • Is this a billing agreement checkout?

    Declaration

    Swift

    var hasNoAvailableShipping: Bool { get }
  • Creates a new instance by decoding from the given decoder.

    This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    init(from decoder: Decoder) throws
  • Is this a billing agreement checkout?

    Declaration

    Swift

    var isBillingAgreement: Bool { get }
  • The payload associated with a result

    Declaration

    Swift

    var payload: UserCheckoutPayload { get }
  • Undocumented

    Declaration

    Swift

    var scaContextID: String? { get }
  • Helper to get our 3DS contingency data

    Declaration

    Swift

    var threeDSContingencies: ThreeDomainSecureResolutionContingency? { get }
  • Do we have contingencies that we do not currently support?

    Declaration

    Swift

    var unsupportedContingencies: [String] { get }
  • If the user has a negative balance, we want to trigger a web fallback to handle recovery

    Declaration

    Swift

    var userHasNegativePayPalBalance: Bool { get }