From 70c8c394ab66b0c54a5adee854e45785a66c9a3b Mon Sep 17 00:00:00 2001 From: Filipp Semenkov Date: Tue, 14 May 2024 19:24:59 +0400 Subject: [PATCH] ECWID-139752 New Reports: addToCartConversion report internal api: change additional data: - added required AdditionalProductData fields --- .../apiclient/v3/dto/report/result/FetchedReportResponse.kt | 4 +++- .../com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/report/result/FetchedReportResponse.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/report/result/FetchedReportResponse.kt index e5ae00bad..15c7b8a3a 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/report/result/FetchedReportResponse.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/report/result/FetchedReportResponse.kt @@ -67,9 +67,11 @@ data class FetchedReportResponse( data class AdditionalProductData( val productName: String? = null, - val productSmallThumbnailUrl: String? = null, val productUrl: String? = null, val productEditUrl: String? = null, + val productSku: String? = null, + val productImageUrl: String? = null, + val productThumbnailUrl: String? = null, ) : FetchedAdditionalData(AdditionalDataType.PRODUCT) data class AdditionalCouponData( 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 9f2a7c70b..9c0ddc4a7 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt @@ -112,9 +112,11 @@ val otherNullablePropertyRules: List> = listOf( AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalInventoryData::exampleOrder), AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productName), - AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productSmallThumbnailUrl), AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productUrl), AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productEditUrl), + AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productSku), + AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productImageUrl), + AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalProductData::productThumbnailUrl), AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalCouponData::couponName),