commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/b9a1691995e8ed9d6944c1148d45c0f7.metadata.yml

tests/modules/commercetools_test/assets/b9a1691995e8ed9d6944c1148d45c0f7.metadata.yml
tests:
  - 'nightwatch::modules/commercetools_content/tests/src/Nightwatch/Tests/userOrdersTest.js'
response:
  status: 200
request:
  method: POST
  uri: 'https://api.us-central1.gcp.commercetools.com/drupal-connector-demo-lifestyle/graphql'
  body_formatted: |
    # Encoded using YAML format by the function .CommerceToolsTesting::formatCtRequestAssetMetadata()
    query: |
      query getOrders($where: String, $sort: [String!], $limit: Int, $offset: Int) {
        orders(where: $where, sort: $sort, limit: $limit, offset: $offset) {
          total
          results {
            id
            createdAt
            orderNumber
            orderState
            customerId
            totalPrice {
              centAmount
              currencyCode
              fractionDigits
            }
            lineItems {
              id
              quantity
              name(acceptLanguage: ["en-US"])
              productSlug(acceptLanguage: ["en-US"])
              productType {
                id
                key
                name
              }
              variant {
                id
                sku
                images {
                  url
                  label
                }
                attributesRaw(includeNames: ["productspec", "color", "finish", "new-arrival", "size", "product-description", "product-description", "product-spec", "color", "finish"]) {
                  name
                  value
                }
                price(currency: "USD", country: "US") {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                  discounted {
                    value {
                      centAmount
                      currencyCode
                      fractionDigits
                    }
                  }
                }
                availability {
                  noChannel {
                    availableQuantity
                  }
                }
              }
              price {
                value {
                  centAmount
                  currencyCode
                  fractionDigits
                }
                discounted {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                }
              }
              totalPrice {
                centAmount
                currencyCode
                fractionDigits
              }
              discountedPricePerQuantity {
                quantity
                discountedPrice {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                  includedDiscounts {
                    discount {
                      id
                    }
                    discountedAmount {
                      centAmount
                      currencyCode
                      fractionDigits
                    }
                  }
                }
              }
            }
          }
        }
      }
    variables:
      limit: 10
      offset: 0
      sort: null
      where: 'customerId="9652463c-04db-48d0-a818-0d3b3aa97707"'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc