Class: OrderItemUpdate

Request~OrderItemUpdate(clientnullable, orderItemnullable)

Handles API Request OrderItem_Update. Scope: Store.

Constructor

new OrderItemUpdate(clientnullable, orderItemnullable)

OrderItemUpdate Constructor.

OrderItemUpdate Constructor.

Parameters:
Name Type Attributes Default Description
client Client <nullable>
orderItem OrderItem <nullable>
null
Source:
See:

Methods

addOption(option) → {OrderItemUpdate}

Add Options.

Add Options.

Parameters:
Name Type Description
option OrderItemOption
Source:
Throws:
Error
Returns:
Type
OrderItemUpdate

addOptions(options) → {OrderItemUpdate}

Add many OrderItemOption.

Add many OrderItemOption.

Parameters:
Name Type Description
options Array.<OrderItemOption>
Source:
Throws:
Error
Returns:
Type
OrderItemUpdate

createResponse() → {Response}

Create a response object from the response data.

Create a response object from the response data.

Source:
Returns:
Type
Response

getCode() → {string}

Get Code.

Get Code.

Source:
Returns:
Type
string

getLineId() → {number}

Get Line_ID.

Get Line_ID.

Source:
Returns:
Type
number

getName() → {string}

Get Name.

Get Name.

Source:
Returns:
Type
string

getOptions() → {Array.<OrderItemOption>}

Get Options.

Get Options.

Source:
Returns:
Type
Array.<OrderItemOption>

getOrderId() → {number}

Get Order_ID.

Get Order_ID.

Source:
Returns:
Type
number

getPrice() → {number}

Get Price.

Get Price.

Source:
Returns:
Type
number

getQuantity() → {number}

Get Quantity.

Get Quantity.

Source:
Returns:
Type
number

getSku() → {string}

Get Sku.

Get Sku.

Source:
Returns:
Type
string

getTaxable() → {boolean}

Get Taxable.

Get Taxable.

Source:
Returns:
Type
boolean

getWeight() → {number}

Get Weight.

Get Weight.

Source:
Returns:
Type
number

setCode(code) → {OrderItemUpdate}

Set Code.

Set Code.

Parameters:
Name Type Description
code string
Source:
Returns:
Type
OrderItemUpdate

setLineId(lineId) → {OrderItemUpdate}

Set Line_ID.

Set Line_ID.

Parameters:
Name Type Description
lineId number
Source:
Returns:
Type
OrderItemUpdate

setName(name) → {OrderItemUpdate}

Set Name.

Set Name.

Parameters:
Name Type Description
name string
Source:
Returns:
Type
OrderItemUpdate

setOptions(options) → {OrderItemUpdate}

Set Options.

Set Options.

Parameters:
Name Type Description
options Array.<OrderItemOption>
Source:
Throws:
Error
Returns:
Type
OrderItemUpdate

setOrderId(orderId) → {OrderItemUpdate}

Set Order_ID.

Set Order_ID.

Parameters:
Name Type Description
orderId number
Source:
Returns:
Type
OrderItemUpdate

setPrice(price) → {OrderItemUpdate}

Set Price.

Set Price.

Parameters:
Name Type Description
price number
Source:
Returns:
Type
OrderItemUpdate

setQuantity(quantity) → {OrderItemUpdate}

Set Quantity.

Set Quantity.

Parameters:
Name Type Description
quantity number
Source:
Returns:
Type
OrderItemUpdate

setSku(sku) → {OrderItemUpdate}

Set Sku.

Set Sku.

Parameters:
Name Type Description
sku string
Source:
Returns:
Type
OrderItemUpdate

setTaxable(taxable) → {OrderItemUpdate}

Set Taxable.

Set Taxable.

Parameters:
Name Type Description
taxable boolean
Source:
Returns:
Type
OrderItemUpdate

setWeight(weight) → {OrderItemUpdate}

Set Weight.

Set Weight.

Parameters:
Name Type Description
weight number
Source:
Returns:
Type
OrderItemUpdate

toObject() → {Object}

Reduce the request to a an object.

Reduce the request to a an object.

Source:
Returns:
Type
Object