amazon_spapi/models/shipping_v2/invoice_details.rs
1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InvoiceDetails : The invoice details for charges associated with the goods in the package. Only applies to certain regions.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InvoiceDetails {
17 /// The invoice number of the item.
18 #[serde(rename = "invoiceNumber", skip_serializing_if = "Option::is_none")]
19 pub invoice_number: Option<String>,
20 /// The invoice date of the item in ISO 8061 format.
21 #[serde(rename = "invoiceDate", skip_serializing_if = "Option::is_none")]
22 pub invoice_date: Option<String>,
23}
24
25impl InvoiceDetails {
26 /// The invoice details for charges associated with the goods in the package. Only applies to certain regions.
27 pub fn new() -> InvoiceDetails {
28 InvoiceDetails {
29 invoice_number: None,
30 invoice_date: None,
31 }
32 }
33}
34