/*
* 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 Payment {
/// Resource name
#[serde(rename = "type")]
pub r#type: String,
/// Unique identifier for the payment
#[serde(rename = "id")]
pub id: uuid::Uuid,
#[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
pub attributes: Option<Box<models::PaymentAttributes>>,
}
impl Payment {
pub fn new(r#type: String, id: uuid::Uuid) -> Payment {
Payment {
r#type,
id,
attributes: None,
}
}
}