Skip to main content

@dialstack/sdk-dev / server/src / Tos

Interface: Tos

Defined in: sdk/server/src/index.ts:408

The account's subscription-agreement resource: the agreement currently in effect plus the account's acceptance state.

Properties​

acceptance​

TypeScript
acceptance: TosAcceptance | null;

Defined in: sdk/server/src/index.ts:425

The current acceptance, or null if the account has not accepted.


body​

TypeScript
body: string;

Defined in: sdk/server/src/index.ts:423

Full agreement text (HTML) to render as the body.


content​

TypeScript
content: string;

Defined in: sdk/server/src/index.ts:421

Short affirmation the customer ticks to accept — the clickwrap checkbox label, including the 911/E911 acknowledgement.


pricing?​

TypeScript
optional pricing?: AccountPricing | null;

Defined in: sdk/server/src/index.ts:430

The account's agreed pricing. Present only when expand: ['pricing'] is requested; null when pricing has not been set.


url​

TypeScript
url: string;

Defined in: sdk/server/src/index.ts:416

Canonical URL of the full agreement.


version​

TypeScript
version: string;

Defined in: sdk/server/src/index.ts:414

Version of the agreement in effect (date-based YYYY-MM-DD, which is also its effective date). Echo it back when accepting so the server can reject acceptance of stale text.