Skip to content

Commit 8b7b709

Browse files
fix(client)!: use readonly types for properties
1 parent c0a7fcc commit 8b7b709

211 files changed

Lines changed: 680 additions & 680 deletions

File tree

Some content is hidden

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

src/Orb/Models/AdjustmentInterval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public required AdjustmentIntervalAdjustment Adjustment
7171
/// <summary>
7272
/// The price interval IDs that this adjustment applies to.
7373
/// </summary>
74-
public required List<string> AppliesToPriceIntervalIDs
74+
public required IReadOnlyList<string> AppliesToPriceIntervalIDs
7575
{
7676
get
7777
{

src/Orb/Models/AggregatedCost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Orb.Models;
1212
[JsonConverter(typeof(ModelConverter<AggregatedCost, AggregatedCostFromRaw>))]
1313
public sealed record class AggregatedCost : ModelBase
1414
{
15-
public required List<PerPriceCost> PerPriceCosts
15+
public required IReadOnlyList<PerPriceCost> PerPriceCosts
1616
{
1717
get
1818
{

src/Orb/Models/Alerts/Alert.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public required SubscriptionMinified? Subscription
214214
/// <summary>
215215
/// The thresholds that define the conditions under which the alert will be triggered.
216216
/// </summary>
217-
public required List<Threshold>? Thresholds
217+
public required IReadOnlyList<Threshold>? Thresholds
218218
{
219219
get
220220
{
@@ -265,7 +265,7 @@ public required ApiEnum<string, AlertType> Type
265265
/// <summary>
266266
/// The current status of the alert. This field is only present for credit balance alerts.
267267
/// </summary>
268-
public List<BalanceAlertStatus>? BalanceAlertStatus
268+
public IReadOnlyList<BalanceAlertStatus>? BalanceAlertStatus
269269
{
270270
get
271271
{

src/Orb/Models/Alerts/AlertCreateForCustomerParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public required string Currency
8787
/// <summary>
8888
/// The thresholds that define the values at which the alert will be triggered.
8989
/// </summary>
90-
public List<Threshold>? Thresholds
90+
public IReadOnlyList<Threshold>? Thresholds
9191
{
9292
get
9393
{

src/Orb/Models/Alerts/AlertCreateForExternalCustomerParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public required ApiEnum<string, TypeModel> Type
8787
/// <summary>
8888
/// The thresholds that define the values at which the alert will be triggered.
8989
/// </summary>
90-
public List<Threshold>? Thresholds
90+
public IReadOnlyList<Threshold>? Thresholds
9191
{
9292
get
9393
{

src/Orb/Models/Alerts/AlertCreateForSubscriptionParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public IReadOnlyDictionary<string, JsonElement> RawBodyData
3737
/// <summary>
3838
/// The thresholds that define the values at which the alert will be triggered.
3939
/// </summary>
40-
public required List<Threshold> Thresholds
40+
public required IReadOnlyList<Threshold> Thresholds
4141
{
4242
get
4343
{

src/Orb/Models/Alerts/AlertListPageResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Orb.Models.Alerts;
1212
[JsonConverter(typeof(ModelConverter<AlertListPageResponse, AlertListPageResponseFromRaw>))]
1313
public sealed record class AlertListPageResponse : ModelBase
1414
{
15-
public required List<Alert> Data
15+
public required IReadOnlyList<Alert> Data
1616
{
1717
get
1818
{

src/Orb/Models/Alerts/AlertUpdateParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public IReadOnlyDictionary<string, JsonElement> RawBodyData
2626
/// <summary>
2727
/// The thresholds that define the values at which the alert will be triggered.
2828
/// </summary>
29-
public required List<Threshold> Thresholds
29+
public required IReadOnlyList<Threshold> Thresholds
3030
{
3131
get
3232
{

src/Orb/Models/Allocation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public required CustomExpiration? CustomExpiration
8282
}
8383
}
8484

85-
public List<Filter>? Filters
85+
public IReadOnlyList<Filter>? Filters
8686
{
8787
get
8888
{
@@ -203,7 +203,7 @@ public required ApiEnum<string, Operator> Operator
203203
/// <summary>
204204
/// The IDs or values that match this filter.
205205
/// </summary>
206-
public required List<string> Values
206+
public required IReadOnlyList<string> Values
207207
{
208208
get
209209
{

src/Orb/Models/AmountDiscount.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public required ApiEnum<string, DiscountType> DiscountType
7474
/// List of price_ids that this discount applies to. For plan/plan phase discounts,
7575
/// this can be a subset of prices.
7676
/// </summary>
77-
public List<string>? AppliesToPriceIDs
77+
public IReadOnlyList<string>? AppliesToPriceIDs
7878
{
7979
get
8080
{
@@ -95,7 +95,7 @@ public List<string>? AppliesToPriceIDs
9595
/// <summary>
9696
/// The filters that determine which prices to apply this discount to.
9797
/// </summary>
98-
public List<FilterModel>? Filters
98+
public IReadOnlyList<FilterModel>? Filters
9999
{
100100
get
101101
{
@@ -274,7 +274,7 @@ public required ApiEnum<string, FilterModelOperator> Operator
274274
/// <summary>
275275
/// The IDs or values that match this filter.
276276
/// </summary>
277-
public required List<string> Values
277+
public required IReadOnlyList<string> Values
278278
{
279279
get
280280
{

0 commit comments

Comments
 (0)