amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for FBA inbound operations.
 *
 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
 *
 * The version of the OpenAPI document: 2024-03-20
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Incentive : Contains details about cost related modifications to the placement cost.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Incentive {
    /// Description of the incentive.
    #[serde(rename = "description")]
    pub description: String,
    /// Target of the incentive. Possible values: 'Placement Services', 'Fulfillment Fee Discount'.
    #[serde(rename = "target")]
    pub target: String,
    /// Type of incentive. Possible values: `FEE`, `DISCOUNT`.
    #[serde(rename = "type")]
    pub r#type: String,
    #[serde(rename = "value")]
    pub value: Box<models::fulfillment_inbound_2024_03_20::Currency>,
}

impl Incentive {
    /// Contains details about cost related modifications to the placement cost.
    pub fn new(description: String, target: String, r#type: String, value: models::fulfillment_inbound_2024_03_20::Currency) -> Incentive {
        Incentive {
            description,
            target,
            r#type,
            value: Box::new(value),
        }
    }
}