amazon_spapi/models/fulfillment_outbound_2020_07_01/feature_settings.rs
1/*
2 * Selling Partner APIs for Fulfillment Outbound
3 *
4 * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
5 *
6 * The version of the OpenAPI document: 2020-07-01
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FeatureSettings : `FeatureSettings` allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use `featureName` as `BLOCK_AMZL` and `featureFulfillmentPolicy` as `Required`. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using `BLOCK_AMZL` in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), use featureName `BLANK_BOX`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FeatureSettings {
17 /// The name of the feature.
18 #[serde(rename = "featureName", skip_serializing_if = "Option::is_none")]
19 pub feature_name: Option<String>,
20 /// Specifies the policy to use when fulfilling an order.
21 #[serde(rename = "featureFulfillmentPolicy", skip_serializing_if = "Option::is_none")]
22 pub feature_fulfillment_policy: Option<FeatureFulfillmentPolicy>,
23}
24
25impl FeatureSettings {
26 /// `FeatureSettings` allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use `featureName` as `BLOCK_AMZL` and `featureFulfillmentPolicy` as `Required`. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using `BLOCK_AMZL` in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), use featureName `BLANK_BOX`.
27 pub fn new() -> FeatureSettings {
28 FeatureSettings {
29 feature_name: None,
30 feature_fulfillment_policy: None,
31 }
32 }
33}
34/// Specifies the policy to use when fulfilling an order.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum FeatureFulfillmentPolicy {
37 #[serde(rename = "Required")]
38 Required,
39 #[serde(rename = "NotRequired")]
40 NotRequired,
41}
42
43impl Default for FeatureFulfillmentPolicy {
44 fn default() -> FeatureFulfillmentPolicy {
45 Self::Required
46 }
47}
48