Skip to content

Commit

Permalink
Merge pull request #397 from Ecwid/ECWID-137429
Browse files Browse the repository at this point in the history
ECWID-138042 New reports: internal API for topOfLandingPagesByVisitors report:
  • Loading branch information
filka96 authored Apr 12, 2024
2 parents c4effd2 + b8e8812 commit b8a410e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/ecwid/apiclient/v3/ApiClientHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ private fun createAdditionalDataPolymorphicType(): PolymorphicType<FetchedReport
COUPONS.name.lowercase() to AdditionalCouponData::class.java,
ABANDONED_CARTS.name.lowercase() to AdditionalAbandonedCartData::class.java,
SHIPPING.name.lowercase() to AdditionalShippingData::class.java,
LANDING.name.lowercase() to AdditionalLandingData::class.java,
)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ data class FetchedReportResponse(
val fulfilmentType: FulfillmentType? = null,
) : FetchedAdditionalData(AdditionalDataType.SHIPPING)

data class AdditionalLandingData(
val landingUrl: String? = null,
) : FetchedAdditionalData(AdditionalDataType.LANDING)

enum class AdditionalDataType {
UTM,
ORDERS,
Expand All @@ -94,6 +98,7 @@ data class FetchedReportResponse(
COUPONS,
ABANDONED_CARTS,
SHIPPING,
LANDING,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ val otherNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalShippingData::shippingMethodName),
AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalShippingData::fulfilmentType),

AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalLandingData::landingUrl),

AllowNullable(CreateBatchRequest::groupId),
AllowNullable(CreateBatchRequestWithIds::groupId),

Expand Down

0 comments on commit b8a410e

Please sign in to comment.