dw.extensions.pinterest
Class PinterestOrder
dw.extensions.pinterest.PinterestOrder
An order that was placed through Pinterest.
Constants
PAYMENT_STATUS_NOT_PAID
:
String = "NOT_PAID"
Indicates that payment has not been made.
PAYMENT_STATUS_PAID
:
String = "PAID"
Indicates that payment is complete.
PAYMENT_STATUS_PART_PAID
:
String = "PART_PAID"
Indicates that payment is incomplete.
STATUS_BACKORDER
:
String = "BACKORDER"
Indicates an order on backorder.
STATUS_CANCELLED
:
String = "CANCELLED"
Indicates an order that has been canceled.
STATUS_DELIVERED
:
String = "DELIVERED"
Indicates an order that has been delivered.
STATUS_IN_PROGRESS
:
String = "IN_PROGRESS"
Indicates an order in progress.
STATUS_NEW
:
String = "NEW"
Indicates a new order.
STATUS_RETURNED
:
String = "RETURNED"
Indicates an order that has been returned.
STATUS_SHIPPED
:
String = "SHIPPED"
Indicates an order that has shipped.
Properties
itemId
:
String
The item ID for this Pinterest order.
orderNo
:
String
(Read Only)
The order number for this Pinterest order. This is the same as the order number of the Demandware order.
paymentStatus
:
String
The status of this Pinterest order. Possible values are
PAYMENT_STATUS_PAID,
PAYMENT_STATUS_NOT_PAID,
or PAYMENT_STATUS_PART_PAID.
status
:
String
The status of this Pinterest order. Possible values are
STATUS_NEW,
STATUS_IN_PROGRESS,
STATUS_SHIPPED,
STATUS_BACKORDER,
STATUS_CANCELLED,
STATUS_DELIVERED,
or STATUS_RETURNED.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getOrderNo()
:
String
Returns the order number for this Pinterest order.
getPaymentStatus()
:
String
Returns the status of this Pinterest order.
setPaymentStatus(status
:
String)
:
void
Sets the status of this Pinterest order.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
getOrderNo
getOrderNo()
:
String
Returns the order number for this Pinterest order. This is the same as the order number of the Demandware order.
Returns:
order number
getPaymentStatus
getPaymentStatus()
:
String
Returns the status of this Pinterest order. Possible values are
PAYMENT_STATUS_PAID,
PAYMENT_STATUS_NOT_PAID,
or PAYMENT_STATUS_PART_PAID.
getStatus
getStatus()
:
String
Returns the status of this Pinterest order. Possible values are
STATUS_NEW,
STATUS_IN_PROGRESS,
STATUS_SHIPPED,
STATUS_BACKORDER,
STATUS_CANCELLED,
STATUS_DELIVERED,
or STATUS_RETURNED.
setItemId
setItemId(itemId
:
String)
:
void
Sets the item ID for this Pinterest order.
Parameters:
itemId
-
item ID
setPaymentStatus
setPaymentStatus(status
:
String)
:
void
Sets the status of this Pinterest order. Possible values are
PAYMENT_STATUS_PAID,
PAYMENT_STATUS_NOT_PAID,
or PAYMENT_STATUS_PART_PAID.
Parameters:
status
-
the status to set for this order
setStatus
setStatus(status
:
String)
:
void
Sets the status of this Pinterest order. Possible values are
STATUS_NEW,
STATUS_IN_PROGRESS,
STATUS_SHIPPED,
STATUS_BACKORDER,
STATUS_CANCELLED,
STATUS_DELIVERED,
or STATUS_RETURNED.
Parameters:
status
-
the status to set for this order