dw.order
Class ProductShippingLineItem

Represents a specific line item in a shipment. A ProductShippingLineItem defines
lineitem-specific shipping costs.
Constants
PRODUCT_SHIPPING_ID
:
String = "PRODUCT_SHIPPING"
Reserved constant.
Deprecated:
this reserved constant is deprecated.
Properties
adjustedGrossPrice
:
Money
(Read Only)
The gross price of the product shipping line item after applying
all product-shipping-level adjustments.
adjustedNetPrice
:
Money
(Read Only)
The net price of the product shipping line item after applying
all product-shipping-level adjustments.
adjustedPrice
:
Money
(Read Only)
The price of the product shipping line item after applying all
pproduct-shipping-level adjustments. For net pricing the adjusted net
price is returned (see getAdjustedNetPrice()). For gross
pricing, the adjusted gross price is returned (see
getAdjustedGrossPrice()).
adjustedTax
:
Money
(Read Only)
The tax of the unit after applying adjustments, in the purchase
currency.
priceAdjustments
:
Collection
(Read Only)
An iterator of price adjustments that have been applied to this
product shipping line item.
productLineItem
:
ProductLineItem
(Read Only)
The parent product line item this shipping line item belongs to.
quantity
:
Quantity
The quantity of the shipping cost.
shipment
:
Shipment
(Read Only)
The shipment this shipping line item belongs to.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getAdjustedGrossPrice()
:
Money
Returns the gross price of the product shipping line item after applying all product-shipping-level adjustments.
getAdjustedNetPrice()
:
Money
Returns the net price of the product shipping line item after applying all product-shipping-level adjustments.
getAdjustedPrice()
:
Money
Returns the price of the product shipping line item after applying all pproduct-shipping-level adjustments.
getAdjustedTax()
:
Money
Returns the tax of the unit after applying adjustments, in the purchase currency.
getPriceAdjustments()
:
Collection
Returns an iterator of price adjustments that have been applied to this product shipping line item.
getProductLineItem()
:
ProductLineItem
Returns the parent product line item this shipping line item belongs to.
getQuantity()
:
Quantity
Returns the quantity of the shipping cost.
getShipment()
:
Shipment
Returns the shipment this shipping line item belongs to.
isSurcharge()
:
boolean
Returns the 'surcharge' flag.
setPriceValue(value
:
Number)
:
void
Sets price attributes of the line item based on the purchase currency, taxation policy and line item quantity.
The method sets the 'basePrice' attribute of the line item.
The method sets the 'basePrice' attribute of the line item.
setQuantity(quantity
:
Quantity)
:
void
Sets the quantity of the shipping cost.
setSurcharge(flag
:
boolean)
:
void
Sets the 'surcharge' flag.
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβthis is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Methods inherited from class
LineItem
getBasePrice, getGrossPrice, getLineItemCtnr, getLineItemText, getNetPrice, getPrice, getPriceValue, getTax, getTaxBasis, getTaxClassID, getTaxRate, setBasePrice, setGrossPrice, setLineItemText, setNetPrice, setPriceValue, setTax, setTaxClassID, setTaxRate, updatePrice, updateTax, updateTax, updateTaxAmount
Methods inherited from class
ExtensibleObject
Methods inherited from class
PersistentObject
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
getAdjustedGrossPrice
getAdjustedGrossPrice()
:
Money
Returns the gross price of the product shipping line item after applying
all product-shipping-level adjustments.
Returns:
gross price after applying product-shipping-level adjustments
getAdjustedNetPrice
getAdjustedNetPrice()
:
Money
Returns the net price of the product shipping line item after applying
all product-shipping-level adjustments.
Returns:
net price after applying product-shipping-level adjustments
getAdjustedPrice
getAdjustedPrice()
:
Money
Returns the price of the product shipping line item after applying all
pproduct-shipping-level adjustments. For net pricing the adjusted net
price is returned (see getAdjustedNetPrice()). For gross
pricing, the adjusted gross price is returned (see
getAdjustedGrossPrice()).
Returns:
Adjusted net or gross price
getAdjustedTax
getAdjustedTax()
:
Money
Returns the tax of the unit after applying adjustments, in the purchase
currency.
Returns:
the tax of the unit after applying adjustments, in the purchase currency.
getPriceAdjustments
getPriceAdjustments()
:
Collection
Returns an iterator of price adjustments that have been applied to this
product shipping line item.
Returns:
a collection of price adjustments that have been applied to this product shipping line item.
getProductLineItem
getProductLineItem()
:
ProductLineItem
Returns the parent product line item this shipping line item belongs to.
Returns:
the product line item
getQuantity
getQuantity()
:
Quantity
Returns the quantity of the shipping cost.
Returns:
the shipping quantity
getShipment
getShipment()
:
Shipment
Returns the shipment this shipping line item belongs to.
Returns:
the shipment
isSurcharge
isSurcharge()
:
boolean
Returns the 'surcharge' flag.
Returns:
true if this is a surcharge shipping cost, false if fixed shipping cost
setPriceValue
setPriceValue(value
:
Number)
:
void
Sets price attributes of the line item based on the
purchase currency, taxation policy and line item quantity.
The method sets the 'basePrice' attribute of the line item. Additionally, it sets the 'netPrice' attribute of the line item if the current taxation policy is 'net', and the 'grossPrice' attribute, if the current taxation policy is 'gross'. The 'netPrice'/'grossPrice' attributes are set by multiplying the specified price value with the line item quantity.
If null is specified as value, the price attributes are reset to Money.NA.
The method sets the 'basePrice' attribute of the line item. Additionally, it sets the 'netPrice' attribute of the line item if the current taxation policy is 'net', and the 'grossPrice' attribute, if the current taxation policy is 'gross'. The 'netPrice'/'grossPrice' attributes are set by multiplying the specified price value with the line item quantity.
If null is specified as value, the price attributes are reset to Money.NA.
Parameters:
value
-
Price value or null
setQuantity
setQuantity(quantity
:
Quantity)
:
void
Sets the quantity of the shipping cost.
Parameters:
quantity
-
the shipping quantity