amazon_spapi/models/messaging/create_warranty_request.rs
1/*
2 * Selling Partner API for Messaging
3 *
4 * With the Messaging API you can build applications that send messages to buyers. You can get a list of message types that are available for an order that you specify, then call an operation that sends a message to the buyer for that order. The Messaging API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
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/// CreateWarrantyRequest : The request schema for the createWarranty operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateWarrantyRequest {
17 /// Attachments to include in the message to the buyer. If any text is included in the attachment, the text must be written in the buyer's language of preference, which can be retrieved from the GetAttributes operation.
18 #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
19 pub attachments: Option<Vec<models::messaging::Attachment>>,
20 /// The start date of the warranty coverage to include in the message to the buyer.
21 #[serde(rename = "coverageStartDate", skip_serializing_if = "Option::is_none")]
22 pub coverage_start_date: Option<String>,
23 /// The end date of the warranty coverage to include in the message to the buyer.
24 #[serde(rename = "coverageEndDate", skip_serializing_if = "Option::is_none")]
25 pub coverage_end_date: Option<String>,
26}
27
28impl CreateWarrantyRequest {
29 /// The request schema for the createWarranty operation.
30 pub fn new() -> CreateWarrantyRequest {
31 CreateWarrantyRequest {
32 attachments: None,
33 coverage_start_date: None,
34 coverage_end_date: None,
35 }
36 }
37}
38