amazon_spapi/models/shipping_v2/
requested_value_added_service.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RequestedValueAddedService : A value-added service to be applied to a shipping service purchase.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RequestedValueAddedService {
17    /// The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation.
18    #[serde(rename = "id")]
19    pub id: String,
20}
21
22impl RequestedValueAddedService {
23    /// A value-added service to be applied to a shipping service purchase.
24    pub fn new(id: String) -> RequestedValueAddedService {
25        RequestedValueAddedService {
26            id,
27        }
28    }
29}
30