-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2961 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
38 changed files
with
726 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1247 | ||
v1259 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
src/Stripe.net/Entities/Issuing/DisputeSettlementDetails/DisputeSettlementDetail.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
Oops, something went wrong.