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

com.ecwid.apiclient.v3.dto.order.request.OrderDetailsRequest.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
import com.ecwid.apiclient.v3.responsefields.ResponseFields

data class OrderDetailsRequest(
	val orderNumber: Int = 0,
	val orderIdentity: String = "",
	val responseFields: ResponseFields = ResponseFields.All,
) : ApiRequest {
	constructor(orderNumber: Int = 0) : this(orderNumber, orderNumber.toString())

	override fun toRequestInfo() = RequestInfo.createGetRequest(
		pathSegments = listOf(
			"orders",
			orderIdentity
		),
		responseFields = responseFields,
	)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy