Skip to content

Commit b8a410e

Browse files
authored
Merge pull request #397 from Ecwid/ECWID-137429
ECWID-138042 New reports: internal API for topOfLandingPagesByVisitors report:
2 parents c4effd2 + b8e8812 commit b8a410e

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/ApiClientHelper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ private fun createAdditionalDataPolymorphicType(): PolymorphicType<FetchedReport
539539
COUPONS.name.lowercase() to AdditionalCouponData::class.java,
540540
ABANDONED_CARTS.name.lowercase() to AdditionalAbandonedCartData::class.java,
541541
SHIPPING.name.lowercase() to AdditionalShippingData::class.java,
542+
LANDING.name.lowercase() to AdditionalLandingData::class.java,
542543
)
543544
)
544545
}

src/main/kotlin/com/ecwid/apiclient/v3/dto/report/result/FetchedReportResponse.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ data class FetchedReportResponse(
8585
val fulfilmentType: FulfillmentType? = null,
8686
) : FetchedAdditionalData(AdditionalDataType.SHIPPING)
8787

88+
data class AdditionalLandingData(
89+
val landingUrl: String? = null,
90+
) : FetchedAdditionalData(AdditionalDataType.LANDING)
91+
8892
enum class AdditionalDataType {
8993
UTM,
9094
ORDERS,
@@ -94,6 +98,7 @@ data class FetchedReportResponse(
9498
COUPONS,
9599
ABANDONED_CARTS,
96100
SHIPPING,
101+
LANDING,
97102
}
98103
}
99104

src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ val otherNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
123123
AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalShippingData::shippingMethodName),
124124
AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalShippingData::fulfilmentType),
125125

126+
AllowNullable(FetchedReportResponse.FetchedAdditionalData.AdditionalLandingData::landingUrl),
127+
126128
AllowNullable(CreateBatchRequest::groupId),
127129
AllowNullable(CreateBatchRequestWithIds::groupId),
128130

0 commit comments

Comments
 (0)