amazon_spapi/models/finances_v0/
charge_instrument.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/// ChargeInstrument : A payment instrument.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChargeInstrument {
17    /// A short description of the charge instrument.
18    #[serde(rename = "Description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    /// The account tail (trailing digits) of the charge instrument.
21    #[serde(rename = "Tail", skip_serializing_if = "Option::is_none")]
22    pub tail: Option<String>,
23    #[serde(rename = "Amount", skip_serializing_if = "Option::is_none")]
24    pub amount: Option<Box<models::finances_v0::Currency>>,
25}
26
27impl ChargeInstrument {
28    /// A payment instrument.
29    pub fn new() -> ChargeInstrument {
30        ChargeInstrument {
31            description: None,
32            tail: None,
33            amount: None,
34        }
35    }
36}
37