use crate::objects::currency_amount::CurrencyAmount;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct PostTransactionData {
#[serde(rename = "post_transaction_data_utxo")]
pub utxo: String,
#[serde(rename = "post_transaction_data_amount")]
pub amount: CurrencyAmount,
}
pub const FRAGMENT: &str = "
fragment PostTransactionDataFragment on PostTransactionData {
__typename
post_transaction_data_utxo: utxo
post_transaction_data_amount: amount {
__typename
currency_amount_original_value: original_value
currency_amount_original_unit: original_unit
currency_amount_preferred_currency_unit: preferred_currency_unit
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
}
}
";