moonsdk 1.0.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * moon-vault-api
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TatumTransactionEvent {
    #[serde(rename = "amount")]
    pub amount: String,
    #[serde(rename = "test")]
    pub test: bool,
    #[serde(rename = "counterAddress")]
    pub counter_address: String,
    #[serde(rename = "address")]
    pub address: String,
    #[serde(rename = "mempool")]
    pub mempool: bool,
    #[serde(rename = "subscriptionType")]
    pub subscription_type: String,
    #[serde(rename = "blockNumber")]
    pub block_number: f64,
    #[serde(rename = "txId")]
    pub tx_id: String,
    #[serde(rename = "chain")]
    pub chain: String,
    #[serde(rename = "currency")]
    pub currency: String,
}

impl TatumTransactionEvent {
    pub fn new(amount: String, test: bool, counter_address: String, address: String, mempool: bool, subscription_type: String, block_number: f64, tx_id: String, chain: String, currency: String) -> TatumTransactionEvent {
        TatumTransactionEvent {
            amount,
            test,
            counter_address,
            address,
            mempool,
            subscription_type,
            block_number,
            tx_id,
            chain,
            currency,
        }
    }
}