Skip to content

Commit

Permalink
Update generated code (#3044)
Browse files Browse the repository at this point in the history
* Update generated code for v1441

* Update generated code for v1455

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: helenye-stripe <[email protected]>
  • Loading branch information
stripe-openapi[bot] and helenye-stripe authored Jan 27, 2025
1 parent b263a39 commit 589ee82
Show file tree
Hide file tree
Showing 96 changed files with 1,290 additions and 78 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1412
v1455
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2024-12-18.acacia";
public const string Current = "2025-01-27.acacia";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[JsonProperty("documents")]
public AccountSessionComponentsDocuments Documents { get; set; }

[JsonProperty("financial_account")]
public AccountSessionComponentsFinancialAccount FinancialAccount { get; set; }

[JsonProperty("financial_account_transactions")]
public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; }

[JsonProperty("issuing_card")]
public AccountSessionComponentsIssuingCard IssuingCard { get; set; }

[JsonProperty("issuing_cards_list")]
public AccountSessionComponentsIssuingCardsList IssuingCardsList { get; set; }

[JsonProperty("notification_banner")]
public AccountSessionComponentsNotificationBanner NotificationBanner { get; set; }

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

public class AccountSessionComponentsFinancialAccount : StripeEntity<AccountSessionComponentsFinancialAccount>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
public AccountSessionComponentsFinancialAccountFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity<AccountSessionComponentsFinancialAccountFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow external accounts to be linked for money transfer.
/// </summary>
[JsonProperty("external_account_collection")]
public bool ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow sending money.
/// </summary>
[JsonProperty("send_money")]
public bool SendMoney { get; set; }

