feat: add subscription managment (#1858)

* feat: subscription managment

* fix: remove console log

* fix: webhooks

* fix linter

* fix: fix via gofumpt

* fix: review changes

* fix: Copyright 2023

* Update account.go

---------

Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
Ilya Sulimanov
2023-05-20 10:56:21 +03:00
committed by GitHub
parent 319031da28
commit 88c0856d17
39 changed files with 4773 additions and 13 deletions

View File

@ -253,6 +253,8 @@
"Phone": "Telefon",
"Phone - Tooltip": "Telefonnummer",
"Phone or email": "Phone or email",
"Plans": "Pläne",
"Pricings": "Preise",
"Preview": "Vorschau",
"Preview - Tooltip": "Vorschau der konfigurierten Effekte",
"Products": "Produkte",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Es tut uns leid, aber Sie haben keine Berechtigung, auf diese Seite zuzugreifen, oder Sie sind nicht angemeldet.",
"State": "Bundesland / Staat",
"State - Tooltip": "Bundesland",
"Subscriptions": "Abonnements",
"Successfully added": "Erfolgreich hinzugefügt",
"Successfully deleted": "Erfolgreich gelöscht",
"Successfully saved": "Erfolgreich gespeichert",
@ -884,5 +887,36 @@
"Method - Tooltip": "HTTP Methode",
"New Webhook": "Neue Webhook",
"Value": "Wert"
},
"plan": {
"Sub roles - Tooltip": "Rolle im aktuellen Plan enthalten",
"PricePerMonth": "Preis pro Monat",
"PricePerYear": "Preis pro Jahr",
"PerMonth": "pro Monat"
},
"pricing": {
"Sub plans": "Zusatzpläne",
"Sub plans - Tooltip": "Pläne im aktuellen Preismodell enthalten",
"Has trial": "Testphase verfügbar",
"Has trial - Tooltip": "Verfügbarkeit der Testphase nach Auswahl eines Plans",
"Trial duration": "Testphase Dauer",
"Trial duration - Tooltip": "Dauer der Testphase",
"Getting started": "Loslegen",
"Copy pricing page URL": "Preisseite URL kopieren",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "Preisseite URL erfolgreich in die Zwischenablage kopiert. Bitte fügen Sie sie in ein Inkognito-Fenster oder einen anderen Browser ein.",
"days trial available!": "Tage Testphase verfügbar!",
"Free": "Kostenlos"
},
"subscription": {
"Duration": "Laufzeit",
"Duration - Tooltip": "Laufzeit des Abonnements",
"Start Date": "Startdatum",
"Start Date - Tooltip": "Startdatum",
"End Date": "Enddatum",
"End Date - Tooltip": "Enddatum",
"Sub users": "Abonnenten",
"Sub users - Tooltip": "Abonnenten",
"Sub plan": "Abonnementplan",
"Sub plan - Tooltip": "Abonnementplan"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Phone",
"Phone - Tooltip": "Phone number",
"Phone or email": "Phone or email",
"Plans": "Plans",
"Pricings": "Pricings",
"Preview": "Preview",
"Preview - Tooltip": "Preview the configured effects",
"Products": "Products",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.",
"State": "State",
"State - Tooltip": "State",
"Subscriptions": "Subscriptions",
"Successfully added": "Successfully added",
"Successfully deleted": "Successfully deleted",
"Successfully saved": "Successfully saved",
@ -884,5 +887,37 @@
"Method - Tooltip": "HTTP method",
"New Webhook": "New Webhook",
"Value": "Value"
},
"plan": {
"Sub roles - Tooltip": "Role included in the current plane",
"PricePerMonth": "Price per month",
"PricePerYear": "Price per year",
"PerMonth": "per month"
},
"pricing": {
"Sub plans": "Sub plans",
"Sub plans - Tooltip": "Plans included in the current pricing",
"Has trial": "Has trial",
"Has trial - Tooltip": "Availability of the trial period after choosing a plan",
"Trial duration": "Trial duration",
"Trial duration - Tooltip": "Trial duration period",
"Getting started" : "Getting started",
"Copy pricing page URL": "Copy pricing page URL",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser" : "pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser",
"days trial available!": "days trial available!",
"Free": "Free"
},
"subscription": {
"Duration": "Duration",
"Duration - Tooltip": "Subscription duration",
"Start Date": "Start Date",
"Start Date - Tooltip": "Start Date",
"End Date": "End Date",
"End Date - Tooltip": "End Date",
"Sub users": "Sub users",
"Sub users - Tooltip": "Sub users",
"Sub plan": "Sub plan",
"Sub plan - Tooltip": "Sub plan"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Teléfono",
"Phone - Tooltip": "Número de teléfono",
"Phone or email": "Phone or email",
"Plans": "Planes",
"Pricings": "Precios",
"Preview": "Avance",
"Preview - Tooltip": "Vista previa de los efectos configurados",
"Products": "Productos",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Lo siento, no tiene permiso para acceder a esta página o su estado de inicio de sesión es inválido.",
"State": "Estado",
"State - Tooltip": "Estado",
"Subscriptions": "Suscripciones",
"Successfully added": "Éxito al agregar",
"Successfully deleted": "Éxito en la eliminación",
"Successfully saved": "Guardado exitosamente",
@ -884,5 +887,36 @@
"Method - Tooltip": "Método HTTP",
"New Webhook": "Nuevo Webhook",
"Value": "Valor"
},
"plan": {
"Sub roles - Tooltip": "Rol incluido en el plan actual",
"PricePerMonth": "Precio por mes",
"PricePerYear": "Precio por año",
"PerMonth": "por mes"
},
"pricing": {
"Sub plans": "Planes adicionales",
"Sub plans - Tooltip": "Planes incluidos en la tarifa actual",
"Has trial": "Tiene período de prueba",
"Has trial - Tooltip": "Disponibilidad del período de prueba después de elegir un plan",
"Trial duration": "Duración del período de prueba",
"Trial duration - Tooltip": "Duración del período de prueba",
"Getting started": "Empezar",
"Copy pricing page URL": "Copiar URL de la página de precios",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "URL de la página de precios copiada correctamente al portapapeles, péguela en una ventana de incógnito u otro navegador",
"days trial available!": "días de prueba disponibles",
"Free": "Gratis"
},
"subscription": {
"Duration": "Duración",
"Duration - Tooltip": "Duración de la suscripción",
"Start Date": "Fecha de inicio",
"Start Date - Tooltip": "Fecha de inicio",
"End Date": "Fecha de finalización",
"End Date - Tooltip": "Fecha de finalización",
"Sub users": "Usuarios de la suscripción",
"Sub users - Tooltip": "Usuarios de la suscripción",
"Sub plan": "Plan de suscripción",
"Sub plan - Tooltip": "Plan de suscripción"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Téléphone",
"Phone - Tooltip": "Numéro de téléphone",
"Phone or email": "Phone or email",
"Plans": "Plans",
"Pricings": "Tarifs",
"Preview": "Aperçu",
"Preview - Tooltip": "Prévisualisez les effets configurés",
"Products": "Produits",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Désolé, vous n'avez pas la permission d'accéder à cette page ou votre statut de connexion est invalide.",
"State": "État",
"State - Tooltip": "État",
"Subscriptions": "Abonnements",
"Successfully added": "Ajouté avec succès",
"Successfully deleted": "Supprimé avec succès",
"Successfully saved": "Succès enregistré",
@ -884,5 +887,36 @@
"Method - Tooltip": "Méthode HTTP",
"New Webhook": "Nouveau webhook",
"Value": "Valeur"
},
"plan": {
"Sub roles - Tooltip": "Rôle inclus dans le plan actuel",
"PricePerMonth": "Prix par mois",
"PricePerYear": "Prix par an",
"PerMonth": "par mois"
},
"pricing": {
"Sub plans": "Forfaits supplémentaires",
"Sub plans - Tooltip": "Forfaits inclus dans la tarification actuelle",
"Has trial": "Essai gratuit disponible",
"Has trial - Tooltip": "Disponibilité de la période d'essai après avoir choisi un forfait",
"Trial duration": "Durée de l'essai",
"Trial duration - Tooltip": "Durée de la période d'essai",
"Getting started": "Commencer",
"Copy pricing page URL": "Copier l'URL de la page tarifs",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "URL de la page tarifs copiée avec succès dans le presse-papiers, veuillez le coller dans une fenêtre de navigation privée ou un autre navigateur",
"days trial available!": "jours d'essai disponibles !",
"Free": "Gratuit"
},
"subscription": {
"Duration": "Durée",
"Duration - Tooltip": "Durée de l'abonnement",
"Start Date": "Date de début",
"Start Date - Tooltip": "Date de début",
"End Date": "Date de fin",
"End Date - Tooltip": "Date de fin",
"Sub users": "Utilisateurs de l'abonnement",
"Sub users - Tooltip": "Utilisateurs de l'abonnement",
"Sub plan": "Plan de l'abonnement",
"Sub plan - Tooltip": "Plan de l'abonnement"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Telepon",
"Phone - Tooltip": "Nomor telepon",
"Phone or email": "Phone or email",
"Plans": "Rencana",
"Pricings": "Harga",
"Preview": "Tinjauan",
"Preview - Tooltip": "Mengawali pratinjau efek yang sudah dikonfigurasi",
"Products": "Produk",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Maaf, Anda tidak memiliki izin untuk mengakses halaman ini atau status masuk tidak valid.",
"State": "Negara",
"State - Tooltip": "Negara",
"Subscriptions": "Langganan",
"Successfully added": "Berhasil ditambahkan",
"Successfully deleted": "Berhasil dihapus",
"Successfully saved": "Berhasil disimpan",
@ -884,5 +887,36 @@
"Method - Tooltip": "Metode HTTP",
"New Webhook": "Webhook Baru",
"Value": "Nilai"
},
"plan": {
"Sub roles - Tooltip": "Peran yang termasuk dalam rencana saat ini",
"PricePerMonth": "Harga per bulan",
"PricePerYear": "Harga per tahun",
"PerMonth": "per bulan"
},
"pricing": {
"Sub plans": "Rencana Tambahan",
"Sub plans - Tooltip": "Rencana yang termasuk dalam harga saat ini",
"Has trial": "Mempunyai periode percobaan",
"Has trial - Tooltip": "Ketersediaan periode percobaan setelah memilih rencana",
"Trial duration": "Durasi percobaan",
"Trial duration - Tooltip": "Durasi periode percobaan",
"Getting started": "Mulai",
"Copy pricing page URL": "Salin URL halaman harga",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "URL halaman harga berhasil disalin ke clipboard, silakan tempelkan ke dalam jendela mode penyamaran atau browser lainnya",
"days trial available!": "hari percobaan tersedia!",
"Free": "Gratis"
},
"subscription": {
"Duration": "Durasi",
"Duration - Tooltip": "Durasi langganan",
"Start Date": "Tanggal Mulai",
"Start Date - Tooltip": "Tanggal Mulai",
"End Date": "Tanggal Berakhir",
"End Date - Tooltip": "Tanggal Berakhir",
"Sub users": "Pengguna Langganan",
"Sub users - Tooltip": "Pengguna Langganan",
"Sub plan": "Rencana Langganan",
"Sub plan - Tooltip": "Rencana Langganan"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "電話",
"Phone - Tooltip": "電話番号",
"Phone or email": "Phone or email",
"Plans": "プラン",
"Pricings": "価格設定",
"Preview": "プレビュー",
"Preview - Tooltip": "構成されたエフェクトをプレビューする",
"Products": "製品",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "申し訳ありませんが、このページにアクセスする権限がありません、またはログイン状態が無効です。",
"State": "州",
"State - Tooltip": "状態",
"Subscriptions": "サブスクリプション",
"Successfully added": "正常に追加されました",
"Successfully deleted": "正常に削除されました",
"Successfully saved": "成功的に保存されました",
@ -884,5 +887,36 @@
"Method - Tooltip": "HTTPメソッド",
"New Webhook": "新しいWebhook",
"Value": "値"
},
"plan": {
"Sub roles - Tooltip": "現在のプランに含まれるロール",
"PricePerMonth": "月額料金",
"PricePerYear": "年間料金",
"PerMonth": "月毎"
},
"pricing": {
"Sub plans": "追加プラン",
"Sub plans - Tooltip": "現在の価格設定に含まれるプラン",
"Has trial": "トライアル期間あり",
"Has trial - Tooltip": "プラン選択後のトライアル期間の有無",
"Trial duration": "トライアル期間の長さ",
"Trial duration - Tooltip": "トライアル期間の長さ",
"Getting started": "はじめる",
"Copy pricing page URL": "価格ページのURLをコピー",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "価格ページのURLが正常にクリップボードにコピーされました。シークレットウィンドウや別のブラウザに貼り付けてください。",
"days trial available!": "日間のトライアルが利用可能です!",
"Free": "無料"
},
"subscription": {
"Duration": "期間",
"Duration - Tooltip": "購読の期間",
"Start Date": "開始日",
"Start Date - Tooltip": "開始日",
"End Date": "終了日",
"End Date - Tooltip": "終了日",
"Sub users": "購読ユーザー",
"Sub users - Tooltip": "購読ユーザー",
"Sub plan": "購読プラン",
"Sub plan - Tooltip": "購読プラン"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "전화기",
"Phone - Tooltip": "전화 번호",
"Phone or email": "Phone or email",
"Plans": "플랜",
"Pricings": "가격",
"Preview": "미리보기",
"Preview - Tooltip": "구성된 효과를 미리보기합니다",
"Products": "제품들",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "죄송합니다. 이 페이지에 접근할 권한이 없거나 로그인 상태가 유효하지 않습니다.",
"State": "주",
"State - Tooltip": "국가",
"Subscriptions": "구독",
"Successfully added": "성공적으로 추가되었습니다",
"Successfully deleted": "성공적으로 삭제되었습니다",
"Successfully saved": "성공적으로 저장되었습니다",
@ -884,5 +887,36 @@
"Method - Tooltip": "HTTP 방법",
"New Webhook": "새로운 웹훅",
"Value": "가치"
},
"plan": {
"Sub roles - Tooltip": "현재 플랜에 포함된 역할",
"PricePerMonth": "월별 가격",
"PricePerYear": "연간 가격",
"PerMonth": "월"
},
"pricing": {
"Sub plans": "추가 플랜",
"Sub plans - Tooltip": "현재 가격 책정에 포함된 플랜",
"Has trial": "무료 체험 가능",
"Has trial - Tooltip": "플랜 선택 후 체험 기간의 가용 여부",
"Trial duration": "체험 기간",
"Trial duration - Tooltip": "체험 기간의 기간",
"Getting started": "시작하기",
"Copy pricing page URL": "가격 페이지 URL 복사",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "가격 페이지 URL이 클립보드에 성공적으로 복사되었습니다. 시크릿 창이나 다른 브라우저에 붙여넣기해주세요.",
"days trial available!": "일 무료 체험 가능!",
"Free": "무료"
},
"subscription": {
"Duration": "기간",
"Duration - Tooltip": "구독 기간",
"Start Date": "시작일",
"Start Date - Tooltip": "시작일",
"End Date": "종료일",
"End Date - Tooltip": "종료일",
"Sub users": "구독 사용자",
"Sub users - Tooltip": "구독 사용자",
"Sub plan": "구독 플랜",
"Sub plan - Tooltip": "구독 플랜"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Телефон",
"Phone - Tooltip": "Номер телефона",
"Phone or email": "Phone or email",
"Plans": "Планы",
"Pricings": "Тарифы",
"Preview": "Предварительный просмотр",
"Preview - Tooltip": "Предварительный просмотр настроенных эффектов",
"Products": "Продукты",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "К сожалению, у вас нет разрешения на доступ к этой странице или ваш статус входа недействителен.",
"State": "Государство",
"State - Tooltip": "Государство",
"Subscriptions": "Подписки",
"Successfully added": "Успешно добавлено",
"Successfully deleted": "Успешно удалено",
"Successfully saved": "Успешно сохранено",
@ -884,5 +887,36 @@
"Method - Tooltip": "Метод HTTP",
"New Webhook": "Новый вебхук",
"Value": "Значение"
},
"plan": {
"Sub roles - Tooltip": "Роль, включенная в текущий план",
"PricePerMonth": "Цена за месяц",
"PricePerYear": "Цена за год",
"PerMonth": "в месяц"
},
"pricing": {
"Sub plans": "Тарифные планы",
"Sub plans - Tooltip": "Планы, включенные в прайслист",
"Has trial": "Есть пробный период",
"Has trial - Tooltip": "Наличие пробного периода после выбора плана",
"Trial duration": "Продолжительность пробного периода",
"Trial duration - Tooltip": "Продолжительность пробного периода",
"Getting started": "Выьрать план",
"Copy pricing page URL": "Скопировать URL прайс-листа",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "URL страницы прайс-листа успешно скопирован в буфер обмена, пожалуйста, вставьте его в режиме инкогнито или другом браузере",
"days trial available!": "дней пробного периода доступно!",
"Free": "Бесплатно"
},
"subscription": {
"Duration": "Продолжительность",
"Duration - Tooltip": "Продолжительность подписки",
"Start Date": "Дата начала",
"Start Date - Tooltip": "Дата начала",
"End Date": "Дата окончания",
"End Date - Tooltip": "Дата окончания",
"Sub users": "Пользователь подписки",
"Sub users - Tooltip": "Пользователь которому офомлена подписка",
"Sub plan": "План подписки",
"Sub plan - Tooltip": "План подписки"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "Điện thoại",
"Phone - Tooltip": "Số điện thoại",
"Phone or email": "Phone or email",
"Plans": "Kế hoạch",
"Pricings": "Bảng giá",
"Preview": "Xem trước",
"Preview - Tooltip": "Xem trước các hiệu ứng đã cấu hình",
"Products": "Sản phẩm",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "Xin lỗi, bạn không có quyền truy cập trang này hoặc trạng thái đăng nhập không hợp lệ.",
"State": "Nhà nước",
"State - Tooltip": "Trạng thái",
"Subscriptions": "Đăng ký",
"Successfully added": "Đã thêm thành công",
"Successfully deleted": "Đã xóa thành công",
"Successfully saved": "Thành công đã được lưu lại",
@ -884,5 +887,36 @@
"Method - Tooltip": "Phương thức HTTP",
"New Webhook": "Webhook mới",
"Value": "Giá trị"
},
"plan": {
"Sub roles - Tooltip": "Vai trò bao gồm trong kế hoạch hiện tại",
"PricePerMonth": "Giá mỗi tháng",
"PricePerYear": "Giá mỗi năm",
"PerMonth": "mỗi tháng"
},
"pricing": {
"Sub plans": "Kế hoạch phụ",
"Sub plans - Tooltip": "Các kế hoạch bao gồm trong bảng giá hiện tại",
"Has trial": "Có thời gian thử nghiệm",
"Has trial - Tooltip": "Khả dụng thời gian thử nghiệm sau khi chọn kế hoạch",
"Trial duration": "Thời gian thử nghiệm",
"Trial duration - Tooltip": "Thời gian thử nghiệm",
"Getting started": "Bắt đầu",
"Copy pricing page URL": "Sao chép URL trang bảng giá",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "URL trang bảng giá đã được sao chép vào clipboard thành công, vui lòng dán vào cửa sổ ẩn danh hoặc trình duyệt khác",
"days trial available!": "ngày dùng thử có sẵn!",
"Free": "Miễn phí"
},
"subscription": {
"Duration": "Thời lượng",
"Duration - Tooltip": "Thời lượng đăng ký",
"Start Date": "Ngày bắt đầu",
"Start Date - Tooltip": "Ngày bắt đầu",
"End Date": "Ngày kết thúc",
"End Date - Tooltip": "Ngày kết thúc",
"Sub users": "Người dùng đăng ký",
"Sub users - Tooltip": "Người dùng đăng ký",
"Sub plan": "Kế hoạch đăng ký",
"Sub plan - Tooltip": "Kế hoạch đăng ký"
}
}

