autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Healthcare
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2024-04-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// PayeeRemittanceDeliveryMethod : The method by which the remittance advice is delivered. This is used when the remittance is separate from the payment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PayeeRemittanceDeliveryMethod {
    /// The email address.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// Information for file transfer deliveries, such as SFTP, FTP, or FTPS.
    #[serde(rename = "ftp", skip_serializing_if = "Option::is_none")]
    pub ftp: Option<String>,
    /// The name of the third party processor, if required, that would be the first recipient of the remittance.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The web address of the online portal for secure hosted or other electronic delivery. The URL is typically provided without the scheme and separator. For example, `stedi.com`.
    #[serde(rename = "onLine", skip_serializing_if = "Option::is_none")]
    pub on_line: Option<String>,
}

impl PayeeRemittanceDeliveryMethod {
    /// The method by which the remittance advice is delivered. This is used when the remittance is separate from the payment.
    pub fn new() -> PayeeRemittanceDeliveryMethod {
        PayeeRemittanceDeliveryMethod {
            email: None,
            ftp: None,
            name: None,
            on_line: None,
        }
    }
}