Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/kotlin/com/ecwid/apiclient/v3/ApiClientHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ApiClientHelper private constructor(
) {

private val log = Logger.getLogger(this::class.qualifiedName)
private var apiVersion = "v3"

constructor(
apiServerDomain: ApiServerDomain,
Expand Down Expand Up @@ -423,8 +424,8 @@ class ApiClientHelper private constructor(
}

private fun buildBaseEndpointPath(credentials: ApiCredentials) = when (credentials) {
is ApiStoreCredentials -> "/api/v3/${credentials.storeId}"
is ApiAppCredentials -> "/api/v3"
is ApiStoreCredentials -> "/api/$apiVersion/${credentials.storeId}"
is ApiAppCredentials -> "/api/$apiVersion"
}
}

Expand Down
36 changes: 0 additions & 36 deletions src/test/kotlin/com/ecwid/apiclient/v3/BatchSupportUnitTest.kt

This file was deleted.

Loading