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
41
42
43
44
45
46
47
48
49
/*
* 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,
}
}
}