From fd3c3d58f2d715a10b6cd1d812961aa36f417e01 Mon Sep 17 00:00:00 2001 From: CJ Avilla Date: Mon, 6 Jan 2020 10:40:31 -0800 Subject: [PATCH] Add ReportingCategory to BalanceTransaction --- .../BalanceTransactions/BalanceTransaction.cs | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index 129eb61460..ac2562ecc2 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs @@ -7,42 +7,87 @@ namespace Stripe public class BalanceTransaction : StripeEntity, IHasId, IHasObject { + /// + /// Unique identifier for the object. + /// [JsonProperty("id")] public string Id { get; set; } + /// + /// String representing the object’s type. Objects of the same type share the same value. + /// [JsonProperty("object")] public string Object { get; set; } + /// + /// Gross amount of the transaction, in cents. + /// [JsonProperty("amount")] public long Amount { get; set; } + /// + /// The date the transaction’s net funds will become available in the Stripe balance. + /// [JsonProperty("available_on")] [JsonConverter(typeof(DateTimeConverter))] public DateTime AvailableOn { get; set; } + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// [JsonProperty("created")] [JsonConverter(typeof(DateTimeConverter))] public DateTime Created { get; set; } + /// + /// Three-letter ISO currency code, in lowercase. + /// [JsonProperty("currency")] public string Currency { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// [JsonProperty("description")] public string Description { get; set; } + /// + /// The exchange rate associated with this transaction. + /// [JsonProperty("exchange_rate")] public decimal? ExchangeRate { get; set; } + /// + /// Fees (in cents) paid for this transaction. + /// [JsonProperty("fee")] public long Fee { get; set; } + /// + /// Detailed breakdown of fees (in cents) paid for this transaction. + /// [JsonProperty("fee_details")] public List FeeDetails { get; set; } + /// + /// Net amount of the transaction, in cents. + /// [JsonProperty("net")] public long Net { get; set; } + /// + /// Learn more + /// about how reporting categories can help you understand + /// balance transactions from an accounting perspective. + /// + [JsonProperty("reporting_category")] + public string ReportingCategory { get; set; } + #region Expandable Source + + /// + /// The ID of the Stripe object to which this transaction is related. + /// [JsonIgnore] public string SourceId { @@ -62,9 +107,18 @@ public IBalanceTransactionSource Source internal ExpandableField InternalSource { get; set; } #endregion + /// + /// If the transaction’s net funds are available in the Stripe balance + /// yet. Either available or pending. + /// [JsonProperty("status")] public string Status { get; set; } + /// + /// Transaction type. + /// Learn more + /// about balance transaction types and what they represent. + /// [JsonProperty("type")] public string Type { get; set; } }