From 16e760f643dbfdbd0312b32d379fdf29233d3dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81sar=20Vargas=20Casaseca?= Date: Thu, 21 Nov 2024 12:51:33 +0100 Subject: [PATCH] Fix property naming --- .../fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt | 2 +- .../fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt | 2 +- .../rest/wpcom/wc/product/ProductVariationApiResponse.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt index 85d962bb99..06b043508c 100644 --- a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt +++ b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt @@ -25,7 +25,7 @@ data class ProductApiResponse( val description: String? = null, val short_description: String? = null, val sku: String? = null, - val globalUniqueId: String? = null, + val global_unique_id: String? = null, val price: String? = null, val regular_price: String? = null, val sale_price: String? = null, diff --git a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt index 0d9d8dd67e..5098d596b3 100644 --- a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt +++ b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt @@ -40,7 +40,7 @@ class ProductDtoMapper @Inject constructor( description = dto.description ?: "" shortDescription = dto.short_description ?: "" sku = dto.sku ?: "" - globalUniqueId = dto.globalUniqueId ?: "" + globalUniqueId = dto.global_unique_id ?: "" price = dto.price ?: "" regularPrice = dto.regular_price ?: "" diff --git a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductVariationApiResponse.kt b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductVariationApiResponse.kt index eab307cb97..44ec06986a 100644 --- a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductVariationApiResponse.kt +++ b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductVariationApiResponse.kt @@ -12,7 +12,7 @@ class ProductVariationApiResponse : Response { var description: String? = null var permalink: String? = null var sku: String? = null - var globalUniqueId: String? = null + var global_unique_id: String? = null var status: String? = null var price: String? = null var regular_price: String? = null @@ -76,7 +76,7 @@ class ProductVariationApiResponse : Response { status = response.status ?: "" description = response.description ?: "" sku = response.sku ?: "" - globalUniqueId = response.globalUniqueId ?: "" + globalUniqueId = response.global_unique_id ?: "" price = response.price ?: "" regularPrice = response.regular_price ?: ""