Skip to main content

amazon_spapi/models/product_fees_v0/
optional_fulfillment_program.rs

1/*
2 * Selling Partner API for Product Fees
3 *
4 * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OptionalFulfillmentProgram : An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true).
15/// An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true).
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum OptionalFulfillmentProgram {
18    #[serde(rename = "FBA_CORE")]
19    FbaCore,
20    #[serde(rename = "FBA_SNL")]
21    FbaSnl,
22    #[serde(rename = "FBA_EFN")]
23    FbaEfn,
24
25}
26
27impl std::fmt::Display for OptionalFulfillmentProgram {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::FbaCore => write!(f, "FBA_CORE"),
31            Self::FbaSnl => write!(f, "FBA_SNL"),
32            Self::FbaEfn => write!(f, "FBA_EFN"),
33        }
34    }
35}
36
37impl Default for OptionalFulfillmentProgram {
38    fn default() -> OptionalFulfillmentProgram {
39        Self::FbaCore
40    }
41}
42