Skip to main content

amazon_spapi/models/finances_v0/
charge_refund_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/// ChargeRefundEvent : An event related to charge refund.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChargeRefundEvent {
17    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
18    #[serde(rename = "PostedDate", skip_serializing_if = "Option::is_none")]
19    pub posted_date: Option<String>,
20    /// The reason given for a charge refund.  Example: `SubscriptionFeeCorrection`
21    #[serde(rename = "ReasonCode", skip_serializing_if = "Option::is_none")]
22    pub reason_code: Option<String>,
23    /// A description of the Reason Code.   Example: `SubscriptionFeeCorrection`
24    #[serde(rename = "ReasonCodeDescription", skip_serializing_if = "Option::is_none")]
25    pub reason_code_description: Option<String>,
26    /// A list of `ChargeRefund` transactions
27    #[serde(rename = "ChargeRefundTransactions", skip_serializing_if = "Option::is_none")]
28    pub charge_refund_transactions: Option<Vec<models::finances_v0::ChargeRefundTransaction>>,
29}
30
31impl ChargeRefundEvent {
32    /// An event related to charge refund.
33    pub fn new() -> ChargeRefundEvent {
34        ChargeRefundEvent {
35            posted_date: None,
36            reason_code: None,
37            reason_code_description: None,
38            charge_refund_transactions: None,
39        }
40    }
41}
42