TransformSpecToElements

class TransformSpecToElements(addressResourceRepository: ResourceRepository<AddressRepository>, initialValues: Map<IdentifierSpec, String?>, shippingValues: Map<IdentifierSpec, String?>?, amount: Amount?, saveForFutureUseInitialValue: Boolean, merchantName: String, context: Context, viewOnlyFields: Set<IdentifierSpec> = emptySet())

Transform a LayoutSpec data object into an Element, which has a controller and identifier. With only a single field in a section the section controller will be a pass through the field controller.

Parameters

viewOnlyFields

A set of identifiers for the fields that should be view-only, non-editable. Currently only IdentifierSpec.CardNumber is supported and any other identifier is ignored.

Constructors

Link copied to clipboard
fun TransformSpecToElements(addressResourceRepository: ResourceRepository<AddressRepository>, initialValues: Map<IdentifierSpec, String?>, shippingValues: Map<IdentifierSpec, String?>?, amount: Amount?, saveForFutureUseInitialValue: Boolean, merchantName: String, context: Context, viewOnlyFields: Set<IdentifierSpec> = emptySet())

Functions

Link copied to clipboard