Skip to content

Commit 0fcb65a

Browse files
authored
Merge pull request #2018 from stripe/remi-add-issuing-balance
Add support for `Issuing` on `Balance`
2 parents 844ea6a + 68ac399 commit 0fcb65a

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

src/Stripe.net/Entities/Balance/Balance.cs

+23
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,41 @@ namespace Stripe
55

66
public class Balance : StripeEntity<Balance>, IHasObject
77
{
8+
/// <summary>
9+
/// String representing the object’s type. Objects of the same type share the same value.
10+
/// </summary>
811
[JsonProperty("object")]
912
public string Object { get; set; }
1013

14+
/// <summary>
15+
/// Funds that are available to be transferred or paid out, whether automatically by Stripe
16+
/// or explicitly via the Transfers API or Payouts API.
17+
/// </summary>
1118
[JsonProperty("available")]
1219
public List<BalanceAmount> Available { get; set; }
1320

21+
/// <summary>
22+
/// Funds held due to negative balances on connected Custom accounts.
23+
/// </summary>
1424
[JsonProperty("connect_reserved")]
1525
public List<BalanceAmount> ConnectReserved { get; set; }
1626

27+
/// <summary>
28+
/// Funds that can be spent on your cards issued via Issuing.
29+
/// </summary>
30+
[JsonProperty("issuing")]
31+
public BalanceDetails Issuing { get; set; }
32+
33+
/// <summary>
34+
/// Has the value <c>true</c> if the object exists in live mode or the value
35+
/// <c>false</c> if the object exists in test mode.
36+
/// </summary>
1737
[JsonProperty("livemode")]
1838
public bool Livemode { get; set; }
1939

40+
/// <summary>
41+
/// Funds that are not yet available in the balance, due to the 7-day rolling pay cycle.
42+
/// </summary>
2043
[JsonProperty("pending")]
2144
public List<BalanceAmount> Pending { get; set; }
2245
}

src/Stripe.net/Entities/Balance/BalanceAmount.cs

+9
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ namespace Stripe
55

66
public class BalanceAmount : StripeEntity<BalanceAmount>
77
{
8+
/// <summary>
9+
/// Balance amount.
10+
/// </summary>
811
[JsonProperty("amount")]
912
public long Amount { get; set; }
1013

14+
/// <summary>
15+
/// Three-letter ISO currency code, in lowercase. Must be a supported currency.
16+
/// </summary>
1117
[JsonProperty("currency")]
1218
public string Currency { get; set; }
1319

20+
/// <summary>
21+
/// Breakdown of balance by source types.
22+
/// </summary>
1423
[JsonProperty("source_types")]
1524
public Dictionary<string, long> SourceTypes { get; set; }
1625
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace Stripe
2+
{
3+
using System.Collections.Generic;
4+
using Newtonsoft.Json;
5+
6+
public class BalanceDetails : StripeEntity<BalanceDetails>
7+
{
8+
/// <summary>
9+
/// Funds that are available for use.
10+
/// </summary>
11+
[JsonProperty("available")]
12+
public List<BalanceAmount> Available { get; set; }
13+
}
14+
}

0 commit comments

Comments
 (0)