Skip to content

Commit 5903b94

Browse files
committed
Add support for ACSS debit
1 parent da4eb43 commit 5903b94

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

src/Stripe.net/Entities/Sources/Source.cs

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public class Source : StripeEntity, IHasId, IHasMetadata, IHasObject, IPaymentSo
117117
[JsonProperty("ach_debit")]
118118
public SourceAchDebit AchDebit { get; set; }
119119

120+
[JsonProperty("acss_debit")]
121+
public SourceAcssDebit AcssDebit { get; set; }
122+
120123
[JsonProperty("alipay")]
121124
public SourceAlipay Alipay { get; set; }
122125

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
namespace Stripe
2+
{
3+
using Newtonsoft.Json;
4+
5+
public class SourceAcssDebit : StripeEntity
6+
{
7+
[JsonProperty("bank_address_city")]
8+
public string BankAddressCity { get; set; }
9+
10+
[JsonProperty("bank_address_line_1")]
11+
public string BankAddressLine1 { get; set; }
12+
13+
[JsonProperty("bank_address_line_2")]
14+
public string BankAddressLine2 { get; set; }
15+
16+
[JsonProperty("bank_address_postal_code")]
17+
public string BankAddressLinePostalCode { get; set; }
18+
19+
[JsonProperty("bank_name")]
20+
public string BankName { get; set; }
21+
22+
[JsonProperty("category")]
23+
public string Category { get; set; }
24+
25+
[JsonProperty("country")]
26+
public string Country { get; set; }
27+
28+
[JsonProperty("fingerprint")]
29+
public string Fingerprint { get; set; }
30+
31+
[JsonProperty("last4")]
32+
public string Last4 { get; set; }
33+
34+
[JsonProperty("routing_number")]
35+
public string RoutingNumber { get; set; }
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace Stripe
2+
{
3+
using Newtonsoft.Json;
4+
5+
public class SourceAcssDebitCreateOptions : INestedOptions
6+
{
7+
[JsonProperty("account_number")]
8+
public string AccountNumber { get; set; }
9+
10+
[JsonProperty("category")]
11+
public string Category { get; set; }
12+
13+
[JsonProperty("routing_number")]
14+
public string RoutingNumber { get; set; }
15+
}
16+
}

src/Stripe.net/Services/Sources/SourceCreateOptions.cs

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public class SourceCreateOptions : BaseOptions
9898
Below we group all Source type specific paramters
9999
*/
100100

101+
[JsonProperty("acss_debit")]
102+
public SourceAcssDebitCreateOptions AcssDebit { get; set; }
103+
101104
[JsonProperty("au_becs_debit")]
102105
public SourceAuBecsDebitCreateOptions AuBecsDebit { get; set; }
103106

0 commit comments

Comments
 (0)