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

/// ContractInformation : Required when the submitter is contractually obligated to supply this information on post-adjudicated claims.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ContractInformation {
    /// The total dollar amount of the contract, expressed as a decimal. For example, `100.50`.
    #[serde(rename = "contractAmount", skip_serializing_if = "Option::is_none")]
    pub contract_amount: Option<String>,
    /// The contract code. This is an identifier for the contract.
    #[serde(rename = "contractCode", skip_serializing_if = "Option::is_none")]
    pub contract_code: Option<String>,
    /// The allowance or charge percent, expressed as a decimal. For example, `0.80`.
    #[serde(rename = "contractPercentage", skip_serializing_if = "Option::is_none")]
    pub contract_percentage: Option<String>,
    #[serde(rename = "contractTypeCode")]
    pub contract_type_code: models::ContractInformationContractTypeCode,
    /// An additional identifier for the contract. Identifies the revision level of a particular format, program, technique or algorithm.
    #[serde(rename = "contractVersionIdentifier", skip_serializing_if = "Option::is_none")]
    pub contract_version_identifier: Option<String>,
    /// Terms discount percentage, expressed as a decimal, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date.
    #[serde(rename = "termsDiscountPercentage", skip_serializing_if = "Option::is_none")]
    pub terms_discount_percentage: Option<String>,
}

impl ContractInformation {
    /// Required when the submitter is contractually obligated to supply this information on post-adjudicated claims.
    pub fn new(contract_type_code: models::ContractInformationContractTypeCode) -> ContractInformation {
        ContractInformation {
            contract_amount: None,
            contract_code: None,
            contract_percentage: None,
            contract_type_code,
            contract_version_identifier: None,
            terms_discount_percentage: None,
        }
    }
}