Skip to main content

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

Interface: EffectivePricing

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

What an account is billed today, and any agreed change that has not started yet. Integer cents per month.

A rate change is boundary-only: it takes effect at the start of the next month. An account's pricing is therefore the latest agreed pricing, which between agreeing a change and the 1st is next month's. Read this when you are quoting a price to a customer, so the figure you show is the rate in force rather than one that has not started yet.

A rate of 0 means no rate has been agreed for that line. It is not a price — an unagreed line bills at a default that is not the customer's agreed rate — so show no figure for a 0 rather than "$0.00".

Properties

effective_from

TypeScript
effective_from: string;

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

The month start the rates above took effect, YYYY-MM-DD.


next

TypeScript
next:
| {
effective_from: string;
per_did_rate: number;
per_user_rate: number;
per_voiceai_location_rate: number;
}
| null;

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

An agreed change that has not taken effect yet; null in the steady state.

Union Members

Type Literal
TypeScript
{
effective_from: string;
per_did_rate: number;
per_user_rate: number;
per_voiceai_location_rate: number;
}
effective_from
TypeScript
effective_from: string;

The month start the change applies from, YYYY-MM-DD.

per_did_rate
TypeScript
per_did_rate: number;
per_user_rate
TypeScript
per_user_rate: number;
per_voiceai_location_rate
TypeScript
per_voiceai_location_rate: number;

null


object

TypeScript
object: "effective_pricing";

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


per_did_rate

TypeScript
per_did_rate: number;

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


per_user_rate

TypeScript
per_user_rate: number;

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


per_voiceai_location_rate

TypeScript
per_voiceai_location_rate: number;

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