Skip to main content

MGCLatticePurchaseProductReceiptCancelRequestContract

Request contract for canceling a posted purchase product receipt (cancelPurchaseProductReceipt): the purchase order (or its external key), the product receipt to cancel (optional: without it, the order's only product receipt that can be canceled), the preview flag (always refused) and the common envelope fields.

Methods​

construct​

Creates a new instance of the MGCLatticePurchaseProductReceiptCancelRequestContract class.

  • Visibility: public
  • Returns: MGCLatticePurchaseProductReceiptCancelRequestContract A new MGCLatticePurchaseProductReceiptCancelRequestContract instance.

No parameters.

parmCorrelationId​

Gets or sets the correlation identifier for tracing the request across systems.

  • Visibility: public
  • Returns: Guid The CorrelationId value.
NameTypeOptionalDescription
_correlationIdGuidYesThe CorrelationId value.

parmRequestId​

Gets or sets the unique request identifier for idempotency.

  • Visibility: public
  • Returns: Guid The RequestId value.
NameTypeOptionalDescription
_requestIdGuidYesThe RequestId value.

parmLegalEntityId​

Gets or sets the legal entity (company) of the purchase order.

  • Visibility: public
  • Returns: DataAreaId The LegalEntityId value.
NameTypeOptionalDescription
_legalEntityIdDataAreaIdYesThe LegalEntityId value.

parmUserContext​

Gets or sets the calling system's user context (informational).

  • Visibility: public
  • Returns: UserId The UserContext value.
NameTypeOptionalDescription
_userContextUserIdYesThe UserContext value.

parmPurchaseOrderId​

Gets or sets the purchase order whose product receipt is canceled (or send PurchaseOrderIdExternalKey).

  • Visibility: public
  • Returns: PurchId The PurchaseOrderId value.
NameTypeOptionalDescription
_purchaseOrderIdPurchIdYesThe PurchaseOrderId value.

parmProductReceiptId​

Gets or sets the product receipt to cancel. Optional: without it the order's only product receipt that can be canceled is canceled, and an order with several is refused.

  • Visibility: public
  • Returns: PackingSlipId The ProductReceiptId value.
NameTypeOptionalDescription
_productReceiptIdPackingSlipIdYesThe ProductReceiptId value.

parmPreviewMode​

Gets or sets preview mode. The operation has no preview, so a request with PreviewMode set is refused.

  • Visibility: public
  • Returns: boolean The PreviewMode value.
NameTypeOptionalDescription
_previewModebooleanYesThe PreviewMode value.

parmExternalSystem​

Gets or sets the external system whose keys the request's external key members hold.

  • Visibility: public
  • Returns: MGCLatticeExternalSystemId The ExternalSystem value.
NameTypeOptionalDescription
_externalSystemMGCLatticeExternalSystemIdYesThe ExternalSystem value.

parmPurchaseOrderIdExternalKey​

Gets or sets the external system's key of the purchase order, in place of PurchaseOrderId.

  • Visibility: public
  • Returns: MGCLatticeExternalKey The PurchaseOrderIdExternalKey value.
NameTypeOptionalDescription
_purchaseOrderIdExternalKeyMGCLatticeExternalKeyYesThe PurchaseOrderIdExternalKey value.