Skip to content

Commit

Permalink
ECWID-139752 New Reports: addToCartConversion report internal api: ch…
Browse files Browse the repository at this point in the history
…ange additional data:

- added required AdditionalProductData fields
  • Loading branch information
filka96 committed May 14, 2024
1 parent e6bd894 commit 27f7813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ val otherNullablePropertyRules: List<NullablePropertyRule<*, *>> = 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),

Expand Down

0 comments on commit 27f7813

Please sign in to comment.