-
Notifications
You must be signed in to change notification settings - Fork 573
/
Copy pathBankAccount.cs
84 lines (65 loc) · 2.21 KB
/
BankAccount.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
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class BankAccount : StripeEntityWithId, ISupportMetadata
{
[JsonProperty("object")]
public string Object { get; set; }
#region Expandable Account
public string AccountId { get; set; }
[JsonIgnore]
public Account Account { get; set; }
[JsonProperty("account")]
internal object InternalAccount
{
set
{
StringOrObject<Account>.Map(value, s => this.AccountId = s, o => this.Account = o);
}
}
#endregion
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }
[JsonProperty("account_holder_type")]
public string AccountHolderType { get; set; }
[JsonProperty("bank_name")]
public string BankName { 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 Customer Customer { get; set; }
[JsonProperty("customer")]
internal object InternalCustomer
{
set
{
StringOrObject<Customer>.Map(value, s => this.CustomerId = s, o => this.Customer = o);
}
}
#endregion
[JsonProperty("default_for_currency")]
public bool DefaultForCurrency { get; set; }
/// <summary>
/// Whether this object is deleted or not.
/// </summary>
[JsonProperty("deleted")]
public bool Deleted { get; set; }
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
[JsonProperty("last4")]
public string Last4 { get; set; }
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
[JsonProperty("routing_number")]
public string RoutingNumber { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
}
}