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
/*
 * 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
 */

/// CreateScheduledPackagesResponse : The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn't schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateScheduledPackagesResponse {
    /// A list of packages. Refer to the `Package` object.
    #[serde(default, rename = "scheduledPackages", skip_serializing_if = "Option::is_none")]
    pub scheduled_packages: Option<Vec<crate::models::Package>>,
    /// A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error.
    #[serde(default, rename = "rejectedOrders", skip_serializing_if = "Option::is_none")]
    pub rejected_orders: Option<Vec<crate::models::RejectedOrder>>,
    /// A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
    #[serde(default, rename = "printableDocumentsUrl", skip_serializing_if = "Option::is_none")]
    pub printable_documents_url: Option<String>,
}

impl CreateScheduledPackagesResponse {
    /// The response schema for the bulk scheduling API. It returns by the bulk scheduling API containing an array of the scheduled packtages, an optional list of orders we couldn't schedule with the reason, and a pre-signed URL for a ZIP file containing the associated shipping labels plus the documents enabled for your marketplace.
    pub fn new() -> CreateScheduledPackagesResponse {
        CreateScheduledPackagesResponse {
            scheduled_packages: None,
            rejected_orders: None,
            printable_documents_url: None,
        }
    }
}