Skip to content

Commit

Permalink
Update generated code for v712
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 14, 2023
1 parent 777a599 commit e6f216a
Show file tree
Hide file tree
Showing 23 changed files with 190 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v703
v712
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ namespace Stripe.Checkout

public class SessionConsentCollection : StripeEntity<SessionConsentCollection>
{
/// <summary>
/// If set to <c>hidden</c>, it will hide legal text related to the reuse of a payment
/// method.
/// </summary>
[JsonProperty("payment_method_reuse_agreement")]
public SessionConsentCollectionPaymentMethodReuseAgreement PaymentMethodReuseAgreement { get; set; }

/// <summary>
/// If set to <c>auto</c>, enables the collection of customer consent for promotional
/// communications. The Checkout Session will determine whether to display an option to opt
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionConsentCollectionPaymentMethodReuseAgreement : StripeEntity<SessionConsentCollectionPaymentMethodReuseAgreement>
{
/// <summary>
/// Determines the position and visibility of the payment method reuse agreement in the UI.
/// When set to <c>auto</c>, Stripe's defaults will be used.
///
/// When set to <c>hidden</c>, the payment method reuse agreement text will always be hidden
/// in the UI.
/// One of: <c>auto</c>, or <c>hidden</c>.
/// </summary>
[JsonProperty("position")]
public string Position { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe.Checkout

public class SessionCustomText : StripeEntity<SessionCustomText>
{
/// <summary>
/// Custom text that should be displayed after the payment confirmation button.
/// </summary>
[JsonProperty("after_submit")]
public SessionCustomTextAfterSubmit AfterSubmit { get; set; }

/// <summary>
/// Custom text that should be displayed alongside shipping address collection.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionCustomTextAfterSubmit : StripeEntity<SessionCustomTextAfterSubmit>
{
/// <summary>
/// Text may be up to 1200 characters in length.
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public Application Application
public string ClientSecret { get; set; }

/// <summary>
/// Describes whether we can confirm this PaymentIntent automatically, or if it requires
/// customer action to confirm the payment.
/// One of: <c>automatic</c>, or <c>manual</c>.
/// </summary>
[JsonProperty("confirmation_method")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class PaymentLinkConsentCollection : StripeEntity<PaymentLinkConsentCollection>
{
/// <summary>
/// Settings related to the payment method reuse text shown in the Checkout UI.
/// </summary>
[JsonProperty("payment_method_reuse_agreement")]
public PaymentLinkConsentCollectionPaymentMethodReuseAgreement PaymentMethodReuseAgreement { get; set; }

/// <summary>
/// If set to <c>auto</c>, enables the collection of customer consent for promotional
/// communications.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentLinkConsentCollectionPaymentMethodReuseAgreement : StripeEntity<PaymentLinkConsentCollectionPaymentMethodReuseAgreement>
{
/// <summary>
/// Determines the position and visibility of the payment method reuse agreement in the UI.
/// When set to <c>auto</c>, Stripe's defaults will be used.
///
/// When set to <c>hidden</c>, the payment method reuse agreement text will always be hidden
/// in the UI.
/// One of: <c>auto</c>, or <c>hidden</c>.
/// </summary>
[JsonProperty("position")]
public string Position { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class PaymentLinkCustomText : StripeEntity<PaymentLinkCustomText>
{
/// <summary>
/// Custom text that should be displayed after the payment confirmation button.
/// </summary>
[JsonProperty("after_submit")]
public PaymentLinkCustomTextAfterSubmit AfterSubmit { get; set; }

/// <summary>
/// Custom text that should be displayed alongside shipping address collection.
/// </summary>
Expand Down
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 PaymentLinkCustomTextAfterSubmit : StripeEntity<PaymentLinkCustomTextAfterSubmit>
{
/// <summary>
/// Text may be up to 1200 characters in length.
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
}
}
4 changes: 2 additions & 2 deletions src/Stripe.net/Services/Balances/BalanceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public BalanceService(IStripeClient client)
{
}

public override string BasePath => "/v1/balance";

protected override string InstanceUrl(string id)
{
return this.ClassUrl();
}

public override string BasePath => "/v1/balance";

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Balances/BalanceService.cs

View workflow job for this annotation

GitHub Actions / Build and test


public virtual Balance Get(RequestOptions requestOptions = null)
{
return this.Request<Balance>(HttpMethod.Get, $"/v1/balance", null, requestOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ namespace Stripe.Checkout

public class SessionConsentCollectionOptions : INestedOptions
{
/// <summary>
/// Determines the display of payment method reuse agreement text in the UI. If set to
/// <c>hidden</c>, it will hide legal text related to the reuse of a payment method.
/// </summary>
[JsonProperty("payment_method_reuse_agreement")]
public SessionConsentCollectionPaymentMethodReuseAgreementOptions PaymentMethodReuseAgreement { get; set; }

/// <summary>
/// If set to <c>auto</c>, enables the collection of customer consent for promotional
/// communications. The Checkout Session will determine whether to display an option to opt
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionConsentCollectionPaymentMethodReuseAgreementOptions : INestedOptions
{
/// <summary>
/// Determines the position and visibility of the payment method reuse agreement in the UI.
/// When set to <c>auto</c>, Stripe's defaults will be used. When set to <c>hidden</c>, the
/// payment method reuse agreement text will always be hidden in the UI.
/// One of: <c>auto</c>, or <c>hidden</c>.
/// </summary>
[JsonProperty("position")]
public string Position { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionCustomTextAfterSubmitOptions : INestedOptions
{
/// <summary>
/// Text may be up to 1200 characters in length.
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe.Checkout

public class SessionCustomTextOptions : INestedOptions
{
/// <summary>
/// Custom text that should be displayed after the payment confirmation button.
/// </summary>
[JsonProperty("after_submit")]
public SessionCustomTextAfterSubmitOptions AfterSubmit { get; set; }

/// <summary>
/// Custom text that should be displayed alongside shipping address collection.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata
public bool? Confirm { get; set; }

/// <summary>
/// Describes whether we can confirm this PaymentIntent automatically, or if it requires
/// customer action to confirm the payment.
/// One of: <c>automatic</c>, or <c>manual</c>.
/// </summary>
[JsonProperty("confirmation_method")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ namespace Stripe

public class PaymentLinkConsentCollectionOptions : INestedOptions
{
/// <summary>
/// Determines the display of payment method reuse agreement text in the UI. If set to
/// <c>hidden</c>, it will hide legal text related to the reuse of a payment method.
/// </summary>
[JsonProperty("payment_method_reuse_agreement")]
public PaymentLinkConsentCollectionPaymentMethodReuseAgreementOptions PaymentMethodReuseAgreement { get; set; }

/// <summary>
/// If set to <c>auto</c>, enables the collection of customer consent for promotional
/// communications. The Checkout Session will determine whether to display an option to opt
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 PaymentLinkConsentCollectionPaymentMethodReuseAgreementOptions : INestedOptions
{
/// <summary>
/// Determines the position and visibility of the payment method reuse agreement in the UI.
/// When set to <c>auto</c>, Stripe's defaults will be used. When set to <c>hidden</c>, the
/// payment method reuse agreement text will always be hidden in the UI.
/// One of: <c>auto</c>, or <c>hidden</c>.
/// </summary>
[JsonProperty("position")]
public string Position { 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 PaymentLinkCustomTextAfterSubmitOptions : INestedOptions
{
/// <summary>
/// Text may be up to 1200 characters in length.
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class PaymentLinkCustomTextOptions : INestedOptions
{
/// <summary>
/// Custom text that should be displayed after the payment confirmation button.
/// </summary>
[JsonProperty("after_submit")]
public PaymentLinkCustomTextAfterSubmitOptions AfterSubmit { get; set; }

/// <summary>
/// Custom text that should be displayed alongside shipping address collection.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe.Radar
{
using Newtonsoft.Json;

public class EarlyFraudWarningListOptions : ListOptions
public class EarlyFraudWarningListOptions : ListOptionsWithCreated
{
/// <summary>
/// Only return early fraud warnings for the charge specified by this charge ID.
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Services/Tax/Settings/SettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public SettingsService(IStripeClient client)
{
}

public override string BasePath => "/v1/tax/settings";

protected override string InstanceUrl(string id)
{
return this.ClassUrl();
}

public override string BasePath => "/v1/tax/settings";

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Compat

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Build and test

Check failure on line 26 in src/Stripe.net/Services/Tax/Settings/SettingsService.cs

View workflow job for this annotation

GitHub Actions / Build and test


public virtual Settings Get(RequestOptions requestOptions = null)
{
return this.Request<Settings>(HttpMethod.Get, $"/v1/tax/settings", null, requestOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class AuthorizationCreateOptions : BaseOptions
{
/// <summary>
/// The total amount to attempt to authorize. This amount is in the provided currency, or
/// defaults to the cards currency, and in the <a
/// defaults to the card's currency, and in the <a
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
/// </summary>
[JsonProperty("amount")]
Expand Down

0 comments on commit e6f216a

Please sign in to comment.