-
Notifications
You must be signed in to change notification settings - Fork 573
/
Copy pathStripeCard.cs
executable file
·142 lines (105 loc) · 3.9 KB
/
StripeCard.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeCard : StripeEntityWithId, ISupportMetadata
{
[JsonProperty("object")]
public string Object { get; set; }
#region Expandable Account
public string AccountId { get; set; }
[JsonIgnore]
public StripeAccount Account { get; set; }
[JsonProperty("account")]
internal object InternalAccount
{
set
{
StringOrObject<StripeAccount>.Map(value, s => AccountId = s, o => Account = o);
}
}
#endregion
[JsonProperty("address_city")]
public string AddressCity { get; set; }
[JsonProperty("address_country")]
public string AddressCountry { get; set; }
[JsonProperty("address_line1")]
public string AddressLine1 { get; set; }
[JsonProperty("address_line1_check")]
public string AddressLine1Check { get; set; }
[JsonProperty("address_line2")]
public string AddressLine2 { get; set; }
[JsonProperty("address_state")]
public string AddressState { get; set; }
[JsonProperty("address_zip")]
public string AddressZip { get; set; }
[JsonProperty("address_zip_check")]
public string AddressZipCheck { get; set; }
[JsonProperty("available_payout_methods")]
public string[] AvailablePayoutMethods { get; set; }
[JsonProperty("brand")]
public string Brand { get; set; }
[JsonProperty("country")]
public string Country { get; set; }
[JsonProperty("currency")]
public string Currency { get; set; }
#region Expandable Customer
public string CustomerId { get; set; }
[JsonIgnore]
public StripeCustomer Customer { get; set; }
[JsonProperty("customer")]
internal object InternalCustomer
{
set
{
StringOrObject<StripeCustomer>.Map(value, s => CustomerId = s, o => Customer = o);
}
}
#endregion
[JsonProperty("cvc_check")]
public string CvcCheck { get; set; }
[JsonProperty("default_for_currency")]
public bool DefaultForCurrency { get; set; }
[JsonProperty("dynamic_last4")]
public string DynamicLast4 { get; set; }
[JsonProperty("exp_month")]
public int ExpirationMonth { get; set; }
[JsonProperty("exp_year")]
public int ExpirationYear { get; set; }
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
[JsonProperty("funding")]
public string Funding { get; set; }
[JsonProperty("last4")]
public string Last4 { get; set; }
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
#region Expandable Recipient
public string RecipientId { get; set; }
[JsonIgnore]
public StripeRecipient Recipient { get; set; }
[JsonProperty("recipient")]
internal object InternalRecipient
{
set
{
StringOrObject<StripeRecipient>.Map(value, s => RecipientId = s, o => Recipient = o);
}
}
#endregion
[JsonProperty("three_d_secure")]
public string ThreeDSecure { get; set; }
[JsonProperty("tokenization_method")]
public string TokenizationMethod { get; set; }
// The properties below are for internal use only and not returned as part of standard API requests.
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("iin")]
public string IIN { get; set; }
[JsonProperty("issuer")]
public string Issuer { get; set; }
}
}