Skip to main content

amazon_spapi/models/finances_2024_06_19/
breakdown.rs

1/*
2 * The 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 or date range without having to wait until a statement period closes.
5 *
6 * The version of the OpenAPI document: 2024-06-19
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Breakdown : Breakdown provides details regarding the money movement under the financial transaction. Breakdowns get categorized further into breakdown types, breakdown amounts, and further breakdowns into a hierarchical structure.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Breakdown {
17    /// The type of charge.
18    #[serde(rename = "breakdownType", skip_serializing_if = "Option::is_none")]
19    pub breakdown_type: Option<String>,
20    #[serde(rename = "breakdownAmount", skip_serializing_if = "Option::is_none")]
21    pub breakdown_amount: Option<Box<models::finances_2024_06_19::Currency>>,
22    /// A list of breakdowns that detail how the total amount is calculated for the transaction.
23    #[serde(rename = "breakdowns", skip_serializing_if = "Option::is_none")]
24    pub breakdowns: Option<Vec<models::finances_2024_06_19::Breakdown>>,
25}
26
27impl Breakdown {
28    /// Breakdown provides details regarding the money movement under the financial transaction. Breakdowns get categorized further into breakdown types, breakdown amounts, and further breakdowns into a hierarchical structure.
29    pub fn new() -> Breakdown {
30        Breakdown {
31            breakdown_type: None,
32            breakdown_amount: None,
33            breakdowns: None,
34        }
35    }
36}
37