feat: Credit System (SMS) (#20126)
* Add credits section to billing * create seperate router for credits * add stripe checkout session * schema changes + code improvements * rename to creditBalance * custom quantify input with error message * add checkout session completed webhook endpoint * fix typo * UI fixes * add payCredits handler * add error toast message * allow scheduling sms up as close to 15 minutes in the future * schedule at most 2 hours in advance * webhook to pay for sent sms * continued work on twilio callback * code clean up * further implementation for credit handling * add migration * object as param for scheduleSMS * object as param for sendSMS * fix TrpcSessionUser imports * fix imports * add db changes * add cron job for price setting * twilio status callback to create expense log * remove unused code * set up low credit balance email * fixes for buying credits * fixes in api/twilio/webhook * add test to save credits to credits balance * fix typos * add new helper function chargeCredits * expand twilioProvider * fix type errors * adjust tests * type errors * clean up * clean up * fix subscription active check * remove some user/org related code * more changes to remove user/org support * send emails seperatly to admins * fixes for team billing page * fix stripe success url * fixes to creating expense log * email imrovements and more * get monthly team price from stripe * fix import * fix monthly credits calculation * finsih low credit balance warning email * credit balance limit reached email * create CreditService * cancel SMS and send as email instead * add messageDispatcher * fix type error * fix type error * fix type error * fix import * fix unit test * clean up twilioProvider * clean up chckSmsPrices/route * add missing translations * add skeleton loader * add admin check to get handler * code clean up + fixes * improve scheduling with fallback * fix type error * add bookingUid to handleSendingSMS * add unit tests for creditService * add more tests to credit-service.test.ts * add test for cancelScheduledMessagesAndScheduleEmails * fix test and type error * add back resolve * fix empty resolve * adjust limitReachedAt logic * address mrge comment on styling * add getAdminMembership to repository * twilio/webhook clean up (feedback) * feedback - clean up * remove todo comment * clean up twilio/webhook * code clean up * add use client * add createOneTimeCheckout to stripe service * refactor repository pattern * small fixes + clean up * fix type error * add missing import * fix hasAvailableCredits for user * force-dynamic * rename credits to creditBalance * fix stripe import * remove not needed code * fix e2e tests * improve low balance warning email * dynamic-import CreditService * index.ts * fix e2e tests * remove dynamic import CreditService * Revert "remove dynamic import CreditService" This reverts commit e272978a7ff3fc5a04139e656c9f8d2c84a40dda. * no need to dynamic-import credit service * Revert "no need to dynamic-import credit service" This reverts commit ba5ae488d08979a65fb47b5d0722cda9f45d6ea0. * only select id in getAdminMembership * revert billing/package.json * fix type checks * fix type checks --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: hbjORbj <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
45 files changed
+2481
-133
No files matched your search
@@ -0,0 +1,112 @@
|
||||
import { defaultResponderForAppDir } from "app/api/defaultResponderForAppDir";
|
||||
import type { NextRequest } from "next/server";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import * as twilio from "@calcom/features/ee/workflows/lib/reminders/providers/twilioProvider";
|
||||
import { IS_SMS_CREDITS_ENABLED } from "@calcom/lib/constants";
|
||||
import logger from "@calcom/lib/logger";
|
||||
import prisma from "@calcom/prisma";
|
||||
import { CreditType } from "@calcom/prisma/enums";
|
||||
|
||||
async function postHandler(req: NextRequest) {
|
||||
const apiKey = req.headers.get("authorization") || req.nextUrl.searchParams.get("apiKey");
|
||||
|
||||
if (process.env.CRON_API_KEY !== apiKey) {
|
||||
return NextResponse.json({ message: "Not authenticated" }, { status: 401 });
|
||||
}
|
||||
|
||||
if (!IS_SMS_CREDITS_ENABLED) {
|
||||
return NextResponse.json({ ok: true, message: "SMS credits not enabled" });
|
||||
}
|
||||
|
||||
const smsLogsWithoutPrice = await prisma.creditExpenseLog.findMany({
|
||||
where: {
|
||||
credits: null,
|
||||
smsSid: {
|
||||
not: null,
|
||||
},
|
||||
date: {
|
||||
gte: dayjs().subtract(1, "hour").toDate(),
|
||||
},
|
||||
},
|
||||
select: {
|
||||
smsSid: true,
|
||||
id: true,
|
||||
},
|
||||
});
|
||||
|
||||
let pricesUpdated = 0;
|
||||
const { CreditService } = await import("@calcom/features/ee/billing/credit-service");
|
||||
|
||||
const creditService = new CreditService();
|
||||
|
||||
await Promise.allSettled(
|
||||
smsLogsWithoutPrice.map(async (log) => {
|
||||
if (!log.smsSid) return;
|
||||
|
||||
try {
|
||||
const price = await twilio.getPriceForSMS(log.smsSid);
|
||||
const credits = price ? creditService.calculateCreditsFromPrice(price) : null;
|
||||
if (!credits) return;
|
||||
|
||||
const updatedLog = await prisma.creditExpenseLog.update({
|
||||
where: { id: log.id },
|
||||
data: { credits },
|
||||
select: {
|
||||
creditBalance: {
|
||||
select: {
|
||||
id: true,
|
||||
additionalCredits: true,
|
||||
teamId: true,
|
||||
},
|
||||
},
|
||||
creditType: true,
|
||||
},
|
||||
});
|
||||
|
||||
if (updatedLog.creditType === CreditType.ADDITIONAL) {
|
||||
const decrementValue =
|
||||
credits <= updatedLog.creditBalance.additionalCredits
|
||||
? credits
|
||||
: updatedLog.creditBalance.additionalCredits;
|
||||
|
||||
await prisma.creditBalance.update({
|
||||
where: { id: updatedLog.creditBalance.id },
|
||||
data: {
|
||||
additionalCredits: {
|
||||
decrement: decrementValue,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (!updatedLog.creditBalance.teamId) {
|
||||
logger.error(`teamId missing for expense log ${log.id}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const teamCredits = await creditService.getAllCreditsForTeam(updatedLog.creditBalance.teamId);
|
||||
|
||||
const remainingMonthlyCredits = Math.max(0, teamCredits.totalRemainingMonthlyCredits);
|
||||
|
||||
await creditService.handleLowCreditBalance({
|
||||
teamId: updatedLog.creditBalance.teamId ?? 0,
|
||||
remainingCredits: remainingMonthlyCredits + teamCredits.additionalCredits,
|
||||
});
|
||||
|
||||
pricesUpdated++;
|
||||
} catch (err) {
|
||||
logger.error(`Failed to process SMS log ${log.smsSid}`, err);
|
||||
await prisma.creditExpenseLog.update({
|
||||
where: { id: log.id },
|
||||
data: { credits: 0 },
|
||||
});
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
return NextResponse.json({ ok: true, pricesUpdated });
|
||||
}
|
||||
|
||||
export const POST = defaultResponderForAppDir(postHandler);
|
||||
@@ -4,8 +4,10 @@ import { usePathname } from "next/navigation";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
|
||||
import BillingCredits from "~/settings/billing/components/BillingCredits";
|
||||
|
||||
interface CtaRowProps {
|
||||
title: string;
|
||||
@@ -58,9 +60,9 @@ const BillingView = () => {
|
||||
{t("billing_portal")}
|
||||
</Button>
|
||||
</CtaRow>
|
||||
|
||||
<hr className="border-subtle" />
|
||||
|
||||
</div>
|
||||
<BillingCredits />
|
||||
<div className="border-subtle mt-6 space-y-6 rounded-lg border px-6 py-8 text-sm sm:space-y-8">
|
||||
<CtaRow title={t("need_anything_else")} description={t("further_billing_help")}>
|
||||
<Button color="secondary" onClick={onContactSupportClick}>
|
||||
{t("contact_support")}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
"use client";
|
||||
|
||||
import { ProgressBar } from "@tremor/react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
import { IS_SMS_CREDITS_ENABLED } from "@calcom/lib/constants";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { useParamsWithFallback } from "@calcom/lib/hooks/useParamsWithFallback";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { TextField, Label, InputError } from "@calcom/ui/components/form";
|
||||
import { showToast } from "@calcom/ui/toast";
|
||||
|
||||
import { BillingCreditsSkeleton } from "./BillingCreditsSkeleton";
|
||||
|
||||
export default function BillingCredits() {
|
||||
const { t } = useLocale();
|
||||
const router = useRouter();
|
||||
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
setValue,
|
||||
formState: { errors },
|
||||
} = useForm<{ quantity: number }>({ defaultValues: { quantity: 50 } });
|
||||
|
||||
const params = useParamsWithFallback();
|
||||
|
||||
const teamId = params.id ? Number(params.id) : undefined;
|
||||
const { data: creditsData, isLoading } = trpc.viewer.credits.getAllCredits.useQuery(
|
||||
{ teamId: teamId ?? 0 },
|
||||
{ enabled: !!teamId }
|
||||
);
|
||||
|
||||
const buyCreditsMutation = trpc.viewer.credits.buyCredits.useMutation({
|
||||
onSuccess: (data) => {
|
||||
if (data.sessionUrl) {
|
||||
router.push(data.sessionUrl);
|
||||
}
|
||||
},
|
||||
onError: (err) => {
|
||||
showToast(t("credit_purchase_failed"), "error");
|
||||
},
|
||||
});
|
||||
|
||||
if (!teamId || !IS_SMS_CREDITS_ENABLED) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isLoading) return <BillingCreditsSkeleton />;
|
||||
|
||||
if (!creditsData) return null;
|
||||
|
||||
const onSubmit = (data: { quantity: number }) => {
|
||||
buyCreditsMutation.mutate({ quantity: data.quantity, teamId });
|
||||
};
|
||||
|
||||
const teamCreditsPercentageUsed =
|
||||
creditsData.teamCredits.totalMonthlyCredits > 0
|
||||
? (creditsData.teamCredits.totalRemainingMonthlyCredits / creditsData.teamCredits.totalMonthlyCredits) *
|
||||
100
|
||||
: 0;
|
||||
|
||||
return (
|
||||
<div className="border-subtle mt-8 space-y-6 rounded-lg border px-6 py-6 pb-6 text-sm sm:space-y-8">
|
||||
<div>
|
||||
<h2 className="text-base font-semibold">{t("credits")}</h2>
|
||||
<p>{t("view_and_manage_credits_description")}</p>
|
||||
<div className="-mx-6 mt-6">
|
||||
<hr className="border-subtle" />
|
||||
</div>
|
||||
<div className="mt-6">
|
||||
<div className="mb-4">
|
||||
<Label>{t("monthly_credits")}</Label>
|
||||
<ProgressBar
|
||||
color="green"
|
||||
percentageValue={teamCreditsPercentageUsed}
|
||||
label={`${Math.max(0, Math.round(teamCreditsPercentageUsed))}%`}
|
||||
/>
|
||||
<div className="text-subtle">
|
||||
<div>{t("total_credits", { totalCredits: creditsData.teamCredits.totalMonthlyCredits })}</div>
|
||||
<div>
|
||||
{t("remaining_credits", {
|
||||
remainingCredits: creditsData.teamCredits.totalRemainingMonthlyCredits,
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Label>{t("additional_credits")}</Label>
|
||||
<div className="mt-2 text-sm">{creditsData.teamCredits.additionalCredits}</div>{" "}
|
||||
<div className="-mx-6 mb-6 mt-6">
|
||||
<hr className="border-subtle mb-3 mt-3" />
|
||||
</div>
|
||||
<form onSubmit={handleSubmit(onSubmit)} className="flex">
|
||||
<div className="mr-auto">
|
||||
<div className="mb-2 font-semibold">{t("buy_additional_credits")}</div>
|
||||
<div className="flex flex-col">
|
||||
<TextField
|
||||
required
|
||||
type="number"
|
||||
{...register("quantity", {
|
||||
required: t("error_required_field"),
|
||||
min: { value: 50, message: t("minimum_of_credits_required") },
|
||||
valueAsNumber: true,
|
||||
})}
|
||||
label=""
|
||||
containerClassName="w-60"
|
||||
onChange={(e) => setValue("quantity", Number(e.target.value))}
|
||||
min={50}
|
||||
addOnSuffix={<>{t("credits")}</>}
|
||||
/>
|
||||
{errors.quantity && <InputError message={errors.quantity.message ?? t("invalid_input")} />}
|
||||
</div>
|
||||
</div>
|
||||
<div className="mb-1 mt-auto">
|
||||
<Button color="primary" target="_blank" EndIcon="external-link" type="submit">
|
||||
{t("buy_credits")}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
import { SkeletonText, SkeletonContainer, SkeletonButton } from "@calcom/ui/components/skeleton";
|
||||
|
||||
export function BillingCreditsSkeleton() {
|
||||
return (
|
||||
<SkeletonContainer>
|
||||
<div className="border-subtle mt-8 space-y-6 rounded-lg border px-6 py-6 text-sm sm:space-y-8">
|
||||
{/* Title and Description */}
|
||||
<div>
|
||||
<div>
|
||||
<SkeletonText className="mb-2 h-4 w-20" /> {/* Credits title */}
|
||||
</div>
|
||||
<div>
|
||||
<SkeletonText className="h-4 w-72" /> {/* Description */}
|
||||
</div>
|
||||
|
||||
<div className="-mx-6 mt-6">
|
||||
<hr className="border-subtle" />
|
||||
</div>
|
||||
{/* Monthly credits */}
|
||||
<div className="mt-[20px]">
|
||||
<SkeletonText className="mb-4 h-4 w-32" /> {/* Monthly credits label */}
|
||||
<div className="h-2 w-full rounded-md bg-gray-200" /> {/* Progress bar */}
|
||||
<div className="text-subtle mt-2">
|
||||
<div>
|
||||
<SkeletonText className="h-4 w-40" /> {/* Total credits */}
|
||||
</div>
|
||||
<div>
|
||||
<SkeletonText className="h-4 w-40" /> {/* Remaining credits */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/* Additional credits */}
|
||||
<div className="mt-4">
|
||||
<div>
|
||||
<SkeletonText className="mb-2 h-4 w-40" /> {/* Additional credits label */}
|
||||
</div>
|
||||
<div>
|
||||
<SkeletonText className="h-4 w-24" /> {/* Additional credits value */}
|
||||
</div>
|
||||
</div>
|
||||
<div className="-mx-6 mb-6 mt-4">
|
||||
<hr className="border-subtle mb-3 mt-3" />
|
||||
</div>
|
||||
{/* Buy credits form */}
|
||||
<div className="flex">
|
||||
<div className="mr-auto">
|
||||
<div>
|
||||
<SkeletonText className="mb-2 mt-1 h-5 w-[268px]" /> {/* Buy credits label */}
|
||||
</div>
|
||||
<div>
|
||||
<SkeletonText className="mt-2 h-8 w-[240px] rounded-md" /> {/* Input field */}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-auto ">
|
||||
<SkeletonButton className="h-9 w-[120px] rounded-md" /> {/* Buy button */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</SkeletonContainer>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { createNextApiHandler } from "@calcom/trpc/server/createNextApiHandler";
|
||||
import { creditsRouter } from "@calcom/trpc/server/routers/viewer/credits/_router";
|
||||
|
||||
export default createNextApiHandler(creditsRouter);
|
||||
@@ -0,0 +1,163 @@
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
import { z } from "zod";
|
||||
|
||||
import * as twilio from "@calcom/features/ee/workflows/lib/reminders/providers/twilioProvider";
|
||||
import { IS_SMS_CREDITS_ENABLED, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import getOrgIdFromMemberOrTeamId from "@calcom/lib/getOrgIdFromMemberOrTeamId";
|
||||
import { defaultHandler } from "@calcom/lib/server/defaultHandler";
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
const InputSchema = z.object({
|
||||
userId: z
|
||||
.string()
|
||||
.optional()
|
||||
.transform((val) => {
|
||||
const num = Number(val);
|
||||
return isNaN(num) ? undefined : num;
|
||||
}),
|
||||
teamId: z
|
||||
.string()
|
||||
.optional()
|
||||
.transform((val) => {
|
||||
const num = Number(val);
|
||||
return isNaN(num) ? undefined : num;
|
||||
}),
|
||||
bookingUid: z.string().optional(),
|
||||
});
|
||||
|
||||
/*
|
||||
Twilio status callback: creates expense log when sms is delivered or undelivered
|
||||
*/
|
||||
async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const signature = req.headers["x-twilio-signature"];
|
||||
const baseUrl = `${WEBAPP_URL}/api/twilio/webhook`;
|
||||
|
||||
const queryParams = new URLSearchParams(req.query as Record<string, string>).toString();
|
||||
const requestUrl = queryParams ? `${baseUrl}?${queryParams}` : baseUrl;
|
||||
|
||||
if (typeof signature !== "string") {
|
||||
return res.status(401).send("Missing Twilio signature");
|
||||
}
|
||||
|
||||
const isSignatureValid = await twilio.validateWebhookRequest({
|
||||
requestUrl,
|
||||
signature,
|
||||
params: req.body,
|
||||
});
|
||||
|
||||
if (!isSignatureValid) {
|
||||
return res.status(401).send("Invalid Twilio signature");
|
||||
}
|
||||
|
||||
const messageStatus = req.body.MessageStatus;
|
||||
|
||||
if (messageStatus !== "delivered" && messageStatus !== "undelivered") {
|
||||
return res.status(200).send(`SMS not yet delivered/undelivered`);
|
||||
}
|
||||
|
||||
if (!IS_SMS_CREDITS_ENABLED) {
|
||||
return res.status(200).send(`SMS credits are not enabled.`);
|
||||
}
|
||||
|
||||
const countryCode = await twilio.getCountryCodeForNumber(req.body.To);
|
||||
|
||||
const smsSid = req.body.SmsSid;
|
||||
|
||||
const {
|
||||
userId: parsedUserId,
|
||||
teamId: parsedTeamId,
|
||||
bookingUid: parsedBookingUid,
|
||||
} = InputSchema.parse(req.query);
|
||||
|
||||
if (!parsedUserId && !parsedTeamId) {
|
||||
return res.status(401).send("Team or user id is required");
|
||||
}
|
||||
const { CreditService } = await import("@calcom/features/ee/billing/credit-service");
|
||||
const creditService = new CreditService();
|
||||
|
||||
if (countryCode === "US" || countryCode === "CA") {
|
||||
// SMS to US and CA are free on a team plan
|
||||
let teamIdToCharge = parsedTeamId;
|
||||
|
||||
if (!teamIdToCharge && parsedUserId) {
|
||||
const teamMembership = await prisma.membership.findFirst({
|
||||
where: {
|
||||
userId: parsedUserId,
|
||||
accepted: true,
|
||||
},
|
||||
select: {
|
||||
teamId: true,
|
||||
},
|
||||
});
|
||||
teamIdToCharge = teamMembership?.teamId;
|
||||
}
|
||||
|
||||
if (teamIdToCharge) {
|
||||
await creditService.chargeCredits({
|
||||
teamId: teamIdToCharge,
|
||||
bookingUid: parsedBookingUid,
|
||||
smsSid,
|
||||
credits: 0,
|
||||
});
|
||||
return res.status(200).send(`SMS to US and CA are free on a team plan. Credits set to 0`);
|
||||
}
|
||||
}
|
||||
|
||||
let orgId;
|
||||
|
||||
if (parsedTeamId) {
|
||||
const team = await prisma.team.findUnique({
|
||||
where: {
|
||||
id: parsedTeamId,
|
||||
},
|
||||
select: {
|
||||
isOrganization: true,
|
||||
id: true,
|
||||
},
|
||||
});
|
||||
orgId = team?.isOrganization ? team.id : undefined;
|
||||
}
|
||||
|
||||
if (!orgId) {
|
||||
orgId = await getOrgIdFromMemberOrTeamId({
|
||||
memberId: parsedUserId,
|
||||
teamId: parsedTeamId,
|
||||
});
|
||||
}
|
||||
|
||||
if (orgId) {
|
||||
await creditService.chargeCredits({
|
||||
teamId: orgId,
|
||||
bookingUid: parsedBookingUid,
|
||||
smsSid,
|
||||
credits: 0,
|
||||
});
|
||||
|
||||
return res.status(200).send(`SMS are free for organizations. Credits set to 0`);
|
||||
}
|
||||
|
||||
const price = await twilio.getPriceForSMS(smsSid);
|
||||
|
||||
const credits = price ? creditService.calculateCreditsFromPrice(price) : null;
|
||||
|
||||
const chargedTeamId = await creditService.chargeCredits({
|
||||
credits,
|
||||
teamId: parsedTeamId,
|
||||
userId: parsedUserId,
|
||||
smsSid,
|
||||
bookingUid: parsedBookingUid,
|
||||
});
|
||||
|
||||
if (chargedTeamId) {
|
||||
return res.status(200).send(
|
||||
`Expense log with ${credits ? credits : "no"} credits created for
|
||||
teamId ${chargedTeamId}`
|
||||
);
|
||||
}
|
||||
// this should never happen - even when out of credits we still charge a team
|
||||
return res.status(500).send("No team or users found to be charged");
|
||||
}
|
||||
|
||||
export default defaultHandler({
|
||||
POST: Promise.resolve({ default: handler }),
|
||||
});
|
||||
@@ -3021,6 +3021,12 @@
|
||||
"asc": "Asc",
|
||||
"desc": "Desc",
|
||||
"verify_email_change": "Verify email change",
|
||||
"buy_credits": "Buy Credits",
|
||||
"credits": "Credits",
|
||||
"view_and_manage_credits": "View and manage credits",
|
||||
"view_and_manage_credits_description": "View and manage credits for sending SMS messages. One credit is worth 1¢ (USD)",
|
||||
"buy_additional_credits": "Buy additional credits ($0.01 per credit)",
|
||||
"overview": "Overview",
|
||||
"organization_slug_taken": "Organization slug is already taken",
|
||||
"you_cannot_create_an_organization_as_you_are_already_part_of_an_organization": "You cannot create an organization as you are already a part of an organization",
|
||||
"you_need_to_complete_user_onboarding_before_creating_an_organization": "You need to complete user onboarding before creating an organization",
|
||||
@@ -3114,6 +3120,8 @@
|
||||
"most_cancelled_bookings": "Most Cancelled Bookings",
|
||||
"name_or_email": "Name or Email",
|
||||
"salesforce_round_robin_skip_fallback_to_lead_owner": "If no contact is found, fallback to lead owner if it exists",
|
||||
"credit_purchase_failed": "Credit purchase failed. Please try again or contact support.",
|
||||
"minimum_of_credits_required": "Minimum of 50 credits required",
|
||||
"enable_delegation_credential": "Enable Delegation Credential",
|
||||
"enable_delegation_credential_description": "Grant Cal.com automatic access to the calendars of all organization members by enabling delegation credential.",
|
||||
"disable_delegation_credential": "Disable Delegation Credential",
|
||||
@@ -3186,6 +3194,16 @@
|
||||
"results": "Results",
|
||||
"view_form": "View Form",
|
||||
"sms_opt_out_message": "Text STOP to opt-out of SMS messages",
|
||||
"team_credits_low_warning": "Your team {{teamName}} is running low on credits",
|
||||
"action_required_out_of_credits": "[Action Required] Your team {{teamName}} has run out of credits",
|
||||
"low_credits_warning_message": "Your Cal.com team {{teamName}} is running low on credits. To avoid any disruption in service, please purchase additional credits. If your balance runs out, SMS messages will stop sending and will be sent as emails instead.",
|
||||
"credit_limit_reached_message": "Your Cal.com team {{teamName}} has run out of credits. As a result, SMS messages are now being sent via email instead. To resume sending SMS, please purchase additional credits.",
|
||||
"current_credit_balance": "Current balance: {{balance}} credits",
|
||||
"notification_about_your_booking": "Notification about your booking",
|
||||
"monthly_credits": "Monthly credits",
|
||||
"total_credits": "Total credits: {{totalCredits}}",
|
||||
"remaining_credits": "Remaining credits: {{remainingCredits}}",
|
||||
"additional_credits": "Additional credits",
|
||||
"routing_form_next_in_queue": "{{count}} next in queue",
|
||||
"routing_form_select_members_to_email": "Send email responses to",
|
||||
"routing_incomplete_booking_tab": "Incomplete Bookings",
|
||||
|
||||
Reference in new issue
Block a user