amazon_spapi/models/vendor_transaction_status/
get_transaction_response.rs

1/*
2 * Selling Partner API for Retail Procurement Transaction Status
3 *
4 * The Selling Partner API for Retail Procurement Transaction Status provides programmatic access to status information on specific asynchronous POST transactions for vendors.
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/// GetTransactionResponse : The response schema for the getTransaction operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetTransactionResponse {
17    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18    pub payload: Option<Box<models::vendor_transaction_status::TransactionStatus>>,
19    /// A list of error responses returned when a request is unsuccessful.
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<models::vendor_transaction_status::Error>>,
22}
23
24impl GetTransactionResponse {
25    /// The response schema for the getTransaction operation.
26    pub fn new() -> GetTransactionResponse {
27        GetTransactionResponse {
28            payload: None,
29            errors: None,
30        }
31    }
32}
33