-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added brands and filter models
- Loading branch information
1 parent
e6fa1fd
commit 755baa4
Showing
9 changed files
with
55 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...nalization-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/Category.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | ||
) |
5 changes: 5 additions & 0 deletions
5
personalization-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/Filter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
8 changes: 8 additions & 0 deletions
8
...ation-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/FilterDetails.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) |
6 changes: 6 additions & 0 deletions
6
...ization-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/FilterValue.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
5 changes: 5 additions & 0 deletions
5
...ion-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/ImageUrlResized.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) |
6 changes: 6 additions & 0 deletions
6
...lization-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/PriceRange.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
8 changes: 8 additions & 0 deletions
8
...ion-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/ProductCategory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) |
6 changes: 6 additions & 0 deletions
6
...zation-sdk/src/main/kotlin/com/personalization/sdk/domain/models/products/ProductParam.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) |