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
/*
* 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};
/// TransactionGroup : A transaction group contains data for one or more EDI transactions in [Guide JSON](https://www.stedi.com/docs/edi-platform/operate/transform-json/guide-json) format.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionGroup {
/// A unique ID outbound transaction setting Stedi should use to determine the correct guide for validation and generation. To find this ID, go to the partnership and use the **Transaction Setting ID** field for the outbound transaction setting.
#[serde(rename = "transactionSettingId")]
pub transaction_setting_id: String,
/// This payload contains the transaction data. It must conform to the JSON Schema for the guide associated with each transaction setting (Guide JSON format).
#[serde(rename = "transactions")]
pub transactions: Vec<serde_json::Value>,
#[serde(rename = "overrides", skip_serializing_if = "Option::is_none")]
pub overrides: Option<Box<models::TransactionGroupOverrides>>,
}
impl TransactionGroup {
/// A transaction group contains data for one or more EDI transactions in [Guide JSON](https://www.stedi.com/docs/edi-platform/operate/transform-json/guide-json) format.
pub fn new(transaction_setting_id: String, transactions: Vec<serde_json::Value>) -> TransactionGroup {
TransactionGroup {
transaction_setting_id,
transactions,
overrides: None,
}
}
}