fix: add more logging to index-billing task (#6708)

* more logging to index billing

* schema update
This commit is contained in:
aecsocket
2026-07-14 07:52:50 +00:00
committed by GitHub
parent c431d1fc89
commit 818a9db9f7
3 changed files with 94 additions and 70 deletions
+23 -2
View File
@@ -1,5 +1,5 @@
use {
crate::{Blockchain, FiatAmount, TokenAmount, WalletDetails},
crate::{Blockchain, FiatAmount, UsdSymbol, WalletDetails},
chrono::{DateTime, Utc},
derive_more::{Deref, Display},
rust_decimal::Decimal,
@@ -124,10 +124,31 @@ pub enum AccountStatus {
#[serde(rename_all = "camelCase")]
pub struct AccountDetails {
pub wallet_details: WalletDetails,
pub balances: Vec<TokenAmount>,
pub balances_v2: Vec<Balance>,
pub payin_methods: Vec<PayinMethod>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum Balance {
#[serde(rename_all = "camelCase")]
Blockchain {
token_symbol: String,
exponent: u32,
#[serde(with = "rust_decimal::serde::str")]
value: Decimal,
blockchain: Blockchain,
},
#[serde(rename_all = "camelCase")]
Fiat {
currency_symbol: UsdSymbol,
exponent: u32,
#[serde(with = "rust_decimal::serde::str")]
value: Decimal,
},
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
#[serde(rename_all = "camelCase")]