From 2ceacae68d885b010e64acb8720f88a0e2ba30d2 Mon Sep 17 00:00:00 2001 From: carl Date: Fri, 5 Jul 2024 16:24:04 +0400 Subject: [PATCH] ECWID-138159: rename variable --- .../kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt | 2 +- .../ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt | 2 +- .../com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt | 2 +- .../v3/rule/nullablepropertyrules/FetchedProductRules.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt index a08acb081..d0226b555 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedProduct.kt @@ -12,7 +12,7 @@ fun FetchedProduct.toUpdated(): UpdatedProduct { description = description, descriptionTranslated = descriptionTranslated, sku = sku, - customSlug = customSlug, + customUrlSlug = customUrlSlug, enabled = enabled, quantity = quantity, diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt index af9c01e87..97dbf3e3b 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt @@ -11,7 +11,7 @@ data class UpdatedProduct( val description: String? = null, val descriptionTranslated: LocalizedValueMap? = null, val sku: String? = null, - val customSlug: String? = null, + val customUrlSlug: String? = null, val isSampleProduct: Boolean? = null, val enabled: Boolean? = null, diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt index fd03d5507..20a0bec37 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt @@ -17,7 +17,7 @@ data class FetchedProduct( val sku: String = "", val isSampleProduct: Boolean? = null, val url: String? = null, - val customSlug: String? = null, + val customUrlSlug: String? = null, val created: Date = Date(), val createTimestamp: Int = 0, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt index 1113d8f84..d74c67016 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedProductRules.kt @@ -89,7 +89,7 @@ val fetchedProductNullablePropertyRules: List> = list IgnoreNullable(FetchedProduct::tax), IgnoreNullable(FetchedProduct::unlimited), IgnoreNullable(FetchedProduct::url), - AllowNullable(FetchedProduct::customSlug), + AllowNullable(FetchedProduct::customUrlSlug), IgnoreNullable(FetchedProduct::warningLimit), IgnoreNullable(FetchedProduct::weight), IgnoreNullable(FetchedProduct::wholesalePrices),