@dialstack/sdk / server / Tos
Interface: Tos
Defined in: sdk/src/server/index.ts:269
The account's subscription-agreement resource: the agreement currently in effect plus the account's acceptance state.
Properties
acceptance
acceptance: TosAcceptance | null;
Defined in: sdk/src/server/index.ts:286
The current acceptance, or null if the account has not accepted.
body
body: string;
Defined in: sdk/src/server/index.ts:284
Full agreement text (HTML) to render as the body.
content
content: string;
Defined in: sdk/src/server/index.ts:282
Short affirmation the customer ticks to accept — the clickwrap checkbox label, including the 911/E911 acknowledgement.
pricing?
optional pricing?: AccountPricing | null;
Defined in: sdk/src/server/index.ts:291
The account's agreed pricing. Present only when expand: ['pricing'] is
requested; null when pricing has not been set.
url
url: string;
Defined in: sdk/src/server/index.ts:277
Canonical URL of the full agreement.
version
version: string;
Defined in: sdk/src/server/index.ts:275
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.