Skip to content

Commit b5dc62f

Browse files
Merge pull request #2289 from stripe/latest-codegen
API Updates
2 parents a05ac99 + 59e5665 commit b5dc62f

9 files changed

+75
-18
lines changed

src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity<ChargePaymentMethodD
99
/// <summary>
1010
/// The customer's bank. Can be one of <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>,
1111
/// <c>handelsbanken</c>, <c>ing</c>, <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>,
12-
/// <c>regiobank</c>, <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
12+
/// <c>regiobank</c>, <c>revolut</c>, <c>sns_bank</c>, <c>triodos_bank</c>, or
13+
/// <c>van_lanschot</c>.
1314
/// One of: <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>,
14-
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>,
15-
/// <c>triodos_bank</c>, or <c>van_lanschot</c>.
15+
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>,
16+
/// <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
1617
/// </summary>
1718
[JsonProperty("bank")]
1819
public string Bank { get; set; }
@@ -21,7 +22,7 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity<ChargePaymentMethodD
2122
/// The Bank Identifier Code of the customer's bank.
2223
/// One of: <c>ABNANL2A</c>, <c>ASNBNL21</c>, <c>BUNQNL2A</c>, <c>FVLBNL22</c>,
2324
/// <c>HANDNL2A</c>, <c>INGBNL2A</c>, <c>KNABNL2H</c>, <c>MOYONL21</c>, <c>RABONL2U</c>,
24-
/// <c>RBRBNL21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
25+
/// <c>RBRBNL21</c>, <c>REVOLT21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
2526
/// </summary>
2627
[JsonProperty("bic")]
2728
public string Bic { get; set; }

src/Stripe.net/Entities/Invoices/Invoice.cs

+37
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,43 @@ public List<Discount> Discounts
499499
[JsonProperty("number")]
500500
public string Number { get; set; }
501501

502+
#region Expandable OnBehalfOf
503+
504+
/// <summary>
505+
/// (ID of the Account)
506+
/// The account (if any) for which the funds of the invoice payment are intended. If set,
507+
/// the invoice will be presented with the branding and support information of the specified
508+
/// account. See the <a href="https://stripe.com/docs/billing/invoices/connect">Invoices
509+
/// with Connect</a> documentation for details.
510+
/// </summary>
511+
[JsonIgnore]
512+
public string OnBehalfOfId
513+
{
514+
get => this.InternalOnBehalfOf?.Id;
515+
set => this.InternalOnBehalfOf = SetExpandableFieldId(value, this.InternalOnBehalfOf);
516+
}
517+
518+
/// <summary>
519+
/// (Expanded)
520+
/// The account (if any) for which the funds of the invoice payment are intended. If set,
521+
/// the invoice will be presented with the branding and support information of the specified
522+
/// account. See the <a href="https://stripe.com/docs/billing/invoices/connect">Invoices
523+
/// with Connect</a> documentation for details.
524+
///
525+
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
526+
/// </summary>
527+
[JsonIgnore]
528+
public Account OnBehalfOf
529+
{
530+
get => this.InternalOnBehalfOf?.ExpandedObject;
531+
set => this.InternalOnBehalfOf = SetExpandableFieldObject(value, this.InternalOnBehalfOf);
532+
}
533+
534+
[JsonProperty("on_behalf_of")]
535+
[JsonConverter(typeof(ExpandableFieldConverter<Account>))]
536+
internal ExpandableField<Account> InternalOnBehalfOf { get; set; }
537+
#endregion
538+
502539
/// <summary>
503540
/// Whether payment was successfully collected for this invoice. An invoice can be paid
504541
/// (most commonly) with a charge or with credit from the customer's account balance.

src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public class PaymentMethodIdeal : StripeEntity<PaymentMethodIdeal>
88
/// <summary>
99
/// The customer's bank, if provided. Can be one of <c>abn_amro</c>, <c>asn_bank</c>,
1010
/// <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>, <c>knab</c>, <c>moneyou</c>,
11-
/// <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>, <c>triodos_bank</c>, or
12-
/// <c>van_lanschot</c>.
11+
/// <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>, <c>sns_bank</c>, <c>triodos_bank</c>,
12+
/// or <c>van_lanschot</c>.
1313
/// One of: <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>,
14-
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>,
15-
/// <c>triodos_bank</c>, or <c>van_lanschot</c>.
14+
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>,
15+
/// <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
1616
/// </summary>
1717
[JsonProperty("bank")]
1818
public string Bank { get; set; }
@@ -21,7 +21,7 @@ public class PaymentMethodIdeal : StripeEntity<PaymentMethodIdeal>
2121
/// The Bank Identifier Code of the customer's bank, if the bank was provided.
2222
/// One of: <c>ABNANL2A</c>, <c>ASNBNL21</c>, <c>BUNQNL2A</c>, <c>FVLBNL22</c>,
2323
/// <c>HANDNL2A</c>, <c>INGBNL2A</c>, <c>KNABNL2H</c>, <c>MOYONL21</c>, <c>RABONL2U</c>,
24-
/// <c>RBRBNL21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
24+
/// <c>RBRBNL21</c>, <c>REVOLT21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
2525
/// </summary>
2626
[JsonProperty("bic")]
2727
public string Bic { get; set; }

