iOS SDK - Orders Objects

DOCS

Last updated: Aug 15th, 7:35am

Orders Domain Objects

PDOrder

Defines all relevant detail related to a specific remote order placed through the mobile wallet.

PropertyDescription
additionalAttributesDictionary
A dictionary object of key/value pairs that provide additional information about the order, as defined by the app developer. For example, the order may need to include a tip or delivery information.
amountPDOrderAmount
Defines the ultimate cost of the order.
lineItemsArray
PDOrderItem objects, each of which represents a specific line item of the order.
numberString
The unique identifier of the order within the retailer’s order tracking system.
orderDeliveryOrPickupDateNSDate
Date when the order is expected to be ready.
orderIdString
The unique identifier of the order generated by WLW.
promotionsArray
The set of PDPromotion objects, each of which represents a marketing promotion that is displayed in order screens of the app.
statusString
The state of completion of the order at the time of the call, such as paid, refunded, voided, etc.
storeAddressPDAddressInformation
Defines a physical address of the relevant person or entity.
storeIdString
The unique identifier of the acceptance location at which the order was placed.

PDOrderAmount

The breakdown of the calculated cost of the order.

PropertyDescription
totalString
The total amount due for the order.
subTotalString
The price of the order before any adjustments such as tax, tip, or discounts.
taxLineItemsArray
The set of PDOrderItemTax objects that define the taxes applied to the order.
currencyString
The monetary unit that applies to the amount, as represented by the ISO 4217 standard, for example, USD = United States Dollar.
additionalAttributesDictionary
A set of key/value pairs that provides additional information relevant to the amount of the order. For example, this field may define a property for an applied discount.

PDOrderItem

An individual line item purchased within a specific order.

PropertyDescription
nameString
The name of the product represented by the line item.
optionsArray
An array of dictionary name/value pairs, each of which represents a specific option available for the item being ordered and the value of that option for the order. For example:
{name: "pickles" value: "extra"},
{name: "cheese", value "swiss"}
quantityString
The number of instances of this item that is included in the order.
priceString
The unit cost of the individual line item.
currencyString
The monetary unit that applies to the amount, as represented by the ISO 4217 standard, for example, USD = United States Dollar.
additionalAttributesDictionary
A set of key/value pairs that provides additional information about the item, as defined by the app developer. For example, the item may require a surcharge attribute for certain options.

PDOrderItemTax

The details about a tax that was applied to a line item within an order.

PropertyDescription
nameString
The specific type of tax represented; for example, sales tax.
amountString
The dollar amount added to the item cost for this tax.
currencyString
The monetary unit that applies to the amount, as represented by the ISO 4217 standard, for example, USD = United States Dollar.
additionalAttributesDictionary
A set of key/value pairs that defines custom data relevant to the tax, such as the whether it is state, federal or local or the tax rate.

PDPromotion

Identifies a specific deal that is promoted in the mobile wallet app in the order screen flow during a transaction.

PropertyDescription
additionalAttributesDictionary
A set of key/value pairs that define custom data relevant to the promotion, such as a unique identifier or a sponsor reference.
currencyString
The monetary unit that applies to the amount, as represented by the ISO 4217 standard, for example, USD = United States Dollar.
disclaimerString
Any text appended to the promotion that limits or clarifies its valid use.
discountString
The dollar amount by which the total will be reduced when the promotion is applied.
nameString
The identifying title of the promotion.

Orders Message Objects

PDretrieveOrderSummaryResponse

Returns the list of previously placed orders for the current mobile wallet user.

PropertyDescription
listofOrdersArray
The set of PDOrder objects that represents all orders that have been previously placed for the merchant by the currently logged-in user.

PDRetrieveOrderDetailResponse

Returns the list of previously placed orders for the current mobile wallet user.

PropertyDescription
orderPDOrder
Defines the particular order specified in the request call.