CheckoutProcess
protocol CheckoutProcess
Protocol describing public API to private Checkout process class that provides ability to customize items of the process
-
Adds
item
to this Checkout process at the end of the listDeclaration
Swift
func append(_ item: CheckoutProcessItem)
-
Returns index of item with specified
itemType
in this Checkout process ornil
if it’s not foundDeclaration
Swift
func index(of itemType: CheckoutProcessItem.Type) -> Int?
-
Inserts
item
to this Checkout process at the specifiedindex
Declaration
Swift
func insert(_ item: CheckoutProcessItem, at index: Int)
-
Removes item from this Checkout process as the specified
index
and returns the removed itemDeclaration
Swift
func remove(at index: Int) -> CheckoutProcessItem