From 5187b395497e69495346178350f210dc0b1f6804 Mon Sep 17 00:00:00 2001 From: Mostafa Rashed <17770919+mrashed-dev@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:51:51 -0500 Subject: [PATCH] TW-2665 Remove clientId from detectProvider --- CHANGELOG.md | 1 + src/main/kotlin/com/nylas/models/ProviderDetectParams.kt | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42fe6824..cd386ed5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Added support for `roundTo` field in availability response * Added support for `attributes` field in folder model * Added support for icloud as an auth provider +* Removed unnecessary `clientId` from detectProvider params ## [2.1.0] - Released 2024-02-12 diff --git a/src/main/kotlin/com/nylas/models/ProviderDetectParams.kt b/src/main/kotlin/com/nylas/models/ProviderDetectParams.kt index e771e5bb..abbf2c0c 100644 --- a/src/main/kotlin/com/nylas/models/ProviderDetectParams.kt +++ b/src/main/kotlin/com/nylas/models/ProviderDetectParams.kt @@ -11,11 +11,6 @@ data class ProviderDetectParams( */ @Json(name = "email") val email: String, - /** - * Client ID of the Nylas application. - */ - @Json(name = "client_id") - var clientId: String, /** * Search by all providers regardless of created integrations. If unset, defaults to false. */ @@ -25,11 +20,9 @@ data class ProviderDetectParams( /** * Builder for [ProviderDetectParams]. * @property email Email address to detect the provider for. - * @property clientId Client ID of the Nylas application. */ data class Builder( private val email: String, - private val clientId: String, ) { private var allProviderTypes: Boolean? = null @@ -47,7 +40,6 @@ data class ProviderDetectParams( */ fun build() = ProviderDetectParams( email, - clientId, allProviderTypes, ) }