Skip to content

Commit 7a21beb

Browse files
committed
ECWID-105278 Added the new parameters to the checkbox option for products
1 parent 8e694b1 commit 7a21beb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,15 @@ data class UpdatedProduct(
208208
fun createCheckboxOption(
209209
name: String = "",
210210
nameTranslated: LocalizedValueMap? = null,
211-
choices: List<ProductOptionChoice> = listOf()
211+
choices: List<ProductOptionChoice> = listOf(),
212+
defaultChoice: Int? = null,
213+
required: Boolean = false
212214
) = CheckboxOption(
213215
name = name,
214216
nameTranslated = nameTranslated,
215-
choices = choices
217+
choices = choices,
218+
defaultChoice = defaultChoice,
219+
required = required
216220
)
217221

218222
fun createTextFieldOption(

0 commit comments

Comments
 (0)