amazon_spapi/models/easy_ship_2022_03_23/invoice_data.rs
1/*
2 * Selling Partner API for Easy Ship
3 *
4 * Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
5 *
6 * The version of the OpenAPI document: 2022-03-23
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InvoiceData : Invoice number and date.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InvoiceData {
17 /// A string of up to 255 characters.
18 #[serde(rename = "invoiceNumber")]
19 pub invoice_number: String,
20 /// A datetime value in ISO 8601 format.
21 #[serde(rename = "invoiceDate", skip_serializing_if = "Option::is_none")]
22 pub invoice_date: Option<String>,
23}
24
25impl InvoiceData {
26 /// Invoice number and date.
27 pub fn new(invoice_number: String) -> InvoiceData {
28 InvoiceData {
29 invoice_number,
30 invoice_date: None,
31 }
32 }
33}
34