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

tests/modules/commercetools_test/assets/0bd090b0a9cbcfbb5a5f2d159db406f8.metadata.yml
tests:
  - 'nightwatch::modules/commercetools_demo/tests/src/Nightwatch/Tests/demoDecoupledSmokeTest.js'
response:
  status: 200
request:
  method: POST
  uri: 'https://api.us-central1.gcp.commercetools.com/drupal-connector-demo-lifestyle/graphql'
  context: ctCart-context-9bf6fd3a-ebee-4473-a941-04806875d78c-1
  body_formatted: |
    # Encoded using YAML format by the function .CommerceToolsTesting::formatCtRequestAssetMetadata()
    query: |
      mutation updateCart($id: String, $version: Long!, $actions: [CartUpdateAction!]!, $languages: [Locale!], $country: Country, $currency: Currency!) {
        updateCart(id: $id, version: $version, actions: $actions) {
          id
          cartState
          version
          customerId
          totalLineItemQuantity
          totalPrice {
            centAmount
            currencyCode
            fractionDigits
          }
          discountOnTotalPrice {
            includedDiscounts {
              discount {
                id
                name(acceptLanguage: $languages)
              }
              discountedAmount {
                centAmount
                currencyCode
                fractionDigits
              }
            }
          }
          discountCodes {
            discountCode {
              id
              code
              name(acceptLanguage: $languages)
              cartDiscounts {
                id
              }
            }
          }
          lineItems {
            id
            name(acceptLanguage: $languages)
            productSlug(acceptLanguage: $languages)
            quantity
            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
              }
              availability {
                noChannel {
                  availableQuantity
                }
              }
              price(country: $country, currency: $currency) {
                value {
                  centAmount
                  currencyCode
                  fractionDigits
                }
                discounted {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                }
              }
            }
            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
                  }
                }
              }
            }
          }
          shippingAddress {
            id
            key
            title
            postalCode
            streetName
            streetNumber
            city
            region
            state
            country
            phone
            mobile
            firstName
            lastName
            email
          }
          billingAddress {
            id
            key
            title
            postalCode
            streetName
            streetNumber
            city
            region
            state
            country
            phone
            mobile
            firstName
            lastName
            email
          }
        }
      }
    variables:
      id: 9bf6fd3a-ebee-4473-a941-04806875d78c
      version: 1
      actions:
        -
          addLineItem:
            quantity: 1
            sku: SQB-034
      languages:
        - en-US
        - en-GB
      country: DE
      currency: EUR
      proxy: true

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

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