Skip to content

Commit 9272ec0

Browse files
chore: rename some identifiers
1 parent 62483ab commit 9272ec0

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

src/Orb.Tests/Services/EventServiceTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class EventServiceTest : TestBase
1010
[Fact]
1111
public async Task Update_Works()
1212
{
13-
var event1 = await this.client.Events.Update(
13+
var event_ = await this.client.Events.Update(
1414
"event_id",
1515
new()
1616
{
@@ -23,7 +23,7 @@ public async Task Update_Works()
2323
},
2424
TestContext.Current.CancellationToken
2525
);
26-
event1.Validate();
26+
event_.Validate();
2727
}
2828

2929
[Fact]

src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryByExternalIDParams.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public double? Amount
218218
increment: (x) => x.Amount,
219219
decrement: (x) => x.Amount,
220220
expirationChange: (x) => x.Amount,
221-
void1: (x) => x.Amount,
221+
void_: (x) => x.Amount,
222222
amendment: (x) => x.Amount
223223
);
224224
}
@@ -232,7 +232,7 @@ public JsonElement EntryType
232232
increment: (x) => x.EntryType,
233233
decrement: (x) => x.EntryType,
234234
expirationChange: (x) => x.EntryType,
235-
void1: (x) => x.EntryType,
235+
void_: (x) => x.EntryType,
236236
amendment: (x) => x.EntryType
237237
);
238238
}
@@ -246,7 +246,7 @@ public string? Currency
246246
increment: (x) => x.Currency,
247247
decrement: (x) => x.Currency,
248248
expirationChange: (x) => x.Currency,
249-
void1: (x) => x.Currency,
249+
void_: (x) => x.Currency,
250250
amendment: (x) => x.Currency
251251
);
252252
}
@@ -260,7 +260,7 @@ public string? Description
260260
increment: (x) => x.Description,
261261
decrement: (x) => x.Description,
262262
expirationChange: (x) => x.Description,
263-
void1: (x) => x.Description,
263+
void_: (x) => x.Description,
264264
amendment: (x) => x.Description
265265
);
266266
}
@@ -274,7 +274,7 @@ public string? Description
274274
increment: (x) => x.ExpiryDate,
275275
decrement: (_) => null,
276276
expirationChange: (x) => x.ExpiryDate,
277-
void1: (_) => null,
277+
void_: (_) => null,
278278
amendment: (_) => null
279279
);
280280
}
@@ -288,7 +288,7 @@ public string? BlockID
288288
increment: (_) => null,
289289
decrement: (_) => null,
290290
expirationChange: (x) => x.BlockID,
291-
void1: (x) => x.BlockID,
291+
void_: (x) => x.BlockID,
292292
amendment: (x) => x.BlockID
293293
);
294294
}
@@ -486,7 +486,7 @@ public void Switch(
486486
System::Action<LedgerCreateEntryByExternalIDParamsBodyIncrement> increment,
487487
System::Action<LedgerCreateEntryByExternalIDParamsBodyDecrement> decrement,
488488
System::Action<LedgerCreateEntryByExternalIDParamsBodyExpirationChange> expirationChange,
489-
System::Action<LedgerCreateEntryByExternalIDParamsBodyVoid> void1,
489+
System::Action<LedgerCreateEntryByExternalIDParamsBodyVoid> void_,
490490
System::Action<LedgerCreateEntryByExternalIDParamsBodyAmendment> amendment
491491
)
492492
{
@@ -502,7 +502,7 @@ public void Switch(
502502
expirationChange(value);
503503
break;
504504
case LedgerCreateEntryByExternalIDParamsBodyVoid value:
505-
void1(value);
505+
void_(value);
506506
break;
507507
case LedgerCreateEntryByExternalIDParamsBodyAmendment value:
508508
amendment(value);
@@ -542,7 +542,7 @@ public T Match<T>(
542542
System::Func<LedgerCreateEntryByExternalIDParamsBodyIncrement, T> increment,
543543
System::Func<LedgerCreateEntryByExternalIDParamsBodyDecrement, T> decrement,
544544
System::Func<LedgerCreateEntryByExternalIDParamsBodyExpirationChange, T> expirationChange,
545-
System::Func<LedgerCreateEntryByExternalIDParamsBodyVoid, T> void1,
545+
System::Func<LedgerCreateEntryByExternalIDParamsBodyVoid, T> void_,
546546
System::Func<LedgerCreateEntryByExternalIDParamsBodyAmendment, T> amendment
547547
)
548548
{
@@ -553,7 +553,7 @@ public T Match<T>(
553553
LedgerCreateEntryByExternalIDParamsBodyExpirationChange value => expirationChange(
554554
value
555555
),
556-
LedgerCreateEntryByExternalIDParamsBodyVoid value => void1(value),
556+
LedgerCreateEntryByExternalIDParamsBodyVoid value => void_(value),
557557
LedgerCreateEntryByExternalIDParamsBodyAmendment value => amendment(value),
558558
_ => throw new OrbInvalidDataException(
559559
"Data did not match any variant of LedgerCreateEntryByExternalIDParamsBody"
@@ -603,7 +603,7 @@ public void Validate()
603603
(increment) => increment.Validate(),
604604
(decrement) => decrement.Validate(),
605605
(expirationChange) => expirationChange.Validate(),
606-
(void1) => void1.Validate(),
606+
(void_) => void_.Validate(),
607607
(amendment) => amendment.Validate()
608608
);
609609
}

src/Orb/Models/Customers/Credits/Ledger/LedgerCreateEntryParams.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public double? Amount
207207
increment: (x) => x.Amount,
208208
decrement: (x) => x.Amount,
209209
expirationChange: (x) => x.Amount,
210-
void1: (x) => x.Amount,
210+
void_: (x) => x.Amount,
211211
amendment: (x) => x.Amount
212212
);
213213
}
@@ -221,7 +221,7 @@ public JsonElement EntryType
221221
increment: (x) => x.EntryType,
222222
decrement: (x) => x.EntryType,
223223
expirationChange: (x) => x.EntryType,
224-
void1: (x) => x.EntryType,
224+
void_: (x) => x.EntryType,
225225
amendment: (x) => x.EntryType
226226
);
227227
}
@@ -235,7 +235,7 @@ public string? Currency
235235
increment: (x) => x.Currency,
236236
decrement: (x) => x.Currency,
237237
expirationChange: (x) => x.Currency,
238-
void1: (x) => x.Currency,
238+
void_: (x) => x.Currency,
239239
amendment: (x) => x.Currency
240240
);
241241
}
@@ -249,7 +249,7 @@ public string? Description
249249
increment: (x) => x.Description,
250250
decrement: (x) => x.Description,
251251
expirationChange: (x) => x.Description,
252-
void1: (x) => x.Description,
252+
void_: (x) => x.Description,
253253
amendment: (x) => x.Description
254254
);
255255
}
@@ -263,7 +263,7 @@ public string? Description
263263
increment: (x) => x.ExpiryDate,
264264
decrement: (_) => null,
265265
expirationChange: (x) => x.ExpiryDate,
266-
void1: (_) => null,
266+
void_: (_) => null,
267267
amendment: (_) => null
268268
);
269269
}
@@ -277,7 +277,7 @@ public string? BlockID
277277
increment: (_) => null,
278278
decrement: (_) => null,
279279
expirationChange: (x) => x.BlockID,
280-
void1: (x) => x.BlockID,
280+
void_: (x) => x.BlockID,
281281
amendment: (x) => x.BlockID
282282
);
283283
}
@@ -450,7 +450,7 @@ public void Switch(
450450
System::Action<Increment> increment,
451451
System::Action<Decrement> decrement,
452452
System::Action<ExpirationChange> expirationChange,
453-
System::Action<Void> void1,
453+
System::Action<Void> void_,
454454
System::Action<Amendment> amendment
455455
)
456456
{
@@ -466,7 +466,7 @@ public void Switch(
466466
expirationChange(value);
467467
break;
468468
case Void value:
469-
void1(value);
469+
void_(value);
470470
break;
471471
case Amendment value:
472472
amendment(value);
@@ -504,7 +504,7 @@ public T Match<T>(
504504
System::Func<Increment, T> increment,
505505
System::Func<Decrement, T> decrement,
506506
System::Func<ExpirationChange, T> expirationChange,
507-
System::Func<Void, T> void1,
507+
System::Func<Void, T> void_,
508508
System::Func<Amendment, T> amendment
509509
)
510510
{
@@ -513,7 +513,7 @@ public T Match<T>(
513513
Increment value => increment(value),
514514
Decrement value => decrement(value),
515515
ExpirationChange value => expirationChange(value),
516-
Void value => void1(value),
516+
Void value => void_(value),
517517
Amendment value => amendment(value),
518518
_ => throw new OrbInvalidDataException("Data did not match any variant of Body"),
519519
};
@@ -549,7 +549,7 @@ public void Validate()
549549
(increment) => increment.Validate(),
550550
(decrement) => decrement.Validate(),
551551
(expirationChange) => expirationChange.Validate(),
552-
(void1) => void1.Validate(),
552+
(void_) => void_.Validate(),
553553
(amendment) => amendment.Validate()
554554
);
555555
}
@@ -2052,8 +2052,8 @@ public Void()
20522052
this.EntryType = JsonSerializer.Deserialize<JsonElement>("\"void\"");
20532053
}
20542054

2055-
public Void(Void void1)
2056-
: base(void1) { }
2055+
public Void(Void void_)
2056+
: base(void_) { }
20572057

20582058
public Void(IReadOnlyDictionary<string, JsonElement> rawData)
20592059
{

src/Orb/Models/Events/EventIngestParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ public override void Validate()
371371

372372
public Event() { }
373373

374-
public Event(Event event1)
375-
: base(event1) { }
374+
public Event(Event event_)
375+
: base(event_) { }
376376

377377
public Event(IReadOnlyDictionary<string, JsonElement> rawData)
378378
{

src/Orb/Models/Prices/PriceEvaluatePreviewEventsParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ public override void Validate()
273273

274274
public Event() { }
275275

276-
public Event(Event event1)
277-
: base(event1) { }
276+
public Event(Event event_)
277+
: base(event_) { }
278278

279279
public Event(IReadOnlyDictionary<string, JsonElement> rawData)
280280
{

0 commit comments

Comments
 (0)