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

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

There is a newer version: 0.347.0
Show newest version
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
		)
	)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy