TermsOfService

public class TermsOfService : BoxModel

The Terms of Service allows Box Admins to configure a custom ToS indicating to users. Users can accept/ re-accept for custom applications.

BoxModel

  • Box item type

    Declaration

    Swift

    public var type: String
  • Declaration

    Swift

    public private(set) var rawData: [String : Any] { get }

Properties

  • id

    Identifier

    Declaration

    Swift

    public let id: String
  • An enum indicating whether the ToS is currently active or inactive.

    Declaration

    Swift

    public let status: TermsOfServiceStatus?
  • A mini Box enterprise object that the ToS is associated with.

    Declaration

    Swift

    public let enterprise: Enterprise?
  • The scope of the ToS.

    Declaration

    Swift

    public let tosType: TermsOfServiceType?
  • The agreement of the ToS specified for the user in the custom application.

    Declaration

    Swift

    public let text: String?
  • The date created at for the ToS.

    Declaration

    Swift

    public let createdAt: Date?
  • The date modified at for the ToS.

    Declaration

    Swift

    public let modifiedAt: Date?
  • Initializer.

    Throws

    Decoding error.

    Declaration

    Swift

    public required init(json: [String : Any]) throws

    Parameters

    json

    JSON dictionary