Skip to main content

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

Interface: EffectivePricing

Defined in: sdk/js/src/types/account-onboarding.ts:138

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

This is the resource to read when showing a customer what something costs: the top-level rates are the ones in force, and next says whether that is about to change.

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/js/src/types/account-onboarding.ts:144

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/js/src/types/account-onboarding.ts:146

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/js/src/types/account-onboarding.ts:139


per_did_rate

TypeScript
per_did_rate: number;

Defined in: sdk/js/src/types/account-onboarding.ts:141


per_user_rate

TypeScript
per_user_rate: number;

Defined in: sdk/js/src/types/account-onboarding.ts:140


per_voiceai_location_rate

TypeScript
per_voiceai_location_rate: number;

Defined in: sdk/js/src/types/account-onboarding.ts:142