Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / src / models / Order.graphql.ts
Size: Mime:
import { gql } from 'apollo-server'

export default gql`
  type OrderProductCartInfo {
    totaltax: String
    total: String
    discountonlytotal: String
    valueaddedtaxes: [LabelValue]
    shippingmethods: [ShippingMethod]
    surcharges: [TypeValue]
    orderitemid: String
    discounttotal: String
  }

  type OrderProductItemInfo {
    categoryids: [LabelValue]
    cartinfo: CartInfo
    flags: [LabelValue]
    isgiftwrap: String
    description: [Value]
    specifications: [LabelValue]
    psvid: String
    isgiftcard: String
    additionalinfo: [LabelValue]
  }

  type OrderProductState {
    timings: [LabelValue]
    locale: String
    additionalinfo: [LabelValue]
    status: String
  }

  type OrderInfo {
    orderid: String
  }

  type PackageUserInfo {
    userid: String
  }

  type OrderProductProperties {
    buyinfo: CartBuyInfo
    cartinfo: OrderProductCartInfo
    iteminfo: OrderProductItemInfo
    state: OrderProductState
    math: Math
    orderinfo: OrderInfo
    userinfo: PackageUserInfo
  }

  type CategoryIdProperties {
    label: String
    value: String
  }

  type ShippingAddress {
    address1: String
    address2: String
    zipcode: String
    city: String
    state: String
    country: String
    phonenumber: String
    email: String
    lastname: String
    firstname: String
  }

  type OrderProduct {
    identifier: String
    name: String
    image: String
    skuid: String
    price: String
    properties: OrderProductProperties
    quantity: String
    skuinfo: SkuInfo
    category: [LabelValue]
    shippingmethod: String
    shippingaddress: [ShippingAddress]
  }

  type PhoneDetail {
    phonenumber: String
  }

  # @todo this is duplication we should reuse card types same as in state tree models...
  type CardAddressInfo {
    country: String
    firstname: String
    phonedetails: [PhoneDetail]
    city: String
    county: String
    middlename: String
    lastname: String
    addressid: String
    zipcode: String
    addressline3: String
    addressline2: String
    addressline1: String
    state: String
    email: String
  }
  type CardInfo {
    identifier: String
    amount: String
    addressinfo: CardAddressInfo
    credits: String
    type: String
    additionalinfo: [LabelValue]
    points: String
  }

  type CreditCardInfo {
    cards: [CardInfo]
  }

  type CardDetail {
    cardBrand: String
    cardExpirationMonth: String
    cardExpirationYear: String
    cardNumber: String
    cardType: String
  }

  type PaymentCardDetail {
    carddetails: CardDetail
    name: LabelValue
  }

  type OrderPaymentCardDetail {
    amount: String
    additionalinfo: [LabelValue]
  }

  type OrderPaymentProperties {
    creditcardinfo: [CreditCardInfo]
    paymentcardinfo: OrderPaymentCardDetail
  }

  type OrderPayment {
    properties: OrderPaymentProperties
  }

  type OrderListState {
    statuscode: String
    offset: String
    count: String
    status: String
  }

  type OrderMath {
    subTotal: String
    giftSale: String
    tax: String
    shippingCharge: String
    shippingTax: String
    discount: String
    total: String
    grandTotal: String
    couponTotal: String
  }

  type ShippingDetail {
    price: String
    shippingaddress: [ShippingAddress]
    hasShipped: Boolean
  }

  type OrderPackage {
    math: OrderMath
    orderCreatedTime: String
    orderId: String
    orderTotalAmount: String
    orderTotalItems: String
    products: [OrderProduct]
    shipping: [ShippingDetail]
    properties: OrderProductProperties
    status: String
  }

  input OrderApprovalInput {
    orderid: String
    status: String
    reasonCode: String
    reasonMessage: String
  }

  type OrderDetail {
    packages: [OrderPackage]
    paymentcardinfo: [PaymentCardDetail]
    payments: [OrderPayment]
    state: OrderListState
  }

  type OrderApproval {
    orders: OrderDetail
    statuscode: String
    status: String
  }
  type OrderAgainState {
    status: String
  }
  type OrderAgainResponse {
    state: OrderAgainState
  }

  type OrderList {
    orders: [OrderDetail]
    state: OrderListState
  }

  # @alias orderLookupList
  type GuestOrderList {
    orders: [OrderDetail]
    state: OrderListState
  }

  type OrderState {
    statuscode: String
    status: String
  }

  type OrderProperties {
    state: OrderState
  }

  type CancelOrder {
    type: String
    properties: OrderProperties
  }

  type ReturnOrder {
    type: String
    properties: OrderProperties
  }
`