com.ecwid.apiclient.v3.dto.customergroup.request.CustomerGroupDetailsRequest.kt Maven / Gradle / Ivy
package com.ecwid.apiclient.v3.dto.customergroup.request
import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.impl.RequestInfo
import com.ecwid.apiclient.v3.responsefields.ResponseFields
data class CustomerGroupDetailsRequest(
val customerGroupId: Int = 0,
val responseFields: ResponseFields = ResponseFields.All,
) : ApiRequest {
override fun toRequestInfo() = RequestInfo.createGetRequest(
pathSegments = listOf(
"customer_groups",
"$customerGroupId"
),
responseFields = responseFields,
)
}