← All types
Ob Object

ConvertEstimateToOrderPayload

Result of convertEstimateToOrder: the new order, its lines, and the accepted estimate.

Fields

The newly created order (status confirmed, payment status unpaid), with customer, addresses and amounts copied from the estimate. Null when errors is non-empty.

Order lines created one-for-one from the estimate lines, in the estimate's sort order. Null when errors is non-empty.

The source estimate after conversion: status accepted, acceptedAt set, and convertedToOrderId pointing at the new order. Null on failure.

errors

[FieldError!]!Non-null

Field-level validation errors. Empty on success; when non-empty nothing was written and every other field is null.

Referenced by (1)
Exact type SDL
"""
Result of `convertEstimateToOrder`: the new order, its lines, and the accepted estimate.
"""
type ConvertEstimateToOrderPayload {
  """
  The newly created order (status `confirmed`, payment status `unpaid`), with customer, addresses and amounts copied from the estimate. Null when `errors` is non-empty.
  """
  order: OrderState
  """
  Order lines created one-for-one from the estimate lines, in the estimate's sort order. Null when `errors` is non-empty.
  """
  orderLines: [OrderLineState!]
  """
  The source estimate after conversion: status `accepted`, `acceptedAt` set, and `convertedToOrderId` pointing at the new order. Null on failure.
  """
  updatedEstimate: EstimateState
  """
  Field-level validation errors. Empty on success; when non-empty nothing was written and every other field is null.
  """
  errors: [FieldError!]!
}