Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 16e760f

Browse files
committed
Fix property naming
1 parent c813474 commit 16e760f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductApiResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data class ProductApiResponse(
2525
val description: String? = null,
2626
val short_description: String? = null,
2727
val sku: String? = null,
28-
val globalUniqueId: String? = null,
28+
val global_unique_id: String? = null,
2929
val price: String? = null,
3030
val regular_price: String? = null,
3131
val sale_price: String? = null,

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductDtoMapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ProductDtoMapper @Inject constructor(
4040
description = dto.description ?: ""
4141
shortDescription = dto.short_description ?: ""
4242
sku = dto.sku ?: ""
43-
globalUniqueId = dto.globalUniqueId ?: ""
43+
globalUniqueId = dto.global_unique_id ?: ""
4444

4545
price = dto.price ?: ""
4646
regularPrice = dto.regular_price ?: ""

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/network/rest/wpcom/wc/product/ProductVariationApiResponse.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ProductVariationApiResponse : Response {
1212
var description: String? = null
1313
var permalink: String? = null
1414
var sku: String? = null
15-
var globalUniqueId: String? = null
15+
var global_unique_id: String? = null
1616
var status: String? = null
1717
var price: String? = null
1818
var regular_price: String? = null
@@ -76,7 +76,7 @@ class ProductVariationApiResponse : Response {
7676
status = response.status ?: ""
7777
description = response.description ?: ""
7878
sku = response.sku ?: ""
79-
globalUniqueId = response.globalUniqueId ?: ""
79+
globalUniqueId = response.global_unique_id ?: ""
8080

8181
price = response.price ?: ""
8282
regularPrice = response.regular_price ?: ""

0 commit comments

Comments
 (0)