amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Data Kiosk
 *
 * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
 *
 * The version of the OpenAPI document: 2023-11-15
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// GetDocumentResponse : The response for the `getDocument` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDocumentResponse {
    /// The identifier for the Data Kiosk document. This identifier is unique only in combination with a selling partner account ID.
    #[serde(rename = "documentId")]
    pub document_id: String,
    /// A presigned URL that can be used to retrieve the Data Kiosk document. This URL expires after 5 minutes. If the Data Kiosk document is compressed, the `Content-Encoding` header will indicate the compression algorithm.  **Note:** Most HTTP clients are capable of automatically decompressing downloaded files based on the `Content-Encoding` header.
    #[serde(rename = "documentUrl")]
    pub document_url: String,
}

impl GetDocumentResponse {
    /// The response for the `getDocument` operation.
    pub fn new(document_id: String, document_url: String) -> GetDocumentResponse {
        GetDocumentResponse {
            document_id,
            document_url,
        }
    }
}