amazon_spapi/models/orders_v0/valid_verification_detail.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/// ValidVerificationDetail : The types of verification details that may be provided for the order and the criteria required for when the type of verification detail can be provided. The types of verification details allowed depend on the type of regulated product and will not change order to order.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValidVerificationDetail {
17 /// A supported type of verification detail. The type indicates which verification detail could be shared while updating the regulated order. Valid value: `prescriptionDetail`.
18 #[serde(rename = "VerificationDetailType")]
19 pub verification_detail_type: String,
20 /// A list of valid verification statuses where the associated verification detail type may be provided. For example, if the value of this field is [\"Approved\"], calls to provide the associated verification detail will fail for orders with a `VerificationStatus` of `Pending`, `Rejected`, `Expired`, or `Cancelled`.
21 #[serde(rename = "ValidVerificationStatuses")]
22 pub valid_verification_statuses: Vec<models::orders_v0::VerificationStatus>,
23}
24
25impl ValidVerificationDetail {
26 /// The types of verification details that may be provided for the order and the criteria required for when the type of verification detail can be provided. The types of verification details allowed depend on the type of regulated product and will not change order to order.
27 pub fn new(verification_detail_type: String, valid_verification_statuses: Vec<models::orders_v0::VerificationStatus>) -> ValidVerificationDetail {
28 ValidVerificationDetail {
29 verification_detail_type,
30 valid_verification_statuses,
31 }
32 }
33}
34