MGCLatticePriceInquiryResponseContract
Response contract for a sales price inquiry. Carries a lean success/message envelope with the machine-readable ErrorCode, the failure reasons (Errors) and the echoed CorrelationId, plus the resolved effective sales price: whether a price was found, the unit price and price unit, the source trade-agreement RecId (zero when the item base price was used), and the currency/date/quantity actually applied. Line/multiline discount resolution is a v2 addition (the discount-search API is heavier).
Methods
parmSuccess
Gets or sets a value indicating whether the inquiry completed without error.
- Visibility:
public - Returns:
booleanThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_success | boolean | Yes | The value to set. |
parmMessage
Gets or sets a human-readable message (an error description when Success is false).
- Visibility:
public - Returns:
strThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_message | str | Yes | The value to set. |
parmCorrelationId
Gets or sets the correlation identifier echoed from the request.
- Visibility:
public - Returns:
GuidThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_correlationId | Guid | Yes | The value to set. |
parmErrorCode
Gets or sets the machine-readable failure classification; None on success.
- Visibility:
public - Returns:
MGCLatticeServiceErrorCodeThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_errorCode | MGCLatticeServiceErrorCode | Yes | The value to set. |
parmErrors
Gets or sets the failure reasons (the error lines the inquiry raised); empty on success.
- Visibility:
public - Returns:
ListThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_errors | List | Yes | The value to set. |
parmPriceFound
Gets or sets a value indicating whether an effective price (agreement or item base) was found.
- Visibility:
public - Returns:
booleanThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_priceFound | boolean | Yes | The value to set. |
parmUnitPrice
Gets or sets the resolved effective unit price, in the applied currency.
- Visibility:
public - Returns:
realThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_unitPrice | real | Yes | The value to set. |
parmPriceUnit
Gets or sets the price unit the unit price is quoted per (for example, per 100).
- Visibility:
public - Returns:
realThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_priceUnit | real | Yes | The value to set. |
parmSourceAgreementRecId
Gets or sets the winning PriceDiscTable RecId; zero when the item base price was used.
- Visibility:
public - Returns:
int64The current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_sourceAgreementRecId | int64 | Yes | The value to set. |
parmAppliedCurrencyCode
Gets or sets the currency the price was resolved in.
- Visibility:
public - Returns:
strThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_appliedCurrencyCode | str | Yes | The value to set. |
parmAppliedDate
Gets or sets the effective date the price was resolved for.
- Visibility:
public - Returns:
dateThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_appliedDate | date | Yes | The value to set. |
parmAppliedQty
Gets or sets the quantity the price was resolved for.
- Visibility:
public - Returns:
realThe current value.
| Name | Type | Optional | Description |
|---|---|---|---|
_appliedQty | real | Yes | The value to set. |