Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type SMSCountryTiers = {
tier3: string[];
tier4: string[];
tier5: string[];
tier6: string[];
};

export async function getSMSCountryTiers() {
Expand Down Expand Up @@ -40,6 +41,7 @@ export async function getSMSCountryTiers() {
tier3: [],
tier4: [],
tier5: [],
tier6: [],
};
}

Expand All @@ -53,6 +55,7 @@ export async function getSMSCountryTiers() {
tier3: [],
tier4: [],
tier5: [],
tier6: [],
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function Variants(props: { currentPlan: Team["billingPlan"] }) {
tier3: ["FR", "DE", "ES", "IT"],
tier4: ["JP", "KR", "MX", "RU"],
tier5: ["BR", "AR", "CO", "CL", "PE", "VE", "SA"],
tier6: ["RU", "PG", "UZ", "TZ", "KM", "BT"],
}}
teamId="bar"
teamPlan={props.currentPlan}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const tierPricing = {
tier3: "$0.10 per SMS",
tier4: "$0.20 per SMS",
tier5: "$0.40 per SMS",
tier6: "$1.00 per SMS",
} as const;

// Country names mapped to ISO codes
Expand All @@ -21,6 +22,14 @@ export const countryNames: Record<string, string> = {
AM: "Armenia",
AO: "Angola",

// Tier 6
RU: "Russia/Kazakhstan",
PG: "Papua New Guinea",
UZ: "Uzbekistan",
TZ: "Tanzania",
KM: "Comoros",
BT: "Bhutan",

// Tier 3
AR: "Argentina",
AS: "American Samoa",
Expand Down Expand Up @@ -244,6 +253,14 @@ export const countryPrefixes: Record<string, string> = {
AM: "+374",
AO: "+244",

// Tier 6
RU: "+7",
PG: "+675",
UZ: "+998",
TZ: "+255",
KM: "+269",
BT: "+975",

// Tier 3
AR: "+54",
AS: "+1",
Expand Down
Loading