// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`/store/products /store/products/:id includes default relations 1`] = `
Object {
  "product": Object {
    "collection": Object {
      "created_at": Any<String>,
      "deleted_at": null,
      "handle": "test-collection",
      "id": "test-collection",
      "metadata": null,
      "title": "Test collection",
      "updated_at": Any<String>,
    },
    "collection_id": "test-collection",
    "created_at": Any<String>,
    "deleted_at": null,
    "description": "test-product-description",
    "discountable": true,
    "external_id": null,
    "handle": "test-product",
    "height": null,
    "hs_code": null,
    "id": "test-product",
    "images": Array [
      Object {
        "created_at": Any<String>,
        "deleted_at": null,
        "id": "test-image",
        "metadata": null,
        "updated_at": Any<String>,
        "url": "test-image.png",
      },
    ],
    "is_giftcard": false,
    "length": null,
    "material": null,
    "metadata": null,
    "mid_code": null,
    "options": Array [
      Object {
        "created_at": Any<String>,
        "deleted_at": null,
        "id": "test-option",
        "metadata": null,
        "product_id": "test-product",
        "title": "test-option",
        "updated_at": Any<String>,
        "values": Array [
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant",
            "variant_id": "test-variant",
          },
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-1",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 1",
            "variant_id": "test-variant_1",
          },
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-2",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 2",
            "variant_id": "test-variant_2",
          },
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-3",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 3",
            "variant_id": "test-variant_3",
          },
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-4",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 4",
            "variant_id": "test-variant_4",
          },
        ],
      },
    ],
    "origin_country": null,
    "profile_id": StringMatching /\\^sp_\\*/,
    "status": "published",
    "subtitle": null,
    "tags": Array [
      Object {
        "created_at": Any<String>,
        "deleted_at": null,
        "id": "tag1",
        "metadata": null,
        "updated_at": Any<String>,
        "value": "123",
      },
    ],
    "thumbnail": null,
    "title": "Test product",
    "type": Object {
      "created_at": Any<String>,
      "deleted_at": null,
      "id": "test-type",
      "metadata": null,
      "updated_at": Any<String>,
      "value": "test-type",
    },
    "type_id": "test-type",
    "updated_at": Any<String>,
    "variants": Array [
      Object {
        "allow_backorder": false,
        "barcode": "test-barcode",
        "calculated_price": null,
        "calculated_price_incl_tax": null,
        "calculated_tax": null,
        "created_at": Any<String>,
        "deleted_at": null,
        "ean": "test-ean",
        "height": null,
        "hs_code": null,
        "id": "test-variant",
        "inventory_quantity": 10,
        "length": null,
        "manage_inventory": true,
        "material": null,
        "metadata": null,
        "mid_code": null,
        "options": Array [
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant",
            "variant_id": "test-variant",
          },
        ],
        "origin_country": null,
        "original_price": null,
        "original_price_incl_tax": null,
        "original_tax": null,
        "prices": Array [
          Object {
            "amount": 100,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": null,
            "price_list_id": null,
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant",
          },
          Object {
            "amount": 80,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price-discount",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": Object {
              "created_at": Any<String>,
              "deleted_at": null,
              "description": "Winter sale for VIP customers.",
              "ends_at": null,
              "id": "pl",
              "name": "VIP winter sale",
              "starts_at": null,
              "status": "active",
              "type": "sale",
              "updated_at": Any<String>,
            },
            "price_list_id": "pl",
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant",
          },
        ],
        "product_id": "test-product",
        "sku": "test-sku",
        "tax_rates": null,
        "title": "Test variant",
        "upc": "test-upc",
        "updated_at": Any<String>,
        "weight": null,
        "width": null,
      },
      Object {
        "allow_backorder": false,
        "barcode": null,
        "calculated_price": null,
        "calculated_price_incl_tax": null,
        "calculated_tax": null,
        "created_at": Any<String>,
        "deleted_at": null,
        "ean": "test-ean2",
        "height": null,
        "hs_code": null,
        "id": "test-variant_2",
        "inventory_quantity": 10,
        "length": null,
        "manage_inventory": true,
        "material": null,
        "metadata": null,
        "mid_code": null,
        "options": Array [
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-2",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 2",
            "variant_id": "test-variant_2",
          },
        ],
        "origin_country": null,
        "original_price": null,
        "original_price_incl_tax": null,
        "original_tax": null,
        "prices": Array [
          Object {
            "amount": 100,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price2",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": null,
            "price_list_id": null,
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant_2",
          },
          Object {
            "amount": 80,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price2-discount",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": Object {
              "created_at": Any<String>,
              "deleted_at": null,
              "description": "Winter sale for VIP customers.",
              "ends_at": null,
              "id": "pl",
              "name": "VIP winter sale",
              "starts_at": null,
              "status": "active",
              "type": "sale",
              "updated_at": Any<String>,
            },
            "price_list_id": "pl",
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant_2",
          },
        ],
        "product_id": "test-product",
        "sku": "test-sku2",
        "tax_rates": null,
        "title": "Test variant rank (2)",
        "upc": "test-upc2",
        "updated_at": Any<String>,
        "weight": null,
        "width": null,
      },
      Object {
        "allow_backorder": false,
        "barcode": "test-barcode 1",
        "calculated_price": null,
        "calculated_price_incl_tax": null,
        "calculated_tax": null,
        "created_at": Any<String>,
        "deleted_at": null,
        "ean": "test-ean1",
        "height": null,
        "hs_code": null,
        "id": "test-variant_1",
        "inventory_quantity": 10,
        "length": null,
        "manage_inventory": true,
        "material": null,
        "metadata": null,
        "mid_code": null,
        "options": Array [
          Object {
            "created_at": Any<String>,
            "deleted_at": null,
            "id": "test-variant-option-1",
            "metadata": null,
            "option_id": "test-option",
            "updated_at": Any<String>,
            "value": "Default variant 1",
            "variant_id": "test-variant_1",
          },
        ],
        "origin_country": null,
        "original_price": null,
        "original_price_incl_tax": null,
        "original_tax": null,
        "prices": Array [
          Object {
            "amount": 100,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price1",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": null,
            "price_list_id": null,
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant_1",
          },
          Object {
            "amount": 80,
            "created_at": Any<String>,
            "currency_code": "usd",
            "deleted_at": null,
            "id": "test-price1-discount",
            "max_quantity": null,
            "min_quantity": null,
            "price_list": Object {
              "created_at": Any<String>,
              "deleted_at": null,
              "description": "Winter sale for VIP customers.",
              "ends_at": null,
              "id": "pl",
              "name": "VIP winter sale",
              "starts_at": null,
              "status": "active",
              "type": "sale",
              "updated_at": Any<String>,
            },
            "price_list_id": "pl",
            "region_id": null,
            "updated_at": Any<String>,
            "variant_id": "test-variant_1",
          },
        ],
        "product_id": "test-product",
        "sku": "test-sku1",
        "tax_rates": null,
        "title": "Test variant rank (1)",
        "upc": "test-upc1",
        "updated_at": Any<String>,
        "weight": null,
        "width": null,
      },
    ],
    "weight": null,
    "width": null,
  },
}
`;

exports[`/store/products list params works with expand and fields 1`] = `
Object {
  "count": 2,
  "limit": 1,
  "offset": 0,
  "products": Array [
    Object {
      "id": Any<String>,
      "title": "testprod",
      "variants": Array [
        Object {
          "allow_backorder": false,
          "barcode": null,
          "calculated_price": null,
          "calculated_price_incl_tax": null,
          "calculated_tax": null,
          "created_at": Any<String>,
          "deleted_at": null,
          "ean": null,
          "height": null,
          "hs_code": null,
          "id": Any<String>,
          "inventory_quantity": 10,
          "length": null,
          "manage_inventory": true,
          "material": null,
          "metadata": null,
          "mid_code": null,
          "origin_country": null,
          "original_price": null,
          "original_price_incl_tax": null,
          "original_tax": null,
          "prices": Array [
            Object {
              "amount": 100,
              "created_at": Any<String>,
              "currency_code": "usd",
              "deleted_at": null,
              "id": Any<String>,
              "max_quantity": null,
              "min_quantity": null,
              "price_list": null,
              "price_list_id": null,
              "region_id": null,
              "updated_at": Any<String>,
              "variant_id": Any<String>,
            },
          ],
          "product_id": Any<String>,
          "sku": null,
          "tax_rates": null,
          "title": "test-variant",
          "upc": null,
          "updated_at": Any<String>,
          "weight": null,
          "width": null,
        },
      ],
    },
  ],
}
`;
