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

com.ecwid.apiclient.v3.converter.FetchedOrderStatusSettings.kt Maven / Gradle / Ivy

There is a newer version: 0.347.0
Show newest version
package com.ecwid.apiclient.v3.converter

import com.ecwid.apiclient.v3.dto.common.LocalizedValueMap
import com.ecwid.apiclient.v3.dto.profile.request.UpdatedOrderStatusSettings
import com.ecwid.apiclient.v3.dto.profile.result.FetchedOrderStatusSettings

fun FetchedOrderStatusSettings.toUpdated(): UpdatedOrderStatusSettings {
	return UpdatedOrderStatusSettings(
		enabled = enabled,
		name = name,
		nameTranslations = if (nameTranslations != null) LocalizedValueMap(nameTranslations) else null,
		sendNotificationWhenStatusIsAssigned = sendNotificationWhenStatusIsAssigned,
	)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy