From f0aaa41339892782b780e52fe988d30818e119b5 Mon Sep 17 00:00:00 2001 From: Zach Girod Date: Fri, 1 Mar 2024 01:19:39 -0500 Subject: [PATCH] Add features to available phone number (#81) * Add in features to available phone numbers * fix typo --- .../PhoneNumbers/Searches/AvailablePhoneNumber.cs | 6 ++++++ .../Entities/PhoneNumbers/Searches/Feature.cs | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/Telnyx.net/Entities/PhoneNumbers/Searches/Feature.cs diff --git a/src/Telnyx.net/Entities/PhoneNumbers/Searches/AvailablePhoneNumber.cs b/src/Telnyx.net/Entities/PhoneNumbers/Searches/AvailablePhoneNumber.cs index ecbd5034..6de7db41 100644 --- a/src/Telnyx.net/Entities/PhoneNumbers/Searches/AvailablePhoneNumber.cs +++ b/src/Telnyx.net/Entities/PhoneNumbers/Searches/AvailablePhoneNumber.cs @@ -51,5 +51,11 @@ public class AvailablePhoneNumber : TelnyxEntity /// [JsonProperty("regulatory_requirements")] public List RegulatoryRequirements { get; set; } + + /// + /// Gets or sets Features. + /// + [JsonProperty("features")] + public List Features { get; set; } } } diff --git a/src/Telnyx.net/Entities/PhoneNumbers/Searches/Feature.cs b/src/Telnyx.net/Entities/PhoneNumbers/Searches/Feature.cs new file mode 100644 index 00000000..c8e3fa8f --- /dev/null +++ b/src/Telnyx.net/Entities/PhoneNumbers/Searches/Feature.cs @@ -0,0 +1,10 @@ +namespace Telnyx +{ + using Newtonsoft.Json; + + public class Feature + { + [JsonProperty("name")] + public string Name { get; set; } + } +} \ No newline at end of file