OBJECT

Mutation

Root Mutation

link GraphQL Schema definition

  • type Mutation {
  • # Add a product line to a current basket
  • #
  • # Arguments
  • # basketName: The name of the basket
  • # productCode: The product code to be added
  • # quantity: The number of items to added (defaults to 1)
  • addBasketLine(basketName: String, productCode: String!, quantity: Int): Basket!
  • # Edit a product line in a current basket
  • #
  • # Arguments
  • # basketName: The name of the basket
  • # productCode: The product code to be edited
  • # quantity: The new 'quantity' value
  • editBasketLine(
  • basketName: String,
  • productCode: String!,
  • quantity: Int!
  • ): Basket!
  • # Create a new current basket
  • #
  • # Arguments
  • # basketName: The name of the new basket. If the name already
  • # exists than the existing basket will be returned
  • # purchasingInstruction: The PurchasingInstruction. Will add the
  • # purchasing instruction when account with valid permission
  • createBasket(basketName: String, purchasingInstruction: String): BasketResultWithMessage!
  • # Delete a current basket
  • #
  • # Arguments
  • # basketName: The name of the basket
  • deleteBasket(basketName: String): String!
  • # Save a current basket as a quote (e.g. persist it to the database)
  • #
  • # Arguments
  • # basketName: The name of the basket
  • saveBasketAsQuote(basketName: String): Basket!
  • # Delete a quote basket (e.g. remove from the database)
  • #
  • # Arguments
  • # basketName: The name of the basket
  • deleteQuoteBasket(basketName: String): String!
  • # Load a quote and make it current basket (e.g. load from database and store in
  • # memory).
  • #
  • # If ID will be used to search for a basket, unless not specified in which case
  • # the basketName will be used
  • #
  • # Arguments
  • # basketName: The name of the basket
  • # id: The ID of the basket
  • loadQuoteBasket(basketName: String, id: ID): Basket!
  • # Add Shipping and invoice details to a basket, prior to ordering
  • #
  • # Arguments
  • # basketName: The name of the basket
  • # deliveryDetails: The delivery details to be added
  • addBasketDeliveryDetails(
  • basketName: String,
  • deliveryDetails: BasketDeliveryDetails!
  • ): Basket!
  • # Place an order using a saved basket
  • #
  • # Arguments
  • # basketName: The name of the basket
  • orderBasketOnAccount(basketName: String): [Order]
  • # Create and place an order in one go.
  • #
  • # This will find an existing basket by name, or create a new one.
  • #
  • # Add a list of products, then add the delivery details, and finally place the
  • # order.
  • #
  • # Arguments
  • # basketName: The name of the basket
  • # products: The list of products and quantities to be
  • # added/ordered
  • # deliveryDetails: The delivery details of the order
  • createAndOrderBasket(
  • basketName: String,
  • products: [ProductList!],
  • deliveryDetails: BasketDeliveryDetails!
  • ): [Order]
  • # Arguments
  • # basketName: The name of the basket
  • # msid: [Not documented]
  • # quantity: [Not documented]
  • # azureBudget: [Not documented]
  • # azureContact: [Not documented]
  • # azureNickname: [Not documented]
  • # checkoutData: [Not documented]
  • createAndOrderAzureSubscription(
  • basketName: String,
  • msid: String,
  • quantity: Int,
  • azureBudget: String,
  • azureContact: String,
  • azureNickname: String,
  • checkoutData: checkoutData!
  • ): [Order]
  • # Change the current account of the current (logged in) user
  • #
  • # Arguments
  • # accountCode: The account code to be used
  • changeDefaultAccount(accountCode: String): AccountDetails
  • }

link Require by

This element is not required by anyone