TermsView

public class TermsView : APIView

Undocumented

  • Get the list of required terms for the currently configured clientID. This is an unauthenticated endpoint and can be called before logging in.

    Declaration

    Swift

    @discardableResult
    public func required(completion: @escaping Zone5.ResultHandler<[TermsAndConditions]>) -> PendingRequest?
  • Accept the passed in terms for the current user. This is an authenticated call, pass accept list into register or login for unauthenticated acceptance. The purpose of this call is to accept updated versions or already accepted terms. For instance if after a login the login is successful but the LoginResponse contains updated terms.

    Declaration

    Swift

    @discardableResult
    public func accept(termsID: String, completion: @escaping Zone5.ResultHandler<Zone5.VoidReply>) -> PendingRequest?
  • Download the content of the passed in terms - if the terms contain content. Some terms are merely a url to external content. This is an unauthenticated endpoint. The terms must be required by the currently configured ClientID.

    Declaration

    Swift

    @discardableResult
    public func download(termsID: String, completion: @escaping Zone5.ResultHandler<URL>) -> PendingRequest?