Skip to content

Commit

Permalink
ECWID-138042 New reports: internal API for topOfLandingPagesByVisitor…
Browse files Browse the repository at this point in the history
…s report:

- added AdditionalLandingData
  • Loading branch information
filka96 committed Apr 10, 2024
1 parent cf42b03 commit 575ef7b
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(
var 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 575ef7b

Please sign in to comment.