amazon_spapi/models/messaging/
create_digital_access_key_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/// CreateDigitalAccessKeyRequest : The request schema for the `createDigitalAccessKey` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateDigitalAccessKeyRequest {
17    /// The text that is sent to the buyer. Only links that are related to the digital access key are allowed. Do not include HTML or email addresses. The text must be written in the buyer's preferred language, which you can retrieve from the `GetAttributes` operation.
18    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
19    pub text: Option<String>,
20    /// Attachments that you want to include in the message to the buyer.
21    #[serde(rename = "attachments", skip_serializing_if = "Option::is_none")]
22    pub attachments: Option<Vec<models::messaging::Attachment>>,
23}
24
25impl CreateDigitalAccessKeyRequest {
26    /// The request schema for the `createDigitalAccessKey` operation.
27    pub fn new() -> CreateDigitalAccessKeyRequest {
28        CreateDigitalAccessKeyRequest {
29            text: None,
30            attachments: None,
31        }
32    }
33}
34