1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* 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,
}
}
}