Skip to content

Commit 6dfcce8

Browse files
Merge pull request #2587 from stripe/anniel-generate-major
Generate files for next major branch
2 parents bc4ac27 + d3370bc commit 6dfcce8

File tree

5 files changed

+23
-71
lines changed

5 files changed

+23
-71
lines changed

src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ public Cardholder Cardholder
153153
[JsonProperty("metadata")]
154154
public Dictionary<string, string> Metadata { get; set; }
155155

156+
/// <summary>
157+
/// Details about the authorization, such as identifiers, set by the card network.
158+
/// </summary>
159+
[JsonProperty("network_data")]
160+
public AuthorizationNetworkData NetworkData { get; set; }
161+
156162
/// <summary>
157163
/// The pending authorization request. This field will only be non-null during an
158164
/// <c>issuing_authorization.request</c> webhook.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Issuing
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class AuthorizationNetworkData : StripeEntity<AuthorizationNetworkData>
7+
{
8+
/// <summary>
9+
/// ID from the network that identifies the acquiring financial institution. For Visa and
10+
/// Mastercard credit transactions this is as 6 digit code. For Maestro debit transactions
11+
/// this is a 9 digit code. Uncommonly, acquiring institution ID is not provided. When this
12+
/// occurs, the value will be null.
13+
/// </summary>
14+
[JsonProperty("acquiring_institution_id")]
15+
public string AcquiringInstitutionId { get; set; }
16+
}
17+
}

src/Stripe.net/Entities/LineItems/LineItem.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ namespace Stripe
33
{
44
using System.Collections.Generic;
55
using Newtonsoft.Json;
6-
using Stripe.Infrastructure;
76

87
/// <summary>
98
/// A line item.
@@ -79,41 +78,6 @@ public class LineItem : StripeEntity<LineItem>, IHasId, IHasObject
7978
[JsonProperty("price")]
8079
public Price Price { get; set; }
8180

82-
#region Expandable Product
83-
84-
/// <summary>
85-
/// (ID of the Product)
86-
/// The ID of the product for this line item.
87-
///
88-
/// This will always be the same as <c>price.product</c>.
89-
/// </summary>
90-
[JsonIgnore]
91-
public string ProductId
92-
{
93-
get => this.InternalProduct?.Id;
94-
set => this.InternalProduct = SetExpandableFieldId(value, this.InternalProduct);
95-
}
96-
97-
/// <summary>
98-
/// (Expanded)
99-
/// The ID of the product for this line item.
100-
///
101-
/// This will always be the same as <c>price.product</c>.
102-
///
103-
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
104-
/// </summary>
105-
[JsonIgnore]
106-
public Product Product
107-
{
108-
get => this.InternalProduct?.ExpandedObject;
109-
set => this.InternalProduct = SetExpandableFieldObject(value, this.InternalProduct);
110-
}
111-
112-
[JsonProperty("product")]
113-
[JsonConverter(typeof(ExpandableFieldConverter<Product>))]
114-
internal ExpandableField<Product> InternalProduct { get; set; }
115-
#endregion
116-
11781
/// <summary>
11882
/// The quantity of products being purchased.
11983
/// </summary>

src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataItemOptions.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata
4242
[JsonProperty("description")]
4343
public string Description { get; set; }
4444

45-
/// <summary>
46-
/// This parameter is deprecated. Use the line_items parameter on the Session instead.
47-
/// </summary>
48-
[JsonProperty("items")]
49-
public List<SessionSubscriptionDataItemOptions> Items { get; set; }
50-
5145
/// <summary>
5246
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
5347
/// attach to an object. This can be useful for storing additional information about the

0 commit comments

Comments
 (0)