diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/swatches/result/FetchedSwatchColor.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/swatches/result/FetchedSwatchColor.kt index 1cda4abd6..4933187dc 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/swatches/result/FetchedSwatchColor.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/swatches/result/FetchedSwatchColor.kt @@ -2,10 +2,12 @@ package com.ecwid.apiclient.v3.dto.swatches.result import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO import com.ecwid.apiclient.v3.dto.common.ApiResultDTO +import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap data class FetchedSwatchColor( val name: String = "", val hexCode: String = "", + val translations: LocalizedValueMap? = null, ) : ApiFetchedDTO, ApiResultDTO { override fun getModifyKind() = ApiFetchedDTO.ModifyKind.ReadOnly } diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt index f8807699f..974e0ff6b 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt @@ -23,6 +23,7 @@ import com.ecwid.apiclient.v3.dto.report.request.ReportRequest import com.ecwid.apiclient.v3.dto.report.result.FetchedReportAdviceResponse import com.ecwid.apiclient.v3.dto.report.result.FetchedReportResponse import com.ecwid.apiclient.v3.dto.storage.result.FetchedStorageData +import com.ecwid.apiclient.v3.dto.swatches.result.FetchedSwatchColor import com.ecwid.apiclient.v3.dto.variation.request.ProductVariationsRequest import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable @@ -145,6 +146,8 @@ val otherNullablePropertyRules: List> = listOf( AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalCategoryData::categoryName), + AllowNullable(FetchedSwatchColor::translations), + AllowNullable(CreateBatchRequest::groupId), AllowNullable(CreateBatchRequestWithIds::groupId),