use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionSteamInfo {
#[serde(rename = "orderId")]
pub order_id: String,
#[serde(rename = "steamId")]
pub steam_id: String,
#[serde(rename = "steamUrl")]
pub steam_url: String,
#[serde(rename = "transId")]
pub trans_id: String,
#[serde(rename = "walletInfo")]
pub wallet_info: models::TransactionSteamWalletInfo,
}
impl TransactionSteamInfo {
pub fn new(
order_id: String,
steam_id: String,
steam_url: String,
trans_id: String,
wallet_info: models::TransactionSteamWalletInfo,
) -> TransactionSteamInfo {
TransactionSteamInfo {
order_id,
steam_id,
steam_url,
trans_id,
wallet_info,
}
}
}