Skip to content

ITermsService

A service interface that calls the Hive Axyl server API. Each method calls one server API and returns a result object.

  • Interface: ITermsService
  • Namespace: Hive.Axyl.Terms
  • Package: com.com2usplatform.hiveaxyl.terms

Registration and resolution

Call the registration method in the registration closure of HiveBootstrap.Initialize, then get the interface with HiveCore.Resolve<T>().

using Hive.Axyl.Core;
using Hive.Axyl.Core.Unity;   // HiveBootstrap
using Hive.Axyl.Terms;

var config = CoreConfig.CreateBuilder("{appId}").Build();

HiveBootstrap.Initialize(config, builder =>
{
    builder.AddTerms();
});

ITermsService terms = HiveCore.Resolve<ITermsService>();

The server that requests go to is chosen at registration.

  • AddTerms(): sends requests to the production server https://core-api.hiveaxyl.com.
  • AddTerms(string baseUrl): sends requests to the given server.

Method summary

For the Auth column, see Authentication requirement.

Method Auth Description
GetTermsAsync Not required Get terms
ListItemRevisionsAsync Not required List an item's earlier terms
GetItemRevisionAsync Not required Get an item's terms content
GetConsentStatusAsync Not required Get the consent status
SaveConsentAsync Not required Save a consent
EraseConsentsAsync Not required Erase consents
ListConsentHistoryAsync Not required Get the consent history

Common parameters

Every method takes ApiCallContext? context = null as its last parameter. Omitting it applies the defaults. For what it can set, see Call context.

The request is the request parameter. Passing null as request throws ArgumentNullException.

Common Failure codes

When the server answers with one of the codes below, the result is Failure, not an Outcome. The code the server sent is in Failure.Problem.ExternalCode, and Code follows the HTTP status of the response (HTTP status codes and HiveErrorCode).

  • bad_request
  • invalid_parameter
  • missing_field
  • missing_app_id
  • unauthorized
  • token_expired
  • forbidden
  • resource_not_found
  • method_not_allowed
  • resource_conflict
  • unprocessable_content
  • rate_limit_exceeded
  • internal_error
  • service_unavailable

Methods

GetTermsAsync

Get terms

Task<TermsGetTermsResult> GetTermsAsync(GetTermsRequest request, ApiCallContext? context = null);

TermsGetTermsResult

Result Code Summary
Success — Current Korean terms
includeBody=false
ServiceNotFound service_not_found Service not registered for the company
TermsNotFound terms_not_found No valid terms
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

ListItemRevisionsAsync

List an item's earlier terms

Task<TermsListItemRevisionsResult> ListItemRevisionsAsync(ListItemRevisionsRequest request, ApiCallContext? context = null);

TermsListItemRevisionsResult

Result Code Summary
Success — Published revisions (newest first)
ServiceNotFound service_not_found Service not registered for the company
TermsNotFound terms_not_found No valid terms
ItemRevisionNotFound item_revision_not_found No item or no revision
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

GetItemRevisionAsync

Get an item's terms content

Task<TermsGetItemRevisionResult> GetItemRevisionAsync(GetItemRevisionRequest request, ApiCallContext? context = null);

TermsGetItemRevisionResult

Result Code Summary
Success — Published terms item content
ServiceNotFound service_not_found Service not registered for the company
TermsNotFound terms_not_found No valid terms
ItemRevisionNotFound item_revision_not_found No item or no revision
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

GetConsentStatusAsync

Get the consent status

Task<TermsGetConsentStatusResult> GetConsentStatusAsync(GetConsentStatusRequest request, ApiCallContext? context = null);

TermsGetConsentStatusResult

Result Code Summary
Success — No consent on record
A required item needs re-consent
ServiceNotFound service_not_found Service not registered for the company
TermsNotFound terms_not_found No valid terms
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

SaveConsentAsync

Save a consent

Task<TermsSaveConsentResult> SaveConsentAsync(SaveConsentRequest request, ApiCallContext? context = null);

TermsSaveConsentResult

