amazon_spapi/models/services/
poa.rs

1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
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/// Poa : Proof of Appointment (POA) details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Poa {
17    #[serde(rename = "appointmentTime", skip_serializing_if = "Option::is_none")]
18    pub appointment_time: Option<Box<models::services::AppointmentTime>>,
19    /// A list of technicians.
20    #[serde(rename = "technicians", skip_serializing_if = "Option::is_none")]
21    pub technicians: Option<Vec<models::services::Technician>>,
22    /// The identifier of the technician who uploaded the POA.
23    #[serde(rename = "uploadingTechnician", skip_serializing_if = "Option::is_none")]
24    pub uploading_technician: Option<String>,
25    /// The date and time when the POA was uploaded in ISO 8601 format.
26    #[serde(rename = "uploadTime", skip_serializing_if = "Option::is_none")]
27    pub upload_time: Option<String>,
28    /// The type of POA uploaded.
29    #[serde(rename = "poaType", skip_serializing_if = "Option::is_none")]
30    pub poa_type: Option<PoaType>,
31}
32
33impl Poa {
34    /// Proof of Appointment (POA) details.
35    pub fn new() -> Poa {
36        Poa {
37            appointment_time: None,
38            technicians: None,
39            uploading_technician: None,
40            upload_time: None,
41            poa_type: None,
42        }
43    }
44}
45/// The type of POA uploaded.
46#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
47pub enum PoaType {
48    #[serde(rename = "NO_SIGNATURE_DUMMY_POS")]
49    NoSignatureDummyPos,
50    #[serde(rename = "CUSTOMER_SIGNATURE")]
51    CustomerSignature,
52    #[serde(rename = "DUMMY_RECEIPT")]
53    DummyReceipt,
54    #[serde(rename = "POA_RECEIPT")]
55    PoaReceipt,
56}
57
58impl Default for PoaType {
59    fn default() -> PoaType {
60        Self::NoSignatureDummyPos
61    }
62}
63