-
Notifications
You must be signed in to change notification settings - Fork 566
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 #2908 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
42 changed files
with
470 additions
and
24 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
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 @@ | ||
v1020 | ||
v1039 |
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
27 changes: 27 additions & 0 deletions
27
src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.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,27 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource> | ||
{ | ||
/// <summary> | ||
/// Charge ID that created this application fee. | ||
/// </summary> | ||
[JsonProperty("charge")] | ||
public string Charge { get; set; } | ||
|
||
/// <summary> | ||
/// Payout ID that created this application fee. | ||
/// </summary> | ||
[JsonProperty("payout")] | ||
public string Payout { get; set; } | ||
|
||
/// <summary> | ||
/// Type of object that created the application fee, either <c>charge</c> or <c>payout</c>. | ||
/// One of: <c>charge</c>, or <c>payout</c>. | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { 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
23 changes: 23 additions & 0 deletions
23
src/Stripe.net/Entities/Balances/BalanceInstantAvailableNetAvailable.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,23 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class BalanceInstantAvailableNetAvailable : StripeEntity<BalanceInstantAvailableNetAvailable> | ||
{ | ||
/// <summary> | ||
/// Net balance amount, subtracting fees from platform-set pricing. | ||
/// </summary> | ||
[JsonProperty("amount")] | ||
public long Amount { get; set; } | ||
|
||
/// <summary> | ||
/// ID of the external account for this net balance (not expandable). | ||
/// </summary> | ||
[JsonProperty("destination")] | ||
public string Destination { get; set; } | ||
|
||
[JsonProperty("source_types")] | ||
public BalanceInstantAvailableNetAvailableSourceTypes SourceTypes { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Stripe.net/Entities/Balances/BalanceInstantAvailableNetAvailableSourceTypes.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,26 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class BalanceInstantAvailableNetAvailableSourceTypes : StripeEntity<BalanceInstantAvailableNetAvailableSourceTypes> | ||
{ | ||
/// <summary> | ||
/// Amount for bank account. | ||
/// </summary> | ||
[JsonProperty("bank_account")] | ||
public long BankAccount { get; set; } | ||
|
||
/// <summary> | ||
/// Amount for card. | ||
/// </summary> | ||
[JsonProperty("card")] | ||
public long Card { get; set; } | ||
|
||
/// <summary> | ||
/// Amount for FPX. | ||
/// </summary> | ||
[JsonProperty("fpx")] | ||
public long Fpx { 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
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
14 changes: 14 additions & 0 deletions
14
src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsKlarna.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,14 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class DisputePaymentMethodDetailsKlarna : StripeEntity<DisputePaymentMethodDetailsKlarna> | ||
{ | ||
/// <summary> | ||
/// The reason for the dispute as defined by Klarna. | ||
/// </summary> | ||
[JsonProperty("reason_code")] | ||
public string ReasonCode { 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
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
48 changes: 48 additions & 0 deletions
48
src/Stripe.net/Entities/Issuing/Disputes/DisputeEvidenceNoValidAuthorization.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,48 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe.Issuing | ||
{ | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class DisputeEvidenceNoValidAuthorization : StripeEntity<DisputeEvidenceNoValidAuthorization> | ||
{ | ||
#region Expandable AdditionalDocumentation | ||
|
||
/// <summary> | ||
/// (ID of the File) | ||
/// (ID of a <a href="https://stripe.com/docs/guides/file-upload">file upload</a>) | ||
/// Additional documentation supporting the dispute. | ||
/// </summary> | ||
[JsonIgnore] | ||
public string AdditionalDocumentationId | ||
{ | ||
get => this.InternalAdditionalDocumentation?.Id; | ||
set => this.InternalAdditionalDocumentation = SetExpandableFieldId(value, this.InternalAdditionalDocumentation); | ||
} | ||
|
||
/// <summary> | ||
/// (Expanded) | ||
/// (ID of a <a href="https://stripe.com/docs/guides/file-upload">file upload</a>) | ||
/// Additional documentation supporting the dispute. | ||
/// | ||
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>. | ||
/// </summary> | ||
[JsonIgnore] | ||
public File AdditionalDocumentation | ||
{ | ||
get => this.InternalAdditionalDocumentation?.ExpandedObject; | ||
set => this.InternalAdditionalDocumentation = SetExpandableFieldObject(value, this.InternalAdditionalDocumentation); | ||
} | ||
|
||
[JsonProperty("additional_documentation")] | ||
[JsonConverter(typeof(ExpandableFieldConverter<File>))] | ||
internal ExpandableField<File> InternalAdditionalDocumentation { get; set; } | ||
#endregion | ||
|
||
/// <summary> | ||
/// Explanation of why the cardholder is disputing this transaction. | ||
/// </summary> | ||
[JsonProperty("explanation")] | ||
public string Explanation { get; set; } | ||
} | ||
} |
Oops, something went wrong.