Skip to content
Newer
Older
100755 57 lines (55 sloc) 2.31 KB
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
1 /*
2 * Copyright 2011 - 2012 Xamarin, Inc.
3 *
4 * Author(s):
5 * Gonzalo Paniagua Javier (gonzalo@xamarin.com)
6 * Joe Dluzen (jdluzen@gmail.com)
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 using Newtonsoft.Json;
21
22 namespace Xamarin.Payments.Stripe {
23 [JsonObject (MemberSerialization.OptIn)]
c30955c @bryanhelms Support returning multiple cards on customer
bryanhelms authored
24 public class StripeCard : StripeId {
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
25 [JsonProperty (PropertyName = "type")]
26 public string Type { get; set; }
27 [JsonProperty (PropertyName = "country")]
28 public string Country { get; set; }
29 [JsonProperty (PropertyName = "exp_month")]
30 public int ExpirationMonth { get; set; }
31 [JsonProperty (PropertyName = "exp_year")]
32 public int ExpirationYear { get; set; }
33 [JsonProperty (PropertyName = "last4")]
34 public string Last4 { get; set; }
35 [JsonProperty (PropertyName = "cvc_check")]
36 public StripeCvcCheck? CvcCheck { get; set; }
37 [JsonProperty (PropertyName = "address_country")]
511bb28 @lewing Fix the type of the various address fields
lewing authored
38 public string AddressCountry { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
39 [JsonProperty (PropertyName = "address_state")]
511bb28 @lewing Fix the type of the various address fields
lewing authored
40 public string AddressState { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
41 [JsonProperty (PropertyName = "address_zip")]
511bb28 @lewing Fix the type of the various address fields
lewing authored
42 public string AddressZip { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
43 [JsonProperty (PropertyName = "address_line1")]
511bb28 @lewing Fix the type of the various address fields
lewing authored
44 public string AddressLine1 { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
45 [JsonProperty (PropertyName = "address_line2")]
511bb28 @lewing Fix the type of the various address fields
lewing authored
46 public string AddressLine2 { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
47 [JsonProperty (PropertyName = "address_zip_check")]
48 public string AddressZipCheck { get; set; }
49 [JsonProperty (PropertyName = "name")]
50 public string Name { get; set; }
51 [JsonProperty (PropertyName = "fingerprint")]
52 public string Fingerprint { get; set; }
13cf777 @bryanhelms Provide way to delete cards
bryanhelms authored
53 [JsonProperty (PropertyName = "deleted")]
54 public bool Deleted { get; set; }
3c9a8a9 @lewing All null cvccheck values (seen in the wild)
lewing authored
55 }
56 }
Something went wrong with that request. Please try again.