|
| 1 | +namespace Stripe |
| 2 | +{ |
| 3 | + using System; |
| 4 | + using System.Collections.Generic; |
| 5 | + using Newtonsoft.Json; |
| 6 | + using Stripe.Infrastructure; |
| 7 | + |
| 8 | + public class AccountCompanyVerificationDocument : StripeEntity<AccountCompanyVerificationDocument> |
| 9 | + { |
| 10 | + #region Expandable Back |
| 11 | + |
| 12 | + /// <summary> |
| 13 | + /// (ID of a <see cref="File"/>) The back of a document returned by a file upload with a |
| 14 | + /// <c>purpose</c> value of <c>additional_verification</c>. |
| 15 | + /// <para>Expandable.</para> |
| 16 | + /// </summary> |
| 17 | + [JsonIgnore] |
| 18 | + public string BackId |
| 19 | + { |
| 20 | + get => this.InternalBack?.Id; |
| 21 | + set => this.InternalBack = SetExpandableFieldId(value, this.InternalBack); |
| 22 | + } |
| 23 | + |
| 24 | + /// <summary> |
| 25 | + /// (Expanded) The back of a document returned by a file upload with a <c>purpose</c> |
| 26 | + /// value of <c>additional_verification</c>. |
| 27 | + /// </summary> |
| 28 | + [JsonIgnore] |
| 29 | + public File Back |
| 30 | + { |
| 31 | + get => this.InternalBack?.ExpandedObject; |
| 32 | + set => this.InternalBack = SetExpandableFieldObject(value, this.InternalBack); |
| 33 | + } |
| 34 | + |
| 35 | + [JsonProperty("back")] |
| 36 | + [JsonConverter(typeof(ExpandableFieldConverter<File>))] |
| 37 | + internal ExpandableField<File> InternalBack { get; set; } |
| 38 | + #endregion |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// A user-displayable string describing the verification state of this document. |
| 42 | + /// </summary> |
| 43 | + [JsonProperty("details")] |
| 44 | + public string Details { get; set; } |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// A machine-readable code specifying the verification state for this document. One of |
| 48 | + /// <c>document_corrupt</c>, <c>document_failed_copy</c>, <c>document_not_readable</c>, |
| 49 | + /// <c>document_not_uploaded</c>, <c>document_failed_other</c>, <c>document_fraudulent</c>, |
| 50 | + /// <c>document_invalid</c>, <c>document_manipulated</c>, <c>document_too_large</c>, |
| 51 | + /// <c>or document_failed_test_mode</c>. |
| 52 | + /// </summary> |
| 53 | + [JsonProperty("details_code")] |
| 54 | + public string DetailsCode { get; set; } |
| 55 | + |
| 56 | + #region Expandable Front |
| 57 | + |
| 58 | + /// <summary> |
| 59 | + /// (ID of a <see cref="File"/>) The front of a document returned by a file upload with a |
| 60 | + /// <c>purpose</c> value of <c>additional_verification</c>. |
| 61 | + /// <para>Expandable.</para> |
| 62 | + /// </summary> |
| 63 | + [JsonIgnore] |
| 64 | + public string FrontId |
| 65 | + { |
| 66 | + get => this.InternalFront?.Id; |
| 67 | + set => this.InternalFront = SetExpandableFieldId(value, this.InternalFront); |
| 68 | + } |
| 69 | + |
| 70 | + /// <summary> |
| 71 | + /// (Expanded) The front of a document returned by a file upload with a <c>purpose</c> |
| 72 | + /// value of <c>additional_verification</c>. |
| 73 | + /// </summary> |
| 74 | + [JsonIgnore] |
| 75 | + public File Front |
| 76 | + { |
| 77 | + get => this.InternalFront?.ExpandedObject; |
| 78 | + set => this.InternalFront = SetExpandableFieldObject(value, this.InternalFront); |
| 79 | + } |
| 80 | + |
| 81 | + [JsonProperty("front")] |
| 82 | + [JsonConverter(typeof(ExpandableFieldConverter<File>))] |
| 83 | + internal ExpandableField<File> InternalFront { get; set; } |
| 84 | + #endregion |
| 85 | + } |
| 86 | +} |
0 commit comments