Skip to main content

amazon_spapi/models/shipping/
purchase_labels_request.rs

1/*
2 * Selling Partner API for Shipping
3 *
4 * Provides programmatic access to Amazon Shipping APIs.   **Note:** If you are new to the Amazon Shipping API, refer to the latest version of <a href=\"https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference\">Amazon Shipping API (v2)</a> on the <a href=\"https://developer-docs.amazon.com/amazon-shipping/\">Amazon Shipping Developer Documentation</a> site.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PurchaseLabelsRequest : The request schema for the purchaseLabels operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PurchaseLabelsRequest {
17    /// An identifier for the rating.
18    #[serde(rename = "rateId")]
19    pub rate_id: String,
20    #[serde(rename = "labelSpecification")]
21    pub label_specification: Box<models::shipping::LabelSpecification>,
22}
23
24impl PurchaseLabelsRequest {
25    /// The request schema for the purchaseLabels operation.
26    pub fn new(rate_id: String, label_specification: models::shipping::LabelSpecification) -> PurchaseLabelsRequest {
27        PurchaseLabelsRequest {
28            rate_id,
29            label_specification: Box::new(label_specification),
30        }
31    }
32}
33