View File

@ -253,6 +253,8 @@
"Phone": "手机号",
"Phone - Tooltip": "手机号",
"Phone or email": "手机或邮箱",
"Plans": "计划",
"Pricings": "定价",
"Preview": "预览",
"Preview - Tooltip": "可预览所配置的效果",
"Products": "商品",
@ -281,6 +283,7 @@
"Sorry, you do not have permission to access this page or logged in status invalid.": "抱歉,您无权访问该页面或登录状态失效",
"State": "状态",
"State - Tooltip": "状态",
"Subscriptions": "订阅",
"Successfully added": "添加成功",
"Successfully deleted": "删除成功",
"Successfully saved": "保存成功",
@ -884,5 +887,36 @@
"Method - Tooltip": "HTTP方法",
"New Webhook": "添加Webhook",
"Value": "值"
},
"plan": {
"Sub roles - Tooltip": "当前计划中包含的角色",
"PricePerMonth": "每月价格",
"PricePerYear": "每年价格",
"PerMonth": "每月"
},
"pricing": {
"Sub plans": "附加计划",
"Sub plans - Tooltip": "包含在当前定价中的计划",
"Has trial": "有试用期",
"Has trial - Tooltip": "选择计划后是否有试用期",
"Trial duration": "试用期时长",
"Trial duration - Tooltip": "试用期时长",
"Getting started": "开始使用",
"Copy pricing page URL": "复制定价页面链接",
"pricing page URL copied to clipboard successfully, please paste it into the incognito window or another browser": "定价页面链接已成功复制到剪贴板,请粘贴到隐身窗口或其他浏览器中",
"days trial available!": "天试用期可用!",
"Free": "免费"
},
"subscription": {
"Duration": "订阅时长",
"Duration - Tooltip": "订阅时长",
"Start Date": "开始日期",
"Start Date - Tooltip": "开始日期",
"End Date": "结束日期",
"End Date - Tooltip": "结束日期",
"Sub users": "订阅用户",
"Sub users - Tooltip": "订阅用户",
"Sub plan": "订阅计划",
"Sub plan - Tooltip": "订阅计划"
}
}