From 297a5e8b9dad57a89b00008330606c085408791a Mon Sep 17 00:00:00 2001 From: Peter Turi Date: Wed, 20 May 2026 16:14:40 +0200 Subject: [PATCH] fix: credit then invoice config name --- app/config/credits.go | 4 ++-- config.example.yaml | 2 +- e2e/config.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/config/credits.go b/app/config/credits.go index 0c1b5d623f..5468765847 100644 --- a/app/config/credits.go +++ b/app/config/credits.go @@ -8,7 +8,7 @@ import ( type CreditsConfiguration struct { Enabled bool `yaml:"enabled"` - EnableCreditThenInvoice bool `yaml:"enable_credit_then_invoice"` + EnableCreditThenInvoice bool `yaml:"enableCreditThenInvoice"` } func (c CreditsConfiguration) Validate() error { @@ -21,5 +21,5 @@ func (c CreditsConfiguration) Validate() error { func ConfigureCredits(v *viper.Viper) { v.SetDefault("credits.enabled", false) - v.SetDefault("credits.enable_credit_then_invoice", false) + v.SetDefault("credits.enableCreditThenInvoice", false) } diff --git a/config.example.yaml b/config.example.yaml index 3ebf4aaebb..b293dd37c6 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -84,7 +84,7 @@ billing: credits: enabled: true - enable_credit_then_invoice: false + enableCreditThenInvoice: false apps: baseURL: https://example.com diff --git a/e2e/config.yaml b/e2e/config.yaml index 310bf10132..a2803b647d 100644 --- a/e2e/config.yaml +++ b/e2e/config.yaml @@ -46,7 +46,7 @@ postgres: # to verify that credit_only settlement mode is rejected when credits are disabled. credits: enabled: false - enable_credit_then_invoice: false + enableCreditThenInvoice: false notification: lock: