Skip to content

Commit 830cc0c

Browse files
feat(api): api update
1 parent 89b717c commit 830cc0c

File tree

211 files changed

+19014
-1504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+19014
-1504
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: 126
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-931771ff4ab183044ee50ce43ea794ac0a15bfafbaf7df61ac0344af3ff08944.yml
3-
openapi_spec_hash: 71371804e373f662585284bf5d93cc62
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6aa83a816c15600a3d6d378d7804a345505c76726059c19369db4e7766a71cbd.yml
3+
openapi_spec_hash: f283d730e5320f9595c3c0a5902f5cbb
44
config_hash: bcf82bddb691f6be773ac6cae8c03b9a

src/Orb.Tests/Models/AggregatedCostTest.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public void FieldRoundtrip_Works()
6363
Values = ["string"],
6464
},
6565
],
66+
LicenseTypeID = "license_type_id",
6667
},
6768
Currency = "currency",
6869
Discount = new PercentageDiscount()
@@ -130,6 +131,12 @@ public void FieldRoundtrip_Works()
130131
DimensionValues = ["string"],
131132
DimensionalPriceGroupID = "dimensional_price_group_id",
132133
},
134+
LicenseType = new()
135+
{
136+
ID = "id",
137+
GroupingKey = "grouping_key",
138+
Name = "name",
139+
},
133140
},
134141
PriceID = "price_id",
135142
Subtotal = "subtotal",
@@ -192,6 +199,7 @@ public void FieldRoundtrip_Works()
192199
Values = ["string"],
193200
},
194201
],
202+
LicenseTypeID = "license_type_id",
195203
},
196204
Currency = "currency",
197205
Discount = new PercentageDiscount()
@@ -259,6 +267,12 @@ public void FieldRoundtrip_Works()
259267
DimensionValues = ["string"],
260268
DimensionalPriceGroupID = "dimensional_price_group_id",
261269
},
270+
LicenseType = new()
271+
{
272+
ID = "id",
273+
GroupingKey = "grouping_key",
274+
Name = "name",
275+
},
262276
},
263277
PriceID = "price_id",
264278
Subtotal = "subtotal",
@@ -337,6 +351,7 @@ public void SerializationRoundtrip_Works()
337351
Values = ["string"],
338352
},
339353
],
354+
LicenseTypeID = "license_type_id",
340355
},
341356
Currency = "currency",
342357
Discount = new PercentageDiscount()
@@ -404,6 +419,12 @@ public void SerializationRoundtrip_Works()
404419
DimensionValues = ["string"],
405420
DimensionalPriceGroupID = "dimensional_price_group_id",
406421
},
422+
LicenseType = new()
423+
{
424+
ID = "id",
425+
GroupingKey = "grouping_key",
426+
Name = "name",
427+
},
407428
},
408429
PriceID = "price_id",
409430
Subtotal = "subtotal",
@@ -481,6 +502,7 @@ public void FieldRoundtripThroughSerialization_Works()
481502
Values = ["string"],
482503
},
483504
],
505+
LicenseTypeID = "license_type_id",
484506
},
485507
Currency = "currency",
486508
Discount = new PercentageDiscount()
@@ -548,6 +570,12 @@ public void FieldRoundtripThroughSerialization_Works()
548570
DimensionValues = ["string"],
549571
DimensionalPriceGroupID = "dimensional_price_group_id",
550572
},
573+
LicenseType = new()
574+
{
575+
ID = "id",
576+
GroupingKey = "grouping_key",
577+
Name = "name",
578+
},
551579
},
552580
PriceID = "price_id",
553581
Subtotal = "subtotal",
@@ -617,6 +645,7 @@ public void FieldRoundtripThroughSerialization_Works()
617645
Values = ["string"],
618646
},
619647
],
648+
LicenseTypeID = "license_type_id",
620649
},
621650
Currency = "currency",
622651
Discount = new PercentageDiscount()
@@ -684,6 +713,12 @@ public void FieldRoundtripThroughSerialization_Works()
684713
DimensionValues = ["string"],
685714
DimensionalPriceGroupID = "dimensional_price_group_id",
686715
},
716+
LicenseType = new()
717+
{
718+
ID = "id",
719+
GroupingKey = "grouping_key",
720+
Name = "name",
721+
},
687722
},
688723
PriceID = "price_id",
689724
Subtotal = "subtotal",
@@ -762,6 +797,7 @@ public void Validation_Works()
762797
Values = ["string"],
763798
},
764799
],
800+
LicenseTypeID = "license_type_id",
765801
},
766802
Currency = "currency",
767803
Discount = new PercentageDiscount()
@@ -829,6 +865,12 @@ public void Validation_Works()
829865
DimensionValues = ["string"],
830866
DimensionalPriceGroupID = "dimensional_price_group_id",
831867
},
868+
LicenseType = new()
869+
{
870+
ID = "id",
871+
GroupingKey = "grouping_key",
872+
Name = "name",
873+
},
832874
},
833875
PriceID = "price_id",
834876
Subtotal = "subtotal",
@@ -900,6 +942,7 @@ public void CopyConstructor_Works()
900942
Values = ["string"],
901943
},
902944
],
945+
LicenseTypeID = "license_type_id",
903946
},
904947
Currency = "currency",
905948
Discount = new PercentageDiscount()
@@ -967,6 +1010,12 @@ public void CopyConstructor_Works()
9671010
DimensionValues = ["string"],
9681011
DimensionalPriceGroupID = "dimensional_price_group_id",
9691012
},
1013+
LicenseType = new()
1014+
{
1015+
ID = "id",
1016+
GroupingKey = "grouping_key",
1017+
Name = "name",
1018+
},
9701019
},
9711020
PriceID = "price_id",
9721021
Subtotal = "subtotal",

