magento/graphql-ce

MyAccount :: Order Details :: Order Items by Order Number

lenaorobei opened this issue · 0 comments

Description (*)

As a Magento end Customer,

I want to see order items details in my account.

so that

I can know the right info and details about my order items.

Acceptance Criteria:

  • Functionality is covered by api-functional tests

Additional information

interface SalesItemInterface @doc(description: "Interface to represent order/invoice/shipment/credit memo items"){
    name: String @doc(description: "name of the base product")
    sku: String! @doc(description: "sku of the base product")
    url: String @doc(description: "url of the base product")
    sale_price: Float! @doc(description: "sale price for the base product including selected options")
    discounts: [Discount] @doc(description: "final discount information for the base product including discounts on options")
    parent_name: String @doc(description: "name of parent product like configurable or bundle")
    parent_sku: String @doc(description: "SKU of parent product like configurable or bundle")
    parent_url: String @doc(description: "URL of parent product in the catalog")
    selected_options: [SalesItemOption] @doc(description: "selected options for the base product. for e.g color, size etc.")
    entered_options: [SalesItemOption] @doc(description: "entered option for the base product. for e.g logo image etc.")
}

type SalesItemOption @doc(description: "Represents sales item options like selected or entered") {
   id: String! @doc(description: "name of the option")
    value: String! @doc(description: "value of the option")
}

type OrderItem implements SalesItemInterface @doc(description: "Order Product implementation of OrderProductInterface"){
    quantity_ordered: Float! @doc(description: "number of items")
    quantity_shipped: Float! @doc(description: "number of shipped items")
    quantity_refunded: Float! @doc(description: "number of refunded items")
    quantity_invoiced: Float! @doc(description: "number of invoiced items")
    quantity_backordered: Float! @doc(description: "number of back ordered items")
    quantity_canceled: Float! @doc(description: "number of cancelled items")
    quantity_returned: Float! @doc(description: "number of returned items")
    status: String! @doc(description: "the status of order item")
}

Implementation should be based on approved proposal: magento/architecture#312