autogen-stedi 0.3.2

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessIdentifier {
    /// The identifier of the element containing the business identifier in the EDI specification.
    #[serde(rename = "elementId")]
    pub element_id: String,
    /// The element where the business identifier was found. For example, `BHT03` for 837 claims.
    #[serde(rename = "element")]
    pub element: String,
    /// The friendly name of the business identifier. For example, `Originator Application Transaction Identifier`.
    #[serde(rename = "name")]
    pub name: String,
    /// The value of the business identifier.
    #[serde(rename = "value")]
    pub value: String,
}

impl BusinessIdentifier {
    pub fn new(element_id: String, element: String, name: String, value: String) -> BusinessIdentifier {
        BusinessIdentifier {
            element_id,
            element,
            name,
            value,
        }
    }
}