Result Code Summary
Success — Consent save result
ServiceNotFound service_not_found Service not registered for the company
TermsNotFound terms_not_found No valid terms
TermsOutdated (data: TermsOutdatedOutcome) terms_outdated The terms changed after the lookup
IdempotencyKeyReused idempotency_key_reused Idempotency key already used by another request or invalidated by a consent erasure
RequiredConsentDeclined required_consent_declined Required consent declined
RequiredConsentMissing required_consent_missing First consent missing a required item
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

EraseConsentsAsync

Erase consents

Task<TermsEraseConsentsResult> EraseConsentsAsync(EraseConsentsRequest request, ApiCallContext? context = null);
  • Server API: DELETE /terms/v1/{companyCode}/services/{serviceCode}/subjects/{subjectKey}/consents
  • Request: EraseConsentsRequest
  • Auth: Not required

TermsEraseConsentsResult

Result Code Summary
Success — Erased
ServiceNotFound service_not_found Service not registered for the company
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

ListConsentHistoryAsync

Get the consent history

Task<TermsListConsentHistoryResult> ListConsentHistoryAsync(ListConsentHistoryRequest request, ApiCallContext? context = null);

TermsListConsentHistoryResult

Result Code Summary
Success — Consent history
No history
ServiceNotFound service_not_found Service not registered for the company
UnknownOutcome — A code this SDK version does not know. See Unknown outcome.
Failure — The call did not complete, or the server answered with an error that is not a feature-level result. Check the cause in the HiveError in Problem.

Data types

The Constraints column lists the conditions the server API spec declares for a field: a fixed phrase followed by the keyword as written. The SDK does not check them before it sends a request. The keyword and the JSON Schema Validation definition give the exact meaning.

AxylOffsetPage

The meta of a list response

Field Type Required Description
Page AxylOffsetPagination Required

AxylOffsetPagination

Offset paging information

Field Type Required Constraints Description
Number int Required at least 1 (minimum: 1) Current page number (starts at 1)
Size int Required at least 1 (minimum: 1) Page size
TotalElements long Required at least 0 (minimum: 0) Total number of elements
TotalPages int Required at least 0 (minimum: 0) Total number of pages (0 when there are no elements)

ConsentHistoryEntry

One consent history entry (audit record)

Field Type Required Constraints Description
Id string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Action ConsentActionValue Required
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Version int Required at least 1 (minimum: 1)
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Agreed bool Required
Country string? Optional Country code at the time of consent. null when no country was set (including XX)
Language string Required
Channel string? Optional The channel sent when the consent was saved
VersionPageUrl string? Optional URL of the terms page for this history entry (null when absent)
CreatedAt System.DateTimeOffset Required

ConsentHistoryResponseData

Field Type Required Description
Items IReadOnlyList<ConsentHistoryEntry> Required
Meta AxylOffsetPage? Optional

ConsentItemRequest

Field Type Required Constraints Description
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Agreed bool Required true=consent, false=decline or withdraw (a required item cannot be false)

ConsentItemStatus

Field Type Required Constraints Description
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ConsentType ConsentTypeValue Required
Status ConsentStateValue Required
ConsentedVersion int? Optional at least 1 (minimum: 1) The terms version last consented to or declined (null when absent)
ConsentedAt System.DateTimeOffset? Optional Time of the last consent or decline (null when absent)

ConsentStatusResponseData

Field Type Required Constraints Description
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Version int Required at least 1 (minimum: 1)
CanProceed bool Required Every required item is CONSENTED
ConsentRequired bool Required A required item has no consent on record
ReconsentRequired bool Required At least one item needs re-consent (optional items included)
Items IReadOnlyList<ConsentItemStatus> Required
Meta string? Optional

EraseConsentsRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
SubjectKey string Required at least 1 character, at most 128 characters, regular expression ^[^/;]+$ (minLength: 1, maxLength: 128, pattern: ^[^/;]+$) Consent subject identifier (up to 128 characters). The device key before login (device based), the player ID after login (user based). The two are separate subjects, so consents and history do not carry over between them. A value with leading or trailing whitespace, a whitespace-only value, or a value containing a control character, / or ; fails the call with an invalid-argument error

EraseConsentsResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

GetConsentStatusRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
SubjectKey string Required at least 1 character, at most 128 characters, regular expression ^[^/;]+$ (minLength: 1, maxLength: 128, pattern: ^[^/;]+$) Consent subject identifier (up to 128 characters). The device key before login (device based), the player ID after login (user based). The two are separate subjects, so consents and history do not carry over between them. A value with leading or trailing whitespace, a whitespace-only value, or a value containing a control character, / or ; fails the call with an invalid-argument error

GetConsentStatusResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

GetItemRevisionRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) The termId from the get-terms response
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) The itemId from the get-terms response
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) The itemRevisionId from the get-terms response or the list an item's earlier terms response
Lang string? Optional at most 16 characters, regular expression ^([A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*)?$ (maxLength: 16, pattern: ^([A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*)?$) Language code (for example ko). When present, only this value is used, and a language that is not registered falls back to the terms' default language. Only without it are the request language the SDK sends and then the terms' default language used. A value that differs only in region selects the same language (ko-KR selects ko), but Simplified and Traditional Chinese never stand in for each other

GetItemRevisionResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

GetTermsRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
Lang string? Optional at most 16 characters, regular expression ^([A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*)?$ (maxLength: 16, pattern: ^([A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*)?$) Language code (for example ko). When present, only this value is used, and a language that is not registered falls back to the terms' default language. Only without it are the request language the SDK sends and then the terms' default language used. A value that differs only in region selects the same language (ko-KR selects ko), but Simplified and Traditional Chinese never stand in for each other
IncludeBody bool Optional Returns each item's body as null when false

GetTermsResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional private, max-age=N (up to 60 seconds)
Vary string? Optional The request headers the response varies on

ItemRevisionListResponseData

Field Type Required Description
Items IReadOnlyList<ItemRevisionMeta> Required
Meta string? Optional

ItemRevisionMeta

Field Type Required Constraints Description
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Revision int Required at least 1 (minimum: 1)
PublishedAt System.DateTimeOffset Required

ListConsentHistoryRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
SubjectKey string Required at least 1 character, at most 128 characters, regular expression ^[^/;]+$ (minLength: 1, maxLength: 128, pattern: ^[^/;]+$) Consent subject identifier (up to 128 characters). The device key before login (device based), the player ID after login (user based). The two are separate subjects, so consents and history do not carry over between them. A value with leading or trailing whitespace, a whitespace-only value, or a value containing a control character, / or ; fails the call with an invalid-argument error
Page int Optional at least 1 (minimum: 1) Page number to read (starts at 1)
Size int Optional at least 1, at most 100 (minimum: 1, maximum: 100) History entries per page (default 20, maximum 100)

ListConsentHistoryResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

ListItemRevisionsRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) The termId from the get-terms response
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) The itemId from the get-terms response

ListItemRevisionsResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

SaveConsentRequest

Field Type Required Constraints Description
CompanyCode string Required at most 50 characters, regular expression ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$ (maxLength: 50, pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,49}$) Company code. It starts with a letter or digit, may contain only letters, digits, underscores and hyphens, and is case-sensitive. A code that is not registered returns the service_not_found result (for example, TermsGetConsentStatusResult.ServiceNotFound)
ServiceCode string Required at least 2 characters, at most 30 characters, regular expression ^[A-Z][A-Z0-9_]{1,29}$ (minLength: 2, maxLength: 30, pattern: ^[A-Z][A-Z0-9_]{1,29}$) Service code registered under the company
SubjectKey string Required at least 1 character, at most 128 characters, regular expression ^[^/;]+$ (minLength: 1, maxLength: 128, pattern: ^[^/;]+$) Consent subject identifier (up to 128 characters). The device key before login (device based), the player ID after login (user based). The two are separate subjects, so consents and history do not carry over between them. A value with leading or trailing whitespace, a whitespace-only value, or a value containing a control character, / or ; fails the call with an invalid-argument error
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
Version int Required at least 1 (minimum: 1)
Language string Required at least 2 characters, at most 16 characters, regular expression ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$ (minLength: 2, maxLength: 16, pattern: ^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$) The language from the get-terms response
Channel string? Optional at most 32 characters (maxLength: 32) Consent path (a value the game decides, up to 32 characters)
Items IReadOnlyList<ConsentItemRequest> Required at least 1 item, at most 10 items (minItems: 1, maxItems: 10) Items to consent to (1-10, no duplicate itemId)

SaveConsentResponseHeaders

Field Type Required Constraints Description
XTraceId string? Optional regular expression ^[0-9a-f]{32}$ (pattern: ^[0-9a-f]{32}$) Trace ID of this request (include it when reporting an issue)
CacheControl string? Optional Must not be stored in a cache. Depending on the response, the directive order can be no-store, private

TermItem

Field Type Required Constraints Description
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) Send it unchanged when saving a consent
Revision int Required at least 1 (minimum: 1) The item's published revision
ConsentEpoch int Required at least 1 (minimum: 1) Baseline value for re-consent
ConsentType ConsentTypeValue Required
DetailView bool Required No body when false (title only)
Title string Required at most 200 characters (maxLength: 200)
Body string? Optional HTML body. null when includeBody=false or detailView=false
PublishedAt System.DateTimeOffset? Optional Time the revision was published (null in the get-terms response)

