Skip to content

Commit 9496bca

Browse files
feat(api): api update
1 parent abb7452 commit 9496bca

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml
3-
openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26020bd285825dac04bf642a414ea07c786fc6e42ee6bbcf795e11f8db426519.yml
3+
openapi_spec_hash: 897fedec83f0960539b3aa4ec0e3308d
44
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2

src/Orb/Models/MatrixSubLineItem.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,27 @@ public required double Quantity
159159
}
160160
}
161161

162+
/// <summary>
163+
/// The scaled quantity for this line item for specific pricing structures
164+
/// </summary>
165+
public double? ScaledQuantity
166+
{
167+
get
168+
{
169+
if (!this.Properties.TryGetValue("scaled_quantity", out JsonElement element))
170+
return null;
171+
172+
return JsonSerializer.Deserialize<double?>(element, ModelBase.SerializerOptions);
173+
}
174+
set
175+
{
176+
this.Properties["scaled_quantity"] = JsonSerializer.SerializeToElement(
177+
value,
178+
ModelBase.SerializerOptions
179+
);
180+
}
181+
}
182+
162183
public override void Validate()
163184
{
164185
_ = this.Amount;
@@ -167,6 +188,7 @@ public override void Validate()
167188
_ = this.Name;
168189
_ = this.Quantity;
169190
this.Type.Validate();
191+
_ = this.ScaledQuantity;
170192
}
171193

172194
public MatrixSubLineItem() { }

0 commit comments

Comments
 (0)