Skip to content

Commit cccce48

Browse files
committed
feature: changed methods assignature
1 parent f619f40 commit cccce48

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

threeds/src/main/java/com/mercadopago/sdk/android/threeds/data/mappers/ThreeDSParametersMapper.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,21 @@ import com.mercadopago.sdk.android.threeds.data.model.ThreeDSAuthRequestParamete
55
import com.mercadopago.sdk.android.threeds.domain.model.MPThreeDSAuthenticationModel
66
import com.mercadopago.sdk.android.threeds.domain.model.params.MPThreeDSRequestParams
77

8-
internal fun ThreeDSAuthRequestParameters.toModel(): MPThreeDSRequestParams {
9-
return MPThreeDSRequestParams(
8+
internal fun ThreeDSAuthRequestParameters.toModel(): MPThreeDSRequestParams =
9+
MPThreeDSRequestParams(
1010
sdkAppId = this.sdkAppId,
1111
deviceData = this.deviceData,
1212
sdkEphemeralPublicKey = this.sdkEphemeralPublicKey,
1313
sdkReferenceNumber = this.sdkReferenceNumber,
1414
sdkTransactionId = this.sdkTransactionId,
1515
)
16-
}
1716

18-
internal fun MPThreeDSAuthenticationModel.toParams(): MPThreeDSAuthenticationParams {
19-
return MPThreeDSAuthenticationParams(
17+
internal fun MPThreeDSAuthenticationModel.toParams(): MPThreeDSAuthenticationParams =
18+
MPThreeDSAuthenticationParams(
2019
response = this.response,
2120
threeDSServerTransID = this.threeDSServerTransID,
2221
acsReferenceNumber = this.acsReferenceNumber,
2322
dsTransID = this.dsTransID,
2423
acsTransID = this.acsTransID,
2524
acsSignedContent = this.acsSignedContent,
2625
)
27-
}

0 commit comments

Comments
 (0)