-
Notifications
You must be signed in to change notification settings - Fork 566
/
Cardholder.cs
110 lines (93 loc) · 3.63 KB
/
Cardholder.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
namespace Stripe.Issuing
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class Cardholder : StripeEntity<Cardholder>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// String representing the object’s type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
public string Object { get; set; }
[Obsolete("Use SpendingControls instead.")]
[JsonProperty("authorization_controls")]
public CardholderAuthorizationControls AuthorizationControls { get; set; }
/// <summary>
/// The cardholder’s billing address.
/// </summary>
[JsonProperty("billing")]
public Billing Billing { get; set; }
/// <summary>
/// Additional information about a business entity cardholder.
/// </summary>
[JsonProperty("company")]
public CardholderCompany Company { get; set; }
/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(DateTimeConverter))]
public DateTime Created { get; set; }
/// <summary>
/// The cardholder’s email address.
/// </summary>
[JsonProperty("email")]
public string Email { get; set; }
/// <summary>
/// Additional information about an individual cardholder.
/// </summary>
[JsonProperty("individual")]
public CardholderIndividual Individual { get; set; }
[Obsolete]
[JsonProperty("is_default")]
public bool IsDefault { get; set; }
/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value
/// <c>false</c> if the object exists in test mode.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }
/// <summary>
/// A set of key/value pairs that you can attach to a subscription object.
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
/// <summary>
/// The cardholder’s name. This will be printed on cards issued to them.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }
/// <summary>
/// The cardholder’s phone number.
/// </summary>
[JsonProperty("phone_number")]
public string PhoneNumber { get; set; }
/// <summary>
/// Information about verification requirements for the cardholder, including what information needs to be collected.
/// </summary>
[JsonProperty("requirements")]
public CardholderRequirements Requirements { get; set; }
/// <summary>
/// Spending rules that give you control over how your cardholders can make charges.
/// </summary>
[JsonProperty("spending_controls")]
public CardholderSpendingControls SpendingControls { get; set; }
/// <summary>
/// One of <c>active</c>, <c>inactive</c>, or <c>blocked</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
/// <summary>
/// One of <c>individual</c> or <c>business_entity</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
}
}