amazon_spapi/models/solicitations/get_solicitation_action_response.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/// GetSolicitationActionResponse : Describes a solicitation action that can be taken for an order. Provides a JSON Hypertext Application Language (HAL) link to the JSON schema document that describes the expected input.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetSolicitationActionResponse {
17 #[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
18 pub _links: Option<Box<models::solicitations::GetSolicitationActionResponseLinks>>,
19 #[serde(rename = "_embedded", skip_serializing_if = "Option::is_none")]
20 pub _embedded: Option<Box<models::solicitations::GetSolicitationActionResponseEmbedded>>,
21 #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
22 pub payload: Option<Box<models::solicitations::SolicitationsAction>>,
23 /// A list of error responses returned when a request is unsuccessful.
24 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
25 pub errors: Option<Vec<models::solicitations::Error>>,
26}
27
28impl GetSolicitationActionResponse {
29 /// Describes a solicitation action that can be taken for an order. Provides a JSON Hypertext Application Language (HAL) link to the JSON schema document that describes the expected input.
30 pub fn new() -> GetSolicitationActionResponse {
31 GetSolicitationActionResponse {
32 _links: None,
33 _embedded: None,
34 payload: None,
35 errors: None,
36 }
37 }
38}
39