amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Merchant Fulfillment
 *
 * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// AvailableShippingServiceOptions : The available shipping service options.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AvailableShippingServiceOptions {
    /// List of available carrier pickup options.
    #[serde(rename = "AvailableCarrierWillPickUpOptions")]
    pub available_carrier_will_pick_up_options: Vec<models::merchant_fulfillment_v0::AvailableCarrierWillPickUpOption>,
    /// List of available delivery experience options.
    #[serde(rename = "AvailableDeliveryExperienceOptions")]
    pub available_delivery_experience_options: Vec<models::merchant_fulfillment_v0::AvailableDeliveryExperienceOption>,
}

impl AvailableShippingServiceOptions {
    /// The available shipping service options.
    pub fn new(available_carrier_will_pick_up_options: Vec<models::merchant_fulfillment_v0::AvailableCarrierWillPickUpOption>, available_delivery_experience_options: Vec<models::merchant_fulfillment_v0::AvailableDeliveryExperienceOption>) -> AvailableShippingServiceOptions {
        AvailableShippingServiceOptions {
            available_carrier_will_pick_up_options,
            available_delivery_experience_options,
        }
    }
}