Skip to content

Commit

Permalink
feat: Added brands and filter models
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGreenEngineer committed Oct 30, 2024
1 parent e6fa1fd commit 755baa4
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,3 @@ data class Brand(
val picture: String,
val count: Int
)

data class Category(
val id: String,
val name: String,
val url: String,
val urlHandle: String,
val count: Int,
val parent: String?,
val alias: String?
)

data class FilterValue(
val value: String,
val count: Int
)

data class Filter(
val filter: FilterDetails
)

data class FilterDetails(
val count: Int,
val priority: Int,
val ranges: List<Int>?,
val values: List<FilterValue>
)

data class PriceRange(
val min: Double,
val max: Double
)

data class ProductCategory(
val id: String,
val name: String,
val parent: String?,
val params: List<ProductParam>
)

data class ProductParam(
val key: String,
val values: List<String>
)

data class ImageUrlResized(
val sizeToPath: Map<String, String>
)





Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.personalization.sdk.domain.models.products

data class Category(
val id: String,
val name: String,
val url: String,
val urlHandle: String,
val count: Int,
val parent: String?,
val alias: String?
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.personalization.sdk.domain.models.products

data class Filter(
val filter: FilterDetails
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.personalization.sdk.domain.models.products

data class FilterDetails(
val count: Int,
val priority: Int,
val ranges: List<Int>?,
val values: List<FilterValue>
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.personalization.sdk.domain.models.products

data class FilterValue(
val value: String,
val count: Int
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.personalization.sdk.domain.models.products

data class ImageUrlResized(
val sizeToPath: Map<String, String>
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.personalization.sdk.domain.models.products

data class PriceRange(
val min: Double,
val max: Double
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.personalization.sdk.domain.models.products

data class ProductCategory(
val id: String,
val name: String,
val parent: String?,
val params: List<ProductParam>
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.personalization.sdk.domain.models.products

data class ProductParam(
val key: String,
val values: List<String>
)

0 comments on commit 755baa4

Please sign in to comment.