Skip to content

Commit

Permalink
Merge pull request #2920 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jun 6, 2024
2 parents 3fd88eb + 04f59f1 commit b84b387
Show file tree
Hide file tree
Showing 23 changed files with 265 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
* [#2915](https://github.com/stripe/stripe-dotnet/pull/2915) Update generated code for beta
* Keeping up with the changes from version 44.11.0

## 44.10.0 - 2024-05-30
* [#2916](https://github.com/stripe/stripe-dotnet/pull/2916) Update generated code
* Add support for `DefaultValue` on `CheckoutSessionCustomFieldsDropdownOptions`, `CheckoutSessionCustomFieldsDropdown`, `CheckoutSessionCustomFieldsNumericOptions`, `CheckoutSessionCustomFieldsNumeric`, `CheckoutSessionCustomFieldsTextOptions`, and `CheckoutSessionCustomFieldsText`
* Add support for `GeneratedFrom` on `ConfirmationTokenPaymentMethodPreviewCard` and `PaymentMethodCard`
* [#2919](https://github.com/stripe/stripe-dotnet/pull/2919) Add missing information for InvoiceTaxAmount
* Add missing information for `TaxableAmount` and `TaxabilityReason` on `InvoiceTaxAmount`. Fixes [#2918](https://github.com/stripe/stripe-dotnet/issues/2918)

## 44.10.0-beta.1 - 2024-05-23
* [#2912](https://github.com/stripe/stripe-dotnet/pull/2912) Update generated code for beta

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1058
v1065
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace Stripe
internal class ApiVersion
{
public const string Current = "2024-04-10";
public const string CurrentPreview = "2024-04-11.preview-v2";
public const string CurrentPreview = "2024-05-23.preview-v2";
}
}
40 changes: 40 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("fpx_payments")]
public string FpxPayments { get; set; }

/// <summary>
/// The status of the GB customer_balance payments (GBP currency) capability of the account,
/// or whether the account can directly process GB customer_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("gb_bank_transfer_payments")]
public string GbBankTransferPayments { get; set; }

/// <summary>
/// The status of the giropay payments capability of the account, or whether the account can
/// directly process giropay charges.
Expand Down Expand Up @@ -173,6 +181,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("jcb_payments")]
public string JcbPayments { get; set; }

/// <summary>
/// The status of the Japanese customer_balance payments (JPY currency) capability of the
/// account, or whether the account can directly process Japanese customer_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("jp_bank_transfer_payments")]
public string JpBankTransferPayments { get; set; }

/// <summary>
/// The status of the Klarna payments capability of the account, or whether the account can
/// directly process Klarna charges.
Expand Down Expand Up @@ -212,6 +228,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("mobilepay_payments")]
public string MobilepayPayments { get; set; }

/// <summary>
/// The status of the Mexican customer_balance payments (MXN currency) capability of the
/// account, or whether the account can directly process Mexican customer_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("mx_bank_transfer_payments")]
public string MxBankTransferPayments { get; set; }

/// <summary>
/// The status of the OXXO payments capability of the account, or whether the account can
/// directly process OXXO charges.
Expand Down Expand Up @@ -276,6 +300,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("revolut_pay_payments")]
public string RevolutPayPayments { get; set; }

/// <summary>
/// The status of the SEPA customer_balance payments (EUR currency) capability of the
/// account, or whether the account can directly process SEPA customer_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("sepa_bank_transfer_payments")]
public string SepaBankTransferPayments { get; set; }

/// <summary>
/// The status of the SEPA Direct Debits payments capability of the account, or whether the
/// account can directly process SEPA Direct Debits charges.
Expand Down Expand Up @@ -345,6 +377,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("us_bank_account_ach_payments")]
public string UsBankAccountAchPayments { get; set; }

/// <summary>
/// The status of the US customer_balance payments (USD currency) capability of the account,
/// or whether the account can directly process US customer_balance charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("us_bank_transfer_payments")]
public string UsBankTransferPayments { get; set; }

/// <summary>
/// The status of the Zip capability of the account, or whether the account can directly
/// process Zip charges.
Expand Down
20 changes: 16 additions & 4 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ public Invoice Invoice

/// <summary>
/// (ID of the PaymentIntent)
/// The ID of the PaymentIntent for Checkout Sessions in <c>payment</c> mode.
/// The ID of the PaymentIntent for Checkout Sessions in <c>payment</c> mode. You can't
/// confirm or cancel the PaymentIntent for a Checkout Session. To cancel, <a
/// href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout
/// Session</a> instead.
/// </summary>
[JsonIgnore]
public string PaymentIntentId
Expand All @@ -300,7 +303,10 @@ public string PaymentIntentId

/// <summary>
/// (Expanded)
/// The ID of the PaymentIntent for Checkout Sessions in <c>payment</c> mode.
/// The ID of the PaymentIntent for Checkout Sessions in <c>payment</c> mode. You can't
/// confirm or cancel the PaymentIntent for a Checkout Session. To cancel, <a
/// href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout
/// Session</a> instead.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
Expand Down Expand Up @@ -422,7 +428,10 @@ public PaymentLink PaymentLink

/// <summary>
/// (ID of the SetupIntent)
/// The ID of the SetupIntent for Checkout Sessions in <c>setup</c> mode.
/// The ID of the SetupIntent for Checkout Sessions in <c>setup</c> mode. You can't confirm
/// or cancel the SetupIntent for a Checkout Session. To cancel, <a
/// href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout
/// Session</a> instead.
/// </summary>
[JsonIgnore]
public string SetupIntentId
Expand All @@ -433,7 +442,10 @@ public string SetupIntentId

