amazon_spapi/models/easy_ship_2022_03_23/
packages.rs

1/*
2 * Selling Partner API for Easy Ship
3 *
4 * Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
5 *
6 * The version of the OpenAPI document: 2022-03-23
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Packages : A list of packages.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Packages {
17    /// A list of packages.
18    #[serde(rename = "packages")]
19    pub packages: Vec<models::easy_ship_2022_03_23::Package>,
20}
21
22impl Packages {
23    /// A list of packages.
24    pub fn new(packages: Vec<models::easy_ship_2022_03_23::Package>) -> Packages {
25        Packages {
26            packages,
27        }
28    }
29}
30