/*
* Selling Partner APIs for Fulfillment Outbound
*
* The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
*
* The version of the OpenAPI document: 2020-07-01
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// DeliveryDocument : A delivery document for a package.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeliveryDocument {
/// The delivery document type. Values are `SIGNATURE` and `DELIVERY_IMAGE`.
#[serde(rename = "documentType")]
pub document_type: String,
/// A URL that you can use to download the document. This URL has a `Content-Type` header. Note that the URL expires after one hour. To get a new URL, you must call the API again.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
impl DeliveryDocument {
/// A delivery document for a package.
pub fn new(document_type: String) -> DeliveryDocument {
DeliveryDocument {
document_type,
url: None,
}
}
}