amazon_spapi/models/finances_2024_06_19/
deferred_context.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/// DeferredContext : Additional information related to Deferred transactions.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeferredContext {
17    /// The deferral policy applied to the transaction.  **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
18    #[serde(rename = "deferralReason", skip_serializing_if = "Option::is_none")]
19    pub deferral_reason: Option<String>,
20    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21    #[serde(rename = "maturityDate", skip_serializing_if = "Option::is_none")]
22    pub maturity_date: Option<String>,
23}
24
25impl DeferredContext {
26    /// Additional information related to Deferred transactions.
27    pub fn new() -> DeferredContext {
28        DeferredContext {
29            deferral_reason: None,
30            maturity_date: None,
31        }
32    }
33}
34