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

com.ecwid.apiclient.v3.dto.customergroup.request.CustomerGroupCreateRequest.kt Maven / Gradle / Ivy

The newest version!
package com.ecwid.apiclient.v3.dto.customergroup.request

import com.ecwid.apiclient.v3.dto.ApiRequest
import com.ecwid.apiclient.v3.httptransport.HttpBody
import com.ecwid.apiclient.v3.impl.RequestInfo

data class CustomerGroupCreateRequest(
	val newCustomerGroup: UpdatedCustomerGroup = UpdatedCustomerGroup()
) : ApiRequest {
	override fun toRequestInfo() = RequestInfo.createPostRequest(
		pathSegments = listOf(
			"customer_groups"
		),
		httpBody = HttpBody.JsonBody(
			obj = newCustomerGroup
		)
	)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy