From 4c3245a6e13d584cc0171d882e57c7025a0a58b4 Mon Sep 17 00:00:00 2001 From: Matthew Abbott Date: Thu, 7 Nov 2024 12:20:44 +0000 Subject: [PATCH] fix: Guests can require first_name and last_name depending on setting --- libs/TrybeSDK/Api/Shop/Basket/Guest.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/libs/TrybeSDK/Api/Shop/Basket/Guest.cs b/libs/TrybeSDK/Api/Shop/Basket/Guest.cs index 70f61b0..234d974 100644 --- a/libs/TrybeSDK/Api/Shop/Basket/Guest.cs +++ b/libs/TrybeSDK/Api/Shop/Basket/Guest.cs @@ -15,14 +15,28 @@ public class Guest : Model /// /// The ID of the guest. [JsonPropertyName("id")] - public string Id { get; set; } + public string? Id { get; set; } + + /// + /// The guest's first name. + /// + /// The guest's first name + [JsonPropertyName("first_name")] + public string? FirstName { get; set; } + + /// + /// The guest's last name. + /// + /// The guest's last name + [JsonPropertyName("last_name")] + public string? LastName { get; set; } /// /// The guest's full name. /// /// The guest's full name. [JsonPropertyName("name")] - public string Name { get; set; } + public string? Name { get; set; } /// /// Whether this guest is the lead booker