From 8e36c8e7368cef008133970404bcaabd6cde3df9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?=
You are currently subscribed to the <%= @family.subscription.name %>.
- <% if @family.next_billing_date %>
- Your plan renews on <%= @family.next_billing_date.strftime("%B %d, %Y") %>.
+ <% if @family.next_payment_date %>
+ Your plan renews on <%= @family.next_payment_date.strftime("%B %d, %Y") %>.
<% end %>
You are currently not subscribed
-Once you subscribe to <%= product_name %>, you'll see your billing settings here.
+Once you subscribe to <%= product_name %>, you'll see your payment settings here.
<% end %> @@ -55,7 +55,7 @@Billing via Stripe
+Payment via Stripe
- In the next step, you'll be redirected to Stripe which handles our billing. + In the next step, you'll be redirected to Stripe which handles our payments.
<% end %> diff --git a/config/locales/views/settings/ca.yml b/config/locales/views/settings/ca.yml index 1fa11698e..52317dcbe 100644 --- a/config/locales/views/settings/ca.yml +++ b/config/locales/views/settings/ca.yml @@ -19,10 +19,10 @@ ca: subtitle: La IA categoritza automàticament les teves transaccions segons les categories definides title: Categoritzador de transaccions - billings: + payments: show: - page_title: Facturació - subscription_subtitle: Actualitza la teva subscripció i dades de facturació + page_title: Pagament + subscription_subtitle: Actualitza la teva subscripció i dades de pagament subscription_title: Gestiona la subscripció hostings: ensure_admin: @@ -123,7 +123,7 @@ ca: api_key_label: Clau API api_keys_label: Clau API bank_sync_label: Sincronització bancària - billing_label: Facturació + payment_label: Pagament categories_label: Categories feedback_label: Feedback general_section_title: General diff --git a/config/locales/views/settings/de.yml b/config/locales/views/settings/de.yml index becf9ea7b..0186f2332 100644 --- a/config/locales/views/settings/de.yml +++ b/config/locales/views/settings/de.yml @@ -15,10 +15,10 @@ de: merchant_detector: title: Händlererkennung subtitle: Die KI identifiziert und ergänzt Transaktionsdaten mit Händlerinformationen - billings: + payments: show: - page_title: Abrechnung - subscription_subtitle: Aktualisiere dein Abonnement und deine Rechnungsdetails + page_title: Zahlung + subscription_subtitle: Aktualisiere dein Abonnement und deine Zahlungsdetails subscription_title: Abonnement verwalten preferences: show: @@ -90,7 +90,7 @@ de: advanced_section_title: Erweitert ai_prompts_label: KI-Eingabeaufforderungen api_key_label: API-Schlüssel - billing_label: Abrechnung + payment_label: Zahlung categories_label: Kategorien feedback_label: Feedback general_section_title: Allgemein diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml index cba0a4e9b..a24476b7e 100644 --- a/config/locales/views/settings/en.yml +++ b/config/locales/views/settings/en.yml @@ -16,10 +16,10 @@ en: merchant_detector: title: Merchant Detector subtitle: AI identifies and enriches transaction data with merchant information - billings: + payments: show: - page_title: Billing - subscription_subtitle: Update your subscription and billing details + page_title: Payment + subscription_subtitle: Update your subscription and payment details subscription_title: Manage subscription preferences: show: @@ -111,7 +111,7 @@ en: advanced_section_title: Advanced ai_prompts_label: AI Prompts api_key_label: API Key - billing_label: Billing + payment_label: Payment categories_label: Categories feedback_label: Feedback general_section_title: General diff --git a/config/locales/views/settings/es.yml b/config/locales/views/settings/es.yml index 38ede64ff..2fa0c6ff8 100644 --- a/config/locales/views/settings/es.yml +++ b/config/locales/views/settings/es.yml @@ -16,10 +16,10 @@ es: merchant_detector: title: Detector de Comerciantes subtitle: La IA identifica y enriquece los datos de transacciones con información de comerciantes - billings: + payments: show: - page_title: Facturación - subscription_subtitle: Actualiza tu suscripción y detalles de facturación + page_title: Pago + subscription_subtitle: Actualiza tu suscripción y detalles de pago subscription_title: Gestionar suscripción preferences: show: @@ -91,7 +91,7 @@ es: advanced_section_title: Avanzado ai_prompts_label: Indicaciones de IA api_key_label: Clave API - billing_label: Facturación + payment_label: Pago categories_label: Categorías feedback_label: Comentarios general_section_title: General diff --git a/config/locales/views/settings/fr.yml b/config/locales/views/settings/fr.yml index bd90b194a..eefe027e8 100644 --- a/config/locales/views/settings/fr.yml +++ b/config/locales/views/settings/fr.yml @@ -16,10 +16,10 @@ fr: merchant_detector: title: Détection du vendeur subtitle: L'IA identifie et enrichit les données de transaction avec des informations sur le vendeur - billings: + payments: show: - page_title: Facturation - subscription_subtitle: Mettez à jour votre abonnement et vos détails de facturation + page_title: Paiement + subscription_subtitle: Mettez à jour votre abonnement et vos détails de paiement subscription_title: Gérer l'abonnement preferences: show: @@ -108,7 +108,7 @@ fr: advanced_section_title: Avancé ai_prompts_label: Prompts IA api_key_label: Clé API - billing_label: Facturation + payment_label: Paiement categories_label: Catégories feedback_label: Retour d'information general_section_title: Général diff --git a/config/locales/views/settings/nb.yml b/config/locales/views/settings/nb.yml index 098dd9f6a..3f0e5b78f 100644 --- a/config/locales/views/settings/nb.yml +++ b/config/locales/views/settings/nb.yml @@ -1,10 +1,10 @@ --- nb: settings: - billings: + payments: show: - page_title: Fakturering - subscription_subtitle: Oppdater abonnementet og faktureringsdetaljene dine + page_title: Betaling + subscription_subtitle: Oppdater abonnementet og betalingsdetaljene dine subscription_title: Administrer abonnement preferences: show: @@ -76,7 +76,7 @@ nb: accounts_label: Kontoer api_key_label: API-nøkkel advanced_section_title: Avansert - billing_label: Fakturering + payment_label: Betaling categories_label: Kategorier feedback_label: Tilbakemelding general_section_title: Generelt diff --git a/config/locales/views/settings/nl.yml b/config/locales/views/settings/nl.yml index 1ef08d906..bc8c99513 100644 --- a/config/locales/views/settings/nl.yml +++ b/config/locales/views/settings/nl.yml @@ -16,10 +16,10 @@ nl: merchant_detector: title: Handelaar Detectie subtitle: AI identificeert en verrijkt transactiegegevens met handelaarsinformatie - billings: + payments: show: - page_title: Facturering - subscription_subtitle: Werk uw abonnement en factureringsgegevens bij + page_title: Betaling + subscription_subtitle: Werk uw abonnement en betalingsgegevens bij subscription_title: Abonnement beheren preferences: show: @@ -111,7 +111,7 @@ nl: advanced_section_title: Geavanceerd ai_prompts_label: AI Prompts api_key_label: API Key - billing_label: Facturering + payment_label: Betaling categories_label: Categorieën feedback_label: Feedback general_section_title: Algemeen diff --git a/config/locales/views/settings/pt-BR.yml b/config/locales/views/settings/pt-BR.yml index 06934d4ea..8ddef43bb 100644 --- a/config/locales/views/settings/pt-BR.yml +++ b/config/locales/views/settings/pt-BR.yml @@ -16,10 +16,10 @@ pt-BR: merchant_detector: title: Detector de Estabelecimentos subtitle: A IA identifica e enriquece dados de transações com informações do estabelecimento - billings: + payments: show: - page_title: Cobrança - subscription_subtitle: Atualize sua assinatura e detalhes de cobrança + page_title: Pagamento + subscription_subtitle: Atualize sua assinatura e detalhes de pagamento subscription_title: Gerenciar assinatura preferences: show: @@ -86,7 +86,7 @@ pt-BR: settings_nav: accounts_label: Contas api_key_label: Chave da API - billing_label: Cobrança + payment_label: Pagamento categories_label: Categorias feedback_label: Feedback general_section_title: Geral diff --git a/config/locales/views/settings/ro.yml b/config/locales/views/settings/ro.yml index 3c5b7e091..e3c3b66ac 100644 --- a/config/locales/views/settings/ro.yml +++ b/config/locales/views/settings/ro.yml @@ -16,10 +16,10 @@ ro: merchant_detector: title: Detector de comercianți subtitle: AI identifică și îmbogățește datele tranzacțiilor cu informații despre comercianți - billings: + payments: show: - page_title: Facturare - subscription_subtitle: Actualizează-ți abonamentul și detaliile de facturare + page_title: Plată + subscription_subtitle: Actualizează-ți abonamentul și detaliile de plată subscription_title: Gestionează abonamentul preferences: show: @@ -94,7 +94,7 @@ ro: advanced_section_title: Avansat ai_prompts_label: Prompturi AI api_key_label: Cheie API - billing_label: Facturare + payment_label: Plată categories_label: Categorii feedback_label: Feedback general_section_title: General diff --git a/config/locales/views/settings/tr.yml b/config/locales/views/settings/tr.yml index 3aa4b569b..d8b3a00cb 100644 --- a/config/locales/views/settings/tr.yml +++ b/config/locales/views/settings/tr.yml @@ -1,10 +1,10 @@ --- tr: settings: - billings: + payments: show: - page_title: Faturalandırma - subscription_subtitle: Abonelik ve fatura bilgilerinizi güncelleyin + page_title: Ödeme + subscription_subtitle: Abonelik ve ödeme bilgilerinizi güncelleyin subscription_title: Aboneliği yönet preferences: show: @@ -74,7 +74,7 @@ tr: accounts_label: Hesaplar api_key_label: API Anahtarı advanced_section_title: Gelişmiş - billing_label: Faturalandırma + payment_label: Ödeme categories_label: Kategoriler feedback_label: Geri Bildirim general_section_title: Genel diff --git a/config/locales/views/settings/zh-CN.yml b/config/locales/views/settings/zh-CN.yml index c1263c352..b541bdcbf 100644 --- a/config/locales/views/settings/zh-CN.yml +++ b/config/locales/views/settings/zh-CN.yml @@ -16,10 +16,10 @@ zh-CN: transaction_categorizer: subtitle: AI 根据您定义的分类自动为交易进行分类 title: 交易分类器 - billings: + payments: show: - page_title: 账单管理 - subscription_subtitle: 更新订阅与账单信息 + page_title: 付款管理 + subscription_subtitle: 更新订阅与付款信息 subscription_title: 管理订阅 hostings: ensure_admin: @@ -96,7 +96,7 @@ zh-CN: api_key_label: API 密钥 api_keys_label: API 密钥 bank_sync_label: 银行同步 - billing_label: 账单管理 + payment_label: 付款管理 categories_label: 分类管理 feedback_label: 意见反馈 general_section_title: 通用设置 diff --git a/config/locales/views/settings/zh-TW.yml b/config/locales/views/settings/zh-TW.yml index 7006e16fc..85639c2e1 100644 --- a/config/locales/views/settings/zh-TW.yml +++ b/config/locales/views/settings/zh-TW.yml @@ -16,10 +16,10 @@ zh-TW: merchant_detector: title: 商家偵測器 subtitle: AI 會辨識交易資料並自動補全商家資訊 - billings: + payments: show: - page_title: 帳單 - subscription_subtitle: 更新您的訂閱方案與帳單詳情 + page_title: 付款 + subscription_subtitle: 更新您的訂閱方案與付款詳情 subscription_title: 管理訂閱 preferences: show: @@ -91,7 +91,7 @@ zh-TW: advanced_section_title: 進階設定 ai_prompts_label: AI 提示詞 api_key_label: API 金鑰 - billing_label: 帳單 + payment_label: 付款 categories_label: 類別 feedback_label: 意見回饋 general_section_title: 一般 diff --git a/config/routes.rb b/config/routes.rb index 0106f6d17..c24ca2d27 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -99,7 +99,7 @@ Rails.application.routes.draw do resource :hosting, only: %i[show update] do delete :clear_cache, on: :collection end - resource :billing, only: :show + resource :payment, only: :show resource :security, only: :show resources :sso_identities, only: :destroy resource :api_key, only: [ :show, :new, :create, :destroy ] diff --git a/test/controllers/settings/billings_controller_test.rb b/test/controllers/settings/payments_controller_test.rb similarity index 57% rename from test/controllers/settings/billings_controller_test.rb rename to test/controllers/settings/payments_controller_test.rb index 579bf7693..b35252ef8 100644 --- a/test/controllers/settings/billings_controller_test.rb +++ b/test/controllers/settings/payments_controller_test.rb @@ -1,6 +1,6 @@ require "test_helper" -class Settings::BillingsControllerTest < ActionDispatch::IntegrationTest +class Settings::PaymentsControllerTest < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end diff --git a/test/controllers/subscriptions_controller_test.rb b/test/controllers/subscriptions_controller_test.rb index 541b5731a..cb4d1d08a 100644 --- a/test/controllers/subscriptions_controller_test.rb +++ b/test/controllers/subscriptions_controller_test.rb @@ -44,7 +44,7 @@ class SubscriptionsControllerTest < ActionDispatch::IntegrationTest @mock_stripe.expects(:create_checkout_session).with( plan: "monthly", family_id: @family.id, - family_email: @family.billing_email, + family_email: @family.payment_email, success_url: success_subscription_url + "?session_id={CHECKOUT_SESSION_ID}", cancel_url: upgrade_subscription_url ).returns( diff --git a/test/system/settings_test.rb b/test/system/settings_test.rb index 4d7ab8447..25f2fee70 100644 --- a/test/system/settings_test.rb +++ b/test/system/settings_test.rb @@ -63,10 +63,10 @@ class SettingsTest < ApplicationSystemTestCase assert_selector 'span[data-clipboard-target="iconSuccess"]', visible: true, count: 1 # text copied and icon changed to checkmark end - test "does not show billing link if self hosting" do + test "does not show payment link if self hosting" do Rails.application.config.app_mode.stubs(:self_hosted?).returns(true) open_settings_from_sidebar - assert_no_selector "li", text: I18n.t("settings.settings_nav.billing_label") + assert_no_selector "li", text: I18n.t("settings.settings_nav.payment_label") end test "does not show admin settings to non-admin users" do