Skip to content

Commit 7415762

Browse files
Add ReportingCategory to BalanceTransaction
1 parent 0dba3ac commit 7415762

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs

+59
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,79 @@ namespace Stripe
77

88
public class BalanceTransaction : StripeEntity<BalanceTransaction>, IHasId, IHasObject
99
{
10+
/// <summary>
11+
/// Unique identifier for the object.
12+
/// </summary>
1013
[JsonProperty("id")]
1114
public string Id { get; set; }
1215

16+
/// <summary>
17+
/// String representing the object’s type. Objects of the same type share the same value.
18+
/// </summary>
1319
[JsonProperty("object")]
1420
public string Object { get; set; }
1521

22+
/// <summary>
23+
/// Gross amount of the transaction, in cents.
24+
/// </summary>
1625
[JsonProperty("amount")]
1726
public long Amount { get; set; }
1827

28+
/// <summary>
29+
/// The date the transaction’s net funds will become available in the Stripe balance.
30+
/// </summary>
1931
[JsonProperty("available_on")]
2032
[JsonConverter(typeof(DateTimeConverter))]
2133
public DateTime AvailableOn { get; set; }
2234

35+
/// <summary>
36+
/// Time at which the object was created. Measured in seconds since the Unix epoch.
37+
/// </summary>
2338
[JsonProperty("created")]
2439
[JsonConverter(typeof(DateTimeConverter))]
2540
public DateTime Created { get; set; }
2641

42+
/// <summary>
43+
/// Three-letter ISO currency code, in lowercase.
44+
/// </summary>
2745
[JsonProperty("currency")]
2846
public string Currency { get; set; }
2947

48+
/// <summary>
49+
/// An arbitrary string attached to the object. Often useful for displaying to users.
50+
/// </summary>
3051
[JsonProperty("description")]
3152
public string Description { get; set; }
3253

3354
[JsonProperty("exchange_rate")]
3455
public decimal? ExchangeRate { get; set; }
3556

57+
/// <summary>
58+
/// Fees (in cents) paid for this transaction.
59+
/// </summary>
3660
[JsonProperty("fee")]
3761
public long Fee { get; set; }
3862

63+
/// <summary>
64+
/// Detailed breakdown of fees (in cents) paid for this transaction.
65+
/// </summary>
3966
[JsonProperty("fee_details")]
4067
public List<Fee> FeeDetails { get; set; }
4168

69+
/// <summary>
70+
/// Net amount of the transaction, in cents.
71+
/// </summary>
4272
[JsonProperty("net")]
4373
public long Net { get; set; }
4474

75+
[JsonProperty("reporting_category")]
76+
public string ReportingCategory { get; set; }
77+
4578
#region Expandable Source
79+
80+
/// <summary>
81+
/// The ID of the Stripe object to which this transaction is related.
82+
/// </summary>
4683
[JsonIgnore]
4784
public string SourceId
4885
{
@@ -62,9 +99,31 @@ public IBalanceTransactionSource Source
6299
internal ExpandableField<IBalanceTransactionSource> InternalSource { get; set; }
63100
#endregion
64101

102+
/// <summary>
103+
/// If the transaction’s net funds are available in the Stripe balance
104+
/// yet. Either <c>available</c> or <c>pending</c>.
105+
/// </summary>
65106
[JsonProperty("status")]
66107
public string Status { get; set; }
67108

109+
/// <summary>
110+
/// Transaction type: <c>adjustment</c>, <c>advance</c>,
111+
/// <c>advance_funding</c>, <c>application_fee</c>,
112+
/// <c>application_fee_refund</c>, <c>charge</c>,
113+
/// <c>connect_collection_transfer</c>,
114+
/// <c>issuing_authorization_hold</c>,
115+
/// <c>issuing_authorization_release</c>, <c>issuing_transaction</c>,
116+
/// <c>payment</c>, <c>payment_failure_refund</c>,
117+
/// <c>payment_refund</c>, <c>payout</c>, <c>payout_cancel</c>,
118+
/// <c>payout_failure</c>, <c>refund</c>, <c>refund_failure</c>,
119+
/// <c>reserve_transaction</c>, <c>reserved_funds</c>,
120+
/// <c>stripe_fee</c>, <c>stripe_fx_fee</c>, <c>tax_fee</c>,
121+
/// <c>topup</c>, <c>topup_reversal</c>, <c>transfer</c>,
122+
/// <c>transfer_cancel</c>, <c>transfer_failure</c>, or
123+
/// <c>transfer_refund</c>.
124+
/// <a href="https://stripe.com/docs/reports/balance-transaction-types">Learn more</a>
125+
/// about balance transaction types and what they represent.
126+
/// </summary>
68127
[JsonProperty("type")]
69128
public string Type { get; set; }
70129
}

0 commit comments

Comments
 (0)