📨 The ultimate agentic social media scheduling tool 🤖
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: professional billing
Nevo David3bd88cee91f1
diff --git a/apps/backend/src/api/routes/billing.controller.ts b/apps/backend/src/api/routes/billing.controller.tsindex e1777e50f..c16863353 100644--- a/apps/backend/src/api/routes/billing.controller.ts+++ b/apps/backend/src/api/routes/billing.controller.ts@@ -20,6 +20,11 @@ import { AuthService } from '@gitroom/helpers/auth/auth.service';import { UsersService } from '@gitroom/nestjs-libraries/database/prisma/users/users.service';import { PaymentService } from '@gitroom/nestjs-libraries/services/payment/payment.service';import { BillingSyncDto } from '@gitroom/nestjs-libraries/dtos/billing/billing.sync.dto';+import { CheckPolicies } from '@gitroom/backend/services/auth/permissions/permissions.ability';+import {+ AuthorizationActions,+ Sections,+} from '@gitroom/backend/services/auth/permissions/permission.exception.class';@ApiTags('Billing')@Controller('/billing')@@ -158,6 +163,12 @@ export class BillingController {};}+ @Get('/invoices')+ @CheckPolicies([AuthorizationActions.Create, Sections.ADMIN])+ async getInvoices(@GetOrgFromRequest() org: Organization) {+ return (await this.provider(org)).getInvoices(org.id);+ }+@Get('/')getCurrentBilling(@GetOrgFromRequest() org: Organization) {return this._paymentService.getSubscription(org.id);diff --git a/apps/frontend/src/components/billing/billing.history.component.tsx b/apps/frontend/src/components/billing/billing.history.component.tsxnew file mode 100644index 000000000..1077a2b69--- /dev/null+++ b/apps/frontend/src/components/billing/billing.history.component.tsx@@ -0,0 +1,428 @@+'use client';++import React, { FC, useCallback, useMemo, useState } from 'react';+import useSWR from 'swr';+import dayjs from 'dayjs';+import clsx from 'clsx';+import { capitalize } from 'lodash';+import { useFetch } from '@gitroom/helpers/utils/custom.fetch';+import { useT } from '@gitroom/react/translation/get.transation.service.client';+import { Select } from '@gitroom/react/form/select';++interface Invoice {+ id: string;+ number: string | null;+ tier: string | null;+ period: string | null;+ description: string | null;+ amount: number;+ currency: string;+ created: number;+ periodEnd: number;+ status: 'paid' | 'pending' | 'failed' | 'void';+ downloadUrl: string | null;+ viewUrl: string | null;+}++const PAGE_SIZE = 10;++const useInvoices = () => {+ const fetch = useFetch();+ return useSWR<Invoice[]>(+ '/billing/invoices',+ async () => {+ const response = await fetch('/billing/invoices');+ if (!response.ok) {+ throw new Error('Failed to load invoices');+ }+ return response.json();+ },+ {+ revalidateOnFocus: false,+ revalidateOnReconnect: false,+ }+ );+};++const formatAmount = (amount: number, currency: string) => {+ const formatter = new Intl.NumberFormat('en-US', {+ style: 'currency',+ currency: currency.toUpperCase(),+ });+ return formatter.format(+ amount / 10 ** (formatter.resolvedOptions().maximumFractionDigits ?? 2)+ );+};++const formatDate = (unix: number | null) =>+ unix+ ? dayjs+ .utc(unix * 1000)+ .local()+ .format('D MMM, YYYY')+ : '';++const ActionLink: FC<{+ href: string;+ label: string;+ icon: React.ReactNode;+}> = ({ href, label, icon }) => (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ aria-label={label}+ data-tooltip-id="tooltip"+ data-tooltip-content={label}+ className="w-[36px] h-[36px] rounded-[8px] border border-newTableBorder flex items-center justify-center text-textItemBlur hover:text-newTextColor hover:bg-boxHover transition-colors"+ >+ {icon}+ </a>+);++export const BillingHistory: FC = () => {+ const t = useT();+ const { data, isLoading, error } = useInvoices();+ const [search, setSearch] = useState('');+ const [status, setStatus] = useState('all');+ const [visible, setVisible] = useState(PAGE_SIZE);++ const statuses = useMemo(+ () =>+ ({+ paid: {+ label: t('billing_status_paid', 'Paid'),+ color: 'text-[#32D583]',+ },+ pending: {+ label: t('billing_status_open', 'Pending'),+ color: 'text-[#FFAC30]',+ },+ failed: {+ label: t('billing_status_failed', 'Failed'),+ color: 'text-[#F97066]',+ },+ void: {+ label: t('billing_status_void', 'Void'),+ color: 'text-textItemBlur',+ },+ } as Record<Invoice['status'], { label: string; color: string }>),+ [t]+ );++ const rows = useMemo(+ () =>+ (data || []).map((invoice) => ({+ ...invoice,+ plan: invoice.tier+ ? capitalize(invoice.tier)+ : invoice.description || t('billing_subscription', 'Subscription'),+ periodLabel:+ invoice.period === 'YEARLY'+ ? t('billing_yearly', 'Yearly')+ : invoice.period === 'MONTHLY'+ ? t('billing_monthly', 'Monthly')+ : '',+ amountLabel: formatAmount(invoice.amount, invoice.currency),+ purchaseDate: formatDate(invoice.created),+ endDate: formatDate(invoice.periodEnd),+ statusInfo: statuses[invoice.status] || statuses.void,+ })),+ [data, statuses, t]+ );++ const filtered = useMemo(() => {+ const query = search.trim().toLowerCase();+ return rows.filter(+ (row) =>+ (status === 'all' || row.status === status) &&+ (!query ||+ [+ row.plan,+ row.periodLabel,+ row.number,+ row.amountLabel,+ row.purchaseDate,+ row.endDate,+ row.statusInfo.label,+ ].some((value) => value?.toLowerCase().includes(query)))+ );+ }, [rows, search, status]);++ const exportCsv = useCallback(() => {+ const escape = (value: string | null) =>+ `"${(value || '').replace(/"/g, '""')}"`;+ const lines = [+ [+ t('billing_plan', 'Plan'),+ t('billing_amount', 'Amount'),+ t('billing_purchase_date', 'Purchase Date'),+ t('billing_end_date', 'End Date'),+ t('billing_status', 'Status'),+ t('billing_invoice', 'Invoice'),+ ],+ ...filtered.map((row) => [+ [row.plan, row.periodLabel].filter((p) => p).join(' - '),+ row.amountLabel,+ row.purchaseDate,+ row.endDate,+ row.statusInfo.label,+ row.viewUrl || row.downloadUrl || row.number,+ ]),+ ];+ const url = URL.createObjectURL(+ new Blob(+ ['\uFEFF' + lines.map((line) => line.map(escape).join(',')).join('\n')],+ { type: 'text/csv;charset=utf-8' }+ )+ );+ const link = document.createElement('a');+ link.href = url;+ link.download = 'billing-history.csv';+ document.body.appendChild(link);+ link.click();+ link.remove();+ setTimeout(() => URL.revokeObjectURL(url), 1000);+ }, [filtered, t]);++ const columns =+ 'grid grid-cols-[minmax(0,2fr)_minmax(0,1fr)_minmax(0,1fr)_minmax(0,1fr)_minmax(0,1fr)_88px] gap-x-[16px] items-center px-[16px]';++ if (isLoading || (!error && !rows.length)) {+ return null;+ }++ return (+ <div className="flex flex-col gap-[20px] rounded-[12px] border border-newTableBorder bg-newBgColorInner shadow-previewShadow p-[24px] mobile:p-[16px]">+ <div className="flex items-center gap-[12px] mobile:flex-col mobile:items-stretch">+ <div className="flex-1 text-[20px] font-[600]">+ {t('billing_history', 'Billing History')}+ </div>+ <div className="flex items-center gap-[8px] mobile:flex-wrap">+ <div className="relative w-[240px] mobile:w-full">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="18"+ height="18"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="absolute start-[12px] top-1/2 -translate-y-1/2 text-textItemBlur pointer-events-none"+ >+ <circle cx="11" cy="11" r="7" />+ <path d="M20 20L16.5 16.5" />+ </svg>+ <input+ type="text"+ value={search}+ onChange={(e) => {+ setSearch(e.target.value);+ setVisible(PAGE_SIZE);+ }}+ placeholder={t('billing_search', 'Search...')}+ className="w-full h-[42px] ps-[38px] pe-[12px] rounded-[8px] bg-newBgColorInner border border-newTableBorder text-[14px] outline-none focus:border-[#612BD3]"+ />+ </div>+ <div className="mobile:flex-1">+ <Select+ label=""+ name="status"+ disableForm={true}+ hideErrors={true}+ value={status}+ className="w-full"+ onChange={(e) => {+ setStatus(e.target.value);+ setVisible(PAGE_SIZE);+ }}+ >+ <option value="all">+ {t('billing_all_statuses', 'All statuses')}+ </option>+ {Object.entries(statuses).map(([key, value]) => (+ <option key={key} value={key}>+ {value.label}+ </option>+ ))}+ </Select>+ </div>+ <button+ type="button"+ onClick={exportCsv}+ disabled={!filtered.length}+ className="h-[42px] px-[16px] rounded-[8px] border border-newTableBorder bg-newBgColorInner flex items-center gap-[8px] text-[14px] font-[500] hover:bg-boxHover transition-colors disabled:opacity-50 disabled:pointer-events-none"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="18"+ height="18"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />+ <polyline points="17 8 12 3 7 8" />+ <line x1="12" y1="3" x2="12" y2="15" />+ </svg>+ {t('billing_export', 'Export')}+ </button>+ </div>+ </div>++ <div className="flex flex-col">+ <div+ className={clsx(+ columns,+ 'h-[48px] rounded-[8px] border border-newTableBorder bg-newTableHeader text-[14px] text-newTableText mobile:hidden'+ )}+ >+ <div>{t('billing_plan', 'Plan')}</div>+ <div>{t('billing_amount', 'Amount')}</div>+ <div>{t('billing_purchase_date', 'Purchase Date')}</div>+ <div>{t('billing_end_date', 'End Date')}</div>+ <div>{t('billing_status', 'Status')}</div>+ <div>{t('billing_action', 'Action')}</div>+ </div>++ {error || !filtered.length ? (+ <div className="flex flex-col items-center justify-center gap-[12px] py-[40px] px-[16px] text-center">+ <div className="w-[48px] h-[48px] rounded-full bg-[#612bd3]/10 flex items-center justify-center text-[#612bd3]">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M4 3h16v18l-3-2-3 2-2-2-2 2-3-2-3 2V3z" />+ <path d="M8 8h8M8 12h8M8 16h5" />+ </svg>+ </div>+ <div className="text-[15px] text-newTableText">+ {error+ ? t('billing_invoices_failed', 'Could not load your invoices')+ : t(+ 'billing_no_matching_invoices',+ 'No invoices match your search'+ )}+ </div>+ </div>+ ) : (+ filtered.slice(0, visible).map((row) => (+ <div+ key={row.id}+ className={clsx(+ columns,+ 'min-h-[64px] py-[12px] border-b border-newTableBorder last:border-b-0 text-[14px] mobile:grid-cols-[minmax(0,1fr)_auto] mobile:gap-y-[6px] mobile:py-[14px] mobile:px-0'+ )}+ >+ <div className="flex flex-col min-w-0 mobile:col-start-1 mobile:row-start-1">+ <div className="text-[15px] font-[500] truncate">+ {row.plan}+ </div>+ {(!!row.periodLabel || !!row.number) && (+ <div className="text-[13px] text-textItemBlur truncate">+ {[row.periodLabel, row.number].filter((p) => p).join(' · ')}+ </div>+ )}+ </div>+ <div className="font-[500] mobile:col-start-2 mobile:row-start-1 mobile:text-end">+ {row.amountLabel}+ </div>+ <div className="mobile:col-start-1 mobile:row-start-2 mobile:text-[13px] mobile:text-textItemBlur">+ <bdi>{row.purchaseDate}</bdi>+ {!!row.endDate && (+ <span className="hidden mobile:inline">+ {' - '}+ <bdi>{row.endDate}</bdi>+ </span>+ )}+ </div>+ <div className="mobile:hidden">+ <bdi>{row.endDate}</bdi>+ </div>+ <div+ className={clsx(+ 'flex items-center gap-[8px] font-[500] mobile:col-start-2 mobile:row-start-2 mobile:justify-end',+ row.statusInfo.color+ )}+ >+ <span className="w-[8px] h-[8px] rounded-full bg-current shrink-0" />+ {row.statusInfo.label}+ </div>+ <div className="flex items-center gap-[8px] mobile:col-span-2 mobile:row-start-3">+ {!row.downloadUrl ? (+ <div className="w-[36px] mobile:hidden" />+ ) : (+ <ActionLink+ href={row.downloadUrl}+ label={t('billing_download_invoice', 'Download invoice')}+ icon={+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="18"+ height="18"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />+ <polyline points="7 10 12 15 17 10" />+ <line x1="12" y1="15" x2="12" y2="3" />+ </svg>+ }+ />+ )}+ {!!row.viewUrl && (+ <ActionLink+ href={row.viewUrl}+ label={t('billing_view_invoice', 'View invoice')}+ icon={+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="18"+ height="18"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" />+ <circle cx="12" cy="12" r="3" />+ </svg>+ }+ />+ )}+ </div>+ </div>+ ))+ )}+ </div>++ {filtered.length > visible && (+ <button+ type="button"+ onClick={() => setVisible((current) => current + PAGE_SIZE)}+ className="self-center h-[36px] px-[16px] rounded-[8px] text-[14px] font-[500] text-textItemBlur hover:text-newTextColor hover:bg-boxHover transition-colors"+ >+ {t('show_more', '+ Show more')}+ </button>+ )}+ </div>+ );+};diff --git a/apps/frontend/src/components/billing/first.billing.component.tsx b/apps/frontend/src/components/billing/first.billing.component.tsxindex 13cc9cc5d..7cb67048c 100644--- a/apps/frontend/src/components/billing/first.billing.component.tsx+++ b/apps/frontend/src/components/billing/first.billing.component.tsx@@ -334,7 +334,7 @@ type FeatureItem = {prefix?: string | number;};-export const BillingFeatures: FC<{ tier: string }> = ({ tier }) => {+export const useBillingFeatures = (tier: string) => {const t = useT();const features = useMemo(() => {const currentPricing = pricing[tier];@@ -412,6 +412,15 @@ export const BillingFeatures: FC<{ tier: string }> = ({ tier }) => {return translatedText;};+ return features.map((feature) => ({+ key: feature.key,+ label: renderFeature(feature),+ }));+};++export const BillingFeatures: FC<{ tier: string }> = ({ tier }) => {+ const features = useBillingFeatures(tier);+return (<div className="grid grid-cols-2 mobile:grid-cols-1 gap-y-[8px] gap-x-[32px]">{features.map((feature) => (@@ -430,7 +439,7 @@ export const BillingFeatures: FC<{ tier: string }> = ({ tier }) => {/></svg></div>- <div>{renderFeature(feature)}</div>+ <div>{feature.label}</div></div>))}</div>diff --git a/apps/frontend/src/components/billing/main.billing.component.tsx b/apps/frontend/src/components/billing/main.billing.component.tsxindex 43668f918..65a38f01e 100644--- a/apps/frontend/src/components/billing/main.billing.component.tsx+++ b/apps/frontend/src/components/billing/main.billing.component.tsx@@ -1,6 +1,5 @@'use client';-import { Slider } from '@gitroom/react/form/slider';import React, { FC, useCallback, useEffect, useMemo, useState } from 'react';import { Button } from '@gitroom/react/form/button';import { useFetch } from '@gitroom/helpers/utils/custom.fetch';@@ -11,8 +10,11 @@ import { deleteDialog } from '@gitroom/react/helpers/delete.dialog';import { useToaster } from '@gitroom/react/toaster/toaster';import dayjs from 'dayjs';import clsx from 'clsx';+import { capitalize } from 'lodash';import { pricing } from '@gitroom/nestjs-libraries/database/prisma/subscriptions/pricing';import { FAQComponent } from '@gitroom/frontend/components/billing/faq.component';+import { useBillingFeatures } from '@gitroom/frontend/components/billing/first.billing.component';+import { BillingHistory } from '@gitroom/frontend/components/billing/billing.history.component';import { useSWRConfig } from 'swr';import { useUser } from '@gitroom/frontend/components/layout/user.context';import { useRouter, useSearchParams } from 'next/navigation';@@ -65,81 +67,182 @@ export const Prorate: FC<{}, [period, pack]);if (loading) {return (- <div className="pt-[12px]">- <ReactLoading type="spin" color="#fff" width={20} height={20} />- </div>+ <ReactLoading type="spin" color="currentColor" width={14} height={14} />);}- if (price === false) {+ // the price is missing when the preview request fails+ if (typeof price !== 'number') {return null;}return (- <div className="text-[12px] flex pt-[12px]">- ({t('pay_today', 'Pay Today')} ${(price < 0 ? 0 : price)?.toFixed(1)})- </div>+ <>+ {t('pay_today', 'Pay Today')} ${Math.max(price, 0).toFixed(2)}+ </>);};-export const Features: FC<{- pack: 'FREE' | 'STANDARD' | 'PRO';++type PlanAction = {+ label: string;+ onClick?: () => void;+ disabled?: boolean;+ variant: 'primary' | 'simple' | 'current' | 'danger';+};++const planButton = {+ primary: 'bg-btnPrimary text-white hover:bg-[#5023b8]',+ simple: 'bg-btnSimple text-btnText hover:opacity-80',+ current: 'bg-newBgLineColor text-textItemBlur',+ danger: 'bg-red-500 text-white hover:bg-red-600',+};++const PlanCard: FC<{+ name: string;+ price: number;+ yearly: boolean;+ current: boolean;+ action: PlanAction;+ loading: boolean;+ disabled: boolean;+ note?: React.ReactNode;}> = (props) => {- const { pack } = props;- const features = useMemo(() => {- const currentPricing = pricing[pack];- const channelsOr = currentPricing.channel;- const list = [];- list.push(`${channelsOr} ${channelsOr === 1 ? 'channel' : 'channels'}`);- list.push(- `${- currentPricing.posts_per_month > 10000- ? 'Unlimited'- : currentPricing.posts_per_month- } posts per month`- );- if (currentPricing.team_members) {- list.push(`Unlimited team members`);- }- if (currentPricing?.ai) {- list.push(`AI auto-complete`);- list.push(`AI copilots`);- list.push(`AI Autocomplete`);- }- list.push(`Advanced Picture Editor`);- if (currentPricing?.image_generator) {- list.push(- `${currentPricing?.image_generation_count} AI Images per month`- );- }- if (currentPricing?.generate_videos) {- list.push(`${currentPricing?.generate_videos} AI Videos per month`);- }- if (currentPricing?.clipping_minutes) {- list.push(- `${currentPricing?.clipping_minutes} minutes of AI video clipping per month`- );- }- return list;- }, [pack]);+ const { name, price, yearly, current, action, loading, disabled, note } =+ props;+ const t = useT();+ const features = useBillingFeatures(name);+return (- <div className="flex flex-col gap-[10px] justify-center text-[16px] text-customColor18">- {features.map((feature) => (- <div key={feature} className="flex gap-[20px]">- <div>+ <div+ className={clsx(+ 'relative flex flex-col gap-[20px] rounded-[12px] border p-[24px] mobile:p-[20px]',+ current+ ? 'border-transparent bg-gradient-to-b from-seventh to-btnPrimary text-white shadow-lg shadow-purple-500/25'+ : 'border-newTableBorder bg-newBgColorInner shadow-previewShadow'+ )}+ >+ {[+ 'top-[10px] start-[10px]',+ 'top-[10px] end-[10px]',+ 'bottom-[10px] start-[10px]',+ 'bottom-[10px] end-[10px]',+ ].map((position) => (+ <span+ key={position}+ className={clsx(+ 'absolute w-[8px] h-[8px] rounded-full border pointer-events-none',+ position,+ current+ ? 'border-white/25 bg-white/10'+ : 'border-newTableBorder bg-newBgColor'+ )}+ />+ ))}+ <div className="flex items-center justify-between gap-[8px] min-h-[26px]">+ <div className="text-[18px] font-[600]">{capitalize(name)}</div>+ {current && (+ <div className="flex items-center gap-[6px] h-[26px] px-[10px] rounded-full bg-white/15 text-[12px] font-[600] uppercase whitespace-nowrap">+ <span className="w-[6px] h-[6px] rounded-full bg-[#32D583]" />+ {t('active', 'Active')}+ </div>+ )}+ </div>+ <div className="flex items-baseline gap-[6px]">+ <div className="text-[40px] leading-[48px] font-[600] tracking-tight">+ ${price}+ </div>+ <div+ className={clsx(+ 'text-[14px]',+ current ? 'text-white/70' : 'text-textItemBlur'+ )}+ >+ {yearly+ ? t('billing_per_year', '/ year')+ : t('billing_per_month', '/ month')}+ </div>+ </div>+ <div className="relative flex flex-col mb-[8px]">+ <button+ type="button"+ onClick={action.onClick}+ disabled={disabled}+ className={clsx(+ 'h-[44px] px-[16px] rounded-[8px] text-[15px] font-[600] flex items-center justify-center transition-all',+ current+ ? action.variant === 'current'+ ? 'bg-white/15 text-white'+ : 'bg-white text-btnPrimary hover:bg-white/90'+ : planButton[action.variant],+ disabled ? 'cursor-default' : 'cursor-pointer',+ disabled && action.variant !== 'current' && 'opacity-50'+ )}+ >+ {loading ? (+ <ReactLoading+ type="spin"+ color="currentColor"+ width={18}+ height={18}+ />+ ) : (+ action.label+ )}+ </button>+ {!!note && (+ <div+ className={clsx(+ 'absolute top-full inset-x-0 h-[28px] flex items-center justify-center text-[12px]',+ current ? 'text-white/70' : 'text-textItemBlur'+ )}+ >+ {note}+ </div>+ )}+ </div>+ <div+ className={clsx(+ 'h-[1px]',+ current ? 'bg-white/15' : 'bg-newTableBorder'+ )}+ />+ <div className="flex flex-col gap-[12px] text-[14px] leading-[20px]">+ {features.map((feature) => (+ <div+ key={feature.key}+ className={clsx(+ 'flex gap-[10px]',+ current ? 'text-white' : 'text-newTextColor/90'+ )}+ ><svgxmlns="http://www.w3.org/2000/svg"- width="24"- height="24"- viewBox="0 0 24 24"+ width="20"+ height="20"+ viewBox="0 0 20 20"fill="none"+ className={clsx(+ 'shrink-0',+ current ? 'text-white/75' : 'text-[#8b5cf6]'+ )}>+ <circle+ cx="10"+ cy="10"+ r="7.75"+ stroke="currentColor"+ strokeWidth="1.5"+ /><path- d="M16.2806 9.21937C16.3504 9.28903 16.4057 9.37175 16.4434 9.46279C16.4812 9.55384 16.5006 9.65144 16.5006 9.75C16.5006 9.84856 16.4812 9.94616 16.4434 10.0372C16.4057 10.1283 16.3504 10.211 16.2806 10.2806L11.0306 15.5306C10.961 15.6004 10.8783 15.6557 10.7872 15.6934C10.6962 15.7312 10.5986 15.7506 10.5 15.7506C10.4014 15.7506 10.3038 15.7312 10.2128 15.6934C10.1218 15.6557 10.039 15.6004 9.96938 15.5306L7.71938 13.2806C7.57865 13.1399 7.49959 12.949 7.49959 12.75C7.49959 12.551 7.57865 12.3601 7.71938 12.2194C7.86011 12.0786 8.05098 11.9996 8.25 11.9996C8.44903 11.9996 8.6399 12.0786 8.78063 12.2194L10.5 13.9397L15.2194 9.21937C15.289 9.14964 15.3718 9.09432 15.4628 9.05658C15.5538 9.01884 15.6514 8.99941 15.75 8.99941C15.8486 8.99941 15.9462 9.01884 16.0372 9.05658C16.1283 9.09432 16.211 9.14964 16.2806 9.21937ZM21.75 12C21.75 13.9284 21.1782 15.8134 20.1068 17.4168C19.0355 19.0202 17.5127 20.2699 15.7312 21.0078C13.9496 21.7458 11.9892 21.9389 10.0979 21.5627C8.20656 21.1865 6.46928 20.2579 5.10571 18.8943C3.74215 17.5307 2.81355 15.7934 2.43735 13.9021C2.06114 12.0108 2.25422 10.0504 2.99218 8.26884C3.73013 6.48726 4.97982 4.96451 6.58319 3.89317C8.18657 2.82183 10.0716 2.25 12 2.25C14.585 2.25273 17.0634 3.28084 18.8913 5.10872C20.7192 6.93661 21.7473 9.41498 21.75 12ZM20.25 12C20.25 10.3683 19.7661 8.77325 18.8596 7.41655C17.9531 6.05984 16.6646 5.00242 15.1571 4.37799C13.6497 3.75357 11.9909 3.59019 10.3905 3.90852C8.79017 4.22685 7.32016 5.01259 6.16637 6.16637C5.01259 7.32015 4.22685 8.79016 3.90853 10.3905C3.5902 11.9908 3.75358 13.6496 4.378 15.1571C5.00242 16.6646 6.05984 17.9531 7.41655 18.8596C8.77326 19.7661 10.3683 20.25 12 20.25C14.1873 20.2475 16.2843 19.3775 17.8309 17.8309C19.3775 16.2843 20.2475 14.1873 20.25 12Z"- fill="#06ff00"+ d="M7 10.25L9 12.25L13 8.25"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"/></svg>+ <div>{feature.label}</div></div>- <div className="text-start">{feature}</div>- </div>- ))}+ ))}+ </div></div>);};@@ -241,6 +344,8 @@ export const MainBillingComponent: FC<{sub);const [loading, setLoading] = useState<boolean>(false);+ // which button started the request, so only that one shows a spinner+ const [clicked, setClicked] = useState('');const [period, setPeriod] = useState<'MONTHLY' | 'YEARLY'>(subscription?.period || 'MONTHLY');@@ -455,6 +560,7 @@ export const MainBillingComponent: FC<{revalidate: false,});+ mutate('/billing/invoices');toast.show('Subscription updated successfully');}setLoading(false);@@ -489,142 +595,220 @@ export const MainBillingComponent: FC<{</div>);}+ const yearly = monthlyOrYearly === 'on';+ const tiers = Object.keys(pricing);+ const currentTier = subscription?.subscriptionTier || 'FREE';+ const plans = tiers.filter((name) => !isGeneral || name !== 'FREE');++ const planAction = (name: string): PlanAction => {+ if (currentPackage === name && subscription?.cancelAt) {+ return {+ label: t('reactivate_subscription', 'Reactivate subscription'),+ onClick: moveToCheckout('FREE', true),+ variant: 'primary',+ };+ }+ if (currentPackage === name) {+ return {+ label: t('billing_current_plan', 'Current Plan'),+ disabled: true,+ variant: 'current',+ };+ }+ if (name === 'FREE') {+ return {+ label: subscription?.cancelAt+ ? t('billing_downgrade_on', 'Downgrade on {{date}}', {+ date: dayjs+ .utc(subscription.cancelAt)+ .local()+ .format('D MMM, YYYY'),+ })+ : t('cancel_subscription_1', 'Cancel subscription'),+ onClick: moveToCheckout('FREE'),+ disabled: !!subscription?.cancelAt,+ variant: 'danger',+ };+ }+ const direction = tiers.indexOf(name) - tiers.indexOf(currentTier);+ return {+ label: !subscription+ ? user?.tier?.current === 'FREE' && user.allowTrial+ ? t('start_7_days_free_trial', 'Start 7 days free trial')+ : t('billing_purchase', 'Purchase')+ : direction > 0+ ? t('billing_upgrade', 'Upgrade')+ : direction < 0+ ? t('billing_downgrade', 'Downgrade')+ : yearly+ ? t('billing_switch_to_yearly', 'Switch to yearly')+ : t('billing_switch_to_monthly', 'Switch to monthly'),+ onClick: moveToCheckout(name as 'STANDARD' | 'PRO'),+ variant: !!subscription && direction < 0 ? 'simple' : 'primary',+ };+ };+return (- <div className="flex flex-col gap-[16px]">- <div className="flex flex-row">- <div className="flex-1 text-[20px]">{t('plans', 'Plans')}</div>- <div className="flex items-center gap-[16px]">- <div>{t('monthly', 'MONTHLY')}</div>- <div>- <Slider value={monthlyOrYearly} onChange={setMonthlyOrYearly} />+ <div className="flex flex-col gap-[24px]">+ {finishTrial && <FinishTrial close={() => setFinishTrial(false)} />}+ <div className="flex items-center gap-[16px] mobile:flex-col mobile:items-stretch">+ <div className="flex-1 flex flex-col gap-[4px]">+ <div className="text-[20px] font-[600]">+ {t('billing_and_subscription', 'Billing & Subscription')}+ </div>+ <div className="text-[14px] text-textItemBlur">+ {t(+ 'billing_and_subscription_description',+ 'Keep track of your subscription, update your payment method and download your invoices'+ )}+ </div>+ </div>+ <div className="flex p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500] select-none">+ <div+ onClick={() => setMonthlyOrYearly('off')}+ className={clsx(+ 'h-[34px] px-[16px] rounded-[6px] flex items-center justify-center mobile:flex-1',+ !yearly ? 'bg-boxFocused text-textItemFocused' : 'cursor-pointer'+ )}+ >+ {t('billing_monthly', 'Monthly')}+ </div>+ <div+ onClick={() => setMonthlyOrYearly('on')}+ className={clsx(+ 'h-[34px] px-[16px] rounded-[6px] flex items-center justify-center gap-[8px] mobile:flex-1',+ yearly ? 'bg-boxFocused text-textItemFocused' : 'cursor-pointer'+ )}+ >+ {t('billing_yearly', 'Yearly')}+ <div className="bg-[#AA0FA4] text-white text-[12px] px-[6px] rounded-[4px]">+ {t('billing_20_percent_off', '20% Off')}+ </div></div>- <div>{t('yearly', 'YEARLY')}</div></div></div>-- {finishTrial && <FinishTrial close={() => setFinishTrial(false)} />}- <div className="flex gap-[16px] [@media(max-width:1024px)]:flex-col [@media(max-width:1024px)]:text-center">- {Object.entries(pricing)- .filter((f) => !isGeneral || f[0] !== 'FREE')- .map(([name, values]) => (- <div+ {subscription?.cancelAt && isGeneral && (+ <div className="flex items-center gap-[12px] rounded-[12px] border border-[#FFAC30]/30 bg-[#FFAC30]/10 px-[16px] py-[12px] text-[14px]">+ <div className="w-[8px] h-[8px] rounded-full bg-[#FFAC30] shrink-0" />+ <div>+ {t(+ 'your_subscription_will_be_canceled_at',+ 'Your subscription will be canceled at'+ )}{' '}+ <bdi className="font-[600]">+ {newDayjs(subscription.cancelAt).local().format('D MMM, YYYY')}+ </bdi>+ {'. '}+ {t(+ 'you_will_never_be_charged_again',+ 'You will never be charged again'+ )}+ </div>+ </div>+ )}+ <div+ className={clsx(+ 'grid gap-[16px] tablet:grid-cols-2 mobile:!grid-cols-1',+ plans.length > 4 ? 'grid-cols-5' : 'grid-cols-4'+ )}+ >+ {plans.map((name) => {+ const action = planAction(name);+ return (+ <PlanCardkey={name}- className="flex-1 bg-sixth border border-customColor6 rounded-[4px] p-[24px] gap-[16px] flex flex-col [@media(max-width:1024px)]:items-center"+ name={name}+ price={+ yearly ? pricing[name].year_price : pricing[name].month_price+ }+ yearly={yearly}+ current={currentPackage === name}+ action={{+ ...action,+ onClick: () => {+ setClicked(name);+ action.onClick?.();+ },+ }}+ loading={loading && clicked === name}+ disabled={!!action.disabled || loading}+ note={+ !!subscription &&+ currentPackage !== name &&+ name !== 'FREE' && (+ <Prorate+ period={yearly ? 'YEARLY' : 'MONTHLY'}+ pack={name as 'STANDARD' | 'PRO'}+ />+ )+ }+ />+ );+ })}+ </div>+ {!!subscription?.id && (+ <div className="flex items-center gap-[16px] rounded-[12px] border border-newTableBorder bg-newBgColorInner shadow-previewShadow px-[24px] py-[20px] mobile:flex-col mobile:items-stretch mobile:p-[16px]">+ <div className="w-[48px] h-[48px] rounded-full bg-[#612bd3]/10 text-[#612bd3] flex items-center justify-center shrink-0 mobile:hidden">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round">- <div className="text-[18px]">{name}</div>- <div className="text-[38px] flex gap-[2px] items-center">- <div>- $- {monthlyOrYearly === 'on'- ? values.year_price- : values.month_price}- </div>- <div className={`text-[14px] text-customColor18`}>- {monthlyOrYearly === 'on' ? '/year' : '/month'}- </div>- </div>- <div className="text-[14px] flex gap-[10px]">- {currentPackage === name.toUpperCase() &&- subscription?.cancelAt ? (- <div className="gap-[3px] flex flex-col">- <div>- <Button- onClick={moveToCheckout('FREE', true)}- loading={loading}- >- {t(- 'reactivate_subscription',- 'Reactivate subscription'- )}- </Button>- </div>- </div>+ <rect x="2" y="5" width="20" height="14" rx="2" />+ <path d="M2 10h20M6 15h4" />+ </svg>+ </div>+ <div className="flex-1 flex flex-col gap-[4px]">+ <div className="text-[16px] font-[600]">+ {t('billing_payment_method', 'Payment method')}+ </div>+ <div className="text-[14px] text-textItemBlur">+ {t(+ 'billing_payment_method_description',+ 'Update your card, billing address and tax details in the secure billing portal'+ )}+ </div>+ </div>+ <div className="flex items-center gap-[8px] mobile:flex-col-reverse mobile:items-stretch">+ {isGeneral && !subscription?.cancelAt && (+ <button+ type="button"+ disabled={loading}+ onClick={() => {+ setClicked('CANCEL');+ moveToCheckout('FREE')();+ }}+ className="h-[44px] px-[16px] rounded-[8px] border border-red-500/40 text-red-500 text-[14px] font-[500] flex items-center justify-center hover:bg-red-500/10 transition-colors disabled:opacity-50"+ >+ {loading && clicked === 'CANCEL' ? (+ <ReactLoading+ type="spin"+ color="currentColor"+ width={18}+ height={18}+ />) : (- <Button- loading={loading}- disabled={- (!!subscription?.cancelAt &&- name.toUpperCase() === 'FREE') ||- currentPackage === name.toUpperCase()- }- className={clsx(- subscription &&- name.toUpperCase() === 'FREE' &&- '!bg-red-500'- )}- onClick={moveToCheckout(- name.toUpperCase() as 'STANDARD' | 'PRO'- )}- >- {currentPackage === name.toUpperCase()- ? 'Current Plan'- : name.toUpperCase() === 'FREE'- ? subscription?.cancelAt- ? `Downgrade on ${dayjs- .utc(subscription?.cancelAt)- .local()- .format('D MMM, YYYY')}`- : 'Cancel subscription'- : // @ts-ignore- (user?.tier === 'FREE' ||- user?.tier?.current === 'FREE') &&- user.allowTrial- ? t('start_7_days_free_trial', 'Start 7 days free trial')- : 'Purchase'}- </Button>+ t('cancel_subscription_1', 'Cancel subscription'))}- {subscription &&- currentPackage !== name.toUpperCase() &&- name !== 'FREE' &&- !!name && (- <Prorate- period={monthlyOrYearly === 'on' ? 'YEARLY' : 'MONTHLY'}- pack={name.toUpperCase() as 'STANDARD' | 'PRO'}- />- )}- </div>- <Features- pack={name.toUpperCase() as 'FREE' | 'STANDARD' | 'PRO'}- />- </div>- ))}- </div>- {!!subscription?.id && (- <div className="flex justify-center mt-[20px] gap-[10px] mobile:flex-col">- <Button- onClick={updatePayment}- className="mobile:h-auto mobile:min-h-[40px] mobile:py-[8px] mobile:text-center"- >- {t(- 'update_payment_method_invoices_history',- 'Update Payment Method / Invoices History'+ </button>)}- </Button>- {isGeneral && !subscription?.cancelAt && (- <Button- className="bg-red-500"- loading={loading}- onClick={moveToCheckout('FREE')}+ <button+ type="button"+ onClick={updatePayment}+ className="h-[44px] px-[16px] rounded-[8px] bg-btnSimple text-btnText text-[14px] font-[500] hover:opacity-80 transition-opacity">- {t('cancel_subscription_1', 'Cancel subscription')}- </Button>- )}- </div>- )}- {subscription?.cancelAt && isGeneral && (- <div className="text-center">- {t(- 'your_subscription_will_be_canceled_at',- 'Your subscription will be canceled at'- )}{' '}- {newDayjs(subscription.cancelAt).local().format('D MMM, YYYY')}- <br />- {t(- 'you_will_never_be_charged_again',- 'You will never be charged again'- )}+ {t('billing_update_payment_method', 'Update payment method')}+ </button>+ </div></div>)}+ {!!subscription?.id && <BillingHistory />}<FAQComponent /><div className="flex justify-center mt-[20px]"><LogoutComponent />diff --git a/i18n.lock b/i18n.lockindex 760fb34a8..822ed4677 100644--- a/i18n.lock+++ b/i18n.lock@@ -572,6 +572,37 @@ checksums:billing_apply: 0f03e8e3752eb120bf8ea0b8f8f5d244billing_subscription: ba9f3675e18987d067d48533c8897343billing_cancel_notice: bc2edd49b3c0a51f8e11bb93f56c5571+ billing_and_subscription: 54d901b131228b512d31922bfed6f49e+ billing_and_subscription_description: 4458136515c80304af208b3eedc057e9+ billing_current_plan: 7497746eb3b4897ff953b1aa8c7c9f63+ billing_upgrade: 63c3b52882e0d779859307d672c178c2+ billing_downgrade: 91f6c79623592b9dc186159b3b665b65+ billing_switch_to_yearly: 4c70dcc918ed45af62c8374117aa1a16+ billing_switch_to_monthly: dc4ca8b36aa6d3b6fef9a65c9ade75cf+ billing_purchase: 8047e4f1fa2c312dde88dc0f7003eb4b+ billing_downgrade_on: 23e133b7c3a3098b7a27d3b304708e32+ billing_payment_method: 84bb851608b200dc843c7801218ca039+ billing_payment_method_description: 73fecbfa75b88d901a316dc3b1160c72+ billing_update_payment_method: bd941bb1afc2e2f707529042d9cc45de+ billing_history: 2c2802bfaca8774325efb30773ab89a1+ billing_search: fe877a75eac472fc5b188c135c78a558+ billing_all_statuses: 041202586d00c28bcfb30bfd38105e58+ billing_export: 709afbc86c5fdca279a111ea8e49d1c9+ billing_plan: c6a08c771f97d86b02cf10d8f5f2d788+ billing_amount: a0ae9c6ff98b57475cdce56f66066aa4+ billing_purchase_date: 3f197b4ba86da213210683efc5df2326+ billing_end_date: 2d1d5e06cf23156dfc49718d9455dd48+ billing_status: 4e1fcce15854d824919b4a582c697c90+ billing_action: c92af0bdf1698b0d10cf5b28d2ad4945+ billing_invoice: eeda4ece45623519011ea5c83091f431+ billing_status_paid: 5e2fa7af50cd5d877d9c54fd87bb3bb5+ billing_status_open: 030a6f3395d5d4efddd3cc67d6009039+ billing_status_failed: 99f87615af1fffa2b8802866b096705a+ billing_status_void: 244428fc68aa883114c61ab85ff8fdd8+ billing_download_invoice: 8c50fd826a446b01ef4fcdb16abef365+ billing_view_invoice: 6362bd0415ff4803ab99c2b454e07940+ billing_no_matching_invoices: d40a4a30fb9ebe36ba7203b961d00de0+ billing_invoices_failed: d1d1391d1091114af3fb946833fc46f2select_channels: 3aab82dc90ccafe55059c32c5a33c222start_a_new_chat: 65b9067206fa4e4929d48ce242d879a6your_assistant: bd6422d1c2a2ba461e1da169b082bf7bdiff --git a/libraries/nestjs-libraries/src/services/payment/payment.provider.interface.ts b/libraries/nestjs-libraries/src/services/payment/payment.provider.interface.tsindex be4be9e78..de150efb7 100644--- a/libraries/nestjs-libraries/src/services/payment/payment.provider.interface.ts+++ b/libraries/nestjs-libraries/src/services/payment/payment.provider.interface.ts@@ -5,6 +5,25 @@ import { AdminApplyCouponDto } from '@gitroom/nestjs-libraries/dtos/billing/admiexport type PaymentPlatform = 'web' | 'mobile';+// One row of the billing history, in a provider neutral shape+export interface PaymentInvoice {+ id: string;+ number: string | null;+ // pricing key and MONTHLY / YEARLY the invoice was for, when the provider knows it+ tier: string | null;+ period: string | null;+ description: string | null;+ // minor units (cents)+ amount: number;+ currency: string;+ // unix seconds+ created: number;+ periodEnd: number;+ status: 'paid' | 'pending' | 'failed' | 'void';+ downloadUrl: string | null;+ viewUrl: string | null;+}+// Every billing use-case goes through this contract. Webhooks and `platform`// are mandatory; everything else has a default that says "not supported on// this platform" so a provider only implements what its platform offers@@ -84,6 +103,11 @@ export abstract class PaymentProviderAbstract {return this.notSupported();}+ // Billing history (invoices) of the organization+ async getInvoices(organizationId: string): Promise<PaymentInvoice[]> {+ return this.notSupported();+ }+// Post-checkout poll: is this subscription id active for the orgasync checkSubscription(organizationId: string,diff --git a/libraries/nestjs-libraries/src/services/stripe.service.ts b/libraries/nestjs-libraries/src/services/stripe.service.tsindex b46e6529c..71bf25ed2 100644--- a/libraries/nestjs-libraries/src/services/stripe.service.ts+++ b/libraries/nestjs-libraries/src/services/stripe.service.ts@@ -12,6 +12,7 @@ import { TrackService } from '@gitroom/nestjs-libraries/track/track.service';import { UsersService } from '@gitroom/nestjs-libraries/database/prisma/users/users.service';import { TrackEnum } from '@gitroom/nestjs-libraries/user/track.enum';import {+ PaymentInvoice,PaymentPlatform,PaymentProvider,PaymentProviderAbstract,@@ -741,6 +742,50 @@ export class StripeService extends PaymentProviderAbstract {return this.createBillingPortalLink(customer);}+ async getInvoices(organizationId: string): Promise<PaymentInvoice[]> {+ const customer = await this.getCustomerByOrganizationId(organizationId);+ if (!customer || !customer.startsWith('cus_')) {+ return [];+ }++ const invoices = await stripe.invoices.list({+ customer,+ limit: 100,+ });++ return invoices.data+ .filter((invoice) => invoice.status !== 'draft')+ .map((invoice) => {+ // snapshot of the subscription metadata ({ billing, period }) when the invoice was finalized+ const metadata = invoice.parent?.subscription_details?.metadata;+ return {+ id: invoice.id,+ number: invoice.number,+ tier: metadata?.billing || null,+ period: metadata?.period || null,+ description: invoice.lines.data[0]?.description || null,+ amount: invoice.total,+ currency: invoice.currency,+ created: invoice.created,+ periodEnd: Math.max(+ invoice.period_end,+ ...invoice.lines.data.map((line) => line.period.end)+ ),+ // an open invoice that was already attempted is a failed charge waiting for a retry+ status:+ invoice.status === 'paid'+ ? 'paid'+ : invoice.status === 'void'+ ? 'void'+ : invoice.status === 'uncollectible' || invoice.attempted+ ? 'failed'+ : 'pending',+ downloadUrl: invoice.invoice_pdf || null,+ viewUrl: invoice.hosted_invoice_url || null,+ };+ });+ }+async finishTrial(organization: Organization) {const list = (await stripe.subscriptions.list({diff --git a/libraries/react-shared-libraries/src/translation/locales/ar/translation.json b/libraries/react-shared-libraries/src/translation/locales/ar/translation.jsonindex 8093e3ad3..79f255fe9 100644--- a/libraries/react-shared-libraries/src/translation/locales/ar/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ar/translation.json@@ -568,6 +568,37 @@"billing_apply": "تطبيق","billing_subscription": "الاشتراك","billing_cancel_notice": "يمكنك الإلغاء في أي وقت من الإعدادات دون الحاجة للتحدث مع أي شخص ولن يتم خصم أي مبلغ منك.",+ "billing_and_subscription": "الفوترة والاشتراك",+ "billing_and_subscription_description": "تابع اشتراكك، وحدّث طريقة الدفع، ونزّل فواتيرك",+ "billing_current_plan": "الخطة الحالية",+ "billing_upgrade": "ترقية",+ "billing_downgrade": "تخفيض الخطة",+ "billing_switch_to_yearly": "التبديل إلى السنوي",+ "billing_switch_to_monthly": "التبديل إلى الشهري",+ "billing_purchase": "شراء",+ "billing_downgrade_on": "تخفيض الخطة في {{date}}",+ "billing_payment_method": "طريقة الدفع",+ "billing_payment_method_description": "حدّث بطاقتك وعنوان الفوترة وبيانات الضرائب في بوابة الفوترة الآمنة",+ "billing_update_payment_method": "تحديث طريقة الدفع",+ "billing_history": "سجل الفوترة",+ "billing_search": "بحث...",+ "billing_all_statuses": "كل الحالات",+ "billing_export": "تصدير",+ "billing_plan": "الخطة",+ "billing_amount": "المبلغ",+ "billing_purchase_date": "تاريخ الشراء",+ "billing_end_date": "تاريخ الانتهاء",+ "billing_status": "الحالة",+ "billing_action": "الإجراء",+ "billing_invoice": "الفاتورة",+ "billing_status_paid": "مدفوعة",+ "billing_status_open": "قيد الانتظار",+ "billing_status_failed": "فشلت",+ "billing_status_void": "ملغاة",+ "billing_download_invoice": "تنزيل الفاتورة",+ "billing_view_invoice": "عرض الفاتورة",+ "billing_no_matching_invoices": "لا توجد فواتير مطابقة لبحثك",+ "billing_invoices_failed": "تعذر تحميل فواتيرك","select_channels": "اختر القنوات","start_a_new_chat": "ابدأ محادثة جديدة","your_assistant": "مساعدك",diff --git a/libraries/react-shared-libraries/src/translation/locales/bn/translation.json b/libraries/react-shared-libraries/src/translation/locales/bn/translation.jsonindex 87bf052e3..2432a01c5 100644--- a/libraries/react-shared-libraries/src/translation/locales/bn/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/bn/translation.json@@ -568,6 +568,37 @@"billing_apply": "প্রয়োগ করুন","billing_subscription": "সাবস্ক্রিপশন","billing_cancel_notice": "সেটিংস থেকে যেকোনো সময় কাউকে না বলেই বাতিল করুন এবং কখনোই চার্জ হবে না।",+ "billing_and_subscription": "বিলিং ও সাবস্ক্রিপশন",+ "billing_and_subscription_description": "আপনার সাবস্ক্রিপশনের হিসাব রাখুন, পেমেন্ট পদ্ধতি আপডেট করুন এবং ইনভয়েস ডাউনলোড করুন",+ "billing_current_plan": "বর্তমান প্ল্যান",+ "billing_upgrade": "আপগ্রেড",+ "billing_downgrade": "ডাউনগ্রেড",+ "billing_switch_to_yearly": "বার্ষিকে পরিবর্তন করুন",+ "billing_switch_to_monthly": "মাসিকে পরিবর্তন করুন",+ "billing_purchase": "কিনুন",+ "billing_downgrade_on": "{{date}} তারিখে ডাউনগ্রেড",+ "billing_payment_method": "পেমেন্ট পদ্ধতি",+ "billing_payment_method_description": "নিরাপদ বিলিং পোর্টালে আপনার কার্ড, বিলিং ঠিকানা এবং ট্যাক্স তথ্য আপডেট করুন",+ "billing_update_payment_method": "পেমেন্ট পদ্ধতি আপডেট করুন",+ "billing_history": "বিলিং ইতিহাস",+ "billing_search": "অনুসন্ধান...",+ "billing_all_statuses": "সব স্ট্যাটাস",+ "billing_export": "এক্সপোর্ট",+ "billing_plan": "প্ল্যান",+ "billing_amount": "পরিমাণ",+ "billing_purchase_date": "ক্রয়ের তারিখ",+ "billing_end_date": "শেষের তারিখ",+ "billing_status": "স্ট্যাটাস",+ "billing_action": "অ্যাকশন",+ "billing_invoice": "ইনভয়েস",+ "billing_status_paid": "পরিশোধিত",+ "billing_status_open": "অপেক্ষমাণ",+ "billing_status_failed": "ব্যর্থ",+ "billing_status_void": "বাতিল",+ "billing_download_invoice": "ইনভয়েস ডাউনলোড করুন",+ "billing_view_invoice": "ইনভয়েস দেখুন",+ "billing_no_matching_invoices": "আপনার অনুসন্ধানের সাথে কোনো ইনভয়েস মেলেনি",+ "billing_invoices_failed": "আপনার ইনভয়েস লোড করা যায়নি","select_channels": "চ্যানেল নির্বাচন করুন","start_a_new_chat": "নতুন চ্যাট শুরু করুন","your_assistant": "আপনার সহকারী",diff --git a/libraries/react-shared-libraries/src/translation/locales/de/translation.json b/libraries/react-shared-libraries/src/translation/locales/de/translation.jsonindex 152749472..c77e2587a 100644--- a/libraries/react-shared-libraries/src/translation/locales/de/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/de/translation.json@@ -568,6 +568,37 @@"billing_apply": "Anwenden","billing_subscription": "Abonnement","billing_cancel_notice": "Sie können jederzeit in den Einstellungen kündigen, ohne mit einer Person sprechen zu müssen, und werden nie belastet.",+ "billing_and_subscription": "Abrechnung & Abonnement",+ "billing_and_subscription_description": "Behalten Sie Ihr Abonnement im Blick, aktualisieren Sie Ihre Zahlungsmethode und laden Sie Ihre Rechnungen herunter",+ "billing_current_plan": "Aktueller Plan",+ "billing_upgrade": "Upgraden",+ "billing_downgrade": "Downgraden",+ "billing_switch_to_yearly": "Zu jährlich wechseln",+ "billing_switch_to_monthly": "Zu monatlich wechseln",+ "billing_purchase": "Kaufen",+ "billing_downgrade_on": "Downgrade am {{date}}",+ "billing_payment_method": "Zahlungsmethode",+ "billing_payment_method_description": "Aktualisieren Sie Ihre Karte, Rechnungsadresse und Steuerdaten im sicheren Abrechnungsportal",+ "billing_update_payment_method": "Zahlungsmethode aktualisieren",+ "billing_history": "Rechnungsverlauf",+ "billing_search": "Suchen...",+ "billing_all_statuses": "Alle Status",+ "billing_export": "Exportieren",+ "billing_plan": "Plan",+ "billing_amount": "Betrag",+ "billing_purchase_date": "Kaufdatum",+ "billing_end_date": "Enddatum",+ "billing_status": "Status",+ "billing_action": "Aktion",+ "billing_invoice": "Rechnung",+ "billing_status_paid": "Bezahlt",+ "billing_status_open": "Ausstehend",+ "billing_status_failed": "Fehlgeschlagen",+ "billing_status_void": "Storniert",+ "billing_download_invoice": "Rechnung herunterladen",+ "billing_view_invoice": "Rechnung ansehen",+ "billing_no_matching_invoices": "Keine Rechnungen entsprechen Ihrer Suche",+ "billing_invoices_failed": "Ihre Rechnungen konnten nicht geladen werden","select_channels": "Kanäle auswählen","start_a_new_chat": "Neuen Chat starten","your_assistant": "Ihr Assistent",diff --git a/libraries/react-shared-libraries/src/translation/locales/en/translation.json b/libraries/react-shared-libraries/src/translation/locales/en/translation.jsonindex 0348deb5e..4964860d2 100644--- a/libraries/react-shared-libraries/src/translation/locales/en/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/en/translation.json@@ -568,6 +568,37 @@"billing_apply": "Apply","billing_subscription": "Subscription","billing_cancel_notice": "Cancel anytime from settings without talking to a person and never be charged.",+ "billing_and_subscription": "Billing & Subscription",+ "billing_and_subscription_description": "Keep track of your subscription, update your payment method and download your invoices",+ "billing_current_plan": "Current Plan",+ "billing_upgrade": "Upgrade",+ "billing_downgrade": "Downgrade",+ "billing_switch_to_yearly": "Switch to yearly",+ "billing_switch_to_monthly": "Switch to monthly",+ "billing_purchase": "Purchase",+ "billing_downgrade_on": "Downgrade on {{date}}",+ "billing_payment_method": "Payment method",+ "billing_payment_method_description": "Update your card, billing address and tax details in the secure billing portal",+ "billing_update_payment_method": "Update payment method",+ "billing_history": "Billing History",+ "billing_search": "Search...",+ "billing_all_statuses": "All statuses",+ "billing_export": "Export",+ "billing_plan": "Plan",+ "billing_amount": "Amount",+ "billing_purchase_date": "Purchase Date",+ "billing_end_date": "End Date",+ "billing_status": "Status",+ "billing_action": "Action",+ "billing_invoice": "Invoice",+ "billing_status_paid": "Paid",+ "billing_status_open": "Pending",+ "billing_status_failed": "Failed",+ "billing_status_void": "Void",+ "billing_download_invoice": "Download invoice",+ "billing_view_invoice": "View invoice",+ "billing_no_matching_invoices": "No invoices match your search",+ "billing_invoices_failed": "Could not load your invoices","select_channels": "Select Channels","start_a_new_chat": "Start a new chat","your_assistant": "Your Assistant",diff --git a/libraries/react-shared-libraries/src/translation/locales/es/translation.json b/libraries/react-shared-libraries/src/translation/locales/es/translation.jsonindex ae12852a3..f15d30b9e 100644--- a/libraries/react-shared-libraries/src/translation/locales/es/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/es/translation.json@@ -568,6 +568,37 @@"billing_apply": "Aplicar","billing_subscription": "Suscripción","billing_cancel_notice": "Cancela en cualquier momento desde la configuración sin hablar con una persona y nunca se te cobrará.",+ "billing_and_subscription": "Facturación y suscripción",+ "billing_and_subscription_description": "Sigue tu suscripción, actualiza tu método de pago y descarga tus facturas",+ "billing_current_plan": "Plan actual",+ "billing_upgrade": "Mejorar",+ "billing_downgrade": "Bajar de plan",+ "billing_switch_to_yearly": "Cambiar a anual",+ "billing_switch_to_monthly": "Cambiar a mensual",+ "billing_purchase": "Comprar",+ "billing_downgrade_on": "Bajada de plan el {{date}}",+ "billing_payment_method": "Método de pago",+ "billing_payment_method_description": "Actualiza tu tarjeta, dirección de facturación y datos fiscales en el portal de facturación seguro",+ "billing_update_payment_method": "Actualizar método de pago",+ "billing_history": "Historial de facturación",+ "billing_search": "Buscar...",+ "billing_all_statuses": "Todos los estados",+ "billing_export": "Exportar",+ "billing_plan": "Plan",+ "billing_amount": "Importe",+ "billing_purchase_date": "Fecha de compra",+ "billing_end_date": "Fecha de fin",+ "billing_status": "Estado",+ "billing_action": "Acción",+ "billing_invoice": "Factura",+ "billing_status_paid": "Pagada",+ "billing_status_open": "Pendiente",+ "billing_status_failed": "Fallida",+ "billing_status_void": "Anulada",+ "billing_download_invoice": "Descargar factura",+ "billing_view_invoice": "Ver factura",+ "billing_no_matching_invoices": "Ninguna factura coincide con tu búsqueda",+ "billing_invoices_failed": "No se pudieron cargar tus facturas","select_channels": "Seleccionar canales","start_a_new_chat": "Iniciar un nuevo chat","your_assistant": "Tu Asistente",diff --git a/libraries/react-shared-libraries/src/translation/locales/fr/translation.json b/libraries/react-shared-libraries/src/translation/locales/fr/translation.jsonindex 993c81a43..23688db2e 100644--- a/libraries/react-shared-libraries/src/translation/locales/fr/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/fr/translation.json@@ -568,6 +568,37 @@"billing_apply": "Appliquer","billing_subscription": "Abonnement","billing_cancel_notice": "Annulez à tout moment depuis les paramètres sans avoir à parler à quelqu'un et ne soyez jamais facturé.",+ "billing_and_subscription": "Facturation et abonnement",+ "billing_and_subscription_description": "Suivez votre abonnement, mettez à jour votre moyen de paiement et téléchargez vos factures",+ "billing_current_plan": "Forfait actuel",+ "billing_upgrade": "Mettre à niveau",+ "billing_downgrade": "Rétrograder",+ "billing_switch_to_yearly": "Passer à l'annuel",+ "billing_switch_to_monthly": "Passer au mensuel",+ "billing_purchase": "Acheter",+ "billing_downgrade_on": "Rétrogradation le {{date}}",+ "billing_payment_method": "Moyen de paiement",+ "billing_payment_method_description": "Mettez à jour votre carte, votre adresse de facturation et vos informations fiscales dans le portail de facturation sécurisé",+ "billing_update_payment_method": "Mettre à jour le moyen de paiement",+ "billing_history": "Historique de facturation",+ "billing_search": "Rechercher...",+ "billing_all_statuses": "Tous les statuts",+ "billing_export": "Exporter",+ "billing_plan": "Forfait",+ "billing_amount": "Montant",+ "billing_purchase_date": "Date d'achat",+ "billing_end_date": "Date de fin",+ "billing_status": "Statut",+ "billing_action": "Action",+ "billing_invoice": "Facture",+ "billing_status_paid": "Payée",+ "billing_status_open": "En attente",+ "billing_status_failed": "Échouée",+ "billing_status_void": "Annulée",+ "billing_download_invoice": "Télécharger la facture",+ "billing_view_invoice": "Voir la facture",+ "billing_no_matching_invoices": "Aucune facture ne correspond à votre recherche",+ "billing_invoices_failed": "Impossible de charger vos factures","select_channels": "Sélectionner les canaux","start_a_new_chat": "Démarrer une nouvelle conversation","your_assistant": "Votre assistant",diff --git a/libraries/react-shared-libraries/src/translation/locales/he/translation.json b/libraries/react-shared-libraries/src/translation/locales/he/translation.jsonindex 9582b54a6..eb890f33e 100644--- a/libraries/react-shared-libraries/src/translation/locales/he/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/he/translation.json@@ -568,6 +568,37 @@"billing_apply": "החל","billing_subscription": "מנוי","billing_cancel_notice": "ניתן לבטל בכל עת מההגדרות מבלי לדבר עם נציג ולעולם לא תחויב.",+ "billing_and_subscription": "חיוב ומנוי",+ "billing_and_subscription_description": "עקוב אחר המנוי שלך, עדכן את אמצעי התשלום והורד את החשבוניות שלך",+ "billing_current_plan": "התוכנית הנוכחית",+ "billing_upgrade": "שדרוג",+ "billing_downgrade": "שנמוך",+ "billing_switch_to_yearly": "מעבר לחיוב שנתי",+ "billing_switch_to_monthly": "מעבר לחיוב חודשי",+ "billing_purchase": "רכישה",+ "billing_downgrade_on": "שנמוך ב-{{date}}",+ "billing_payment_method": "אמצעי תשלום",+ "billing_payment_method_description": "עדכן את הכרטיס, כתובת החיוב ופרטי המס בפורטל החיוב המאובטח",+ "billing_update_payment_method": "עדכון אמצעי תשלום",+ "billing_history": "היסטוריית חיובים",+ "billing_search": "חיפוש...",+ "billing_all_statuses": "כל הסטטוסים",+ "billing_export": "ייצוא",+ "billing_plan": "תוכנית",+ "billing_amount": "סכום",+ "billing_purchase_date": "תאריך רכישה",+ "billing_end_date": "תאריך סיום",+ "billing_status": "סטטוס",+ "billing_action": "פעולה",+ "billing_invoice": "חשבונית",+ "billing_status_paid": "שולם",+ "billing_status_open": "ממתין",+ "billing_status_failed": "נכשל",+ "billing_status_void": "בוטל",+ "billing_download_invoice": "הורדת חשבונית",+ "billing_view_invoice": "צפייה בחשבונית",+ "billing_no_matching_invoices": "אין חשבוניות שתואמות לחיפוש",+ "billing_invoices_failed": "לא ניתן היה לטעון את החשבוניות שלך","select_channels": "בחר ערוצים","start_a_new_chat": "התחל שיחה חדשה","your_assistant": "העוזר שלך",diff --git a/libraries/react-shared-libraries/src/translation/locales/it/translation.json b/libraries/react-shared-libraries/src/translation/locales/it/translation.jsonindex b08a83cec..b6a4e9b43 100644--- a/libraries/react-shared-libraries/src/translation/locales/it/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/it/translation.json@@ -568,6 +568,37 @@"billing_apply": "Applica","billing_subscription": "Abbonamento","billing_cancel_notice": "Annulla in qualsiasi momento dalle impostazioni senza parlare con nessuno e non ti verrà mai addebitato nulla.",+ "billing_and_subscription": "Fatturazione e abbonamento",+ "billing_and_subscription_description": "Tieni traccia del tuo abbonamento, aggiorna il metodo di pagamento e scarica le tue fatture",+ "billing_current_plan": "Piano attuale",+ "billing_upgrade": "Effettua l'upgrade",+ "billing_downgrade": "Effettua il downgrade",+ "billing_switch_to_yearly": "Passa all'annuale",+ "billing_switch_to_monthly": "Passa al mensile",+ "billing_purchase": "Acquista",+ "billing_downgrade_on": "Downgrade il {{date}}",+ "billing_payment_method": "Metodo di pagamento",+ "billing_payment_method_description": "Aggiorna la carta, l'indirizzo di fatturazione e i dati fiscali nel portale di fatturazione sicuro",+ "billing_update_payment_method": "Aggiorna metodo di pagamento",+ "billing_history": "Cronologia fatturazione",+ "billing_search": "Cerca...",+ "billing_all_statuses": "Tutti gli stati",+ "billing_export": "Esporta",+ "billing_plan": "Piano",+ "billing_amount": "Importo",+ "billing_purchase_date": "Data di acquisto",+ "billing_end_date": "Data di fine",+ "billing_status": "Stato",+ "billing_action": "Azione",+ "billing_invoice": "Fattura",+ "billing_status_paid": "Pagata",+ "billing_status_open": "In sospeso",+ "billing_status_failed": "Non riuscita",+ "billing_status_void": "Annullata",+ "billing_download_invoice": "Scarica fattura",+ "billing_view_invoice": "Visualizza fattura",+ "billing_no_matching_invoices": "Nessuna fattura corrisponde alla ricerca",+ "billing_invoices_failed": "Impossibile caricare le tue fatture","select_channels": "Seleziona canali","start_a_new_chat": "Inizia una nuova chat","your_assistant": "Il tuo assistente",diff --git a/libraries/react-shared-libraries/src/translation/locales/ja/translation.json b/libraries/react-shared-libraries/src/translation/locales/ja/translation.jsonindex 414212a0d..5e4a0cf08 100644--- a/libraries/react-shared-libraries/src/translation/locales/ja/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ja/translation.json@@ -568,6 +568,37 @@"billing_apply": "適用","billing_subscription": "サブスクリプション","billing_cancel_notice": "設定からいつでも人と話すことなくキャンセルでき、料金は一切発生しません。",+ "billing_and_subscription": "請求とサブスクリプション",+ "billing_and_subscription_description": "サブスクリプションの確認、支払い方法の更新、請求書のダウンロードができます",+ "billing_current_plan": "現在のプラン",+ "billing_upgrade": "アップグレード",+ "billing_downgrade": "ダウングレード",+ "billing_switch_to_yearly": "年額に切り替え",+ "billing_switch_to_monthly": "月額に切り替え",+ "billing_purchase": "購入",+ "billing_downgrade_on": "{{date}}にダウングレード",+ "billing_payment_method": "支払い方法",+ "billing_payment_method_description": "安全な請求ポータルでカード、請求先住所、税情報を更新できます",+ "billing_update_payment_method": "支払い方法を更新",+ "billing_history": "請求履歴",+ "billing_search": "検索...",+ "billing_all_statuses": "すべてのステータス",+ "billing_export": "エクスポート",+ "billing_plan": "プラン",+ "billing_amount": "金額",+ "billing_purchase_date": "購入日",+ "billing_end_date": "終了日",+ "billing_status": "ステータス",+ "billing_action": "操作",+ "billing_invoice": "請求書",+ "billing_status_paid": "支払い済み",+ "billing_status_open": "保留中",+ "billing_status_failed": "失敗",+ "billing_status_void": "無効",+ "billing_download_invoice": "請求書をダウンロード",+ "billing_view_invoice": "請求書を表示",+ "billing_no_matching_invoices": "検索に一致する請求書はありません",+ "billing_invoices_failed": "請求書を読み込めませんでした","select_channels": "チャンネルを選択","start_a_new_chat": "新しいチャットを開始","your_assistant": "あなたのアシスタント",diff --git a/libraries/react-shared-libraries/src/translation/locales/ko/translation.json b/libraries/react-shared-libraries/src/translation/locales/ko/translation.jsonindex 4a34e7895..78e844f9e 100644--- a/libraries/react-shared-libraries/src/translation/locales/ko/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ko/translation.json@@ -568,6 +568,37 @@"billing_apply": "적용","billing_subscription": "구독","billing_cancel_notice": "설정에서 언제든지 사람과 대화하지 않고 구독을 취소할 수 있으며, 결제가 청구되지 않습니다.",+ "billing_and_subscription": "결제 및 구독",+ "billing_and_subscription_description": "구독을 확인하고, 결제 수단을 업데이트하고, 인보이스를 다운로드하세요",+ "billing_current_plan": "현재 요금제",+ "billing_upgrade": "업그레이드",+ "billing_downgrade": "다운그레이드",+ "billing_switch_to_yearly": "연간 결제로 전환",+ "billing_switch_to_monthly": "월간 결제로 전환",+ "billing_purchase": "구매",+ "billing_downgrade_on": "{{date}}에 다운그레이드",+ "billing_payment_method": "결제 수단",+ "billing_payment_method_description": "안전한 결제 포털에서 카드, 청구지 주소 및 세금 정보를 업데이트하세요",+ "billing_update_payment_method": "결제 수단 업데이트",+ "billing_history": "결제 내역",+ "billing_search": "검색...",+ "billing_all_statuses": "모든 상태",+ "billing_export": "내보내기",+ "billing_plan": "요금제",+ "billing_amount": "금액",+ "billing_purchase_date": "구매일",+ "billing_end_date": "종료일",+ "billing_status": "상태",+ "billing_action": "작업",+ "billing_invoice": "인보이스",+ "billing_status_paid": "결제 완료",+ "billing_status_open": "대기 중",+ "billing_status_failed": "실패",+ "billing_status_void": "무효",+ "billing_download_invoice": "인보이스 다운로드",+ "billing_view_invoice": "인보이스 보기",+ "billing_no_matching_invoices": "검색과 일치하는 인보이스가 없습니다",+ "billing_invoices_failed": "인보이스를 불러올 수 없습니다","select_channels": "채널 선택","start_a_new_chat": "새 채팅 시작","your_assistant": "당신의 어시스턴트",diff --git a/libraries/react-shared-libraries/src/translation/locales/pt/translation.json b/libraries/react-shared-libraries/src/translation/locales/pt/translation.jsonindex 24e327e64..5e6b3e2c3 100644--- a/libraries/react-shared-libraries/src/translation/locales/pt/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/pt/translation.json@@ -568,6 +568,37 @@"billing_apply": "Aplicar","billing_subscription": "Assinatura","billing_cancel_notice": "Cancele a qualquer momento nas configurações sem falar com ninguém e nunca será cobrado.",+ "billing_and_subscription": "Faturamento e assinatura",+ "billing_and_subscription_description": "Acompanhe sua assinatura, atualize seu método de pagamento e baixe suas faturas",+ "billing_current_plan": "Plano atual",+ "billing_upgrade": "Fazer upgrade",+ "billing_downgrade": "Fazer downgrade",+ "billing_switch_to_yearly": "Mudar para anual",+ "billing_switch_to_monthly": "Mudar para mensal",+ "billing_purchase": "Comprar",+ "billing_downgrade_on": "Downgrade em {{date}}",+ "billing_payment_method": "Método de pagamento",+ "billing_payment_method_description": "Atualize seu cartão, endereço de cobrança e dados fiscais no portal de faturamento seguro",+ "billing_update_payment_method": "Atualizar método de pagamento",+ "billing_history": "Histórico de faturamento",+ "billing_search": "Pesquisar...",+ "billing_all_statuses": "Todos os status",+ "billing_export": "Exportar",+ "billing_plan": "Plano",+ "billing_amount": "Valor",+ "billing_purchase_date": "Data da compra",+ "billing_end_date": "Data de término",+ "billing_status": "Status",+ "billing_action": "Ação",+ "billing_invoice": "Fatura",+ "billing_status_paid": "Paga",+ "billing_status_open": "Pendente",+ "billing_status_failed": "Falhou",+ "billing_status_void": "Anulada",+ "billing_download_invoice": "Baixar fatura",+ "billing_view_invoice": "Ver fatura",+ "billing_no_matching_invoices": "Nenhuma fatura corresponde à sua pesquisa",+ "billing_invoices_failed": "Não foi possível carregar suas faturas","select_channels": "Selecionar canais","start_a_new_chat": "Iniciar um novo chat","your_assistant": "Seu Assistente",diff --git a/libraries/react-shared-libraries/src/translation/locales/ru/translation.json b/libraries/react-shared-libraries/src/translation/locales/ru/translation.jsonindex c150b404c..0f268c733 100644--- a/libraries/react-shared-libraries/src/translation/locales/ru/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/ru/translation.json@@ -568,6 +568,37 @@"billing_apply": "Применить","billing_subscription": "Подписка","billing_cancel_notice": "Вы можете отменить подписку в любое время через настройки без необходимости разговаривать с оператором и больше не будете платить.",+ "billing_and_subscription": "Оплата и подписка",+ "billing_and_subscription_description": "Следите за подпиской, обновляйте способ оплаты и скачивайте счета",+ "billing_current_plan": "Текущий тариф",+ "billing_upgrade": "Повысить тариф",+ "billing_downgrade": "Понизить тариф",+ "billing_switch_to_yearly": "Перейти на годовой",+ "billing_switch_to_monthly": "Перейти на ежемесячный",+ "billing_purchase": "Купить",+ "billing_downgrade_on": "Понижение тарифа {{date}}",+ "billing_payment_method": "Способ оплаты",+ "billing_payment_method_description": "Обновите карту, платёжный адрес и налоговые данные на защищённом платёжном портале",+ "billing_update_payment_method": "Обновить способ оплаты",+ "billing_history": "История платежей",+ "billing_search": "Поиск...",+ "billing_all_statuses": "Все статусы",+ "billing_export": "Экспорт",+ "billing_plan": "Тариф",+ "billing_amount": "Сумма",+ "billing_purchase_date": "Дата покупки",+ "billing_end_date": "Дата окончания",+ "billing_status": "Статус",+ "billing_action": "Действие",+ "billing_invoice": "Счёт",+ "billing_status_paid": "Оплачен",+ "billing_status_open": "В ожидании",+ "billing_status_failed": "Ошибка",+ "billing_status_void": "Аннулирован",+ "billing_download_invoice": "Скачать счёт",+ "billing_view_invoice": "Просмотреть счёт",+ "billing_no_matching_invoices": "Нет счетов, соответствующих поиску",+ "billing_invoices_failed": "Не удалось загрузить счета","select_channels": "Выберите каналы","start_a_new_chat": "Начать новый чат","your_assistant": "Ваш помощник",diff --git a/libraries/react-shared-libraries/src/translation/locales/tr/translation.json b/libraries/react-shared-libraries/src/translation/locales/tr/translation.jsonindex a99213513..a6014b81d 100644--- a/libraries/react-shared-libraries/src/translation/locales/tr/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/tr/translation.json@@ -568,6 +568,37 @@"billing_apply": "Uygula","billing_subscription": "Abonelik","billing_cancel_notice": "Ayarlar kısmından herhangi bir kişiyle konuşmadan istediğiniz zaman iptal edebilir ve asla ücretlendirilmezsiniz.",+ "billing_and_subscription": "Faturalandırma ve Abonelik",+ "billing_and_subscription_description": "Aboneliğinizi takip edin, ödeme yönteminizi güncelleyin ve faturalarınızı indirin",+ "billing_current_plan": "Mevcut Plan",+ "billing_upgrade": "Yükselt",+ "billing_downgrade": "Düşür",+ "billing_switch_to_yearly": "Yıllığa geç",+ "billing_switch_to_monthly": "Aylığa geç",+ "billing_purchase": "Satın al",+ "billing_downgrade_on": "{{date}} tarihinde düşürülecek",+ "billing_payment_method": "Ödeme yöntemi",+ "billing_payment_method_description": "Kartınızı, fatura adresinizi ve vergi bilgilerinizi güvenli faturalandırma portalında güncelleyin",+ "billing_update_payment_method": "Ödeme yöntemini güncelle",+ "billing_history": "Fatura Geçmişi",+ "billing_search": "Ara...",+ "billing_all_statuses": "Tüm durumlar",+ "billing_export": "Dışa aktar",+ "billing_plan": "Plan",+ "billing_amount": "Tutar",+ "billing_purchase_date": "Satın Alma Tarihi",+ "billing_end_date": "Bitiş Tarihi",+ "billing_status": "Durum",+ "billing_action": "İşlem",+ "billing_invoice": "Fatura",+ "billing_status_paid": "Ödendi",+ "billing_status_open": "Beklemede",+ "billing_status_failed": "Başarısız",+ "billing_status_void": "Geçersiz",+ "billing_download_invoice": "Faturayı indir",+ "billing_view_invoice": "Faturayı görüntüle",+ "billing_no_matching_invoices": "Aramanızla eşleşen fatura yok",+ "billing_invoices_failed": "Faturalarınız yüklenemedi","select_channels": "Kanalları Seç","start_a_new_chat": "Yeni bir sohbet başlat","your_assistant": "Asistanınız",diff --git a/libraries/react-shared-libraries/src/translation/locales/vi/translation.json b/libraries/react-shared-libraries/src/translation/locales/vi/translation.jsonindex 972cb2a82..bff88b9e4 100644--- a/libraries/react-shared-libraries/src/translation/locales/vi/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/vi/translation.json@@ -568,6 +568,37 @@"billing_apply": "Áp dụng","billing_subscription": "Đăng ký","billing_cancel_notice": "Bạn có thể hủy bất cứ lúc nào trong phần cài đặt mà không cần nói chuyện với ai và sẽ không bị tính phí.",+ "billing_and_subscription": "Thanh toán & Gói đăng ký",+ "billing_and_subscription_description": "Theo dõi gói đăng ký, cập nhật phương thức thanh toán và tải xuống hóa đơn của bạn",+ "billing_current_plan": "Gói hiện tại",+ "billing_upgrade": "Nâng cấp",+ "billing_downgrade": "Hạ cấp",+ "billing_switch_to_yearly": "Chuyển sang gói năm",+ "billing_switch_to_monthly": "Chuyển sang gói tháng",+ "billing_purchase": "Mua",+ "billing_downgrade_on": "Hạ cấp vào {{date}}",+ "billing_payment_method": "Phương thức thanh toán",+ "billing_payment_method_description": "Cập nhật thẻ, địa chỉ thanh toán và thông tin thuế trong cổng thanh toán bảo mật",+ "billing_update_payment_method": "Cập nhật phương thức thanh toán",+ "billing_history": "Lịch sử thanh toán",+ "billing_search": "Tìm kiếm...",+ "billing_all_statuses": "Tất cả trạng thái",+ "billing_export": "Xuất",+ "billing_plan": "Gói",+ "billing_amount": "Số tiền",+ "billing_purchase_date": "Ngày mua",+ "billing_end_date": "Ngày kết thúc",+ "billing_status": "Trạng thái",+ "billing_action": "Hành động",+ "billing_invoice": "Hóa đơn",+ "billing_status_paid": "Đã thanh toán",+ "billing_status_open": "Đang chờ",+ "billing_status_failed": "Thất bại",+ "billing_status_void": "Đã hủy",+ "billing_download_invoice": "Tải xuống hóa đơn",+ "billing_view_invoice": "Xem hóa đơn",+ "billing_no_matching_invoices": "Không có hóa đơn nào khớp với tìm kiếm",+ "billing_invoices_failed": "Không thể tải hóa đơn của bạn","select_channels": "Chọn kênh","start_a_new_chat": "Bắt đầu cuộc trò chuyện mới","your_assistant": "Trợ lý của bạn",diff --git a/libraries/react-shared-libraries/src/translation/locales/zh/translation.json b/libraries/react-shared-libraries/src/translation/locales/zh/translation.jsonindex 5740d0c7b..241eea777 100644--- a/libraries/react-shared-libraries/src/translation/locales/zh/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/zh/translation.json@@ -568,6 +568,37 @@"billing_apply": "应用","billing_subscription": "订阅","billing_cancel_notice": "您可以随时在设置中取消订阅,无需与任何人交流,且不会被收费。",+ "billing_and_subscription": "账单与订阅",+ "billing_and_subscription_description": "跟踪您的订阅、更新付款方式并下载发票",+ "billing_current_plan": "当前方案",+ "billing_upgrade": "升级",+ "billing_downgrade": "降级",+ "billing_switch_to_yearly": "切换为年付",+ "billing_switch_to_monthly": "切换为月付",+ "billing_purchase": "购买",+ "billing_downgrade_on": "将于 {{date}} 降级",+ "billing_payment_method": "付款方式",+ "billing_payment_method_description": "在安全的账单门户中更新您的银行卡、账单地址和税务信息",+ "billing_update_payment_method": "更新付款方式",+ "billing_history": "账单历史",+ "billing_search": "搜索...",+ "billing_all_statuses": "所有状态",+ "billing_export": "导出",+ "billing_plan": "方案",+ "billing_amount": "金额",+ "billing_purchase_date": "购买日期",+ "billing_end_date": "结束日期",+ "billing_status": "状态",+ "billing_action": "操作",+ "billing_invoice": "发票",+ "billing_status_paid": "已支付",+ "billing_status_open": "待处理",+ "billing_status_failed": "失败",+ "billing_status_void": "已作废",+ "billing_download_invoice": "下载发票",+ "billing_view_invoice": "查看发票",+ "billing_no_matching_invoices": "没有与搜索匹配的发票",+ "billing_invoices_failed": "无法加载您的发票","select_channels": "选择频道","start_a_new_chat": "开始新聊天","your_assistant": "你的助手",