Skip to main content

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: boolean The current value.
NameTypeOptionalDescription
_successbooleanYesThe value to set.

parmMessage​

Gets or sets a human-readable message (an error description when Success is false).

  • Visibility: public
  • Returns: str The current value.
NameTypeOptionalDescription
_messagestrYesThe value to set.

parmCorrelationId​

Gets or sets the correlation identifier echoed from the request.

  • Visibility: public
  • Returns: Guid The current value.
NameTypeOptionalDescription
_correlationIdGuidYesThe value to set.

parmErrorCode​

Gets or sets the machine-readable failure classification; None on success.

  • Visibility: public
  • Returns: MGCLatticeServiceErrorCode The current value.
NameTypeOptionalDescription
_errorCodeMGCLatticeServiceErrorCodeYesThe value to set.

parmErrors​

Gets or sets the failure reasons (the error lines the inquiry raised); empty on success.

  • Visibility: public
  • Returns: List The current value.
NameTypeOptionalDescription
_errorsListYesThe value to set.

parmPriceFound​

Gets or sets a value indicating whether an effective price (agreement or item base) was found.

  • Visibility: public
  • Returns: boolean The current value.
NameTypeOptionalDescription
_priceFoundbooleanYesThe value to set.

parmUnitPrice​

Gets or sets the resolved effective unit price, in the applied currency.

  • Visibility: public
  • Returns: real The current value.
NameTypeOptionalDescription
_unitPricerealYesThe value to set.

parmPriceUnit​

Gets or sets the price unit the unit price is quoted per (for example, per 100).

  • Visibility: public
  • Returns: real The current value.
NameTypeOptionalDescription
_priceUnitrealYesThe value to set.

parmSourceAgreementRecId​

Gets or sets the winning PriceDiscTable RecId; zero when the item base price was used.

  • Visibility: public
  • Returns: int64 The current value.
NameTypeOptionalDescription
_sourceAgreementRecIdint64YesThe value to set.

parmAppliedCurrencyCode​

Gets or sets the currency the price was resolved in.

  • Visibility: public
  • Returns: str The current value.
NameTypeOptionalDescription
_appliedCurrencyCodestrYesThe value to set.

parmAppliedDate​

Gets or sets the effective date the price was resolved for.

  • Visibility: public
  • Returns: date The current value.
NameTypeOptionalDescription
_appliedDatedateYesThe value to set.

parmAppliedQty​

Gets or sets the quantity the price was resolved for.

  • Visibility: public
  • Returns: real The current value.
NameTypeOptionalDescription
_appliedQtyrealYesThe value to set.