Untitled

mail@pastecode.io avatar
unknown
graphqlschema
8 months ago
1.1 kB
6
Indexable
query orderPayments($orderId: String!) {
  orderPayments(orderId: $orderId) {
    paymentsDetails {
      method
      terms
      option
    }
    payments {
      id
      invoiceNumber
      amountPlanned
      serviceProvider
      dateCreated
      dateModified
      transactions {
        id
        date
        status
        type
        reference
        products {
          sku
          quantity
        }
      }
    }
    }
  }
}

interface OrderPaymentsResponse {
  paymentsDetails: PaymentsDetails
  payments: [Payment]!
}

"""Prev type is Payment"""
interface PaymentsDetails {
  method: String
  terms: String
  option: String
  poNumber: String
}

interface Payment {
  id: ID!
  invoiceNumber: String
  amountPlanned: String
  serviceProvider: String
  dateCreated: String
  dateModified: String
  transactions: [Transaction]!
}

interface Transaction {
  id: ID!
  date: String
  status: String
  type: String
  reference: String
  products: TransactionProduct
}

interface TransactionProduct {
  sku: String!
  quantity: Int!
}



"""
deprecate field "payment" in favor of "paymentDetails"
"""
Leave a Comment