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

/// Adjustments : Provider adjustment details including reason codes and amounts.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Adjustments {
    /// A code identifying the reason for the adjustment. Visit [Provider Adjustment Reason Codes](https://www.stedi.com/docs/healthcare/claims-code-lists#provider-adjustment-reason-code) for a complete list and descriptions.
    #[serde(rename = "adjustmentReasonCode", skip_serializing_if = "Option::is_none")]
    pub adjustment_reason_code: Option<String>,
    /// The description of the `adjustmentReasonCode`.
    #[serde(rename = "adjustmentReasonCodeValue", skip_serializing_if = "Option::is_none")]
    pub adjustment_reason_code_value: Option<String>,
    /// The amount of the adjustment, per the adjustment reason provided. A negative amount increases the claim payment and a positive amount decreases the claim payment.
    #[serde(rename = "providerAdjustmentAmount", skip_serializing_if = "Option::is_none")]
    pub provider_adjustment_amount: Option<String>,
    /// An identifier used to assist the receiver in identifying, tracking, or reconciling the adjustment.
    #[serde(rename = "providerAdjustmentIdentifier", skip_serializing_if = "Option::is_none")]
    pub provider_adjustment_identifier: Option<String>,
}

impl Adjustments {
    /// Provider adjustment details including reason codes and amounts.
    pub fn new() -> Adjustments {
        Adjustments {
            adjustment_reason_code: None,
            adjustment_reason_code_value: None,
            provider_adjustment_amount: None,
            provider_adjustment_identifier: None,
        }
    }
}