src/Orb.Tests/Models/Alerts/AlertTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
using System.Text.Json;
44
using Orb.Core;
55
using Orb.Exceptions;
6-
using Orb.Models;
76
using Orb.Models.Alerts;
7+
using Models = Orb.Models;
88

99
namespace Orb.Tests.Models.Alerts;
1010

@@ -38,7 +38,7 @@ public void FieldRoundtrip_Works()
3838
string expectedID = "XuxCbt7x9L82yyeF";
3939
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
4040
string expectedCurrency = "currency";
41-
CustomerMinified expectedCustomer = new()
41+
Models::CustomerMinified expectedCustomer = new()
4242
{
4343
ID = "id",
4444
ExternalCustomerID = "external_customer_id",
@@ -52,7 +52,7 @@ public void FieldRoundtrip_Works()
5252
Name = "Example plan",
5353
PlanVersion = "plan_version",
5454
};
55-
SubscriptionMinified expectedSubscription = new("VDGsT23osdLb84KD");
55+
Models::SubscriptionMinified expectedSubscription = new("VDGsT23osdLb84KD");
5656
List<Threshold> expectedThresholds = [new(0)];
5757
ApiEnum<string, AlertType> expectedType = AlertType.CreditBalanceDepleted;
5858
List<BalanceAlertStatus> expectedBalanceAlertStatus =
@@ -148,7 +148,7 @@ public void FieldRoundtripThroughSerialization_Works()
148148
string expectedID = "XuxCbt7x9L82yyeF";
149149
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
150150
string expectedCurrency = "currency";
151-
CustomerMinified expectedCustomer = new()
151+
Models::CustomerMinified expectedCustomer = new()
152152
{
153153
ID = "id",
154154
ExternalCustomerID = "external_customer_id",
@@ -162,7 +162,7 @@ public void FieldRoundtripThroughSerialization_Works()
162162
Name = "Example plan",
163163
PlanVersion = "plan_version",
164164
};
165-
SubscriptionMinified expectedSubscription = new("VDGsT23osdLb84KD");
165+
Models::SubscriptionMinified expectedSubscription = new("VDGsT23osdLb84KD");
166166
List<Threshold> expectedThresholds = [new(0)];
167167
ApiEnum<string, AlertType> expectedType = AlertType.CreditBalanceDepleted;
168168
List<BalanceAlertStatus> expectedBalanceAlertStatus =

0 commit comments

Comments
 (0)