amazon_spapi/models/finances_v0/fee_component.rs
1/*
2 * Selling Partner API for Finances
3 *
4 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
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/// FeeComponent : A fee associated with the event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FeeComponent {
17 /// The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central.
18 #[serde(rename = "FeeType", skip_serializing_if = "Option::is_none")]
19 pub fee_type: Option<String>,
20 #[serde(rename = "FeeAmount", skip_serializing_if = "Option::is_none")]
21 pub fee_amount: Option<Box<models::finances_v0::Currency>>,
22}
23
24impl FeeComponent {
25 /// A fee associated with the event.
26 pub fn new() -> FeeComponent {
27 FeeComponent {
28 fee_type: None,
29 fee_amount: None,
30 }
31 }
32}
33