Skip to content

Commit

Permalink
Fix property naming
Browse files Browse the repository at this point in the history
  • Loading branch information
toupper committed Nov 21, 2024
1 parent c813474 commit 16e760f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ?: ""
Expand Down

0 comments on commit 16e760f

Please sign in to comment.