CustomFieldsModel

data class CustomFieldsModel(    @Json(name = "shipping_method") val shippingMethodString: String? = null,     @Json(ignore = true) val shippingMethod: ShippingMethodTypeModel? = shippingMethodString?.getEnum<ShippingMethodTypeModel>(),     @Json(name = "name_on_card") val nameOnCard: String? = null)

Custom Fields.

Constructors

Link copied to clipboard
fun CustomFieldsModel(    @Json(name = "shipping_method") shippingMethodString: String? = null,     @Json(ignore = true) shippingMethod: ShippingMethodTypeModel? = shippingMethodString?.getEnum<ShippingMethodTypeModel>(),     @Json(name = "name_on_card") nameOnCard: String? = null)

Properties

Link copied to clipboard
val nameOnCard: String? = null

Card name

Link copied to clipboard
val shippingMethod: ShippingMethodTypeModel?

Shipping method. Check shippingMethodString if null.

Link copied to clipboard
val shippingMethodString: String? = null

Shipping method String.