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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReportInformation {
    /// A control number assigned to the attachment. The payer uses this identifier to match the attachment to the claim.   - You must include either this property or `attachmentId` in the request, but not both. Including both properties will result in an error.   - We recommend using a ULID or UUID of up to 50 characters.   - Stedi autogenerates a control number if you don't provide one.
    #[serde(rename = "attachmentControlNumber", skip_serializing_if = "Option::is_none")]
    pub attachment_control_number: Option<String>,
    /// The unique identifier for an attachment file you previously uploaded to Stedi. This value is returned in the `attachmentId` property of the [Create Claim Attachment (275) JSON](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-submit-claim-attachment) response. Stedi uses it to generate and submit the 275 claim attachment transaction to the payer.   - This property is **required** when you're submitting attachment files through Stedi.   - You must include either this property or `attachmentControlNumber` in the request, but not both. Including both properties will result in an error.
    #[serde(rename = "attachmentId", skip_serializing_if = "Option::is_none")]
    pub attachment_id: Option<String>,
    #[serde(rename = "attachmentReportTypeCode")]
    pub attachment_report_type_code: models::AttachmentReportTypeCode,
    #[serde(rename = "attachmentTransmissionCode")]
    pub attachment_transmission_code: models::ReportInformationAttachmentTransmissionCode,
}

impl ReportInformation {
    pub fn new(attachment_report_type_code: models::AttachmentReportTypeCode, attachment_transmission_code: models::ReportInformationAttachmentTransmissionCode) -> ReportInformation {
        ReportInformation {
            attachment_control_number: None,
            attachment_id: None,
            attachment_report_type_code,
            attachment_transmission_code,
        }
    }
}