1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EsignDocument {
/// CompletedAt is when the document sealed, in unix milliseconds; null until it does.
#[serde(rename = "completedAt", skip_serializing_if = "Option::is_none")]
pub completed_at: Option<i32>,
/// CreatedAt is when the document was uploaded, in unix milliseconds.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// ExternalID is the caller's own identifier for this document, echoed back as it was given; null when none was.
#[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
pub external_id: Option<String>,
/// Fields is every field on the document, ordered by page and then by when it was placed.
#[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
pub fields: Option<Vec<models::EsignField>>,
/// ID is the document id.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Message is the covering message stored with the document; null when none was given. Nothing in this surface sends it.
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// Recipients is everyone on the document, ordered by signing order and then by when they were added — which is also the order a SEQUENTIAL document enforces.
#[serde(rename = "recipients", skip_serializing_if = "Option::is_none")]
pub recipients: Option<Vec<models::EsignRecipient>>,
/// SigningOrder is PARALLEL or SEQUENTIAL, fixed when the document was created.
#[serde(rename = "signingOrder", skip_serializing_if = "Option::is_none")]
pub signing_order: Option<String>,
/// Source is how the document came to exist. It is DOCUMENT for everything this surface creates.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// Status is DRAFT while recipients and fields may still be added, PENDING once it has gone out, then COMPLETED when every signer has finished or REJECTED if any one of them declined.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// Subject is the covering subject line stored with the document; null when none was given.
#[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
pub subject: Option<String>,
/// Title is the document's name, and the stem of the download filename.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// UpdatedAt is when the document last changed, in unix milliseconds.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<i32>,
}
impl EsignDocument {
pub fn new() -> EsignDocument {
EsignDocument {
completed_at: None,
created_at: None,
external_id: None,
fields: None,
id: None,
message: None,
recipients: None,
signing_order: None,
source: None,
status: None,
subject: None,
title: None,
updated_at: None,
}
}
}