Skip to content

Commit 69bcaae

Browse files
authored
Merge pull request #419 from Ecwid/ECWID-138159
ECWID-138159 Custom URL slugs for catalog pages: Product and categories export/import in CSV: add 'customSlug' field
2 parents 62c4321 + ff65e66 commit 69bcaae

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fun FetchedProduct.toUpdated(): UpdatedProduct {
1212
description = description,
1313
descriptionTranslated = descriptionTranslated,
1414
sku = sku,
15+
customSlug = customSlug,
1516

1617
enabled = enabled,
1718
quantity = quantity,

src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ data class UpdatedProduct(
1111
val description: String? = null,
1212
val descriptionTranslated: LocalizedValueMap? = null,
1313
val sku: String? = null,
14+
val customSlug: String? = null,
1415
val isSampleProduct: Boolean? = null,
1516

1617
val enabled: Boolean? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ data class FetchedProduct(
1717
val sku: String = "",
1818
val isSampleProduct: Boolean? = null,
1919
val url: String? = null,
20+
val customSlug: String? = null,
2021

2122
val created: Date = Date(),
2223
val createTimestamp: Int = 0,

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ val fetchedProductNullablePropertyRules: List<NullablePropertyRule<*, *>> = list
8989
IgnoreNullable(FetchedProduct::tax),
9090
IgnoreNullable(FetchedProduct::unlimited),
9191
IgnoreNullable(FetchedProduct::url),
92+
AllowNullable(FetchedProduct::customSlug),
9293
IgnoreNullable(FetchedProduct::warningLimit),
9394
IgnoreNullable(FetchedProduct::weight),
9495
IgnoreNullable(FetchedProduct::wholesalePrices),

0 commit comments

Comments
 (0)