Skip to content

Commit f109cc7

Browse files
fix(internal): minor bug fixes on model instantiation and union validation
1 parent ef24fb8 commit f109cc7

File tree

235 files changed

+235
-235
lines changed

Some content is hidden

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

235 files changed

+235
-235
lines changed

src/Orb/Models/AdjustmentIntervalProperties/Adjustment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Func<PlanPhaseMaximumAdjustment, T> planPhaseMaximum
204204

205205
public void Validate()
206206
{
207-
if (this.Value is not UnknownVariant)
207+
if (this.Value is UnknownVariant)
208208
{
209209
throw new OrbInvalidDataException("Data did not match any variant of Adjustment");
210210
}

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddAdjustmentProperties/Adjustment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Func<NewMaximum, T> newMaximum
159159

160160
public void Validate()
161161
{
162-
if (this.Value is not UnknownVariant)
162+
if (this.Value is UnknownVariant)
163163
{
164164
throw new OrbInvalidDataException("Data did not match any variant of Adjustment");
165165
}

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/Price.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ Func<EventOutput, T> eventOutput
11111111

11121112
public void Validate()
11131113
{
1114-
if (this.Value is not UnknownVariant)
1114+
if (this.Value is UnknownVariant)
11151115
{
11161116
throw new OrbInvalidDataException("Data did not match any variant of Price");
11171117
}

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/PriceProperties/BulkWithFiltersProperties/ConversionRateConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Func<TieredConversionRateConfig, T> tiered
8181

8282
public void Validate()
8383
{
84-
if (this.Value is not UnknownVariant)
84+
if (this.Value is UnknownVariant)
8585
{
8686
throw new OrbInvalidDataException(
8787
"Data did not match any variant of ConversionRateConfig"

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/PriceProperties/EventOutputProperties/ConversionRateConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Func<TieredConversionRateConfig, T> tiered
8181

8282
public void Validate()
8383
{
84-
if (this.Value is not UnknownVariant)
84+
if (this.Value is UnknownVariant)
8585
{
8686
throw new OrbInvalidDataException(
8787
"Data did not match any variant of ConversionRateConfig"

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/PriceProperties/GroupedWithMinMaxThresholdsProperties/ConversionRateConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Func<TieredConversionRateConfig, T> tiered
8181

8282
public void Validate()
8383
{
84-
if (this.Value is not UnknownVariant)
84+
if (this.Value is UnknownVariant)
8585
{
8686
throw new OrbInvalidDataException(
8787
"Data did not match any variant of ConversionRateConfig"

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/PriceProperties/PercentProperties/ConversionRateConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Func<TieredConversionRateConfig, T> tiered
8181

8282
public void Validate()
8383
{
84-
if (this.Value is not UnknownVariant)
84+
if (this.Value is UnknownVariant)
8585
{
8686
throw new OrbInvalidDataException(
8787
"Data did not match any variant of ConversionRateConfig"

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/AddPriceProperties/PriceProperties/TieredWithProrationProperties/ConversionRateConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Func<TieredConversionRateConfig, T> tiered
8181

8282
public void Validate()
8383
{
84-
if (this.Value is not UnknownVariant)
84+
if (this.Value is UnknownVariant)
8585
{
8686
throw new OrbInvalidDataException(
8787
"Data did not match any variant of ConversionRateConfig"

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/ReplaceAdjustmentProperties/Adjustment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Func<NewMaximum, T> newMaximum
159159

160160
public void Validate()
161161
{
162-
if (this.Value is not UnknownVariant)
162+
if (this.Value is UnknownVariant)
163163
{
164164
throw new OrbInvalidDataException("Data did not match any variant of Adjustment");
165165
}

src/Orb/Models/Beta/BetaCreatePlanVersionParamsProperties/ReplacePriceProperties/Price.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ Func<EventOutput, T> eventOutput
11111111

11121112
public void Validate()
11131113
{
1114-
if (this.Value is not UnknownVariant)
1114+
if (this.Value is UnknownVariant)
11151115
{
11161116
throw new OrbInvalidDataException("Data did not match any variant of Price");
11171117
}

0 commit comments

Comments
 (0)