getProductInfo
WARNING: This method is planned to be deprecated in a future API version. Likely to be replaced by
getWorkflowParameters
.
The getProductInfo
method can be used to access information about the product to be processed by the CUWO. The product is either the product whose representation in the sales item navigation was activated (for ConfigureLineItem) or the product that is referenced by the line item (AssembleProduct, CancelLineItem, and RefundLineItem).
The method is defined as:
/**
* Returns information about the product for the custom workflow.
*
* The product is either the product whose representation in
* the sales item navigation was activated (for ConfigureLineItem)
* or the product that is referenced by the line item
* (AssembleProduct, CancelLineItem, and RefundLineItem).
*/
public getProductInfo() : string<ProductInfo>
The return value is a string
holding the NFON-serialization of a ProductInfo
structure.
This structure has the following form:
{
"@type" : "n4.cuwo.ProductInfo",
"enforeID" : "...",
"name" : "...",
"gtin" : "...",
"productID" : null,
"pricePerUnit" : null, // n4.model.common.Money
"quantityUnit" : null, // n4.model.common.Quantity
"priceIsGross" : true,
"taxCategory" : "..."
}
The method is only available for the CUWOs:
- ConfigureLineItem
- AssembleProduct
- CancelLineItem
- RefundLineItem