diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs index 8a87aa6529..cabc001f26 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs @@ -9,10 +9,11 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, /// handelsbanken, ing, knab, moneyou, rabobank, - /// regiobank, sns_bank, triodos_bank, or van_lanschot. + /// regiobank, revolut, sns_bank, triodos_bank, or + /// van_lanschot. /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, rabobank, regiobank, sns_bank, - /// triodos_bank, or van_lanschot. + /// knab, moneyou, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, or van_lanschot. /// [JsonProperty("bank")] public string Bank { get; set; } @@ -21,7 +22,7 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BUNQNL2A, FVLBNL22, /// HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, RABONL2U, - /// RBRBNL21, SNSBNL2A, or TRIONL2U. + /// RBRBNL21, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] public string Bic { get; set; } diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 3dfe5cd470..ecaa4d5bea 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -499,6 +499,43 @@ public List Discounts [JsonProperty("number")] public string Number { get; set; } + #region Expandable OnBehalfOf + + /// + /// (ID of the Account) + /// The account (if any) for which the funds of the invoice payment are intended. If set, + /// the invoice will be presented with the branding and support information of the specified + /// account. See the Invoices + /// with Connect documentation for details. + /// + [JsonIgnore] + public string OnBehalfOfId + { + get => this.InternalOnBehalfOf?.Id; + set => this.InternalOnBehalfOf = SetExpandableFieldId(value, this.InternalOnBehalfOf); + } + + /// + /// (Expanded) + /// The account (if any) for which the funds of the invoice payment are intended. If set, + /// the invoice will be presented with the branding and support information of the specified + /// account. See the Invoices + /// with Connect documentation for details. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + public Account OnBehalfOf + { + get => this.InternalOnBehalfOf?.ExpandedObject; + set => this.InternalOnBehalfOf = SetExpandableFieldObject(value, this.InternalOnBehalfOf); + } + + [JsonProperty("on_behalf_of")] + [JsonConverter(typeof(ExpandableFieldConverter))] + internal ExpandableField InternalOnBehalfOf { get; set; } + #endregion + /// /// Whether payment was successfully collected for this invoice. An invoice can be paid /// (most commonly) with a charge or with credit from the customer's account balance. diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs index 49942ae09f..6f2c988bfe 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs @@ -8,11 +8,11 @@ public class PaymentMethodIdeal : StripeEntity /// /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, /// bunq, handelsbanken, ing, knab, moneyou, - /// rabobank, regiobank, sns_bank, triodos_bank, or - /// van_lanschot. + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// or van_lanschot. /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, rabobank, regiobank, sns_bank, - /// triodos_bank, or van_lanschot. + /// knab, moneyou, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, or van_lanschot. /// [JsonProperty("bank")] public string Bank { get; set; } @@ -21,7 +21,7 @@ public class PaymentMethodIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BUNQNL2A, FVLBNL22, /// HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, RABONL2U, - /// RBRBNL21, SNSBNL2A, or TRIONL2U. + /// RBRBNL21, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] public string Bic { get; set; } diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs index e8fc087358..ad691c0508 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs @@ -9,10 +9,11 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, /// handelsbanken, ing, knab, moneyou, rabobank, - /// regiobank, sns_bank, triodos_bank, or van_lanschot. + /// regiobank, revolut, sns_bank, triodos_bank, or + /// van_lanschot. /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, rabobank, regiobank, sns_bank, - /// triodos_bank, or van_lanschot. + /// knab, moneyou, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, or van_lanschot. /// [JsonProperty("bank")] public string Bank { get; set; } @@ -21,7 +22,7 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntityABNANL2A, ASNBNL21, BUNQNL2A, FVLBNL22, /// HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, RABONL2U, - /// RBRBNL21, SNSBNL2A, or TRIONL2U. + /// RBRBNL21, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] public string Bic { get; set; } diff --git a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs index 4d4baffdda..596fc52d44 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs @@ -123,6 +123,15 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata [JsonProperty("metadata")] public Dictionary Metadata { get; set; } + /// + /// The account (if any) for which the funds of the invoice payment are intended. If set, + /// the invoice will be presented with the branding and support information of the specified + /// account. See the Invoices + /// with Connect documentation for details. + /// + [JsonProperty("on_behalf_of")] + public string OnBehalfOf { get; set; } + /// /// Configuration settings for the PaymentIntent that is generated when the invoice is /// finalized. diff --git a/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs index f8450a34b2..82c84b2b9c 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceFinalizeOptions.cs @@ -7,7 +7,7 @@ public class InvoiceFinalizeOptions : BaseOptions { /// /// Controls whether Stripe will perform automatic + /// href="https://stripe.com/docs/billing/invoices/overview#auto-advance">automatic /// collection of the invoice. When false, the invoice's state will not /// automatically advance without an explicit action. /// diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs index c56ee2ffba..776f8f35a3 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs @@ -118,6 +118,15 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata [JsonProperty("metadata")] public Dictionary Metadata { get; set; } + /// + /// The account (if any) for which the funds of the invoice payment are intended. If set, + /// the invoice will be presented with the branding and support information of the specified + /// account. See the Invoices + /// with Connect documentation for details. + /// + [JsonProperty("on_behalf_of")] + public string OnBehalfOf { get; set; } + /// /// Configuration settings for the PaymentIntent that is generated when the invoice is /// finalized. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs index cacbdb6130..c3ca970ae7 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs @@ -8,8 +8,8 @@ public class PaymentIntentPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, rabobank, regiobank, sns_bank, - /// triodos_bank, or van_lanschot. + /// knab, moneyou, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, or van_lanschot. /// [JsonProperty("bank")] public string Bank { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs index 1ce720df6d..5d068c5b9b 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs @@ -8,8 +8,8 @@ public class PaymentMethodIdealOptions : INestedOptions /// /// The customer's bank. /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, rabobank, regiobank, sns_bank, - /// triodos_bank, or van_lanschot. + /// knab, moneyou, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, or van_lanschot. /// [JsonProperty("bank")] public string Bank { get; set; }