com.ecwid.apiclient.v3.dto.order.request.OrderDeleteRequest.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 OrderDeleteRequest(
val orderNumber: Int = 0,
val orderIdentity: String = ""
) : ApiRequest {
constructor(orderNumber: Int = 0) : this(orderNumber, orderIdentity = orderNumber.toString())
override fun toRequestInfo() = RequestInfo.createDeleteRequest(
pathSegments = listOf(
"orders",
orderIdentity
)
)
}