Skip to content

Commit 32d7f99

Browse files
feat(client): add additional implicit conversions
1 parent af22d1e commit 32d7f99

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/Orb/Models/Subscriptions/SubscriptionPriceIntervalsParams.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ public T Match<T>(
550550
public static implicit operator StartDate(ApiEnum<string, BillingCycleRelativeDate> value) =>
551551
new(value);
552552

553+
public static implicit operator StartDate(BillingCycleRelativeDate value) => new(value);
554+
553555
public void Validate()
554556
{
555557
if (this.Value == null)
@@ -1261,6 +1263,8 @@ public T Match<T>(
12611263
public static implicit operator EndDate(ApiEnum<string, BillingCycleRelativeDate> value) =>
12621264
new(value);
12631265

1266+
public static implicit operator EndDate(BillingCycleRelativeDate value) => new(value);
1267+
12641268
public void Validate()
12651269
{
12661270
if (this.Value == null)
@@ -6995,6 +6999,9 @@ public static implicit operator AddAdjustmentModelStartDate(
69956999
ApiEnum<string, BillingCycleRelativeDate> value
69967000
) => new(value);
69977001

7002+
public static implicit operator AddAdjustmentModelStartDate(BillingCycleRelativeDate value) =>
7003+
new(value);
7004+
69987005
public void Validate()
69997006
{
70007007
if (this.Value == null)
@@ -7488,6 +7495,9 @@ public static implicit operator AddAdjustmentModelEndDate(
74887495
ApiEnum<string, BillingCycleRelativeDate> value
74897496
) => new(value);
74907497

7498+
public static implicit operator AddAdjustmentModelEndDate(BillingCycleRelativeDate value) =>
7499+
new(value);
7500+
74917501
public void Validate()
74927502
{
74937503
if (this.Value == null)
@@ -7792,6 +7802,8 @@ public T Match<T>(
77927802
public static implicit operator EditEndDate(ApiEnum<string, BillingCycleRelativeDate> value) =>
77937803
new(value);
77947804

7805+
public static implicit operator EditEndDate(BillingCycleRelativeDate value) => new(value);
7806+
77957807
public void Validate()
77967808
{
77977809
if (this.Value == null)
@@ -8011,6 +8023,8 @@ public static implicit operator EditStartDate(
80118023
ApiEnum<string, BillingCycleRelativeDate> value
80128024
) => new(value);
80138025

8026+
public static implicit operator EditStartDate(BillingCycleRelativeDate value) => new(value);
8027+
80148028
public void Validate()
80158029
{
80168030
if (this.Value == null)
@@ -8253,6 +8267,9 @@ public static implicit operator EditAdjustmentEndDate(
82538267
ApiEnum<string, BillingCycleRelativeDate> value
82548268
) => new(value);
82558269

8270+
public static implicit operator EditAdjustmentEndDate(BillingCycleRelativeDate value) =>
8271+
new(value);
8272+
82568273
public void Validate()
82578274
{
82588275
if (this.Value == null)
@@ -8413,6 +8430,9 @@ public static implicit operator EditAdjustmentStartDate(
84138430
ApiEnum<string, BillingCycleRelativeDate> value
84148431
) => new(value);
84158432

8433+
public static implicit operator EditAdjustmentStartDate(BillingCycleRelativeDate value) =>
8434+
new(value);
8435+
84168436
public void Validate()
84178437
{
84188438
if (this.Value == null)

src/Orb/Models/Subscriptions/SubscriptionUpdateTrialParams.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ public T Match<T>(
217217

218218
public static implicit operator TrialEndDate(ApiEnum<string, UnionMember1> value) => new(value);
219219

220+
public static implicit operator TrialEndDate(UnionMember1 value) => new(value);
221+
220222
public void Validate()
221223
{
222224
if (this.Value == null)

0 commit comments

Comments
 (0)