Skip to content

Commit 70e5218

Browse files
authored
Add tier6 for SMS country pricing (#8043)
1 parent c82b606 commit 70e5218

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/settings/wallets/api/sms.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type SMSCountryTiers = {
88
tier3: string[];
99
tier4: string[];
1010
tier5: string[];
11+
tier6: string[];
1112
};
1213

1314
export async function getSMSCountryTiers() {
@@ -40,6 +41,7 @@ export async function getSMSCountryTiers() {
4041
tier3: [],
4142
tier4: [],
4243
tier5: [],
44+
tier6: [],
4345
};
4446
}
4547

@@ -53,6 +55,7 @@ export async function getSMSCountryTiers() {
5355
tier3: [],
5456
tier4: [],
5557
tier5: [],
58+
tier6: [],
5659
};
5760
}
5861
}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/settings/wallets/components/InAppWalletSettingsUI.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function Variants(props: { currentPlan: Team["billingPlan"] }) {
6666
tier3: ["FR", "DE", "ES", "IT"],
6767
tier4: ["JP", "KR", "MX", "RU"],
6868
tier5: ["BR", "AR", "CO", "CL", "PE", "VE", "SA"],
69+
tier6: ["RU", "PG", "UZ", "TZ", "KM", "BT"],
6970
}}
7071
teamId="bar"
7172
teamPlan={props.currentPlan}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/settings/wallets/components/sms-country-select/utils.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const tierPricing = {
55
tier3: "$0.10 per SMS",
66
tier4: "$0.20 per SMS",
77
tier5: "$0.40 per SMS",
8+
tier6: "$1.00 per SMS",
89
} as const;
910

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

25+
// Tier 6
26+
RU: "Russia/Kazakhstan",
27+
PG: "Papua New Guinea",
28+
UZ: "Uzbekistan",
29+
TZ: "Tanzania",
30+
KM: "Comoros",
31+
BT: "Bhutan",
32+
2433
// Tier 3
2534
AR: "Argentina",
2635
AS: "American Samoa",
@@ -244,6 +253,14 @@ export const countryPrefixes: Record<string, string> = {
244253
AM: "+374",
245254
AO: "+244",
246255

256+
// Tier 6
257+
RU: "+7",
258+
PG: "+675",
259+
UZ: "+998",
260+
TZ: "+255",
261+
KM: "+269",
262+
BT: "+975",
263+
247264
// Tier 3
248265
AR: "+54",
249266
AS: "+1",

0 commit comments

Comments
 (0)