amazon_spapi/models/invoices_2024_06_19/export.rs
1/*
2 * The Selling Partner API for Invoices.
3 *
4 * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
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/// Export : Detailed information about the export.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Export {
17 /// When the export generation fails, this attribute contains a description of the error.
18 #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none")]
19 pub error_message: Option<String>,
20 /// The export identifier.
21 #[serde(rename = "exportId", skip_serializing_if = "Option::is_none")]
22 pub export_id: Option<String>,
23 /// The date and time when the export generation finished. Vales are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
24 #[serde(rename = "generateExportFinishedAt", skip_serializing_if = "Option::is_none")]
25 pub generate_export_finished_at: Option<String>,
26 /// The date and time when the export generation started. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
27 #[serde(rename = "generateExportStartedAt", skip_serializing_if = "Option::is_none")]
28 pub generate_export_started_at: Option<String>,
29 /// The identifier for the export documents. To get the information required to retrieve the export document's contents, pass each ID in the `getInvoicesDocument` operation. This list is empty until the status is `DONE`.
30 #[serde(rename = "invoicesDocumentIds", skip_serializing_if = "Option::is_none")]
31 pub invoices_document_ids: Option<Vec<String>>,
32 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
33 pub status: Option<models::invoices_2024_06_19::ExportStatus>,
34}
35
36impl Export {
37 /// Detailed information about the export.
38 pub fn new() -> Export {
39 Export {
40 error_message: None,
41 export_id: None,
42 generate_export_finished_at: None,
43 generate_export_started_at: None,
44 invoices_document_ids: None,
45 status: None,
46 }
47 }
48}
49