-
Notifications
You must be signed in to change notification settings - Fork 573
/
Copy pathDispute.cs
61 lines (53 loc) · 1.96 KB
/
Dispute.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
namespace Stripe.Issuing
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class Dispute : StripeEntity<Dispute>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// String representing the object’s type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
public string Object { get; set; }
/// <summary>
/// List of balance transactions associated with this dispute.
/// </summary>
[JsonProperty("balance_transactions")]
public List<BalanceTransaction> BalanceTransactions { get; set; }
/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value
/// <c>false</c> if the object exists in test mode.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }
#region Expandable Transaction
/// <summary>
/// ID of the transaction being disputed.
/// </summary>
[JsonIgnore]
public string TransactionId
{
get => this.InternalTransaction?.Id;
set => this.InternalTransaction = SetExpandableFieldId(value, this.InternalTransaction);
}
/// <summary>
/// The transaction being disputed.
/// </summary>
[JsonIgnore]
public Transaction Transaction
{
get => this.InternalTransaction?.ExpandedObject;
set => this.InternalTransaction = SetExpandableFieldObject(value, this.InternalTransaction);
}
[JsonProperty("transaction")]
[JsonConverter(typeof(ExpandableFieldConverter<Transaction>))]
internal ExpandableField<Transaction> InternalTransaction { get; set; }
#endregion
}
}