Skip to content

Commit

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

* Update generated code for v1050

* Update generated code for v1051

* Update generated code for v1052

* Update generated code for v1053

* Update generated code for v1054

* Update generated code for v1056

* Update generated code for v1058

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <[email protected]>
  • Loading branch information
stripe-openapi[bot] and ramya-stripe committed May 30, 2024
1 parent 2bae60b commit 070a87a
Show file tree
Hide file tree
Showing 44 changed files with 817 additions and 71 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1047
v1058
22 changes: 22 additions & 0 deletions src/Stripe.net/Constants/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,28 @@ public static class Events
/// </summary>
public const string IssuingDisputeUpdated = "issuing_dispute.updated";

/// <summary>
/// Occurs whenever a personalization design is activated following the activation of the
/// physical bundle that belongs to it.
/// </summary>
public const string IssuingPersonalizationDesignActivated = "issuing_personalization_design.activated";

/// <summary>
/// Occurs whenever a personalization design is deactivated following the deactivation of
/// the physical bundle that belongs to it.
/// </summary>
public const string IssuingPersonalizationDesignDeactivated = "issuing_personalization_design.deactivated";

/// <summary>
/// Occurs whenever a personalization design is rejected by design review.
/// </summary>
public const string IssuingPersonalizationDesignRejected = "issuing_personalization_design.rejected";

/// <summary>
/// Occurs whenever a personalization design is updated.
/// </summary>
public const string IssuingPersonalizationDesignUpdated = "issuing_personalization_design.updated";

/// <summary>
/// Occurs whenever an issuing digital wallet token is created.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>, or
/// <c>verification_requires_additional_proof_of_registration</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethod
/// <c>fi-FI</c>, <c>sv-FI</c>, <c>en-FI</c>, <c>en-GB</c>, <c>en-IE</c>, <c>it-IT</c>,
/// <c>en-IT</c>, <c>nl-NL</c>, <c>en-NL</c>, <c>nb-NO</c>, <c>en-NO</c>, <c>sv-SE</c>,
/// <c>en-SE</c>, <c>en-US</c>, <c>es-US</c>, <c>fr-FR</c>, <c>en-FR</c>, <c>cs-CZ</c>,
/// <c>en-CZ</c>, <c>el-GR</c>, <c>en-GR</c>, <c>en-AU</c>, <c>en-NZ</c>, <c>en-CA</c>,
/// <c>fr-CA</c>, <c>pl-PL</c>, <c>en-PL</c>, <c>pt-PT</c>, <c>en-PT</c>, <c>de-CH</c>,
/// <c>fr-CH</c>, <c>it-CH</c>, or <c>en-CH</c>.
/// <c>en-CZ</c>, <c>ro-RO</c>, <c>en-RO</c>, <c>el-GR</c>, <c>en-GR</c>, <c>en-AU</c>,
/// <c>en-NZ</c>, <c>en-CA</c>, <c>fr-CA</c>, <c>pl-PL</c>, <c>en-PL</c>, <c>pt-PT</c>,
/// <c>en-PT</c>, <c>de-CH</c>, <c>fr-CH</c>, <c>it-CH</c>, or <c>en-CH</c>.
/// </summary>
[JsonProperty("preferred_locale")]
public string PreferredLocale { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ namespace Stripe.Checkout

public class SessionCustomFieldDropdown : StripeEntity<SessionCustomFieldDropdown>
{
/// <summary>
/// The value that will pre-fill on the payment page.
/// </summary>
[JsonProperty("default_value")]
public string DefaultValue { get; set; }

/// <summary>
/// The options available for the customer to select. Up to 200 options allowed.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe.Checkout

public class SessionCustomFieldNumeric : StripeEntity<SessionCustomFieldNumeric>
{
/// <summary>
/// The value that will pre-fill the field on the payment page.
/// </summary>
[JsonProperty("default_value")]
public string DefaultValue { get; set; }

/// <summary>
/// The maximum character length constraint for the customer's input.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe.Checkout

public class SessionCustomFieldText : StripeEntity<SessionCustomFieldText>
{
/// <summary>
/// The value that will pre-fill the field on the payment page.
/// </summary>
[JsonProperty("default_value")]
public string DefaultValue { get; set; }

/// <summary>
/// The maximum character length constraint for the customer's input.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public class ConfirmationTokenPaymentMethodPreviewCard : StripeEntity<Confirmati
[JsonProperty("funding")]
public string Funding { get; set; }

/// <summary>
/// Details of the original PaymentMethod that created this object.
/// </summary>
[JsonProperty("generated_from")]
public ConfirmationTokenPaymentMethodPreviewCardGeneratedFrom GeneratedFrom { get; set; }

/// <summary>
/// Issuer identification number of the card. (For internal use only and not typically
/// available in standard API requests.).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFrom : StripeEntity<ConfirmationTokenPaymentMethodPreviewCardGeneratedFrom>
{
/// <summary>
/// The charge that created this object.
/// </summary>
[JsonProperty("charge")]
public string Charge { get; set; }

/// <summary>
/// Transaction-specific details of the payment method used in the payment.
/// </summary>
[JsonProperty("payment_method_details")]
public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetails PaymentMethodDetails { get; set; }

#region Expandable SetupAttempt

/// <summary>
/// (ID of the SetupAttempt)
/// The ID of the SetupAttempt that generated this PaymentMethod, if any.
/// </summary>
[JsonIgnore]
public string SetupAttemptId
{
get => this.InternalSetupAttempt?.Id;
set => this.InternalSetupAttempt = SetExpandableFieldId(value, this.InternalSetupAttempt);
}

/// <summary>
/// (Expanded)
/// The ID of the SetupAttempt that generated this PaymentMethod, if any.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
public SetupAttempt SetupAttempt
{
get => this.InternalSetupAttempt?.ExpandedObject;
set => this.InternalSetupAttempt = SetExpandableFieldObject(value, this.InternalSetupAttempt);
}

[JsonProperty("setup_attempt")]
[JsonConverter(typeof(ExpandableFieldConverter<SetupAttempt>))]
internal ExpandableField<SetupAttempt> InternalSetupAttempt { get; set; }
#endregion
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetails : StripeEntity<ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetails>
{
[JsonProperty("card_present")]
public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent CardPresent { get; set; }

/// <summary>
/// The type of payment method transaction-specific details from the transaction that
/// generated this <c>card</c> payment method. Always <c>card_present</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
}
}
Loading

0 comments on commit 070a87a

Please sign in to comment.