Skip to content

Commit

Permalink
Merge pull request #2961 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] committed Sep 13, 2024
2 parents f2f6edc + 9c2e6ff commit f02a270
Show file tree
Hide file tree
Showing 38 changed files with 726 additions and 60 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

[*.cs]

# IDE0003: Remove qualification
dotnet_style_qualification_for_event = true

# IDE0003: Remove qualification
dotnet_style_qualification_for_property = true

# IDE0003: Remove qualification
dotnet_style_qualification_for_method = true

# IDE0003: Remove qualification
dotnet_style_qualification_for_field = true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* Add support for `RegulatoryReportingFile` on `Issuing.CreditUnderwritingRecordCorrectOptions`, `Issuing.CreditUnderwritingRecordCreateFromProactiveReviewOptions`, `Issuing.CreditUnderwritingRecordReportDecisionOptions`, and `IssuingCreditUnderwritingRecord`
* Remove support for `Rechnung` on `PaymentMethodUpdateOptions`

## 45.11.0 - 2024-09-05
* [#2952](https://github.com/stripe/stripe-dotnet/pull/2952) Update generated code
* Add support for `SubscriptionItem` and `Subscription` on `BillingAlertFilterOptions`

## 45.10.0 - 2024-08-29
* [#2957](https://github.com/stripe/stripe-dotnet/pull/2957) Generate SDK for OpenAPI spec version 1230
* Add support for `StatusDetails` on `TestHelpersTestClock`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1247
v1259
20 changes: 20 additions & 0 deletions src/Stripe.net/Constants/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,16 @@ public static class Events
/// </summary>
public const string IssuingCardholderUpdated = "issuing_cardholder.updated";

/// <summary>
/// Emitted when the DisputeSettlementDetail object is created.
/// </summary>
public const string IssuingDisputeSettlementDetailCreated = "issuing_dispute_settlement_detail.created";

/// <summary>
/// Emitted when the DisputeSettlementDetail object is updated.
/// </summary>
public const string IssuingDisputeSettlementDetailUpdated = "issuing_dispute_settlement_detail.updated";

/// <summary>
/// Occurs whenever a dispute is won, lost or expired.
/// </summary>
Expand Down Expand Up @@ -738,6 +748,16 @@ public static class Events
/// </summary>
public const string IssuingPersonalizationDesignUpdated = "issuing_personalization_design.updated";

/// <summary>
/// Occurs whenever an issuing settlement is created.
/// </summary>
public const string IssuingSettlementCreated = "issuing_settlement.created";

/// <summary>
/// Occurs whenever an issuing settlement is updated.
/// </summary>
public const string IssuingSettlementUpdated = "issuing_settlement.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 @@ -10,5 +10,12 @@ public class SessionTaxIdCollection : StripeEntity<SessionTaxIdCollection>
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }

/// <summary>
/// Indicates whether a tax ID is required on the payment page.
/// One of: <c>if_supported</c>, or <c>never</c>.
/// </summary>
[JsonProperty("required")]
public string Required { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@ public class CustomerInvoiceSettingsRenderingOptions : StripeEntity<CustomerInvo
/// </summary>
[JsonProperty("amount_tax_display")]
public string AmountTaxDisplay { get; set; }

/// <summary>
/// ID of the invoice rendering template to be used for this customer's invoices. If set,
/// the template will be used on all invoices for this customer unless a template is set
/// directly on the invoice.
/// </summary>
[JsonProperty("template")]
public string Template { get; set; }
}
}
7 changes: 5 additions & 2 deletions src/Stripe.net/Entities/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,13 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>issuing_cardholder.updated</c>, <c>issuing_dispute.closed</c>,
/// <c>issuing_dispute.created</c>, <c>issuing_dispute.funds_reinstated</c>,
/// <c>issuing_dispute.funds_rescinded</c>, <c>issuing_dispute.submitted</c>,
/// <c>issuing_dispute.updated</c>, <c>issuing_personalization_design.activated</c>,
/// <c>issuing_dispute.updated</c>, <c>issuing_dispute_settlement_detail.created</c>,
/// <c>issuing_dispute_settlement_detail.updated</c>,
/// <c>issuing_personalization_design.activated</c>,
/// <c>issuing_personalization_design.deactivated</c>,
/// <c>issuing_personalization_design.rejected</c>,
/// <c>issuing_personalization_design.updated</c>, <c>issuing_token.created</c>,
/// <c>issuing_personalization_design.updated</c>, <c>issuing_settlement.created</c>,
/// <c>issuing_settlement.updated</c>, <c>issuing_token.created</c>,
/// <c>issuing_token.updated</c>, <c>issuing_transaction.created</c>,
/// <c>issuing_transaction.updated</c>, <c>mandate.updated</c>,
/// <c>payment_intent.amount_capturable_updated</c>, <c>payment_intent.canceled</c>,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class InvoiceRenderingTemplate : StripeEntity<InvoiceRenderingTemplate>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
public string Object { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format.
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// A brief description of the template, hidden from customers.
/// </summary>
[JsonProperty("nickname")]
public string Nickname { get; set; }

/// <summary>
/// The status of the template, one of <c>active</c> or <c>archived</c>.
/// One of: <c>active</c>, or <c>archived</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// Version of this template; version increases by one when an update on the template
/// changes any field that controls invoice rendering.
/// </summary>
[JsonProperty("version")]
public long Version { get; set; }
}
}
12 changes: 12 additions & 0 deletions src/Stripe.net/Entities/Invoices/InvoiceRendering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,17 @@ public class InvoiceRendering : StripeEntity<InvoiceRendering>
/// </summary>
[JsonProperty("pdf")]
public InvoiceRenderingPdf Pdf { get; set; }

