Skip to content

Commit

Permalink
Update generated code for beta (#3027)
Browse files Browse the repository at this point in the history
* Update generated code for v1334

* Update generated code for v1335

* Update generated code for v1337

* Update generated code for v1339

* Update generated code for v1340

* Update generated code for v1343

* Update generated code for v1345

* Update generated code for v1346

* Update generated code for v1347

* Update generated code for v1348

* Update generated code for v1349

* Update generated code for v1350

* Update generated code for v1352

* Update generated code for v1353

* Update generated code for v1356

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Nov 14, 2024
1 parent 7c799e5 commit 6a7f452
Show file tree
Hide file tree
Showing 48 changed files with 244 additions and 37 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1333
v1356
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-10-28.acacia";
public const string Current = "2024-11-20.acacia";
}
}
2 changes: 2 additions & 0 deletions src/Stripe.net/Constants/FilePurpose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public static class FilePurpose

public const string FinanceReportRun = "finance_report_run";

public const string FinancialAccountStatement = "financial_account_statement";

public const string IdentityDocument = "identity_document";

public const string IdentityDocumentDownloadable = "identity_document_downloadable";
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class AccountFutureRequirements : StripeEntity<AccountFutureRequirements>
public List<AccountFutureRequirementsAlternative> Alternatives { get; set; }

/// <summary>
/// Date on which <c>future_requirements</c> merges with the main <c>requirements</c> hash
/// and <c>future_requirements</c> becomes empty. After the transition, <c>currently_due</c>
/// Date on which <c>future_requirements</c> becomes the main <c>requirements</c> hash and
/// <c>future_requirements</c> becomes empty. After the transition, <c>currently_due</c>
/// requirements may immediately become <c>past_due</c>, but the account may also be given a
/// grace period depending on its enablement state prior to transitioning.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class CapabilityFutureRequirements : StripeEntity<CapabilityFutureRequire
public List<CapabilityFutureRequirementsAlternative> Alternatives { get; set; }

/// <summary>
/// Date on which <c>future_requirements</c> merges with the main <c>requirements</c> hash
/// and <c>future_requirements</c> becomes empty. After the transition, <c>currently_due</c>
/// Date on which <c>future_requirements</c> becomes the main <c>requirements</c> hash and
/// <c>future_requirements</c> becomes empty. After the transition, <c>currently_due</c>
/// requirements may immediately become <c>past_due</c>, but the account may also be given a
/// grace period depending on the capability's enablement state prior to transitioning.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public SetupIntent SetupIntent
/// relevant text on the page, such as the submit button. <c>submit_type</c> can only be
/// specified on Checkout Sessions in <c>payment</c> mode. If blank or <c>auto</c>,
/// <c>pay</c> is used.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Files/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class File : StripeEntity<File>, IHasId, IHasObject
/// One of: <c>account_requirement</c>, <c>additional_verification</c>,
/// <c>business_icon</c>, <c>business_logo</c>, <c>customer_signature</c>,
/// <c>dispute_evidence</c>, <c>document_provider_identity_document</c>,
/// <c>finance_report_run</c>, <c>identity_document</c>,
/// <c>finance_report_run</c>, <c>financial_account_statement</c>, <c>identity_document</c>,
/// <c>identity_document_downloadable</c>, <c>issuing_regulatory_reporting</c>,
/// <c>pci_document</c>, <c>selfie</c>, <c>sigma_scheduled_query</c>,
/// <c>tax_document_user_upload</c>, or <c>terminal_reader_splashscreen</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ namespace Stripe

