Skip to content

Latest commit

 

History

History
126 lines (75 loc) · 3.25 KB

termsofservices.md

File metadata and controls

126 lines (75 loc) · 3.25 KB

TermsOfServicesManager

List terms of services

Returns the current terms of service text and settings for the enterprise.

This operation is performed by calling function getTermsOfService.

See the endpoint docs at API Reference.

client.getTermsOfServices().getTermsOfService()

Arguments

  • queryParams GetTermsOfServiceQueryParams
    • Query parameters of getTermsOfService method
  • headers GetTermsOfServiceHeaders
    • Headers of getTermsOfService method

Returns

This function returns a value of type TermsOfServices.

Returns a collection of terms of service text and settings for the enterprise.

Create terms of service

Creates a terms of service for a given enterprise and type of user.

This operation is performed by calling function createTermsOfService.

See the endpoint docs at API Reference.

client.getTermsOfServices().createTermsOfService(new CreateTermsOfServiceRequestBody.CreateTermsOfServiceRequestBodyBuilder(CreateTermsOfServiceRequestBodyStatusField.DISABLED, "Test TOS").tosType(CreateTermsOfServiceRequestBodyTosTypeField.MANAGED).build())

Arguments

  • requestBody CreateTermsOfServiceRequestBody
    • Request body of createTermsOfService method
  • headers CreateTermsOfServiceHeaders
    • Headers of createTermsOfService method

Returns

This function returns a value of type TermsOfService.

Returns a new task object

Get terms of service

Fetches a specific terms of service.

This operation is performed by calling function getTermsOfServiceById.

See the endpoint docs at API Reference.

Currently we don't have an example for calling getTermsOfServiceById in integration tests

Arguments

  • termsOfServiceId String
    • The ID of the terms of service. Example: "324234"
  • headers GetTermsOfServiceByIdHeaders
    • Headers of getTermsOfServiceById method

Returns

This function returns a value of type TermsOfService.

Returns a terms of service object.

Update terms of service

Updates a specific terms of service.

This operation is performed by calling function updateTermsOfServiceById.

See the endpoint docs at API Reference.

client.getTermsOfServices().updateTermsOfServiceById(tos.getId(), new UpdateTermsOfServiceByIdRequestBody(UpdateTermsOfServiceByIdRequestBodyStatusField.DISABLED, "TOS"))

Arguments

  • termsOfServiceId String
    • The ID of the terms of service. Example: "324234"
  • requestBody UpdateTermsOfServiceByIdRequestBody
    • Request body of updateTermsOfServiceById method
  • headers UpdateTermsOfServiceByIdHeaders
    • Headers of updateTermsOfServiceById method

Returns

This function returns a value of type TermsOfService.

Returns an updated terms of service object.