amazon_spapi/models/merchant_fulfillment_v0/
file_contents.rs

1/*
2 * Selling Partner API for Merchant Fulfillment
3 *
4 * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FileContents : The document data and checksum.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FileContents {
17    /// Data for printing labels encoded into a Base64, GZip-compressed string.
18    #[serde(rename = "Contents")]
19    pub contents: String,
20    #[serde(rename = "FileType")]
21    pub file_type: models::merchant_fulfillment_v0::FileType,
22    /// An MD5 hash to validate the PDF document data, in the form of a Base64 string.
23    #[serde(rename = "Checksum")]
24    pub checksum: String,
25}
26
27impl FileContents {
28    /// The document data and checksum.
29    pub fn new(contents: String, file_type: models::merchant_fulfillment_v0::FileType, checksum: String) -> FileContents {
30        FileContents {
31            contents,
32            file_type,
33            checksum,
34        }
35    }
36}
37