public class FundingInstructionsBankTransferFinancialAddressIban : StripeEntity<FundingInstructionsBankTransferFinancialAddressIban>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The name of the person or business that owns the bank account.
/// </summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The BIC/SWIFT code of the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class FundingInstructionsBankTransferFinancialAddressSortCode : StripeEntity<FundingInstructionsBankTransferFinancialAddressSortCode>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The name of the person or business that owns the bank account.
/// </summary>
Expand All @@ -17,6 +20,9 @@ public class FundingInstructionsBankTransferFinancialAddressSortCode : StripeEnt
[JsonProperty("account_number")]
public string AccountNumber { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The six-digit sort code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ namespace Stripe

public class FundingInstructionsBankTransferFinancialAddressSpei : StripeEntity<FundingInstructionsBankTransferFinancialAddressSpei>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The account holder name.
/// </summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The three-digit bank code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class FundingInstructionsBankTransferFinancialAddressZengin : StripeEntity<FundingInstructionsBankTransferFinancialAddressZengin>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The account holder name.
/// </summary>
Expand All @@ -23,6 +26,9 @@ public class FundingInstructionsBankTransferFinancialAddressZengin : StripeEntit
[JsonProperty("account_type")]
public string AccountType { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The bank code of the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class InvoiceSubscriptionDetails : StripeEntity<InvoiceSubscriptionDetail
/// <summary>
/// If specified, payment collection for this subscription will be paused. Note that the
/// subscription status will be unchanged and will not be updated to <c>paused</c>. Learn
/// more about <a href="https://stripe.com/billing/subscriptions/pause-payment">pausing
/// more about <a href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing
/// collection</a>.
/// </summary>
[JsonProperty("pause_collection")]
Expand Down
15 changes: 15 additions & 0 deletions src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ public Cardholder Cardholder
[JsonProperty("fleet")]
public AuthorizationFleet Fleet { get; set; }

/// <summary>
/// Fraud challenges sent to the cardholder, if this authorization was declined for fraud
/// risk reasons.
/// </summary>
[JsonProperty("fraud_challenges")]
public List<AuthorizationFraudChallenge> FraudChallenges { get; set; }

/// <summary>
/// Information about fuel that was purchased with this transaction. Typically this
/// information is received from the merchant after the authorization has been approved and
Expand Down Expand Up @@ -257,6 +264,14 @@ public Token Token
[JsonProperty("verification_data")]
public AuthorizationVerificationData VerificationData { get; set; }

/// <summary>
/// Whether the authorization bypassed fraud risk checks because the cardholder has
/// previously completed a fraud challenge on a similar high-risk authorization from the
/// same merchant.
/// </summary>
[JsonProperty("verified_by_fraud_challenge")]
public bool? VerifiedByFraudChallenge { get; set; }

/// <summary>
/// The digital wallet used for this transaction. One of <c>apple_pay</c>,
/// <c>google_pay</c>, or <c>samsung_pay</c>. Will populate as <c>null</c> when no digital
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class AuthorizationFraudChallenge : StripeEntity<AuthorizationFraudChallenge>
{
/// <summary>
/// The method by which the fraud challenge was delivered to the cardholder.
/// </summary>
[JsonProperty("channel")]
public string Channel { get; set; }

/// <summary>
/// The status of the fraud challenge.
/// One of: <c>expired</c>, <c>pending</c>, <c>rejected</c>, <c>undeliverable</c>, or
/// <c>verified</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// If the challenge is not deliverable, the reason why.
/// One of: <c>no_phone_number</c>, or <c>unsupported_phone_number</c>.
/// </summary>
[JsonProperty("undeliverable_reason")]
public string UndeliverableReason { get; set; }
}
}
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ namespace Stripe.Issuing
/// An Issuing <c>Cardholder</c> object represents an individual or business entity who is
/// <a href="https://stripe.com/docs/issuing">issued</a> cards.
///
/// Related guide: <a href="https://stripe.com/docs/issuing/cards#create-cardholder">How to
/// create a cardholder</a>.
/// Related guide: <a
/// href="https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder">How
/// to create a cardholder</a>.
/// </summary>
public class Cardholder : StripeEntity<Cardholder>, IHasId, IHasMetadata, IHasObject
{
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Issuing/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public class Card : StripeEntity<Card>, IHasId, IHasMetadata, IHasObject
/// An Issuing <c>Cardholder</c> object represents an individual or business entity who is
/// <a href="https://stripe.com/docs/issuing">issued</a> cards.
///
/// Related guide: <a href="https://stripe.com/docs/issuing/cards#create-cardholder">How to
/// create a cardholder</a>.
/// Related guide: <a
/// href="https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder">How
/// to create a cardholder</a>.
/// </summary>
[JsonProperty("cardholder")]
public Cardholder Cardholder { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ namespace Stripe

public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban : StripeEntity<PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIban>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The name of the person or business that owns the bank account.
/// </summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The BIC/SWIFT code of the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode : StripeEntity<PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The name of the person or business that owns the bank account.
/// </summary>
Expand All @@ -17,6 +20,9 @@ public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddr
[JsonProperty("account_number")]
public string AccountNumber { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The six-digit sort code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ namespace Stripe

public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei : StripeEntity<PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The account holder name.
/// </summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The three-digit bank code.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin : StripeEntity<PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin>
{
[JsonProperty("account_holder_address")]
public Address AccountHolderAddress { get; set; }

/// <summary>
/// The account holder name.
/// </summary>
Expand All @@ -23,6 +26,9 @@ public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddr
[JsonProperty("account_type")]
public string AccountType { get; set; }

[JsonProperty("bank_address")]
public Address BankAddress { get; set; }

/// <summary>
/// The bank code of the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
public class PaymentIntentPaymentMethodOptionsSwish : StripeEntity<PaymentIntentPaymentMethodOptionsSwish>
{
/// <summary>
/// The order ID displayed in the Swish app after the payment is authorized.
/// A reference for this payment to be displayed in the Swish app.
/// </summary>
[JsonProperty("reference")]
public string Reference { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public Account OnBehalfOf
/// <summary>
/// Indicates the type of transaction being performed which customizes relevant text on the
/// page, such as the submit button.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/Payouts/Payout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ public Payout ReversedBy
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// A value that generates from the beneficiary's bank that allows users to track payouts
/// with their bank. Banks might call this a "reference number" or something similar.
/// </summary>
[JsonProperty("trace_id")]
public PayoutTraceId TraceId { get; set; }

/// <summary>
/// Can be <c>bank_account</c> or <c>card</c>.
/// One of: <c>bank_account</c>, or <c>card</c>.
Expand Down
25 changes: 25 additions & 0 deletions src/Stripe.net/Entities/Payouts/PayoutTraceId.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PayoutTraceId : StripeEntity<PayoutTraceId>
{
/// <summary>
/// Possible values are <c>pending</c>, <c>supported</c>, and <c>unsupported</c>. When
/// <c>payout.status</c> is <c>pending</c> or <c>in_transit</c>, this will be
/// <c>pending</c>. When the payout transitions to <c>paid</c>, <c>failed</c>, or
/// <c>canceled</c>, this status will become <c>supported</c> or <c>unsupported</c> shortly
/// after in most cases. In some cases, this may appear as <c>pending</c> for up to 10 days
/// after <c>arrival_date</c> until transitioning to <c>supported</c> or <c>unsupported</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// The trace ID value if <c>trace_id.status</c> is <c>supported</c>, otherwise <c>nil</c>.
/// </summary>
[JsonProperty("value")]
public string Value { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Persons/PersonRelationship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class PersonRelationship : StripeEntity<PersonRelationship>
{
/// <summary>
/// Whether the person is the authorizer of the account's representative.
/// </summary>
[JsonProperty("authorizer")]
public bool? Authorizer { get; set; }

/// <summary>
/// Whether the person is a director of the account's legal entity. Directors are typically
/// members of the governing board of the company, or responsible for ensuring the company
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class QuoteLineSetPauseCollection : StripeEntity<QuoteLineSetPauseCollect
/// <summary>
/// If specified, payment collection for this subscription will be paused. Note that the
/// subscription status will be unchanged and will not be updated to <c>paused</c>. Learn
/// more about <a href="https://stripe.com/billing/subscriptions/pause-payment">pausing
/// more about <a href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing
/// collection</a>.
/// </summary>
[JsonProperty("set")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class QuotePreviewInvoiceSubscriptionDetails : StripeEntity<QuotePreviewI
/// <summary>
/// If specified, payment collection for this subscription will be paused. Note that the
/// subscription status will be unchanged and will not be updated to <c>paused</c>. Learn
/// more about <a href="https://stripe.com/billing/subscriptions/pause-payment">pausing
/// more about <a href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing
/// collection</a>.
/// </summary>
[JsonProperty("pause_collection")]
Expand Down
Loading

0 comments on commit 6a7f452

Please sign in to comment.