amazon_spapi/models/shipment_invoicing_v0/money.rs
1/*
2 * Selling Partner API for Shipment Invoicing
3 *
4 * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
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/// Money : The currency type and amount.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Money {
17 /// Three-digit currency code in ISO 4217 format.
18 #[serde(rename = "CurrencyCode", skip_serializing_if = "Option::is_none")]
19 pub currency_code: Option<String>,
20 /// The currency amount.
21 #[serde(rename = "Amount", skip_serializing_if = "Option::is_none")]
22 pub amount: Option<String>,
23}
24
25impl Money {
26 /// The currency type and amount.
27 pub fn new() -> Money {
28 Money {
29 currency_code: None,
30 amount: None,
31 }
32 }
33}
34