amazon_spapi/models/finances_v0/value_added_service_charge_event.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/// ValueAddedServiceChargeEvent : An event related to a value added service charge.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValueAddedServiceChargeEvent {
17 /// Indicates the type of transaction. Example: 'Other Support Service fees'
18 #[serde(rename = "TransactionType", skip_serializing_if = "Option::is_none")]
19 pub transaction_type: Option<String>,
20 /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21 #[serde(rename = "PostedDate", skip_serializing_if = "Option::is_none")]
22 pub posted_date: Option<String>,
23 /// A short description of the service charge event.
24 #[serde(rename = "Description", skip_serializing_if = "Option::is_none")]
25 pub description: Option<String>,
26 #[serde(rename = "TransactionAmount", skip_serializing_if = "Option::is_none")]
27 pub transaction_amount: Option<Box<models::finances_v0::Currency>>,
28}
29
30impl ValueAddedServiceChargeEvent {
31 /// An event related to a value added service charge.
32 pub fn new() -> ValueAddedServiceChargeEvent {
33 ValueAddedServiceChargeEvent {
34 transaction_type: None,
35 posted_date: None,
36 description: None,
37 transaction_amount: None,
38 }
39 }
40}
41