diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCombination.kt b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCombination.kt index a12c2c6a2..82824119e 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCombination.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCombination.kt @@ -37,6 +37,7 @@ fun FetchedVariation.toUpdated(): UpdatedVariation { customsHsTariffCode = customsHsTariffCode, subscriptionSettings = subscriptionSettings?.toUpdated(), + alt = alt?.toUpdated() ) } diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/UpdatedVariation.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/UpdatedVariation.kt index f234fed7e..d7d10c7d8 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/UpdatedVariation.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/UpdatedVariation.kt @@ -3,6 +3,7 @@ package com.ecwid.apiclient.v3.dto.variation.request import com.ecwid.apiclient.v3.dto.common.ApiUpdatedDTO import com.ecwid.apiclient.v3.dto.common.ApiUpdatedDTO.ModifyKind import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap +import com.ecwid.apiclient.v3.dto.common.UpdatedAlt import com.ecwid.apiclient.v3.dto.common.UpdatedAttributeValue import com.ecwid.apiclient.v3.dto.product.enums.AttributeValueAlias import com.ecwid.apiclient.v3.dto.product.enums.AttributeValueLocation @@ -41,6 +42,7 @@ data class UpdatedVariation( val customsHsTariffCode: String? = null, val subscriptionSettings: SubscriptionSettings? = null, + val alt: UpdatedAlt? = null, ) : ApiUpdatedDTO { data class AttributeValue( diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/result/FetchedVariation.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/result/FetchedVariation.kt index e144c6a8b..e20419b2a 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/result/FetchedVariation.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/result/FetchedVariation.kt @@ -2,6 +2,7 @@ package com.ecwid.apiclient.v3.dto.variation.result import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO import com.ecwid.apiclient.v3.dto.common.ApiFetchedDTO.ModifyKind +import com.ecwid.apiclient.v3.dto.common.FetchedAlt import com.ecwid.apiclient.v3.dto.common.FetchedAttributeValue import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap import com.ecwid.apiclient.v3.dto.product.enums.AttributeValueLocation @@ -56,6 +57,7 @@ data class FetchedVariation( val customsHsTariffCode: String? = null, val subscriptionSettings: SubscriptionSettings? = null, + val alt: FetchedAlt? = null, ) : ApiFetchedDTO { data class AttributeValue( diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedVariationRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedVariationRules.kt index 535500cf9..0f5457c0e 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedVariationRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedVariationRules.kt @@ -1,5 +1,6 @@ package com.ecwid.apiclient.v3.rule.nullablepropertyrules +import com.ecwid.apiclient.v3.dto.common.FetchedAlt import com.ecwid.apiclient.v3.dto.variation.result.FetchedVariation import com.ecwid.apiclient.v3.rule.NullablePropertyRule import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable @@ -72,4 +73,7 @@ val fetchedVariationTypeNullablePropertyRules: List> AllowNullable(FetchedVariation.SubscriptionSettings::oneTimePurchasePrice), IgnoreNullable(FetchedVariation.SubscriptionSettings::oneTimePurchasePriceFormatted), AllowNullable(FetchedVariation::locationInventory), + AllowNullable(FetchedVariation::alt), + AllowNullable(FetchedAlt::main), + AllowNullable(FetchedAlt::translated), )