ConsentModel

public struct ConsentModel : Codable

Represents consent response object model.

  • ID of the account access correspanding Gateway account access consent reference

    Declaration

    Swift

    public let consentID: String?
  • Consent status for Datalink.

    Declaration

    Swift

    public let status: ConsentStatus?
  • Date of the consent creation in ISO 8601 format.

    Declaration

    Swift

    public let dateCreated: Date?
  • The ID assigned by the Bank for the consent

    Declaration

    Swift

    public let bankReferenceID: String?
  • The date indicating when consent will be expired in ISO 8601 format.

    Declaration

    Swift

    public let consentExpiryDate: Date?
  • Unique identification string assigned to the bank by our system.

    Declaration

    Swift

    public let bankID: String?
  • The date indicating when consent will end in ISO 8601 format.

    Declaration

    Swift

    public let consentEndDate: Date?
  • Creates an instance from the specified parameters.

    Declaration

    Swift

    public init(consentID: String?,
                status: ConsentStatus?,
                dateCreated: Date?,
                bankReferenceID: String?,
                consentExpiryDate: Date?,
                bankID: String?,
                consentEndDate: Date?)

    Parameters

    consentID

    ID of the account access correspanding Gateway account access consent reference

    status

    Instance’s ConsentStatus, which is consent status for Datalink.

    dateCreated

    Date of the consent creation in ISO 8601 format.

    bankReferenceID

    The ID assigned by the Bank for the consent

    consentExpiryDate

    The date indicating when consent will be expired in ISO 8601 format.

    bankID

    Unique identification string assigned to the bank by our system.

    consentEndDate

    The date indicating when consent will end in ISO 8601 format.