amazon_spapi/models/services/fulfillment_document.rs
1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FulfillmentDocument : Document that captured during service appointment fulfillment that portrays proof of completion
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FulfillmentDocument {
17 /// The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API.
18 #[serde(rename = "uploadDestinationId", skip_serializing_if = "Option::is_none")]
19 pub upload_destination_id: Option<String>,
20 /// Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit.
21 #[serde(rename = "contentSha256", skip_serializing_if = "Option::is_none")]
22 pub content_sha256: Option<String>,
23}
24
25impl FulfillmentDocument {
26 /// Document that captured during service appointment fulfillment that portrays proof of completion
27 pub fn new() -> FulfillmentDocument {
28 FulfillmentDocument {
29 upload_destination_id: None,
30 content_sha256: None,
31 }
32 }
33}
34