Skip to content

Commit

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

* Update generated code for v433

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 27, 2023
1 parent a944999 commit cb6d749
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 10 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v425
v433
4 changes: 2 additions & 2 deletions src/Stripe.net/Constants/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public static class Events
public const string ChargeExpired = "charge.expired";

/// <summary>
/// The "charge.failed" event type.
/// See https://stripe.com/docs/api/events/types#event_types-charge.failed for details.
/// The "charge.failed" event type. See
/// https://stripe.com/docs/api/events/types#event_types-charge.failed for details.
/// </summary>
public const string ChargeFailed = "charge.failed";

Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
/// starts onboarding, such as after generating an account link for the account. See the <a
/// href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a
/// href="https://stripe.com/docs/connect/express-accounts">Express onboarding
/// documentation</a> for information about platform pre-filling and account onboarding
/// documentation</a> for information about platform prefilling and account onboarding
/// steps.
///
/// Related guide: <a
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public class AccountBusinessProfile : StripeEntity<AccountBusinessProfile>
[JsonProperty("mcc")]
public string Mcc { get; set; }

[JsonProperty("monthly_estimated_revenue")]
public AccountBusinessProfileMonthlyEstimatedRevenue MonthlyEstimatedRevenue { get; set; }

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

public class AccountBusinessProfileMonthlyEstimatedRevenue : StripeEntity<AccountBusinessProfileMonthlyEstimatedRevenue>
{
/// <summary>
/// A non-negative integer representing how much to charge in the <a
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
/// </summary>
[JsonProperty("amount")]
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
public string Currency { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class PaymentIntentPaymentMethodOptionsLink : StripeEntity<PaymentIntentP
public string CaptureMethod { get; set; }

/// <summary>
/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
/// </summary>
[JsonProperty("persistent_token")]
public string PersistentToken { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PaymentMethodLink : StripeEntity<PaymentMethodLink>
public string Email { get; set; }

/// <summary>
/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
/// </summary>
[JsonProperty("persistent_token")]
public string PersistentToken { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Persons/Person.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Stripe
/// starts onboarding, such as after generating an account link for the account. See the <a
/// href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a
/// href="https://stripe.com/docs/connect/express-accounts">Express onboarding
/// documentation</a> for information about platform pre-filling and account onboarding
/// documentation</a> for information about platform prefilling and account onboarding
/// steps.
///
/// Related guide: <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
public class SetupIntentPaymentMethodOptionsLink : StripeEntity<SetupIntentPaymentMethodOptionsLink>
{
/// <summary>
/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
/// </summary>
[JsonProperty("persistent_token")]
public string PersistentToken { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountBusinessProfileMonthlyEstimatedRevenueOptions : INestedOptions
{
/// <summary>
/// A non-negative integer representing how much to charge in the <a
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
/// </summary>
[JsonProperty("amount")]
public long? Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
public string Currency { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ public class AccountBusinessProfileOptions : INestedOptions
[JsonProperty("mcc")]
public string Mcc { get; set; }

/// <summary>
/// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil
/// and India.
/// </summary>
[JsonProperty("monthly_estimated_revenue")]
public AccountBusinessProfileMonthlyEstimatedRevenueOptions MonthlyEstimatedRevenue { get; set; }

/// <summary>
/// The customer-facing business name.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PaymentIntentPaymentMethodOptionsLinkOptions : INestedOptions
public string CaptureMethod { get; set; }

/// <summary>
/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
/// </summary>
[JsonProperty("persistent_token")]
public string PersistentToken { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
public class SetupIntentPaymentMethodOptionsLinkOptions : INestedOptions
{
/// <summary>
/// Token used for persistent Link logins.
/// [Deprecated] This is a legacy parameter that no longer has any function.
/// </summary>
[JsonProperty("persistent_token")]
public string PersistentToken { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/StripeTests/Services/GeneratedExamplesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,13 @@ public void TestQuoteServiceListLineItems()
service.ListLineItems("qt_xxxxxxxxxxxxx");
}

[Fact]
public void TestQuoteServicePdf()
{
var service = new QuoteService(this.StripeClient);
service.Pdf("qt_xxxxxxxxxxxxx");
}

[Fact]
public void TestQuoteServiceRetrieve()
{
Expand Down

0 comments on commit cb6d749

Please sign in to comment.