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
use serde::{Serialize, Deserialize};
/**The type of document.
`DOCUMENT_TYPE_PAYSTUB`: A paystub.
`DOCUMENT_TYPE_BANK_STATEMENT`: A bank statement.
`DOCUMENT_TYPE_US_TAX_W2`: A W-2 wage and tax statement provided by a US employer reflecting wages earned by the employee.
`DOCUMENT_TYPE_US_MILITARY_ERAS`: An electronic Retirement Account Statement (eRAS) issued by the US military.
`DOCUMENT_TYPE_US_MILITARY_LES`: A Leave and Earnings Statement (LES) issued by the US military.
`DOCUMENT_TYPE_US_MILITARY_CLES`: A Civilian Leave and Earnings Statement (CLES) issued by the US military.
`DOCUMENT_TYPE_GIG`: Used to indicate that the income is related to gig work. Does not necessarily correspond to a specific document type.
`DOCUMENT_TYPE_NONE`: Used to indicate that there is no underlying document for the data.
`DOCUMENT_TYPE_PLAID_GENERATED_PAYSTUB_PDF`: Used to indicate that the PDF for the paystub was generated by Plaid.
`UNKNOWN`: Document type could not be determined.*/
#[derive(Debug, Serialize, Deserialize, Clone)]
pub enum DocType {
#[serde(rename = "UNKNOWN")]
Unknown,
#[serde(rename = "DOCUMENT_TYPE_PAYSTUB")]
DocumentTypePaystub,
#[serde(rename = "DOCUMENT_TYPE_BANK_STATEMENT")]
DocumentTypeBankStatement,
#[serde(rename = "DOCUMENT_TYPE_US_TAX_W2")]
DocumentTypeUsTaxW2,
#[serde(rename = "DOCUMENT_TYPE_US_MILITARY_ERAS")]
DocumentTypeUsMilitaryEras,
#[serde(rename = "DOCUMENT_TYPE_US_MILITARY_LES")]
DocumentTypeUsMilitaryLes,
#[serde(rename = "DOCUMENT_TYPE_US_MILITARY_CLES")]
DocumentTypeUsMilitaryCles,
#[serde(rename = "DOCUMENT_TYPE_GIG")]
DocumentTypeGig,
#[serde(rename = "DOCUMENT_TYPE_NONE")]
DocumentTypeNone,
#[serde(rename = "DOCUMENT_TYPE_US_TAX_1099_MISC")]
DocumentTypeUsTax1099Misc,
#[serde(rename = "DOCUMENT_TYPE_US_TAX_1099_K")]
DocumentTypeUsTax1099K,
#[serde(rename = "DOCUMENT_TYPE_PLAID_GENERATED_PAYSTUB_PDF")]
DocumentTypePlaidGeneratedPaystubPdf,
}