/// <summary>
/// Whether to allow transferring balance.
/// </summary>
[JsonProperty("transfer_balance")]
public bool TransferBalance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsFinancialAccountTransactions : StripeEntity<AccountSessionComponentsFinancialAccountTransactions>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
public AccountSessionComponentsFinancialAccountTransactionsFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsFinancialAccountTransactionsFeatures : StripeEntity<AccountSessionComponentsFinancialAccountTransactionsFeatures>
{
/// <summary>
/// Whether to allow card spend dispute management features.
/// </summary>
[JsonProperty("card_spend_dispute_management")]
public bool CardSpendDisputeManagement { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsIssuingCard : StripeEntity<AccountSessionComponentsIssuingCard>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
public AccountSessionComponentsIssuingCardFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsIssuingCardFeatures : StripeEntity<AccountSessionComponentsIssuingCardFeatures>
{
/// <summary>
/// Whether to allow card management features.
/// </summary>
[JsonProperty("card_management")]
public bool CardManagement { get; set; }

/// <summary>
/// Whether to allow card spend dispute management features.
/// </summary>
[JsonProperty("card_spend_dispute_management")]
public bool CardSpendDisputeManagement { get; set; }

/// <summary>
/// Whether to allow cardholder management features.
/// </summary>
[JsonProperty("cardholder_management")]
public bool CardholderManagement { get; set; }

/// <summary>
/// Whether to allow spend control management features.
/// </summary>
[JsonProperty("spend_control_management")]
public bool SpendControlManagement { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsIssuingCardsList : StripeEntity<AccountSessionComponentsIssuingCardsList>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
public AccountSessionComponentsIssuingCardsListFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSessionComponentsIssuingCardsListFeatures : StripeEntity<AccountSessionComponentsIssuingCardsListFeatures>
{
/// <summary>
/// Whether to allow card management features.
/// </summary>
[JsonProperty("card_management")]
public bool CardManagement { get; set; }

/// <summary>
/// Whether to allow card spend dispute management features.
/// </summary>
[JsonProperty("card_spend_dispute_management")]
public bool CardSpendDisputeManagement { get; set; }

/// <summary>
/// Whether to allow cardholder management features.
/// </summary>
[JsonProperty("cardholder_management")]
public bool CardholderManagement { get; set; }

/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be false for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like custom accounts.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow spend control management features.
/// </summary>
[JsonProperty("spend_control_management")]
public bool SpendControlManagement { get; set; }
}
}
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("p24_payments")]
public string P24Payments { get; set; }

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

/// <summary>
/// The status of the Payco capability of the account, or whether the account can directly
/// process Payco payments.
Expand Down
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCompany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public class AccountCompany : StripeEntity<AccountCompany>
[JsonProperty("directors_provided")]
public bool DirectorsProvided { get; set; }

/// <summary>
/// This hash is used to attest that the director information provided to Stripe is both
/// current and correct.
/// </summary>
[JsonProperty("directorship_declaration")]
public AccountCompanyDirectorshipDeclaration DirectorshipDeclaration { get; set; }

/// <summary>
/// Whether the company's executives have been provided. This Boolean will be <c>true</c> if
/// you've manually indicated that all executives are provided via <a
Expand Down Expand Up @@ -89,6 +96,13 @@ public class AccountCompany : StripeEntity<AccountCompany>
[JsonProperty("ownership_declaration")]
public AccountCompanyOwnershipDeclaration OwnershipDeclaration { get; set; }

/// <summary>
/// One of: <c>qualified_entity_exceeds_ownership_threshold</c>, or
/// <c>qualifies_as_financial_institution</c>.
/// </summary>
[JsonProperty("ownership_exemption_reason")]
public string OwnershipExemptionReason { get; set; }

/// <summary>
/// The company's phone number (used for verification).
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class AccountCompanyDirectorshipDeclaration : StripeEntity<AccountCompanyDirectorshipDeclaration>
{
/// <summary>
/// The Unix timestamp marking when the directorship declaration attestation was made.
/// </summary>
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? Date { get; set; }

/// <summary>
/// The IP address from which the directorship declaration attestation was made.
/// </summary>
[JsonProperty("ip")]
public string Ip { get; set; }

/// <summary>
/// The user-agent string from the browser where the directorship declaration attestation
/// was made.
/// </summary>
[JsonProperty("user_agent")]
public string UserAgent { get; set; }
}
}
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargeOutcome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ namespace Stripe

public class ChargeOutcome : StripeEntity<ChargeOutcome>
{
/// <summary>
/// An enumerated value providing a more detailed explanation on <a
/// href="https://stripe.com/docs/declines#retrying-issuer-declines">how to proceed with an
/// error</a>.
/// One of: <c>confirm_card_data</c>, <c>do_not_try_again</c>, or <c>try_again_later</c>.
/// </summary>
[JsonProperty("advice_code")]
public string AdviceCode { get; set; }

/// <summary>
/// For charges declined by the network, a 2 digit code which indicates the advice returned
/// by the network on how to proceed with an error.
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[JsonProperty("p24")]
public ChargePaymentMethodDetailsP24 P24 { get; set; }

[JsonProperty("pay_by_bank")]
public ChargePaymentMethodDetailsPayByBank PayByBank { get; set; }

[JsonProperty("payco")]
public ChargePaymentMethodDetailsPayco Payco { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class ChargePaymentMethodDetailsPayByBank : StripeEntity<ChargePaymentMethodDetailsPayByBank>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ namespace Stripe

public class ChargePaymentMethodDetailsPaypal : StripeEntity<ChargePaymentMethodDetailsPaypal>
{
/// <summary>
/// Two-letter ISO code representing the buyer's country. Values are provided by PayPal
/// directly (if supported) at the time of authorization or settlement. They cannot be set
/// or mutated.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }

/// <summary>
/// Owner's email. Values are provided by PayPal directly (if supported) at the time of
/// authorization or settlement. They cannot be set or mutated.
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ public Customer Customer
[JsonProperty("customer_email")]
public string CustomerEmail { get; set; }

/// <summary>
/// List of coupons and promotion codes attached to the Checkout Session.
/// </summary>
[JsonProperty("discounts")]
public List<SessionDiscount> Discounts { get; set; }

/// <summary>
/// The timestamp at which the Checkout Session will expire.
/// </summary>
Expand Down
Loading

0 comments on commit 589ee82

Please sign in to comment.