Skip to content

Commit cc691fd

Browse files
committed
fix: change names of ThreeDDecision... to ThreeDSDecision... (#42)
1 parent bf42abc commit cc691fd

18 files changed

Lines changed: 85 additions & 84 deletions

lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDAuthenticationRetrieveParams.kt renamed to lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSAuthenticationRetrieveParams.kt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.lithic.api.core.toUnmodifiable
55
import com.lithic.api.models.*
66
import java.util.Objects
77

8-
class ThreeDAuthenticationRetrieveParams
8+
class ThreeDSAuthenticationRetrieveParams
99
constructor(
1010
private val threeDSAuthenticationToken: String,
1111
private val additionalQueryParams: Map<String, List<String>>,
@@ -34,7 +34,7 @@ constructor(
3434
return true
3535
}
3636

37-
return other is ThreeDAuthenticationRetrieveParams &&
37+
return other is ThreeDSAuthenticationRetrieveParams &&
3838
this.threeDSAuthenticationToken == other.threeDSAuthenticationToken &&
3939
this.additionalQueryParams == other.additionalQueryParams &&
4040
this.additionalHeaders == other.additionalHeaders
@@ -49,7 +49,7 @@ constructor(
4949
}
5050

5151
override fun toString() =
52-
"ThreeDAuthenticationRetrieveParams{threeDSAuthenticationToken=$threeDSAuthenticationToken, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"
52+
"ThreeDSAuthenticationRetrieveParams{threeDSAuthenticationToken=$threeDSAuthenticationToken, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"
5353

5454
fun toBuilder() = Builder().from(this)
5555

@@ -66,13 +66,14 @@ constructor(
6666
private var additionalHeaders: MutableMap<String, MutableList<String>> = mutableMapOf()
6767

6868
@JvmSynthetic
69-
internal fun from(threeDAuthenticationRetrieveParams: ThreeDAuthenticationRetrieveParams) =
70-
apply {
71-
this.threeDSAuthenticationToken =
72-
threeDAuthenticationRetrieveParams.threeDSAuthenticationToken
73-
additionalQueryParams(threeDAuthenticationRetrieveParams.additionalQueryParams)
74-
additionalHeaders(threeDAuthenticationRetrieveParams.additionalHeaders)
75-
}
69+
internal fun from(
70+
threeDSAuthenticationRetrieveParams: ThreeDSAuthenticationRetrieveParams
71+
) = apply {
72+
this.threeDSAuthenticationToken =
73+
threeDSAuthenticationRetrieveParams.threeDSAuthenticationToken
74+
additionalQueryParams(threeDSAuthenticationRetrieveParams.additionalQueryParams)
75+
additionalHeaders(threeDSAuthenticationRetrieveParams.additionalHeaders)
76+
}
7677

7778
fun threeDSAuthenticationToken(threeDSAuthenticationToken: String) = apply {
7879
this.threeDSAuthenticationToken = threeDSAuthenticationToken
@@ -118,8 +119,8 @@ constructor(
118119

119120
fun removeHeader(name: String) = apply { this.additionalHeaders.put(name, mutableListOf()) }
120121

121-
fun build(): ThreeDAuthenticationRetrieveParams =
122-
ThreeDAuthenticationRetrieveParams(
122+
fun build(): ThreeDSAuthenticationRetrieveParams =
123+
ThreeDSAuthenticationRetrieveParams(
123124
checkNotNull(threeDSAuthenticationToken) {
124125
"`threeDSAuthenticationToken` is required but was not set"
125126
},

lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDDecisioningRetrieveSecretParams.kt renamed to lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningRetrieveSecretParams.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.lithic.api.core.toUnmodifiable
55
import com.lithic.api.models.*
66
import java.util.Objects
77

8-
class ThreeDDecisioningRetrieveSecretParams
8+
class ThreeDSDecisioningRetrieveSecretParams
99
constructor(
1010
private val additionalQueryParams: Map<String, List<String>>,
1111
private val additionalHeaders: Map<String, List<String>>,
@@ -24,7 +24,7 @@ constructor(
2424
return true
2525
}
2626

27-
return other is ThreeDDecisioningRetrieveSecretParams &&
27+
return other is ThreeDSDecisioningRetrieveSecretParams &&
2828
this.additionalQueryParams == other.additionalQueryParams &&
2929
this.additionalHeaders == other.additionalHeaders
3030
}
@@ -34,7 +34,7 @@ constructor(
3434
}
3535

3636
override fun toString() =
37-
"ThreeDDecisioningRetrieveSecretParams{additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"
37+
"ThreeDSDecisioningRetrieveSecretParams{additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"
3838

3939
fun toBuilder() = Builder().from(this)
4040

@@ -51,10 +51,10 @@ constructor(
5151

5252
@JvmSynthetic
5353
internal fun from(
54-
threeDDecisioningRetrieveSecretParams: ThreeDDecisioningRetrieveSecretParams
54+
threeDSDecisioningRetrieveSecretParams: ThreeDSDecisioningRetrieveSecretParams
5555
) = apply {
56-
additionalQueryParams(threeDDecisioningRetrieveSecretParams.additionalQueryParams)
57-
additionalHeaders(threeDDecisioningRetrieveSecretParams.additionalHeaders)
56+
additionalQueryParams(threeDSDecisioningRetrieveSecretParams.additionalQueryParams)
57+
additionalHeaders(threeDSDecisioningRetrieveSecretParams.additionalHeaders)
5858
}
5959

6060
fun additionalQueryParams(additionalQueryParams: Map<String, List<String>>) = apply {
@@ -97,8 +97,8 @@ constructor(
9797

9898
fun removeHeader(name: String) = apply { this.additionalHeaders.put(name, mutableListOf()) }
9999

100-
fun build(): ThreeDDecisioningRetrieveSecretParams =
101-
ThreeDDecisioningRetrieveSecretParams(
100+
fun build(): ThreeDSDecisioningRetrieveSecretParams =
101+
ThreeDSDecisioningRetrieveSecretParams(
102102
additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
103103
additionalHeaders.mapValues { it.value.toUnmodifiable() }.toUnmodifiable()
104104
)

lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDDecisioningRotateSecretParams.kt renamed to lithic-java-core/src/main/kotlin/com/lithic/api/models/ThreeDSDecisioningRotateSecretParams.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.lithic.api.models.*
77
import java.util.Objects
88
import java.util.Optional
99

10-
class ThreeDDecisioningRotateSecretParams
10+
class ThreeDSDecisioningRotateSecretParams
1111
constructor(
1212
private val additionalQueryParams: Map<String, List<String>>,
1313
private val additionalHeaders: Map<String, List<String>>,
@@ -34,7 +34,7 @@ constructor(
3434
return true
3535
}
3636

37-
return other is ThreeDDecisioningRotateSecretParams &&
37+
return other is ThreeDSDecisioningRotateSecretParams &&
3838
this.additionalQueryParams == other.additionalQueryParams &&
3939
this.additionalHeaders == other.additionalHeaders &&
4040
this.additionalBodyProperties == other.additionalBodyProperties
@@ -49,7 +49,7 @@ constructor(
4949
}
5050

5151
override fun toString() =
52-
"ThreeDDecisioningRotateSecretParams{additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders, additionalBodyProperties=$additionalBodyProperties}"
52+
"ThreeDSDecisioningRotateSecretParams{additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders, additionalBodyProperties=$additionalBodyProperties}"
5353

5454
fun toBuilder() = Builder().from(this)
5555

@@ -67,11 +67,11 @@ constructor(
6767

6868
@JvmSynthetic
6969
internal fun from(
70-
threeDDecisioningRotateSecretParams: ThreeDDecisioningRotateSecretParams
70+
threeDSDecisioningRotateSecretParams: ThreeDSDecisioningRotateSecretParams
7171
) = apply {
72-
additionalQueryParams(threeDDecisioningRotateSecretParams.additionalQueryParams)
73-
additionalHeaders(threeDDecisioningRotateSecretParams.additionalHeaders)
74-
additionalBodyProperties(threeDDecisioningRotateSecretParams.additionalBodyProperties)
72+
additionalQueryParams(threeDSDecisioningRotateSecretParams.additionalQueryParams)
73+
additionalHeaders(threeDSDecisioningRotateSecretParams.additionalHeaders)
74+
additionalBodyProperties(threeDSDecisioningRotateSecretParams.additionalBodyProperties)
7575
}
7676

7777
fun additionalQueryParams(additionalQueryParams: Map<String, List<String>>) = apply {
@@ -128,8 +128,8 @@ constructor(
128128
this.additionalBodyProperties.putAll(additionalBodyProperties)
129129
}
130130

131-
fun build(): ThreeDDecisioningRotateSecretParams =
132-
ThreeDDecisioningRotateSecretParams(
131+
fun build(): ThreeDSDecisioningRotateSecretParams =
132+
ThreeDSDecisioningRotateSecretParams(
133133
additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
134134
additionalHeaders.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
135135
additionalBodyProperties.toUnmodifiable(),

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/threeDS/AuthenticationServiceAsync.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ package com.lithic.api.services.async.threeDS
44

55
import com.lithic.api.core.RequestOptions
66
import com.lithic.api.models.AuthenticationRetrieveResponse
7-
import com.lithic.api.models.ThreeDAuthenticationRetrieveParams
7+
import com.lithic.api.models.ThreeDSAuthenticationRetrieveParams
88
import java.util.concurrent.CompletableFuture
99

1010
interface AuthenticationServiceAsync {
1111

1212
/** Get 3DS Authentication by token */
1313
@JvmOverloads
1414
fun retrieve(
15-
params: ThreeDAuthenticationRetrieveParams,
15+
params: ThreeDSAuthenticationRetrieveParams,
1616
requestOptions: RequestOptions = RequestOptions.none()
1717
): CompletableFuture<AuthenticationRetrieveResponse>
1818
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/threeDS/AuthenticationServiceAsyncImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.lithic.api.core.http.HttpRequest
77
import com.lithic.api.core.http.HttpResponse.Handler
88
import com.lithic.api.errors.LithicError
99
import com.lithic.api.models.AuthenticationRetrieveResponse
10-
import com.lithic.api.models.ThreeDAuthenticationRetrieveParams
10+
import com.lithic.api.models.ThreeDSAuthenticationRetrieveParams
1111
import com.lithic.api.services.errorHandler
1212
import com.lithic.api.services.jsonHandler
1313
import com.lithic.api.services.withErrorHandler
@@ -26,7 +26,7 @@ constructor(
2626

2727
/** Get 3DS Authentication by token */
2828
override fun retrieve(
29-
params: ThreeDAuthenticationRetrieveParams,
29+
params: ThreeDSAuthenticationRetrieveParams,
3030
requestOptions: RequestOptions
3131
): CompletableFuture<AuthenticationRetrieveResponse> {
3232
val request =

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/threeDS/DecisioningServiceAsync.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package com.lithic.api.services.async.threeDS
44

55
import com.lithic.api.core.RequestOptions
66
import com.lithic.api.models.DecisioningRetrieveSecretResponse
7-
import com.lithic.api.models.ThreeDDecisioningRetrieveSecretParams
8-
import com.lithic.api.models.ThreeDDecisioningRotateSecretParams
7+
import com.lithic.api.models.ThreeDSDecisioningRetrieveSecretParams
8+
import com.lithic.api.models.ThreeDSDecisioningRotateSecretParams
99
import java.util.concurrent.CompletableFuture
1010

1111
interface DecisioningServiceAsync {
@@ -20,7 +20,7 @@ interface DecisioningServiceAsync {
2020
*/
2121
@JvmOverloads
2222
fun retrieveSecret(
23-
params: ThreeDDecisioningRetrieveSecretParams,
23+
params: ThreeDSDecisioningRetrieveSecretParams,
2424
requestOptions: RequestOptions = RequestOptions.none()
2525
): CompletableFuture<DecisioningRetrieveSecretResponse>
2626

@@ -32,7 +32,7 @@ interface DecisioningServiceAsync {
3232
*/
3333
@JvmOverloads
3434
fun rotateSecret(
35-
params: ThreeDDecisioningRotateSecretParams,
35+
params: ThreeDSDecisioningRotateSecretParams,
3636
requestOptions: RequestOptions = RequestOptions.none()
3737
): CompletableFuture<Void>
3838
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/threeDS/DecisioningServiceAsyncImpl.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import com.lithic.api.core.http.HttpRequest
77
import com.lithic.api.core.http.HttpResponse.Handler
88
import com.lithic.api.errors.LithicError
99
import com.lithic.api.models.DecisioningRetrieveSecretResponse
10-
import com.lithic.api.models.ThreeDDecisioningRetrieveSecretParams
11-
import com.lithic.api.models.ThreeDDecisioningRotateSecretParams
10+
import com.lithic.api.models.ThreeDSDecisioningRetrieveSecretParams
11+
import com.lithic.api.models.ThreeDSDecisioningRotateSecretParams
1212
import com.lithic.api.services.emptyHandler
1313
import com.lithic.api.services.errorHandler
1414
import com.lithic.api.services.json
@@ -36,7 +36,7 @@ constructor(
3636
* more detail about verifying 3DS Decisioning requests.
3737
*/
3838
override fun retrieveSecret(
39-
params: ThreeDDecisioningRetrieveSecretParams,
39+
params: ThreeDSDecisioningRetrieveSecretParams,
4040
requestOptions: RequestOptions
4141
): CompletableFuture<DecisioningRetrieveSecretResponse> {
4242
val request =
@@ -68,7 +68,7 @@ constructor(
6868
* request to retrieve the new secret key.
6969
*/
7070
override fun rotateSecret(
71-
params: ThreeDDecisioningRotateSecretParams,
71+
params: ThreeDSDecisioningRotateSecretParams,
7272
requestOptions: RequestOptions
7373
): CompletableFuture<Void> {
7474
val request =

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/threeDS/AuthenticationService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ package com.lithic.api.services.blocking.threeDS
44

55
import com.lithic.api.core.RequestOptions
66
import com.lithic.api.models.AuthenticationRetrieveResponse
7-
import com.lithic.api.models.ThreeDAuthenticationRetrieveParams
7+
import com.lithic.api.models.ThreeDSAuthenticationRetrieveParams
88

99
interface AuthenticationService {
1010

1111
/** Get 3DS Authentication by token */
1212
@JvmOverloads
1313
fun retrieve(
14-
params: ThreeDAuthenticationRetrieveParams,
14+
params: ThreeDSAuthenticationRetrieveParams,
1515
requestOptions: RequestOptions = RequestOptions.none()
1616
): AuthenticationRetrieveResponse
1717
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/threeDS/AuthenticationServiceImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.lithic.api.core.http.HttpRequest
77
import com.lithic.api.core.http.HttpResponse.Handler
88
import com.lithic.api.errors.LithicError
99
import com.lithic.api.models.AuthenticationRetrieveResponse
10-
import com.lithic.api.models.ThreeDAuthenticationRetrieveParams
10+
import com.lithic.api.models.ThreeDSAuthenticationRetrieveParams
1111
import com.lithic.api.services.errorHandler
1212
import com.lithic.api.services.jsonHandler
1313
import com.lithic.api.services.withErrorHandler
@@ -25,7 +25,7 @@ constructor(
2525

2626
/** Get 3DS Authentication by token */
2727
override fun retrieve(
28-
params: ThreeDAuthenticationRetrieveParams,
28+
params: ThreeDSAuthenticationRetrieveParams,
2929
requestOptions: RequestOptions
3030
): AuthenticationRetrieveResponse {
3131
val request =

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/threeDS/DecisioningService.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package com.lithic.api.services.blocking.threeDS
44

55
import com.lithic.api.core.RequestOptions
66
import com.lithic.api.models.DecisioningRetrieveSecretResponse
7-
import com.lithic.api.models.ThreeDDecisioningRetrieveSecretParams
8-
import com.lithic.api.models.ThreeDDecisioningRotateSecretParams
7+
import com.lithic.api.models.ThreeDSDecisioningRetrieveSecretParams
8+
import com.lithic.api.models.ThreeDSDecisioningRotateSecretParams
99

1010
interface DecisioningService {
1111

@@ -19,7 +19,7 @@ interface DecisioningService {
1919
*/
2020
@JvmOverloads
2121
fun retrieveSecret(
22-
params: ThreeDDecisioningRetrieveSecretParams,
22+
params: ThreeDSDecisioningRetrieveSecretParams,
2323
requestOptions: RequestOptions = RequestOptions.none()
2424
): DecisioningRetrieveSecretResponse
2525

@@ -31,7 +31,7 @@ interface DecisioningService {
3131
*/
3232
@JvmOverloads
3333
fun rotateSecret(
34-
params: ThreeDDecisioningRotateSecretParams,
34+
params: ThreeDSDecisioningRotateSecretParams,
3535
requestOptions: RequestOptions = RequestOptions.none()
3636
)
3737
}

0 commit comments

Comments
 (0)