@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
effective_from: string;
Defined in: sdk/server/src/index.ts:287
The month start the rates above took effect, YYYY-MM-DD.
next
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
{
effective_from: string;
per_did_rate: number;
per_user_rate: number;
per_voiceai_location_rate: number;
}
effective_from
effective_from: string;
The month start the change applies from, YYYY-MM-DD.
per_did_rate
per_did_rate: number;
per_user_rate
per_user_rate: number;
per_voiceai_location_rate
per_voiceai_location_rate: number;
null
object
object: "effective_pricing";
Defined in: sdk/server/src/index.ts:282
per_did_rate
per_did_rate: number;
Defined in: sdk/server/src/index.ts:284
per_user_rate
per_user_rate: number;
Defined in: sdk/server/src/index.ts:283
per_voiceai_location_rate
per_voiceai_location_rate: number;
Defined in: sdk/server/src/index.ts:285