Skip to content

Commit 0531b3c

Browse files
refactor(client)!: improve names of some types
1 parent 35d0ba7 commit 0531b3c

File tree

194 files changed

+22589
-19347
lines changed

Some content is hidden

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

194 files changed

+22589
-19347
lines changed

src/Orb.Tests/Services/Customers/Credits/LedgerServiceTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public async Task CreateEntryByExternalID_Works()
6464
new()
6565
{
6666
ExternalCustomerID = "external_customer_id",
67-
Body = new IncrementModel()
67+
Body = new BodyModelIncrement()
6868
{
6969
Amount = 0,
7070
Currency = "currency",
@@ -75,8 +75,8 @@ public async Task CreateEntryByExternalID_Works()
7575
[
7676
new()
7777
{
78-
Field = FieldModel.ItemID,
79-
Operator = OperatorModel.Includes,
78+
Field = FilterModelField.ItemID,
79+
Operator = FilterModelOperator.Includes,
8080
Values = ["string"],
8181
},
8282
],

src/Orb.Tests/Services/PlanServiceTest.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,39 @@ public async Task Create_Works()
2626
CustomExpiration = new()
2727
{
2828
Duration = 0,
29-
DurationUnit = DurationUnitModel.Day,
29+
DurationUnit = CustomExpirationDurationUnit.Day,
3030
},
3131
ExpiresAtEndOfCadence = true,
3232
Filters =
3333
[
3434
new()
3535
{
36-
Field = Field11.ItemID,
37-
Operator = Operator11.Includes,
36+
Field = Filter11Field.ItemID,
37+
Operator = Filter11Operator.Includes,
3838
Values = ["string"],
3939
},
4040
],
4141
},
4242
PlanPhaseOrder = 0,
4343
Price1 = new NewPlanUnitPrice()
4444
{
45-
Cadence = Cadence48.Annual,
45+
Cadence = NewPlanUnitPriceCadence.Annual,
4646
ItemID = "item_id",
47-
ModelType = ModelType47.Unit,
47+
ModelType = NewPlanUnitPriceModelType.Unit,
4848
Name = "Annual fee",
4949
UnitConfig = new() { UnitAmount = "unit_amount", Prorated = true },
5050
BillableMetricID = "billable_metric_id",
5151
BilledInAdvance = true,
5252
BillingCycleConfiguration = new()
5353
{
5454
Duration = 0,
55-
DurationUnit = DurationUnit1.Day,
55+
DurationUnit = NewBillingCycleConfigurationDurationUnit.Day,
5656
},
5757
ConversionRate = 0,
58-
ConversionRateConfig = new UnitConversionRateConfig()
58+
ConversionRateConfig = new SharedUnitConversionRateConfig()
5959
{
60-
ConversionRateType = ConversionRateTypeModel.Unit,
60+
ConversionRateType =
61+
SharedUnitConversionRateConfigConversionRateType.Unit,
6162
UnitConfig = new("unit_amount"),
6263
},
6364
Currency = "currency",
@@ -74,7 +75,7 @@ public async Task Create_Works()
7475
InvoicingCycleConfiguration = new()
7576
{
7677
Duration = 0,
77-
DurationUnit = DurationUnit1.Day,
78+
DurationUnit = NewBillingCycleConfigurationDurationUnit.Day,
7879
},
7980
Metadata = new Dictionary<string, string?>() { { "foo", "string" } },
8081
ReferenceID = "reference_id",

src/Orb.Tests/Services/PriceServiceTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ public async Task Create_Works()
1515
{
1616
Body = new NewFloatingUnitPrice()
1717
{
18-
Cadence = Cadence23.Annual,
18+
Cadence = NewFloatingUnitPriceCadence.Annual,
1919
Currency = "currency",
2020
ItemID = "item_id",
21-
ModelType = ModelType22.Unit,
21+
ModelType = NewFloatingUnitPriceModelType.Unit,
2222
Name = "Annual fee",
2323
UnitConfig = new() { UnitAmount = "unit_amount", Prorated = true },
2424
BillableMetricID = "billable_metric_id",
2525
BilledInAdvance = true,
2626
BillingCycleConfiguration = new()
2727
{
2828
Duration = 0,
29-
DurationUnit = DurationUnit1.Day,
29+
DurationUnit = NewBillingCycleConfigurationDurationUnit.Day,
3030
},
3131
ConversionRate = 0,
32-
ConversionRateConfig = new UnitConversionRateConfig()
32+
ConversionRateConfig = new SharedUnitConversionRateConfig()
3333
{
34-
ConversionRateType = ConversionRateTypeModel.Unit,
34+
ConversionRateType = SharedUnitConversionRateConfigConversionRateType.Unit,
3535
UnitConfig = new("unit_amount"),
3636
},
3737
DimensionalPriceConfiguration = new()
@@ -46,7 +46,7 @@ public async Task Create_Works()
4646
InvoicingCycleConfiguration = new()
4747
{
4848
Duration = 0,
49-
DurationUnit = DurationUnit1.Day,
49+
DurationUnit = NewBillingCycleConfigurationDurationUnit.Day,
5050
},
5151
Metadata = new Dictionary<string, string?>() { { "foo", "string" } },
5252
},

0 commit comments

Comments
 (0)