amazon_spapi/models/finances_v0/charge_refund_transaction.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/// ChargeRefundTransaction : The charge refund transaction.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChargeRefundTransaction {
17 #[serde(rename = "ChargeAmount", skip_serializing_if = "Option::is_none")]
18 pub charge_amount: Option<Box<models::finances_v0::Currency>>,
19 /// The type of charge.
20 #[serde(rename = "ChargeType", skip_serializing_if = "Option::is_none")]
21 pub charge_type: Option<String>,
22}
23
24impl ChargeRefundTransaction {
25 /// The charge refund transaction.
26 pub fn new() -> ChargeRefundTransaction {
27 ChargeRefundTransaction {
28 charge_amount: None,
29 charge_type: None,
30 }
31 }
32}
33