/// <summary>
/// ID of the rendering template that the invoice is formatted by.
/// </summary>
[JsonProperty("template")]
public string Template { get; set; }

/// <summary>
/// Version of the rendering template that the invoice is using.
/// </summary>
[JsonProperty("template_version")]
public long? TemplateVersion { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Issuing/Cards/CardShipping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class CardShipping : StripeEntity<CardShipping>
/// <summary>
/// The delivery status of the card.
/// One of: <c>canceled</c>, <c>delivered</c>, <c>failure</c>, <c>pending</c>,
/// <c>returned</c>, or <c>shipped</c>.
/// <c>returned</c>, <c>shipped</c>, or <c>submitted</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

/// <summary>
/// Represents a record from the card network of a money movement or change in state for an
/// Issuing dispute. These records are included in the settlement reports that we receive
/// from networks and expose to users as Settlement objects.
/// </summary>
public class DisputeSettlementDetail : StripeEntity<DisputeSettlementDetail>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
public string Object { get; set; }

/// <summary>
/// Disputed amount in the card’s currency and in the smallest currency unit. Usually the
/// amount of the transaction, but can differ (usually because of currency fluctuation).
/// </summary>
[JsonProperty("amount")]
public long Amount { get; set; }

/// <summary>
/// The card used to make the original transaction.
/// </summary>
[JsonProperty("card")]
public string Card { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The currency the original transaction was made in. 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; }

/// <summary>
/// The ID of the linked dispute.
/// </summary>
[JsonProperty("dispute")]
public string Dispute { get; set; }

/// <summary>
/// The type of event corresponding to this dispute settlement detail, representing the
/// stage in the dispute network lifecycle.
/// One of: <c>filing</c>, <c>loss</c>, <c>representment</c>, or <c>win</c>.
/// </summary>
[JsonProperty("event_type")]
public string EventType { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }

/// <summary>
/// The card network for this dispute settlement detail. One of ["visa", "mastercard",
/// "maestro"].
/// One of: <c>maestro</c>, <c>mastercard</c>, or <c>visa</c>.
/// </summary>
[JsonProperty("network")]
public string Network { get; set; }

/// <summary>
/// The ID of the linked card network settlement.
/// </summary>
[JsonProperty("settlement")]
public string Settlement { get; set; }
}
}
Loading

0 comments on commit f02a270

Please sign in to comment.