amazon_spapi/models/shipping_v2/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/// ValueAddedService : A value-added service available for purchase with a shipment service offering.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValueAddedService {
17 /// The identifier for the value-added service.
18 #[serde(rename = "id")]
19 pub id: String,
20 /// The name of the value-added service.
21 #[serde(rename = "name")]
22 pub name: String,
23 #[serde(rename = "cost")]
24 pub cost: Box<models::shipping_v2::Currency>,
25}
26
27impl ValueAddedService {
28 /// A value-added service available for purchase with a shipment service offering.
29 pub fn new(id: String, name: String, cost: models::shipping_v2::Currency) -> ValueAddedService {
30 ValueAddedService {
31 id,
32 name,
33 cost: Box::new(cost),
34 }
35 }
36}
37