From 04c4be8a15d82af6cc091398faecb89475d9e0bf Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Wed, 8 Feb 2023 16:33:45 +0100 Subject: [PATCH] [EC-489] chore: remove obsolete `identifier` field (#2635) * [EC-489] chore: remove obsolete `identifier` field * [EC-489] chore: remove identifier from org response model --- .../Request/Organizations/OrganizationUpdateRequestModel.cs | 4 ---- .../Response/Organizations/OrganizationResponseModel.cs | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/Api/Models/Request/Organizations/OrganizationUpdateRequestModel.cs b/src/Api/Models/Request/Organizations/OrganizationUpdateRequestModel.cs index 0bd16767d2..79983a5549 100644 --- a/src/Api/Models/Request/Organizations/OrganizationUpdateRequestModel.cs +++ b/src/Api/Models/Request/Organizations/OrganizationUpdateRequestModel.cs @@ -12,9 +12,6 @@ public class OrganizationUpdateRequestModel public string Name { get; set; } [StringLength(50)] public string BusinessName { get; set; } - [Obsolete("2022-08-03 Moved to Org SSO request model, left for backwards compatability. Remove with EC-489.")] - [StringLength(50)] - public string Identifier { get; set; } [EmailAddress] [Required] [StringLength(256)] @@ -31,7 +28,6 @@ public class OrganizationUpdateRequestModel existingOrganization.BusinessName = BusinessName; existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim(); } - existingOrganization.Identifier = Identifier; Keys?.ToOrganization(existingOrganization); return existingOrganization; } diff --git a/src/Api/Models/Response/Organizations/OrganizationResponseModel.cs b/src/Api/Models/Response/Organizations/OrganizationResponseModel.cs index 4df4a4dce2..0e284ab9cb 100644 --- a/src/Api/Models/Response/Organizations/OrganizationResponseModel.cs +++ b/src/Api/Models/Response/Organizations/OrganizationResponseModel.cs @@ -17,7 +17,6 @@ public class OrganizationResponseModel : ResponseModel } Id = organization.Id.ToString(); - Identifier = organization.Identifier; Name = organization.Name; BusinessName = organization.BusinessName; BusinessAddress1 = organization.BusinessAddress1; @@ -51,7 +50,6 @@ public class OrganizationResponseModel : ResponseModel } public string Id { get; set; } - public string Identifier { get; set; } public string Name { get; set; } public string BusinessName { get; set; } public string BusinessAddress1 { get; set; }