-
Notifications
You must be signed in to change notification settings - Fork 572
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 #2784 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
77 changed files
with
1,120 additions
and
64 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 |
---|---|---|
@@ -1 +1 @@ | ||
v605 | ||
v627 |
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
26 changes: 26 additions & 0 deletions
26
...pe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressAba.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 FundingInstructionsBankTransferFinancialAddressAba : StripeEntity<FundingInstructionsBankTransferFinancialAddressAba> | ||
{ | ||
/// <summary> | ||
/// The ABA account number. | ||
/// </summary> | ||
[JsonProperty("account_number")] | ||
public string AccountNumber { get; set; } | ||
|
||
/// <summary> | ||
/// The bank name. | ||
/// </summary> | ||
[JsonProperty("bank_name")] | ||
public string BankName { get; set; } | ||
|
||
/// <summary> | ||
/// The ABA routing number. | ||
/// </summary> | ||
[JsonProperty("routing_number")] | ||
public string RoutingNumber { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
....net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddressSwift.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 FundingInstructionsBankTransferFinancialAddressSwift : StripeEntity<FundingInstructionsBankTransferFinancialAddressSwift> | ||
{ | ||
/// <summary> | ||
/// The account number. | ||
/// </summary> | ||
[JsonProperty("account_number")] | ||
public string AccountNumber { get; set; } | ||
|
||
/// <summary> | ||
/// The bank name. | ||
/// </summary> | ||
[JsonProperty("bank_name")] | ||
public string BankName { get; set; } | ||
|
||
/// <summary> | ||
/// The SWIFT code. | ||
/// </summary> | ||
[JsonProperty("swift_code")] | ||
public string SwiftCode { 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
46 changes: 46 additions & 0 deletions
46
src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemMarginAmount.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,46 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class InvoiceLineItemMarginAmount : StripeEntity<InvoiceLineItemMarginAmount> | ||
{ | ||
/// <summary> | ||
/// The amount, in cents (or local equivalent), of the reduction in line item amount. | ||
/// </summary> | ||
[JsonProperty("amount")] | ||
public long Amount { get; set; } | ||
|
||
#region Expandable Margin | ||
|
||
/// <summary> | ||
/// (ID of the Margin) | ||
/// The margin that was applied to get this margin amount. | ||
/// </summary> | ||
[JsonIgnore] | ||
public string MarginId | ||
{ | ||
get => this.InternalMargin?.Id; | ||
set => this.InternalMargin = SetExpandableFieldId(value, this.InternalMargin); | ||
} | ||
|
||
/// <summary> | ||
/// (Expanded) | ||
/// The margin that was applied to get this margin amount. | ||
/// | ||
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>. | ||
/// </summary> | ||
[JsonIgnore] | ||
public Margin Margin | ||
{ | ||
get => this.InternalMargin?.ExpandedObject; | ||
set => this.InternalMargin = SetExpandableFieldObject(value, this.InternalMargin); | ||
} | ||
|
||
[JsonProperty("margin")] | ||
[JsonConverter(typeof(ExpandableFieldConverter<Margin>))] | ||
internal ExpandableField<Margin> InternalMargin { get; set; } | ||
#endregion | ||
} | ||
} |
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
46 changes: 46 additions & 0 deletions
46
src/Stripe.net/Entities/Invoices/InvoiceTotalMarginAmount.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,46 @@ | ||
// File generated from our OpenAPI spec | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class InvoiceTotalMarginAmount : StripeEntity<InvoiceTotalMarginAmount> | ||
{ | ||
/// <summary> | ||
/// The amount, in cents (or local equivalent), of the reduction in line item amount. | ||
/// </summary> | ||
[JsonProperty("amount")] | ||
public long Amount { get; set; } | ||
|
||
#region Expandable Margin | ||
|
||
/// <summary> | ||
/// (ID of the Margin) | ||
/// The margin that was applied to get this margin amount. | ||
/// </summary> | ||
[JsonIgnore] | ||
public string MarginId | ||
{ | ||
get => this.InternalMargin?.Id; | ||
set => this.InternalMargin = SetExpandableFieldId(value, this.InternalMargin); | ||
} | ||
|
||
/// <summary> | ||
/// (Expanded) | ||
/// The margin that was applied to get this margin amount. | ||
/// | ||
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>. | ||
/// </summary> | ||
[JsonIgnore] | ||
public Margin Margin | ||
{ | ||
get => this.InternalMargin?.ExpandedObject; | ||
set => this.InternalMargin = SetExpandableFieldObject(value, this.InternalMargin); | ||
} | ||
|
||
[JsonProperty("margin")] | ||
[JsonConverter(typeof(ExpandableFieldConverter<Margin>))] | ||
internal ExpandableField<Margin> InternalMargin { get; set; } | ||
#endregion | ||
} | ||
} |
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
Oops, something went wrong.