amazon_spapi/models/orders_v0/update_verification_status_request_body.rs
1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UpdateVerificationStatusRequestBody : The updated values of the `VerificationStatus` field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateVerificationStatusRequestBody {
17 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
18 pub status: Option<models::orders_v0::VerificationStatus>,
19 /// The identifier of the order's regulated information reviewer.
20 #[serde(rename = "externalReviewerId")]
21 pub external_reviewer_id: String,
22 /// The unique identifier of the rejection reason used for rejecting the order's regulated information. Only required if the new status is rejected.
23 #[serde(rename = "rejectionReasonId", skip_serializing_if = "Option::is_none")]
24 pub rejection_reason_id: Option<String>,
25 #[serde(rename = "verificationDetails", skip_serializing_if = "Option::is_none")]
26 pub verification_details: Option<Box<models::orders_v0::VerificationDetails>>,
27}
28
29impl UpdateVerificationStatusRequestBody {
30 /// The updated values of the `VerificationStatus` field.
31 pub fn new(external_reviewer_id: String) -> UpdateVerificationStatusRequestBody {
32 UpdateVerificationStatusRequestBody {
33 status: None,
34 external_reviewer_id,
35 rejection_reason_id: None,
36 verification_details: None,
37 }
38 }
39}
40