Order
public class Order: BusinessObject
Wrapper class to manage SalesTracker Order feature
-
Order Id
Declaration
Swift
public var orderId: String = "" -
Turnover
Declaration
Swift
public var turnover: Double = 0.0 -
Status
Declaration
Swift
public var status: Int = -1 -
Discount
Declaration
Swift
public lazy var discount: OrderDiscount = OrderDiscount(order: self) -
Amount
Declaration
Swift
public lazy var amount: OrderAmount = OrderAmount(order: self) -
Delivery info
Declaration
Swift
public lazy var delivery: OrderDelivery = OrderDelivery(order: self) -
Custom variables
Declaration
Swift
public lazy var customVariables: OrderCustomVars = OrderCustomVars(order: self) -
New Customer
Declaration
Swift
public var isNewCustomer: Bool = false -
Payment method
Declaration
Swift
public var paymentMethod: Int = -1 -
Requires confirmation
Declaration
Swift
public var isConfirmationRequired: Bool = false -
Create a new Order
Declaration
Swift
public init(orderId: String, turnover: Double)Parameters
orderIdorder identifier
turnoverorder turnover
-
Create a new Order
Declaration
Swift
public convenience init(orderId: String, turnover: Double, status: Int)Parameters
orderIdorder identifier
turnoverorder turnover
statusorder status 0=No information, 1=Pending, 2=cancelled, 3=approved, 4=return
Order Class Reference