PCFOrder

public struct PCFOrder: Order, Decodable

PCFOrder model.

  • The order id.

    Declaration

    Swift

    public let resourceId: String
  • The order date.

    Declaration

    Swift

    public let orderDate: Date
  • The order last updated date.

    Declaration

    Swift

    public let lastUpdated: Date
  • The order status.

    Declaration

    Swift

    public let status: OrderStatusType
  • The tracking number for the order. Will only be present after the order has shipped if at all.

    Declaration

    Swift

    public let trackingNumber: String
  • The order items count.

    Declaration

    Swift

    public let itemCount: Int
  • The order items total count.

    Declaration

    Swift

    public let itemTotalCount: Int
  • The order sub-total.

    Declaration

    Swift

    public let subTotal: Float
  • tax

    The order tax.

    Declaration

    Swift

    public let tax: Float
  • The order total adjustment.

    Declaration

    Swift

    public let totalAdjustment: Float
  • The order total.

    Declaration

    Swift

    public let total: Float
  • Declaration

    Swift

    public init?(json: JSON)

    Parameters

    json

    JSON representation of object.

    Return Value

    New instance when JSON parsing successful, false otherwise.