marlowe_client 0.0.5

HTTP client for the Marlowe Runtime REST API
Documentation
/*
 * Marlowe Runtime REST API
 *
 * REST API for Marlowe Runtime
 *
 * The version of the OpenAPI document: 0.0.5.1
 *
 * Generated by: https://openapi-generator.tech
 */

/// Pay : A payment will be sent from an account to a payee.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Pay {
    #[serde(rename = "from_account")]
    pub from_account: Box<crate::models::Party>,
    #[serde(rename = "pay")]
    pub pay: Box<crate::models::Value>,
    #[serde(rename = "then")]
    pub then: Box<crate::models::Contract>,
    #[serde(rename = "to")]
    pub to: Box<crate::models::Payee>,
    #[serde(rename = "token")]
    pub token: Box<crate::models::Token>,
}

impl Pay {
    /// A payment will be sent from an account to a payee.
    pub fn new(
        from_account: crate::models::Party,
        pay: crate::models::Value,
        then: crate::models::Contract,
        to: crate::models::Payee,
        token: crate::models::Token,
    ) -> Pay {
        Pay {
            from_account: Box::new(from_account),
            pay: Box::new(pay),
            then: Box::new(then),
            to: Box::new(to),
            token: Box::new(token),
        }
    }
}