use crate::core::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExecutionPartnershipProfile {
#[serde(rename = "interchangeQualifier")]
pub interchange_qualifier: models::X12InterchangeQualifier,
#[serde(rename = "interchangeId")]
pub interchange_id: String,
#[serde(rename = "profileId")]
pub profile_id: String,
#[serde(rename = "profileType")]
pub profile_type: models::ProfileType,
#[serde(rename = "applicationId", skip_serializing_if = "Option::is_none")]
pub application_id: Option<String>,
}
impl ExecutionPartnershipProfile {
pub fn new(interchange_qualifier: models::X12InterchangeQualifier, interchange_id: String, profile_id: String, profile_type: models::ProfileType) -> ExecutionPartnershipProfile {
ExecutionPartnershipProfile {
interchange_qualifier,
interchange_id,
profile_id,
profile_type,
application_id: None,
}
}
}