pontoconnect_rs 2.0.3

For more info, please refer to the documentation: https://documentation.ibanity.com/ponto-connect/
Documentation
/*
 * Ponto Connect
 *
 * For more info, please refer to the documentation: https://documentation.ibanity.com/ponto-connect/
 *
 * The version of the OpenAPI document: 2
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaymentRequestClosed {
    /// Resource name
    #[serde(rename = "type")]
    pub r#type: String,
    /// Unique identifier for the paymentRequestClosed
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
    pub attributes: Option<Box<models::AccountDetailsUpdatedAttributes>>,
}

impl PaymentRequestClosed {
    pub fn new(r#type: String, id: uuid::Uuid) -> PaymentRequestClosed {
        PaymentRequestClosed {
            r#type,
            id,
            attributes: None,
        }
    }
}