OrderInteractor
public protocol OrderInteractor
Order interactor protocol that can manipulate and do business logic around orders functionality.
-
Data manager used to establish network communication and retrieve data.
Declaration
Swift
var dataManager: DataManagerType -
Associated order detail type.
Declaration
Swift
associatedtype OrderDetailType: OrderDetail -
Associated order type.
Declaration
Swift
associatedtype OrderType: Order -
Order data manager generic type.
Declaration
Swift
associatedtype DataManagerType: OrderDataManager -
orders(completion:)Default implementation -
orderDetail(forOrderId:completion:)Default implementationGet the order based on the given id.
- Parameters:
- orderId: The order id to use.
- completion: The completion block.
Default Implementation
Declaration
Swift
func orderDetail(forOrderId orderId: String,Parameters
orderIdThe order id to use.
completionThe completion block.
- Parameters:
OrderInteractor Protocol Reference