diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt index 98a860bb..636705cb 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt @@ -34,7 +34,8 @@ data class FetchedCategory( val seoTitleTranslated: LocalizedValueMap? = null, val seoDescription: String? = null, val seoDescriptionTranslated: LocalizedValueMap? = null, - val alt: FetchedAlt? = null + val alt: FetchedAlt? = null, + val imageExternalId: String? = null, ) : ApiFetchedDTO, ApiResultDTO { override fun getModifyKind() = ModifyKind.ReadWrite(UpdatedCategory::class) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt index f218b4ff..13dc74ec 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt @@ -4,7 +4,8 @@ data class AsyncPictureData( val url: String = "", val width: Int = 0, val height: Int = 0, - val alt: PictureAlt? = null + val alt: PictureAlt? = null, + val externalId: String? = null, ) data class PictureAlt( diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt index fd03d550..f6292b9a 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt @@ -353,7 +353,8 @@ data class FetchedProduct( val image800pxUrl: String? = null, val image1500pxUrl: String? = null, val imageOriginalUrl: String? = null, - val alt: FetchedAlt? = null + val alt: FetchedAlt? = null, + val externalId: String? = null, ) data class ProductVideo( 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 a1c6f21c..c8570850 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 @@ -55,6 +55,7 @@ data class FetchedVariation( val customsHsTariffCode: String? = null, val subscriptionSettings: SubscriptionSettings? = null, val alt: FetchedAlt? = null, + val imageExternalId: String? = null, ) : ApiFetchedDTO, ApiResultDTO { data class AttributeValue( diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt index 7484c017..5cf55a38 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt @@ -62,6 +62,7 @@ val nonUpdatablePropertyRules: List> = listOf( Ignored(FetchedProduct.ProductImage::image800pxUrl), Ignored(FetchedProduct.ProductImage::image1500pxUrl), Ignored(FetchedProduct.ProductImage::imageOriginalUrl), + ReadOnly(FetchedProduct.ProductImage::externalId), ReadOnly(FetchedProduct.ProductMedia::videos), ReadOnly(FetchedProduct.GalleryImage::borderInfo), Ignored(FetchedProduct::files), @@ -140,6 +141,7 @@ val nonUpdatablePropertyRules: List> = listOf( Ignored(FetchedCategory::productCount), ReadOnly(FetchedCategory::productCountWithoutSubcategories), Ignored(FetchedCategory::enabledProductCount), + ReadOnly(FetchedCategory::imageExternalId), ReadOnly(FetchedCoupon::id), Ignored(FetchedCoupon::creationDate), @@ -305,6 +307,7 @@ val nonUpdatablePropertyRules: List> = listOf( ReadOnly(FetchedVariation.SubscriptionSettings::oneTimePurchaseMarkupPercentFormatted), ReadOnly(FetchedVariation.SubscriptionSettings::displayedOneTimePurchaseMarkupPercent), ReadOnly(FetchedVariation.SubscriptionSettings::displayedOneTimePurchaseMarkupPercentFormatted), + ReadOnly(FetchedVariation::imageExternalId), ReadOnly(FetchedProduct.RecurringChargeSettings::subscriptionPriceWithSignUpFeeFormatted), ReadOnly(FetchedProduct.RecurringChargeSettings::signUpFee), diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt index 64fcb26a..f61c409d 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt @@ -30,4 +30,5 @@ val fetchedCategoryNullablePropertyRules: List> = lis AllowNullable(FetchedCategory::alt), AllowNullable(FetchedAlt::main), AllowNullable(FetchedAlt::translated), + AllowNullable(FetchedCategory::imageExternalId), ) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt index 1113d8f8..635c3f01 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt @@ -113,6 +113,7 @@ val fetchedProductNullablePropertyRules: List> = list IgnoreNullable(FetchedProduct.ProductImage::image800pxUrl), IgnoreNullable(FetchedProduct.ProductImage::imageOriginalUrl), AllowNullable(FetchedProduct.ProductImage::alt), + AllowNullable(FetchedProduct.ProductImage::externalId), AllowNullable(FetchedAlt::main), AllowNullable(FetchedAlt::translated), AllowNullable(FetchedProduct.ProductVideo::videoCoverId), 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 0f5457c0..dbf52d56 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 @@ -76,4 +76,5 @@ val fetchedVariationTypeNullablePropertyRules: List> AllowNullable(FetchedVariation::alt), AllowNullable(FetchedAlt::main), AllowNullable(FetchedAlt::translated), + AllowNullable(FetchedVariation::imageExternalId), )