Skip to content

Commit

Permalink
Merge pull request #3049 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 Feb 7, 2025
2 parents 10635cc + 718b097 commit 49a1547
Show file tree
Hide file tree
Showing 50 changed files with 368 additions and 82 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 47.3.0 - 2025-01-27
* [#3044](https://github.com/stripe/stripe-dotnet/pull/3044) Update generated code
* Add support for `Close` method on resource `Treasury.FinancialAccount`
* Add support for `PayByBankPayments` on `AccountCapabilitiesOptions` and `AccountCapabilities`
* Add support for `DirectorshipDeclaration` and `OwnershipExemptionReason` on `AccountCompanyOptions`, `AccountCompany`, and `TokenAccountCompanyOptions`
* Add support for `ProofOfUltimateBeneficialOwnership` on `AccountDocumentsOptions`
* Add support for `FinancialAccount` on `AccountSessionComponentsOptions`, `AccountSessionComponents`, and `TreasuryOutboundTransferDestinationPaymentMethodDetails`
* Add support for `FinancialAccountTransactions`, `IssuingCard`, and `IssuingCardsList` on `AccountSessionComponentsOptions` and `AccountSessionComponents`
* Add support for `AdviceCode` on `ChargeOutcome`, `InvoiceLastFinalizationError`, `PaymentIntentLastPaymentError`, `SetupAttemptSetupError`, `SetupIntentLastSetupError`, and `StripeError`
* Add support for `PayByBank` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsOptions`, `ConfirmationTokenPaymentMethodDataOptions`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethodUpdateOptions`, `PaymentMethod`, and `SetupIntentPaymentMethodDataOptions`
* Add support for `Country` on `ChargePaymentMethodDetailsPaypal`, `ConfirmationTokenPaymentMethodPreviewPaypal`, and `PaymentMethodPaypal`
* Add support for `Discounts` on `CheckoutSession`
* Add support for `PhoneNumberCollection` on `PaymentLinkUpdateOptions`
* Add support for `Jpy` on `TerminalConfigurationTippingOptions` and `TerminalConfigurationTipping`
* Add support for `Nickname` on `Treasury.FinancialAccountCreateOptions`, `Treasury.FinancialAccountUpdateOptions`, and `TreasuryFinancialAccount`
* Add support for `ForwardingSettings` on `Treasury.FinancialAccountUpdateOptions`
* Add support for `IsDefault` on `TreasuryFinancialAccount`
* Add support for `DestinationPaymentMethodData` on `Treasury.OutboundTransferCreateOptions`
* Change type of `TreasuryOutboundTransferDestinationPaymentMethodDetailsType` from `literal('us_bank_account')` to `enum('financial_account'|'us_bank_account')`
* Add support for `OutboundTransfer` on `TreasuryReceivedCreditLinkedFlowsSourceFlowDetails`
* [#3046](https://github.com/stripe/stripe-dotnet/pull/3046) update justfile import
* [#3045](https://github.com/stripe/stripe-dotnet/pull/3045) Added CONTRIBUTING.md file
* [#3047](https://github.com/stripe/stripe-dotnet/pull/3047) Pin ubuntu version in ci
* [#3040](https://github.com/stripe/stripe-dotnet/pull/3040) Add justfile, remove coveralls
* [#3042](https://github.com/stripe/stripe-dotnet/pull/3042) Remove debug build and test from CI
* [#3039](https://github.com/stripe/stripe-dotnet/pull/3039) Fixed supported frameworks in project description and readme
* [#3038](https://github.com/stripe/stripe-dotnet/pull/3038) Added pull request template

## 47.3.0-beta.3 - 2025-01-23
* [#3048](https://github.com/stripe/stripe-dotnet/pull/3048) Update generated code for beta
* Remove support for `StripeAccount` on `TerminalReaderActionCollectPaymentMethod`, `TerminalReaderActionConfirmPaymentIntent`, `TerminalReaderActionProcessPaymentIntent`, and `TerminalReaderActionRefundPayment`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1460
v1472
3 changes: 2 additions & 1 deletion src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ public static class EventTypes
public const string CapitalFinancingOfferRejected = "capital.financing_offer.rejected";

/// <summary>
/// Occurs whenever a replacement for a financing offer has been created.
/// Occurs whenever a replacement for a financing offer has been created. More details can
/// be <a href="https://docs.stripe.com/capital/replacements">found here</a>.
/// </summary>
public const string CapitalFinancingOfferReplacementCreated = "capital.financing_offer.replacement_created";

Expand Down
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountRiskControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,19 @@ public class AccountRiskControls : StripeEntity<AccountRiskControls>
[STJS.JsonPropertyName("payouts")]
#endif
public AccountRiskControlsPayouts Payouts { get; set; }

/// <summary>
/// Represents the rejected reason of the account. Empty if account is not rejected, or
/// rejected by Stripe. Please see <a href="https://stripe.com/docs/connect/">this page for
/// more details</a>.
/// One of: <c>credit</c>, <c>fraud</c>, <c>fraud_no_intent_to_fulfill</c>,
/// <c>fraud_other</c>, <c>fraud_payment_method_casher</c>,
/// <c>fraud_payment_method_tester</c>, <c>other</c>, or <c>terms_of_service</c>.
/// </summary>
[JsonProperty("rejected_reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("rejected_reason")]
#endif
public string RejectedReason { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ namespace Stripe
public class BalanceInstantAvailableNetAvailableSourceTypes : StripeEntity<BalanceInstantAvailableNetAvailableSourceTypes>
{
/// <summary>
/// Amount for bank account.
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
#if NET6_0_OR_GREATER
Expand All @@ -18,7 +19,8 @@ public class BalanceInstantAvailableNetAvailableSourceTypes : StripeEntity<Balan
public long BankAccount { get; set; }

/// <summary>
/// Amount for card.
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
#if NET6_0_OR_GREATER
Expand All @@ -27,7 +29,8 @@ public class BalanceInstantAvailableNetAvailableSourceTypes : StripeEntity<Balan
public long Card { get; set; }

/// <summary>
/// Amount for FPX.
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ namespace Stripe
public class BalanceInstantAvailableSourceTypes : StripeEntity<BalanceInstantAvailableSourceTypes>
{
/// <summary>
/// Amount for bank account.
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
#if NET6_0_OR_GREATER
Expand All @@ -18,7 +19,8 @@ public class BalanceInstantAvailableSourceTypes : StripeEntity<BalanceInstantAva
public long BankAccount { get; set; }

/// <summary>
/// Amount for card.
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
#if NET6_0_OR_GREATER
Expand All @@ -27,7 +29,8 @@ public class BalanceInstantAvailableSourceTypes : StripeEntity<BalanceInstantAva
public long Card { get; set; }

/// <summary>
/// Amount for FPX.
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand All @@ -18,5 +19,16 @@ public class CreditGrantApplicabilityConfigScope : StripeEntity<CreditGrantAppli
[STJS.JsonPropertyName("price_type")]
#endif
public string PriceType { get; set; }

/// <summary>
/// The prices that credit grants can apply to. We currently only support <c>metered</c>
/// prices. This refers to prices that have a <a
/// href="https://docs.stripe.com/api/billing/meter">Billing Meter</a> attached to them.
/// </summary>
[JsonProperty("prices")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("prices")]
#endif
public List<CreditGrantApplicabilityConfigScopePrice> Prices { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class CreditGrantApplicabilityConfigScopePrice : StripeEntity<CreditGrantApplicabilityConfigScopePrice>, IHasId
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ namespace Stripe.Billing
/// A billing meter event summary represents an aggregated view of a customer's billing
/// meter events within a specified timeframe. It indicates how much usage was accrued by a
/// customer for that period.
///
/// Note: Meters events are aggregated asynchronously so the meter event summaries provide
/// an eventually consistent view of the reported usage.
/// </summary>
public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity<Charg
#endif
public string Brand { get; set; }

/// <summary>
/// The <a href="https://stripe.com/docs/card-product-codes">product code</a> that
/// identifies the specific program or product associated with a card. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("brand_product")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("brand_product")]
#endif
public string BrandProduct { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you've collected.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity<Char
#endif
public string Brand { get; set; }

/// <summary>
/// The <a href="https://stripe.com/docs/card-product-codes">product code</a> that
/// identifies the specific program or product associated with a card. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("brand_product")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("brand_product")]
#endif
public string BrandProduct { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you've collected.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public class SessionPaymentMethodOptionsCard : StripeEntity<SessionPaymentMethod
#endif
public string RequestThreeDSecure { get; set; }

[JsonProperty("restrictions")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("restrictions")]
#endif
public SessionPaymentMethodOptionsCardRestrictions Restrictions { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class SessionPaymentMethodOptionsCardRestrictions : StripeEntity<SessionPaymentMethodOptionsCardRestrictions>
{
/// <summary>
/// Specify the card brands to block in the Checkout Session. If a customer enters or
/// selects a card belonging to a blocked brand, they can't complete the Session.
/// One of: <c>american_express</c>, <c>discover_global_network</c>, <c>mastercard</c>, or
/// <c>visa</c>.
/// </summary>
[JsonProperty("brands_blocked")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("brands_blocked")]
#endif
public List<string> BrandsBlocked { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class SessionShippingCostTax : StripeEntity<SessionShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class SessionTotalDetailsBreakdownTax : StripeEntity<SessionTotalDetailsB

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace Stripe
public class ConfirmationTokenPaymentMethodPreviewCardNetworks : StripeEntity<ConfirmationTokenPaymentMethodPreviewCardNetworks>
{
/// <summary>
/// All available networks for the card.
/// All networks available for selection via <a
/// href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
/// </summary>
[JsonProperty("available")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace Stripe
public class ConfirmationTokenPaymentMethodPreviewCardPresentNetworks : StripeEntity<ConfirmationTokenPaymentMethodPreviewCardPresentNetworks>
{
/// <summary>
/// All available networks for the card.
/// All networks available for selection via <a
/// href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
/// </summary>
[JsonProperty("available")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace Stripe
public class ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks : StripeEntity<ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks>
{
/// <summary>
/// All available networks for the card.
/// All networks available for selection via <a
/// href="https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network">payment_method_options.card.network</a>.
/// </summary>
[JsonProperty("available")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/CreditNotes/CreditNoteShippingCostTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class CreditNoteShippingCostTax : StripeEntity<CreditNoteShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Invoices/InvoiceShippingCostTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class InvoiceShippingCostTax : StripeEntity<InvoiceShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/LineItems/LineItemTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class LineItemTax : StripeEntity<LineItemTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Loading

0 comments on commit 49a1547

Please sign in to comment.