com.ecwid.apiclient.v3.dto.cart.request.CalculateOrderDetailsRequest.kt Maven / Gradle / Ivy
The newest version!
package com.ecwid.apiclient.v3.dto.cart.request
import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.httptransport.HttpBody
import com.ecwid.apiclient.v3.impl.RequestInfo
data class CalculateOrderDetailsRequest(
val orderForCalculate: OrderForCalculate = OrderForCalculate()
) : ApiRequest {
override fun toRequestInfo() = RequestInfo.createPostRequest(
pathSegments = listOf(
"order",
"calculate"
),
httpBody = HttpBody.JsonBody(
obj = orderForCalculate
)
)
}