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 list

    Declaration

    Swift

    func append(_ item: CheckoutProcessItem)
  • Returns index of item with specified itemType in this Checkout process or nil if it’s not found

    Declaration

    Swift

    func index(of itemType: CheckoutProcessItem.Type) -> Int?
  • Inserts item to this Checkout process at the specified index

    Declaration

    Swift

    func insert(_ item: CheckoutProcessItem, at index: Int)
  • Removes item from this Checkout process as the specified index and returns the removed item

    Declaration

    Swift

    func remove(at index: Int) -> CheckoutProcessItem