Skip to content

Commit ffb99cb

Browse files
committed
Codegen for openapi v154
1 parent a6f4dac commit ffb99cb

19 files changed

+246
-0
lines changed

src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs

+6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ public class OutboundTransfer : StripeEntity<OutboundTransfer>, IHasId, IHasMeta
109109
[JsonProperty("metadata")]
110110
public Dictionary<string, string> Metadata { get; set; }
111111

112+
/// <summary>
113+
/// Details about the network used for the OutboundTransfer.
114+
/// </summary>
115+
[JsonProperty("network_details")]
116+
public OutboundTransferNetworkDetails NetworkDetails { get; set; }
117+
112118
/// <summary>
113119
/// Details about a returned OutboundTransfer. Only set when the status is <c>returned</c>.
114120
/// </summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class OutboundTransferNetworkDetails : StripeEntity<OutboundTransferNetworkDetails>
7+
{
8+
/// <summary>
9+
/// Details about an ACH transaction.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public OutboundTransferNetworkDetailsAch Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the OutboundTransfer.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class OutboundTransferNetworkDetailsAch : StripeEntity<OutboundTransferNetworkDetailsAch>
7+
{
8+
/// <summary>
9+
/// ACH Addenda record.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}

src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ public class ReceivedCredit : StripeEntity<ReceivedCredit>, IHasId, IHasObject
8585
[JsonProperty("network")]
8686
public string Network { get; set; }
8787

88+
/// <summary>
89+
/// Details specific to the money movement rails.
90+
/// </summary>
91+
[JsonProperty("network_details")]
92+
public ReceivedCreditNetworkDetails NetworkDetails { get; set; }
93+
8894
/// <summary>
8995
/// Status of the ReceivedCredit. ReceivedCredits are created either <c>succeeded</c>
9096
/// (approved) or <c>failed</c> (declined). If a ReceivedCredit is declined, the failure
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedCreditNetworkDetails : StripeEntity<ReceivedCreditNetworkDetails>
7+
{
8+
/// <summary>
9+
/// Details about an ACH transaction.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public ReceivedCreditNetworkDetailsAch Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the ReceivedCredit.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedCreditNetworkDetailsAch : StripeEntity<ReceivedCreditNetworkDetailsAch>
7+
{
8+
/// <summary>
9+
/// ACH Addenda record.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}

src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ public class ReceivedDebit : StripeEntity<ReceivedDebit>, IHasId, IHasObject
8686
[JsonProperty("network")]
8787
public string Network { get; set; }
8888

89+
/// <summary>
90+
/// Details specific to the money movement rails.
91+
/// </summary>
92+
[JsonProperty("network_details")]
93+
public ReceivedDebitNetworkDetails NetworkDetails { get; set; }
94+
8995
/// <summary>
9096
/// Status of the ReceivedDebit. ReceivedDebits are created with a status of either
9197
/// <c>succeeded</c> (approved) or <c>failed</c> (declined). The failure reason can be found

src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebitLinkedFlows.cs

+6
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ public class ReceivedDebitLinkedFlows : StripeEntity<ReceivedDebitLinkedFlows>
2525
/// </summary>
2626
[JsonProperty("issuing_transaction")]
2727
public string IssuingTransaction { get; set; }
28+
29+
/// <summary>
30+
/// The ReceivedCredit that Capital withheld from.
31+
/// </summary>
32+
[JsonProperty("received_credit_capital_withholding")]
33+
public string ReceivedCreditCapitalWithholding { get; set; }
2834
}
2935
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedDebitNetworkDetails : StripeEntity<ReceivedDebitNetworkDetails>
7+
{
8+
/// <summary>
9+
/// Details about an ACH transaction.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public ReceivedDebitNetworkDetailsAch Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the ReceivedDebit.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedDebitNetworkDetailsAch : StripeEntity<ReceivedDebitNetworkDetailsAch>
7+
{
8+
/// <summary>
9+
/// ACH Addenda record.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}

src/Stripe.net/Services/TestHelpers/Treasury/ReceivedCredits/ReceivedCreditCreateOptions.cs

+6
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,11 @@ public class ReceivedCreditCreateOptions : BaseOptions
4343
/// </summary>
4444
[JsonProperty("network")]
4545
public string Network { get; set; }
46+
47+
/// <summary>
48+
/// Details about the network used for the ReceivedCredit.
49+
/// </summary>
50+
[JsonProperty("network_details")]
51+
public ReceivedCreditNetworkDetailsOptions NetworkDetails { get; set; }
4652
}
4753
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.TestHelpers.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedCreditNetworkDetailsAchOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// ACH Addenda record.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.TestHelpers.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedCreditNetworkDetailsOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Optional fields for <c>ach</c>.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public ReceivedCreditNetworkDetailsAchOptions Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the ReceivedCredit.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}

src/Stripe.net/Services/TestHelpers/Treasury/ReceivedDebits/ReceivedDebitCreateOptions.cs

+6
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,11 @@ public class ReceivedDebitCreateOptions : BaseOptions
4242
/// </summary>
4343
[JsonProperty("network")]
4444
public string Network { get; set; }
45+
46+
/// <summary>
47+
/// Details about the network used for the ReceivedDebit.
48+
/// </summary>
49+
[JsonProperty("network_details")]
50+
public ReceivedDebitNetworkDetailsOptions NetworkDetails { get; set; }
4551
}
4652
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.TestHelpers.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedDebitNetworkDetailsAchOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Addenda record data associated with this ReceivedDebit.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.TestHelpers.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ReceivedDebitNetworkDetailsOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Optional fields for <c>ach</c>.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public ReceivedDebitNetworkDetailsAchOptions Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the ReceivedDebit.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}

src/Stripe.net/Services/Treasury/OutboundTransfers/OutboundTransferCreateOptions.cs

+6
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata
5353
[JsonProperty("metadata")]
5454
public Dictionary<string, string> Metadata { get; set; }
5555

56+
/// <summary>
57+
/// Details about the network used for the OutboundTransfer.
58+
/// </summary>
59+
[JsonProperty("network_details")]
60+
public OutboundTransferNetworkDetailsOptions NetworkDetails { get; set; }
61+
5662
/// <summary>
5763
/// Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10
5864
/// characters for <c>ach</c> transfers or 140 characters for <c>wire</c> transfers. The
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class OutboundTransferNetworkDetailsAchOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Addenda record data associated with this OutboundTransfer.
10+
/// </summary>
11+
[JsonProperty("addenda")]
12+
public string Addenda { get; set; }
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Treasury
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class OutboundTransferNetworkDetailsOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Optional fields for <c>ach</c>.
10+
/// </summary>
11+
[JsonProperty("ach")]
12+
public OutboundTransferNetworkDetailsAchOptions Ach { get; set; }
13+
14+
/// <summary>
15+
/// The type of flow that originated the OutboundTransfer.
16+
/// </summary>
17+
[JsonProperty("type")]
18+
public string Type { get; set; }
19+
}
20+
}

0 commit comments

Comments
 (0)