diff --git a/SeatsioDotNet.Test/Events/UpdateEventTest.cs b/SeatsioDotNet.Test/Events/UpdateEventTest.cs index 19eb03b..7a0f70a 100644 --- a/SeatsioDotNet.Test/Events/UpdateEventTest.cs +++ b/SeatsioDotNet.Test/Events/UpdateEventTest.cs @@ -9,21 +9,6 @@ namespace SeatsioDotNet.Test.Events; public class UpdateEventTest : SeatsioClientTest { - [Fact] - public async Task UpdateChartKey() - { - var chartKey1 = CreateTestChart(); - var chartKey2 = CreateTestChart(); - var evnt = await Client.Events.CreateAsync(chartKey1); - - await Client.Events.UpdateAsync(evnt.Key, new UpdateEventParams().WithChartKey(chartKey2)); - - var retrievedEvent = await Client.Events.RetrieveAsync(evnt.Key); - Assert.Equal(evnt.Key, retrievedEvent.Key); - Assert.Equal(chartKey2, retrievedEvent.ChartKey); - CustomAssert.CloseTo(DateTimeOffset.Now, retrievedEvent.UpdatedOn.Value); - } - [Fact] public async Task UpdateEventKey() { diff --git a/SeatsioDotNet/Events/Events.cs b/SeatsioDotNet/Events/Events.cs index e008e2f..51cf6ad 100644 --- a/SeatsioDotNet/Events/Events.cs +++ b/SeatsioDotNet/Events/Events.cs @@ -135,11 +135,6 @@ public async Task UpdateAsync(string eventKey, UpdateEventParams p, Cancellation { Dictionary requestBody = new Dictionary(); - if (p.ChartKey != null) - { - requestBody.Add("chartKey", p.ChartKey); - } - if (p.Key != null) { requestBody.Add("eventKey", p.Key); diff --git a/SeatsioDotNet/Events/UpdateEventParams.cs b/SeatsioDotNet/Events/UpdateEventParams.cs index f995bfe..da27511 100644 --- a/SeatsioDotNet/Events/UpdateEventParams.cs +++ b/SeatsioDotNet/Events/UpdateEventParams.cs @@ -7,7 +7,6 @@ namespace SeatsioDotNet.Events; public class UpdateEventParams { public string Key { get; set; } - public string ChartKey { get; set; } public string Name { get; set; } public DateOnly? Date { get; set; } public TableBookingConfig TableBookingConfig { get; set; } @@ -21,12 +20,6 @@ public UpdateEventParams WithKey(string key) return this; } - public UpdateEventParams WithChartKey(string chartKey) - { - ChartKey = chartKey; - return this; - } - public UpdateEventParams WithTableBookingConfig(TableBookingConfig tableBookingConfig) { TableBookingConfig = tableBookingConfig;