Skip to content

Commit

Permalink
TW-2665 Remove clientId from detectProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Feb 23, 2024
1 parent c975f97 commit 5187b39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 0 additions & 8 deletions src/main/kotlin/com/nylas/models/ProviderDetectParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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

Expand All @@ -47,7 +40,6 @@ data class ProviderDetectParams(
*/
fun build() = ProviderDetectParams(
email,
clientId,
allProviderTypes,
)
}
Expand Down

0 comments on commit 5187b39

Please sign in to comment.