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
/*
 * Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data
 *
 * The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data.
 *
 * The version of the OpenAPI document: 2021-10-28
 * 
 * Generated by: https://openapi-generator.tech
 */

/// Scenario : A scenario test case response returned when the request is successful.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Scenario {
    /// An identifier that identifies the type of scenario that user can use for testing.
    #[serde(default, rename = "scenarioId")]
    pub scenario_id: String,
    /// A list of orders that can be used by the caller to test each life cycle or scenario.
    #[serde(default, rename = "orders")]
    pub orders: Vec<crate::models::TestOrder>,
}

impl Scenario {
    /// A scenario test case response returned when the request is successful.
    pub fn new(scenario_id: String, orders: Vec<crate::models::TestOrder>) -> Scenario {
        Scenario {
            scenario_id,
            orders,
        }
    }
}