All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.apiclient.v3.dto.order.request.OrderItemOptionFilesDeleteRequest.kt Maven / Gradle / Ivy

package com.ecwid.apiclient.v3.dto.order.request

import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.impl.RequestInfo

data class OrderItemOptionFilesDeleteRequest(
	val orderNumber: Int = 0,
	val orderIdentity: String = "",
	val orderItemId: Long = 0,
	val optionName: String = ""
) : ApiRequest {

	constructor(
		orderNumber: Int = 0,
		orderItemId: Long = 0,
		optionName: String = ""
	) : this(
		orderNumber = orderNumber,
		orderIdentity = orderNumber.toString(),
		orderItemId = orderItemId,
		optionName = optionName
	)

	override fun toRequestInfo() = RequestInfo.createDeleteRequest(
		pathSegments = listOf(
			"orders",
			orderIdentity,
			"items",
			"$orderItemId",
			"options",
			optionName,
			"files"
		)
	)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy