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

com.ecwid.apiclient.v3.dto.payment.PaymentAppRequest.kt Maven / Gradle / Ivy

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

import com.ecwid.apiclient.v3.dto.common.ApiRequestDTO
import com.ecwid.apiclient.v3.dto.common.OrderedStringToStringMap
import com.ecwid.apiclient.v3.dto.order.result.FetchedOrder

data class PaymentAppRequest(
	val storeId: Int? = null,
	val returnUrl: String? = null,
	val merchantAppSettings: MerchantAppSettings? = null,
	val cart: Cart? = null,
	val token: String? = null,
	val lang: String? = null
) : ApiRequestDTO {
	class MerchantAppSettings(
		settings: Map? = null
	) : OrderedStringToStringMap(settings)

	data class Cart(
		val currency: String? = null,
		val order: FetchedOrder? = null
	)

	fun forLogging(): PaymentAppRequest {
		// we must remove secure data when logging this object
		return this.copy(token = "")
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy