-
Notifications
You must be signed in to change notification settings - Fork 573
/
Copy pathLegalEntityVerification.cs
69 lines (58 loc) · 2.01 KB
/
LegalEntityVerification.cs
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
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class LegalEntityVerification : StripeEntity
{
[JsonProperty("details")]
public string Details { get; set; }
[JsonProperty("details_code")]
public string DetailsCode { get; set; }
#region Expandable Document
/// <summary>
/// (ID of a <see cref="File"/>) A photo (jpg or png) of the front of an identifying
/// document, either a passport or local ID card.
/// <para>Expandable.</para>
/// </summary>
public string DocumentId { get; set; }
/// <summary>
/// (Expanded) A photo (jpg or png) of the front of an identifying document, either a
/// passport or local ID card.
/// </summary>
[JsonIgnore]
public File Document { get; set; }
[JsonProperty("document")]
internal object InternalDocument
{
set
{
StringOrObject<File>.Map(value, s => this.DocumentId = s, o => this.Document = o);
}
}
#endregion
#region Expandable Document Back
/// <summary>
/// (ID of a <see cref="File"/>) A photo (jpg or png) of the back of an identifying
/// document, either a passport or local ID card.
/// <para>Expandable.</para>
/// </summary>
public string DocumentBackId { get; set; }
/// <summary>
/// (Expanded) A photo (jpg or png) of the back of an identifying document, either a
/// passport or local ID card.
/// </summary>
[JsonIgnore]
public File DocumentBack { get; set; }
[JsonProperty("document_back")]
internal object InternalDocumentBack
{
set
{
StringOrObject<File>.Map(value, s => this.DocumentBackId = s, o => this.DocumentBack = o);
}
}
#endregion
[JsonProperty("status")]
public string Status { get; set; }
}
}