/// <summary>
/// (Expanded)
/// The ID of the SetupIntent for Checkout Sessions in <c>setup</c> mode.
/// The ID of the SetupIntent for Checkout Sessions in <c>setup</c> mode. You can't confirm
/// or cancel the SetupIntent for a Checkout Session. To cancel, <a
/// href="https://stripe.com/docs/api/checkout/sessions/expire">expire the Checkout
/// Session</a> instead.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class InvoicePaymentSettings : StripeEntity<InvoicePaymentSettings>
/// <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>konbini</c>, <c>link</c>,
/// <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>promptpay</c>, <c>revolut_pay</c>,
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// or <c>wechat_pay</c>.
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>swish</c>,
/// <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// </summary>
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity<PaymentIntentPayme
[JsonProperty("swish")]
public PaymentIntentPaymentMethodOptionsSwish Swish { get; set; }

[JsonProperty("twint")]
public PaymentIntentPaymentMethodOptionsTwint Twint { get; set; }

[JsonProperty("us_bank_account")]
public PaymentIntentPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsTwint : StripeEntity<PaymentIntentPaymentMethodOptionsTwint>
{
/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
/// confirmed and any required actions from the user are complete. If no Customer was
/// provided, the payment method can still be <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntity<QuotePreviewInvoi
/// <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>konbini</c>, <c>link</c>,
/// <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>promptpay</c>, <c>revolut_pay</c>,
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// or <c>wechat_pay</c>.
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>swish</c>,
/// <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// </summary>
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class SubscriptionPaymentSettings : StripeEntity<SubscriptionPaymentSetti
/// <c>boleto</c>, <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>konbini</c>, <c>link</c>,
/// <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>promptpay</c>, <c>revolut_pay</c>,
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// or <c>wechat_pay</c>.
/// <c>sepa_credit_transfer</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>swish</c>,
/// <c>us_bank_account</c>, or <c>wechat_pay</c>.
/// </summary>
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesGbBankTransferPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesJpBankTransferPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesMxBankTransferPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
30 changes: 30 additions & 0 deletions src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("fpx_payments")]
public AccountCapabilitiesFpxPaymentsOptions FpxPayments { get; set; }

/// <summary>
/// The gb_bank_transfer_payments capability.
/// </summary>
[JsonProperty("gb_bank_transfer_payments")]
public AccountCapabilitiesGbBankTransferPaymentsOptions GbBankTransferPayments { get; set; }

/// <summary>
/// The giropay_payments capability.
/// </summary>
Expand Down Expand Up @@ -131,6 +137,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("jcb_payments")]
public AccountCapabilitiesJcbPaymentsOptions JcbPayments { get; set; }

/// <summary>
/// The jp_bank_transfer_payments capability.
/// </summary>
[JsonProperty("jp_bank_transfer_payments")]
public AccountCapabilitiesJpBankTransferPaymentsOptions JpBankTransferPayments { get; set; }

/// <summary>
/// The klarna_payments capability.
/// </summary>
Expand Down Expand Up @@ -161,6 +173,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("mobilepay_payments")]
public AccountCapabilitiesMobilepayPaymentsOptions MobilepayPayments { get; set; }

/// <summary>
/// The mx_bank_transfer_payments capability.
/// </summary>
[JsonProperty("mx_bank_transfer_payments")]
public AccountCapabilitiesMxBankTransferPaymentsOptions MxBankTransferPayments { get; set; }

/// <summary>
/// The oxxo_payments capability.
/// </summary>
Expand Down Expand Up @@ -209,6 +227,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("revolut_pay_payments")]
public AccountCapabilitiesRevolutPayPaymentsOptions RevolutPayPayments { get; set; }

/// <summary>
/// The sepa_bank_transfer_payments capability.
/// </summary>
[JsonProperty("sepa_bank_transfer_payments")]
public AccountCapabilitiesSepaBankTransferPaymentsOptions SepaBankTransferPayments { get; set; }

/// <summary>
/// The sepa_debit_payments capability.
/// </summary>
Expand Down Expand Up @@ -263,6 +287,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("us_bank_account_ach_payments")]
public AccountCapabilitiesUsBankAccountAchPaymentsOptions UsBankAccountAchPayments { get; set; }

/// <summary>
/// The us_bank_transfer_payments capability.
/// </summary>
[JsonProperty("us_bank_transfer_payments")]
public AccountCapabilitiesUsBankTransferPaymentsOptions UsBankTransferPayments { get; set; }

/// <summary>
/// The zip_payments capability.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesSepaBankTransferPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesUsBankTransferPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Stripe.net/Services/Climate/Orders/OrderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public OrderService(IStripeClient client)
public override string BasePath => "/v1/climate/orders";

/// <summary>
/// <p>Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe
/// <p>Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe
/// refunds the reservation <c>amount_subtotal</c>, but not the <c>amount_fees</c> for
/// user-triggered cancellations. Frontier might cancel reservations if suppliers fail to
/// deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and
Expand All @@ -38,7 +38,7 @@ public virtual Order Cancel(string id, OrderCancelOptions options = null, Reques
}

/// <summary>
/// <p>Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe
/// <p>Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe
/// refunds the reservation <c>amount_subtotal</c>, but not the <c>amount_fees</c> for
/// user-triggered cancellations. Frontier might cancel reservations if suppliers fail to
/// deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and
Expand Down
Loading

0 comments on commit b84b387

Please sign in to comment.