amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Invoices.
 *
 * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
 *
 * The version of the OpenAPI document: 2024-06-19
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// InvoicesDocument : An object that contains the `documentId` and an S3 pre-signed URL that you can use to download the specified file.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvoicesDocument {
    /// The identifier of the export document.
    #[serde(rename = "invoicesDocumentId", skip_serializing_if = "Option::is_none")]
    pub invoices_document_id: Option<String>,
    /// A pre-signed URL that you can use to download the invoices document in zip format. This URL expires after 30 seconds.
    #[serde(rename = "invoicesDocumentUrl", skip_serializing_if = "Option::is_none")]
    pub invoices_document_url: Option<String>,
}

impl InvoicesDocument {
    /// An object that contains the `documentId` and an S3 pre-signed URL that you can use to download the specified file.
    pub fn new() -> InvoicesDocument {
        InvoicesDocument {
            invoices_document_id: None,
            invoices_document_url: None,
        }
    }
}