src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity<SetupAttemptPa
99
/// <summary>
1010
/// The customer's bank. Can be one of <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>,
1111
/// <c>handelsbanken</c>, <c>ing</c>, <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>,
12-
/// <c>regiobank</c>, <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
12+
/// <c>regiobank</c>, <c>revolut</c>, <c>sns_bank</c>, <c>triodos_bank</c>, or
13+
/// <c>van_lanschot</c>.
1314
/// One of: <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>,
14-
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>,
15-
/// <c>triodos_bank</c>, or <c>van_lanschot</c>.
15+
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>,
16+
/// <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
1617
/// </summary>
1718
[JsonProperty("bank")]
1819
public string Bank { get; set; }
@@ -21,7 +22,7 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity<SetupAttemptPa
2122
/// The Bank Identifier Code of the customer's bank.
2223
/// One of: <c>ABNANL2A</c>, <c>ASNBNL21</c>, <c>BUNQNL2A</c>, <c>FVLBNL22</c>,
2324
/// <c>HANDNL2A</c>, <c>INGBNL2A</c>, <c>KNABNL2H</c>, <c>MOYONL21</c>, <c>RABONL2U</c>,
24-
/// <c>RBRBNL21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
25+
/// <c>RBRBNL21</c>, <c>REVOLT21</c>, <c>SNSBNL2A</c>, or <c>TRIONL2U</c>.
2526
/// </summary>
2627
[JsonProperty("bic")]
2728
public string Bic { get; set; }

src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs

+9
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata
123123
[JsonProperty("metadata")]
124124
public Dictionary<string, string> Metadata { get; set; }
125125

126+
/// <summary>
127+
/// The account (if any) for which the funds of the invoice payment are intended. If set,
128+
/// the invoice will be presented with the branding and support information of the specified
129+
/// account. See the <a href="https://stripe.com/docs/billing/invoices/connect">Invoices
130+
/// with Connect</a> documentation for details.
131+
/// </summary>
132+
[JsonProperty("on_behalf_of")]
133+
public string OnBehalfOf { get; set; }
134+
126135
/// <summary>
127136
/// Configuration settings for the PaymentIntent that is generated when the invoice is
128137
/// finalized.

src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class InvoiceFinalizeOptions : BaseOptions
77
{
88
/// <summary>
99
/// Controls whether Stripe will perform <a
10-
/// href="https://stripe.com/docs/billing/invoices/workflow/#auto_advance">automatic
10+
/// href="https://stripe.com/docs/billing/invoices/overview#auto-advance">automatic
1111
/// collection</a> of the invoice. When <c>false</c>, the invoice's state will not
1212
/// automatically advance without an explicit action.
1313
/// </summary>

src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs

+9
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata
118118
[JsonProperty("metadata")]
119119
public Dictionary<string, string> Metadata { get; set; }
120120

121+
/// <summary>
122+
/// The account (if any) for which the funds of the invoice payment are intended. If set,
123+
/// the invoice will be presented with the branding and support information of the specified
124+
/// account. See the <a href="https://stripe.com/docs/billing/invoices/connect">Invoices
125+
/// with Connect</a> documentation for details.
126+
/// </summary>
127+
[JsonProperty("on_behalf_of")]
128+
public string OnBehalfOf { get; set; }
129+
121130
/// <summary>
122131
/// Configuration settings for the PaymentIntent that is generated when the invoice is
123132
/// finalized.

src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class PaymentIntentPaymentMethodDataIdealOptions : INestedOptions
88
/// <summary>
99
/// The customer's bank.
1010
/// One of: <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>,
11-
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>,
12-
/// <c>triodos_bank</c>, or <c>van_lanschot</c>.
11+
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>,
12+
/// <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
1313
/// </summary>
1414
[JsonProperty("bank")]
1515
public string Bank { get; set; }

src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class PaymentMethodIdealOptions : INestedOptions
88
/// <summary>
99
/// The customer's bank.
1010
/// One of: <c>abn_amro</c>, <c>asn_bank</c>, <c>bunq</c>, <c>handelsbanken</c>, <c>ing</c>,
11-
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>sns_bank</c>,
12-
/// <c>triodos_bank</c>, or <c>van_lanschot</c>.
11+
/// <c>knab</c>, <c>moneyou</c>, <c>rabobank</c>, <c>regiobank</c>, <c>revolut</c>,
12+
/// <c>sns_bank</c>, <c>triodos_bank</c>, or <c>van_lanschot</c>.
1313
/// </summary>
1414
[JsonProperty("bank")]
1515
public string Bank { get; set; }

0 commit comments

Comments
 (0)