Order
public class Order: BusinessObject
Wrapper class to manage SalesTracker Order feature
-
Order Id
Declaration
Swift
@objc public var orderId: String = ""
-
Turnover
Declaration
Swift
@objc public var turnover: Double = 0.0
-
Status
Declaration
Swift
@objc public var status: Int = -1
-
Discount
Declaration
Swift
@objc public lazy var discount: OrderDiscount = OrderDiscount(order: self)
-
Amount
Declaration
Swift
@objc public lazy var amount: OrderAmount = OrderAmount(order: self)
-
Delivery info
Declaration
Swift
@objc public lazy var delivery: OrderDelivery = OrderDelivery(order: self)
-
Custom variables
Declaration
Swift
@objc public lazy var customVariables: OrderCustomVars = OrderCustomVars(order: self)
-
New Customer
Declaration
Swift
@objc public var isNewCustomer: Bool = false
-
Payment method
Declaration
Swift
@objc public var paymentMethod: Int = -1
-
Requires confirmation
Declaration
Swift
@objc public var isConfirmationRequired: Bool = false
-
Create a new Order
Declaration
Swift
@objc public init(orderId: String, turnover: Double)
-
Create a new Order
Declaration
Swift
@objc public convenience init(orderId: String, turnover: Double, status: Int)