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
/*
 * Selling Partner API for Easy Ship
 *
 * The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders.  Your Easy Ship applications can:  * Get available time slots for packages to be scheduled for delivery.  * Schedule, reschedule, and cancel Easy Ship orders.  * Print labels, invoices, and warranties.  See the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.
 *
 * The version of the OpenAPI document: 2022-03-23
 * Contact: marketplaceapitest@amazon.com
 * Generated by: https://openapi-generator.tech
 */

/// CreateScheduledPackagesRequest : The request body for the POST /easyShip/2022-03-23/packages/bulk API.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateScheduledPackagesRequest {
    /// A string of up to 255 characters.
    #[serde(default, rename = "marketplaceId")]
    pub marketplace_id: String,
    /// An array allowing users to specify orders to be scheduled.
    #[serde(default, rename = "orderScheduleDetailsList")]
    pub order_schedule_details_list: Vec<crate::models::OrderScheduleDetails>,
    #[serde(default, rename = "labelFormat")]
    pub label_format: crate::models::LabelFormat,
}

impl CreateScheduledPackagesRequest {
    /// The request body for the POST /easyShip/2022-03-23/packages/bulk API.
    pub fn new(marketplace_id: String, order_schedule_details_list: Vec<crate::models::OrderScheduleDetails>, label_format: crate::models::LabelFormat) -> CreateScheduledPackagesRequest {
        CreateScheduledPackagesRequest {
            marketplace_id,
            order_schedule_details_list,
            label_format,
        }
    }
}