commercestorepricing.TransactionalPricingResponse
Class that represents the output of the transactional pricing API callout.
Constructs TransactionalPricingResponse using product information by delegating the call to internal java class
Retrieves the header level list price which is the sum of list prices of all products. List price of a product is computed by multiplying list price and quantity.
Type | Description |
---|---|
Decimal | Total list price of all the products |
Sets the header level list price
Param | Description |
---|---|
totalListPrice | header level list price |
Retrieves the header level product amount which is sum of all negotiated prices multiplied by quantity
Type | Description |
---|---|
Decimal | sum of all negotiated prices multiplied by quantity |
Sets the header level product amount
Param | Description |
---|---|
totalProductAmount | header level product amount |
Retrieves the header level adjustment amount which is computed by multiplying product unit price, qty and adjustment value.
Type | Description |
---|---|
Decimal | sum of all negotiated prices multiplied by quantity and adjustment value |
Sets the header level adjustment amount
Param | Description |
---|---|
totalAdjustmentAmount | header level adjustment amount |
Retrieves total price of the product with adjustment amount at header level
Type | Description |
---|---|
Decimal | Total price of the product with adjustment amount at header level |
Sets total amount including adjustment amount at header level
Param | Description |
---|---|
totalAmount | Total amount including adjustment amount |
Returns true if there are no errors in fetching the prices
Type | Description |
---|---|
Boolean | True if there are no errors in fetching the prices, false otherwise |
Returns currency ISO code
Type | Description |
---|---|
String | Currency ISO code |
Sets currency ISO code for this Pricing Response
Param | Description |
---|---|
currencyIsoCode | Currency ISO Code |
Retrieves error message in case of errors when fetching the pricing information
Type | Description |
---|---|
String | Error message |
Retrieves localized error message in case of errors when fetching the pricing information
Type | Description |
---|---|
String | Localized error message |
Returns error code in case of errors when fetching the pricing information
Type | Description |
---|---|
String | Error code |
Sets error message and localized error message
Param | Description |
---|---|
errorMessage | Error message |
localizedErrorMessage | Localized error message |
Retrieves the list of commercestorepricing.TransactionalPricingResponseItem by delegating the call to internal java class
Type | Description |
---|---|
TxnPricingResponseItemCollection | list of TxnPricingResponseItems in the request |
Removes a commercestorepricing.TransactionalPricingResponseItem from the list by delegating the call to internal java class
Param | Description |
---|---|
txnPricingResponseItem | commercestorepricing.TransactionalPricingResponseItem to remove from the list |
Adds a commercestorepricing.TransactionalPricingResponseItem from the list by delegating the call to internal java class
Param | Description |
---|---|
txnPricingResponseItem | commercestorepricing.TransactionalPricingResponseItem to add to the list |