Skip to main content

amazon_spapi/models/solicitations/
solicitations_action.rs

1/*
2 * Selling Partner API for Solicitations
3 *
4 * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations 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/// SolicitationsAction : A simple object containing the name of the template.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SolicitationsAction {
17    #[serde(rename = "name")]
18    pub name: String,
19}
20
21impl SolicitationsAction {
22    /// A simple object containing the name of the template.
23    pub fn new(name: String) -> SolicitationsAction {
24        SolicitationsAction {
25            name,
26        }
27    }
28}
29