fix: remove tax compliance env var (#5445)

* fix: remove tax compliance env var

* improve tax compliance year logic

* bit more tests

---------

Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
Calum H.
2026-03-03 17:45:28 +00:00
committed by GitHub
co-authored by aecsocket
parent 34997bada5
commit 211ec20970
5 changed files with 81 additions and 11 deletions
+1 -4
View File
@@ -11,6 +11,7 @@ use crate::models::payouts::{PayoutMethodType, PayoutStatus, Withdrawal};
use crate::queue::payouts::PayoutsQueue;
use crate::queue::session::AuthQueue;
use crate::routes::ApiError;
use crate::routes::internal::globals::tax_compliance_payout_threshold;
use crate::util::avalara1099;
use crate::util::error::Context;
use crate::util::gotenberg::GotenbergClient;
@@ -1116,10 +1117,6 @@ async fn update_compliance_status(
}
}
fn tax_compliance_payout_threshold() -> Option<Decimal> {
ENV.COMPLIANCE_PAYOUT_THRESHOLD.parse().ok()
}
#[derive(Deserialize)]
pub struct RevenueQuery {
pub start: Option<DateTime<Utc>>,