Skip to content

Commit fad3604

Browse files
committed
Add implementation of ApiFetchedDTO and fix error message
1 parent 8aa7d40 commit fad3604

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package com.ecwid.apiclient.v3.dto.report.result
22

3+
import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO
4+
35
data class FetchedReportAdviceResponse(
46
val tip: String? = null
5-
)
7+
) : ApiFetchedDTO {
8+
9+
override fun getModifyKind() = ApiFetchedDTO.ModifyKind.ReadOnly
10+
11+
}

src/test/kotlin/com/ecwid/apiclient/v3/DtoContractUnitTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class DtoContractUnitTest {
151151
.filterNot { dtoClass -> dtoClass.isClassifiedDTOOrEnclosingClass(*dtoMarkerInterfaces) }
152152
assertTrue(problemDtoClasses.isEmpty()) {
153153
val interfacesStr = dtoMarkerInterfaces.joinToString(separator = ", ") { int -> int.simpleName }
154-
"Some of top level DTO data classes does implement one of marker interfaces [$interfacesStr]:\n" +
154+
"Some of top level DTO data classes do not implement any marker interfaces [$interfacesStr]:\n" +
155155
classesToLoggableString(problemDtoClasses)
156156
}
157157
}

0 commit comments

Comments
 (0)