TermItemResponseData

Field Type Required Constraints Description
ItemId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ItemRevisionId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) Send it unchanged when saving a consent
Revision int Required at least 1 (minimum: 1) The item's published revision
ConsentEpoch int Required at least 1 (minimum: 1) Baseline value for re-consent
ConsentType ConsentTypeValue Required
DetailView bool Required No body when false (title only)
Title string Required at most 200 characters (maxLength: 200)
Body string? Optional HTML body. null when includeBody=false or detailView=false
PublishedAt System.DateTimeOffset? Optional Time the revision was published (null in the get-terms response)
Meta string? Optional

TermsOutdatedOutcome

The terms currently in effect (re-read the terms with these values)

Field Type Required Constraints Description
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$) ID of the terms currently in effect
Version int Required at least 1 (minimum: 1) The version number currently in effect

TermsResponseData

Field Type Required Constraints Description
TermId string Required at least 1 character, at most 19 characters, regular expression ^[0-9]{1,19}$ (minLength: 1, maxLength: 19, pattern: ^[0-9]{1,19}$)
ServiceCode string Required
TermNo int Required at least 1 (minimum: 1)
Version int Required at least 1 (minimum: 1)
MatchedCountry string Required The matched country code, or DEFAULT
Language string Required The language actually returned
AvailableLanguages IReadOnlyList<string> Required
EffectiveAt System.DateTimeOffset Required
NextChangeAt System.DateTimeOffset? Optional Time a scheduled release takes effect
PageUrl string? Optional URL of the full terms page (for a web view)
VersionPageUrl string? Optional URL of the terms page for this version and language (for consent evidence; null when absent)
Items IReadOnlyList<TermItem> Required at least 1 item, at most 10 items (minItems: 1, maxItems: 10)
Meta string? Optional

Enums

App code uses the C# members. The wire value is the string sent to and received from the server.

ConsentAction

AGREE=consented, RECONSENT=re-consented, DECLINE=optional consent declined, WITHDRAW=optional consent withdrawn, ERASE=record that the current consents were erased

C# member Wire value Description
Unspecified 0
Agree AGREE
Reconsent RECONSENT
Decline DECLINE
Withdraw WITHDRAW
Erase ERASE

ConsentState

CONSENTED=consented, RECONSENT_REQUIRED=re-consent needed, NOT_CONSENTED=no consent on record, DECLINED=optional consent declined or withdrawn, NOT_APPLICABLE=notice item

C# member Wire value Description
Unspecified 0
Consented CONSENTED
ReconsentRequired RECONSENT_REQUIRED
NotConsented NOT_CONSENTED
Declined DECLINED
NotApplicable NOT_APPLICABLE

ConsentType

REQUIRED=consent required, OPTIONAL=optional consent, NOTICE=notice (no consent needed)

C# member Wire value Description
Unspecified 0
Required REQUIRED
Optional OPTIONAL
Notice NOTICE