com.ecwid.apiclient.v3.dto.coupon.request.CouponDetailsRequest.kt Maven / Gradle / Ivy
package com.ecwid.apiclient.v3.dto.coupon.request
import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.impl.RequestInfo
import com.ecwid.apiclient.v3.responsefields.ResponseFields
data class CouponDetailsRequest(
val couponIdentifier: String = "",
val responseFields: ResponseFields = ResponseFields.All,
) : ApiRequest {
override fun toRequestInfo() = RequestInfo.createGetRequest(
pathSegments = listOf(
"discount_coupons",
couponIdentifier
),
responseFields = responseFields,
)
}