Skip to content

Commit 1453861

Browse files
committed
ECWID-161269 - add default null value to public constructor
1 parent 33f6dc6 commit 1453861

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/ApiClientHelper.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private val REQUEST_ID_CHARACTERS = ('a'..'z') + ('A'..'Z') + ('0'..'9')
4040

4141
class ApiClientHelper private constructor(
4242
private val apiServerDomain: ApiServerDomain,
43-
private val credentials: ApiCredentials? = null,
43+
private val credentials: ApiCredentials?,
4444
private val loggingSettings: LoggingSettings,
4545
val httpTransport: HttpTransport,
4646
val jsonTransformer: JsonTransformer,
@@ -51,7 +51,7 @@ class ApiClientHelper private constructor(
5151

5252
constructor(
5353
apiServerDomain: ApiServerDomain,
54-
storeCredentials: ApiStoreCredentials?,
54+
storeCredentials: ApiStoreCredentials? = null,
5555
loggingSettings: LoggingSettings,
5656
httpTransport: HttpTransport,
5757
jsonTransformerProvider: JsonTransformerProvider
@@ -65,7 +65,7 @@ class ApiClientHelper private constructor(
6565

6666
constructor(
6767
apiServerDomain: ApiServerDomain,
68-
credentials: ApiCredentials?,
68+
credentials: ApiCredentials? = null,
6969
loggingSettings: LoggingSettings,
7070
httpTransport: HttpTransport,
7171
jsonTransformerProvider: JsonTransformerProvider
@@ -79,7 +79,7 @@ class ApiClientHelper private constructor(
7979

8080
constructor(
8181
apiServerDomain: ApiServerDomain,
82-
credentials: ApiCredentials?,
82+
credentials: ApiCredentials? = null,
8383
loggingSettings: LoggingSettings,
8484
httpTransport: HttpTransport,
8585
jsonTransformerProvider: JsonTransformerProvider,

0 commit comments

Comments
 (0)