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
-
Status
Declaration
Swift
@objc public var status: Int { get set }
-
Discount
Declaration
Swift
@objc public lazy var discount: OrderDiscount { get set }
-
Amount
Declaration
Swift
@objc public lazy var amount: OrderAmount { get set }
-
Delivery info
Declaration
Swift
@objc public lazy var delivery: OrderDelivery { get set }
-
Custom variables
Declaration
Swift
@objc public lazy var customVariables: OrderCustomVars { get set }
-
New Customer
Declaration
Swift
@objc public var isNewCustomer: Bool { get set }
-
Payment method
Declaration
Swift
@objc public var paymentMethod: Int { get set }
-
Requires confirmation
Declaration
Swift
@objc public var isConfirmationRequired: Bool { get set }
-
Create a new Order
Declaration
Swift
@objc public init(orderId: String, turnover: Double)
Parameters
orderId
order identifier
turnover
order turnover
-
Create a new Order
Declaration
Swift
@objc public convenience init(orderId: String, turnover: Double, status: Int)
Parameters
orderId
order identifier
turnover
order turnover
status
order status 0=No information, 1=Pending, 2=cancelled, 3=approved, 4=return