amazon_spapi/models/fulfillment_inbound_2024_03_20/document_download.rs
1/*
2 * The Selling Partner API for FBA inbound operations.
3 *
4 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5 *
6 * The version of the OpenAPI document: 2024-03-20
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DocumentDownload : Resource to download the requested document.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DocumentDownload {
17 /// The type of download. Possible values: `URL`.
18 #[serde(rename = "downloadType")]
19 pub download_type: String,
20 /// The URI's expiration time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) datetime format with pattern `yyyy-MM-ddTHH:mm:ss.sssZ`.
21 #[serde(rename = "expiration", skip_serializing_if = "Option::is_none")]
22 pub expiration: Option<String>,
23 /// Uniform resource identifier to identify where the document is located.
24 #[serde(rename = "uri")]
25 pub uri: String,
26}
27
28impl DocumentDownload {
29 /// Resource to download the requested document.
30 pub fn new(download_type: String, uri: String) -> DocumentDownload {
31 DocumentDownload {
32 download_type,
33 expiration: None,
34 uri,
35 }
36 }
37}
38