dtz-billing 2.1.2

a generated client for the DTZ Billing API
Documentation
/*
 * DTZ Billing Api
 *
 * a generated client for the DTZ Billing API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Transaction {
    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
    pub service: Option<String>,
    #[serde(rename = "contextId", skip_serializing_if = "Option::is_none")]
    pub context_id: Option<String>,
    #[serde(rename = "ts", skip_serializing_if = "Option::is_none")]
    pub ts: Option<String>,
    #[serde(rename = "amountMoney", skip_serializing_if = "Option::is_none")]
    pub amount_money: Option<f64>,
}

impl Transaction {
    pub fn new() -> Transaction {
        Transaction {
            service: None,
            context_id: None,
            ts: None,
            amount_money: None,
        }
    }
}