PONativeAlternativePaymentMethodParameter

@JsonClass(generateAdapter = true)
data class PONativeAlternativePaymentMethodParameter(val key: String, val length: Int?, val required: Boolean, @Json(name = "type") val rawType: String, @Json(name = "display_name") val displayName: String, @Json(name = "available_values") val availableValues: List<PONativeAlternativePaymentMethodParameter.ParameterValue>?)

Native alternative payment method parameter definition.

Parameters

key

Name of the field that needs to be collected for the request (e.g. blik_code).

length

Expected length of the field. Used for validation.

required

Indicates whether parameter is required or optional.

rawType

Raw parameter type.

displayName

Parameter’s localized name that could be displayed to user.

availableValues

Some types (e.g. single-select) can have a collection of pre-populated values that user can choose from.

Constructors

constructor(key: String, length: Int?, required: Boolean, @Json(name = "type") rawType: String, @Json(name = "display_name") displayName: String, @Json(name = "available_values") availableValues: List<PONativeAlternativePaymentMethodParameter.ParameterValue>?)

Types

Link copied to clipboard

Defines supported parameter types.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ParameterValue(val value: String, @Json(name = "display_name") val displayName: String, val default: Boolean?)

Defines available parameter value.

Properties

Link copied to clipboard
Link copied to clipboard
val key: String
Link copied to clipboard
val length: Int?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard