Skip to content

Commit 4b754ff

Browse files
committed
Add write only property
1 parent eb17625 commit 4b754ff

4 files changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ private fun FetchedProduct.AttributeValue.toUpdated() = UpdatedProduct.Attribute
183183

184184
private fun FetchedProduct.RelatedProducts.toUpdated() = UpdatedProduct.RelatedProducts(
185185
productIds = productIds,
186-
productSkus = productSkus,
187186
relatedCategory = relatedCategory?.toUpdated()
188187
)
189188

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ data class FetchedProduct(
237237

238238
data class RelatedProducts(
239239
val productIds: List<Int>? = null,
240-
val productSkus: List<String>? = null,
241240
val relatedCategory: RelatedCategory? = null
242241
)
243242

src/test/kotlin/com/ecwid/apiclient/v3/rule/NonDuplicablePropertyRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ val nonDuplicablePropertyRules: List<NonDuplicablePropertyRule<*, *>> = listOf(
1818
WriteOnly(UpdatedProduct.AttributeValue::name),
1919
WriteOnly(UpdatedVariation.AttributeValue::alias),
2020
WriteOnly(UpdatedVariation.AttributeValue::name),
21+
WriteOnly(UpdatedProduct.RelatedProducts::productSkus),
2122

2223
)
2324

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ val fetchedProductNullablePropertyRules: List<NullablePropertyRule<*, *>> = list
100100
IgnoreNullable(FetchedProduct.RelatedCategory::productCount),
101101
IgnoreNullable(FetchedProduct.RelatedProducts::productIds),
102102
IgnoreNullable(FetchedProduct.RelatedProducts::relatedCategory),
103-
AllowNullable(FetchedProduct.RelatedProducts::productSkus),
104103
IgnoreNullable(FetchedProduct.Ribbon::color),
105104
IgnoreNullable(FetchedProduct.Ribbon::text),
106105
IgnoreNullable(FetchedProduct.ShippingSettings::disabledMethods),

0 commit comments

Comments
 (0)