diff --git a/.idea/runConfigurations/run_resource_market_test_go.xml b/.idea/runConfigurations/run_resource_market_test_go.xml new file mode 100644 index 0000000..e62db23 --- /dev/null +++ b/.idea/runConfigurations/run_resource_market_test_go.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/commercelayer/resource_market.go b/commercelayer/resource_market.go index 434dce1..4e84b6b 100644 --- a/commercelayer/resource_market.go +++ b/commercelayer/resource_market.go @@ -57,6 +57,11 @@ func resourceMarket() *schema.Resource { Type: schema.TypeString, Optional: true, }, + "external_order_validation_url": { + Description: "The URL used to validate orders by an external source.", + Type: schema.TypeString, + Optional: true, + }, "reference": { Description: "A string that you can use to add any external identifier to the resource. This " + "can be useful for integrating the resource to an external system, like an ERP, a " + @@ -150,13 +155,14 @@ func resourceMarketCreateFunc(ctx context.Context, d *schema.ResourceData, i int Data: commercelayer.MarketCreateData{ Type: marketType, Attributes: commercelayer.POSTMarkets201ResponseDataAttributes{ - Name: attributes["name"].(string), - FacebookPixelId: stringRef(attributes["facebook_pixel_id"]), - CheckoutUrl: stringRef(attributes["checkout_url"]), - ExternalPricesUrl: stringRef(attributes["external_prices_url"]), - Reference: stringRef(attributes["reference"]), - ReferenceOrigin: stringRef(attributes["reference_origin"]), - Metadata: keyValueRef(attributes["metadata"]), + Name: attributes["name"].(string), + FacebookPixelId: stringRef(attributes["facebook_pixel_id"]), + CheckoutUrl: stringRef(attributes["checkout_url"]), + ExternalPricesUrl: stringRef(attributes["external_prices_url"]), + ExternalOrderValidationUrl: stringRef(attributes["external_order_validation_url"]), + Reference: stringRef(attributes["reference"]), + ReferenceOrigin: stringRef(attributes["reference_origin"]), + Metadata: keyValueRef(attributes["metadata"]), }, Relationships: &commercelayer.MarketCreateDataRelationships{ Merchant: commercelayer.MarketCreateDataRelationshipsMerchant{ @@ -231,13 +237,14 @@ func resourceMarketUpdateFunc(ctx context.Context, d *schema.ResourceData, i int Type: marketType, Id: d.Id(), Attributes: commercelayer.PATCHMarketsMarketId200ResponseDataAttributes{ - Name: stringRef(attributes["name"]), - FacebookPixelId: stringRef(attributes["facebook_pixel_id"]), - CheckoutUrl: stringRef(attributes["checkout_url"]), - ExternalPricesUrl: stringRef(attributes["external_prices_url"]), - Reference: stringRef(attributes["reference"]), - ReferenceOrigin: stringRef(attributes["reference_origin"]), - Metadata: keyValueRef(attributes["metadata"]), + Name: stringRef(attributes["name"]), + FacebookPixelId: stringRef(attributes["facebook_pixel_id"]), + CheckoutUrl: stringRef(attributes["checkout_url"]), + ExternalPricesUrl: stringRef(attributes["external_prices_url"]), + ExternalOrderValidationUrl: stringRef(attributes["external_order_validation_url"]), + Reference: stringRef(attributes["reference"]), + ReferenceOrigin: stringRef(attributes["reference_origin"]), + Metadata: keyValueRef(attributes["metadata"]), }, Relationships: &commercelayer.MarketUpdateDataRelationships{ Merchant: &commercelayer.MarketCreateDataRelationshipsMerchant{ diff --git a/commercelayer/resource_market_test.go b/commercelayer/resource_market_test.go index 199f970..72c1ee9 100644 --- a/commercelayer/resource_market_test.go +++ b/commercelayer/resource_market_test.go @@ -75,6 +75,8 @@ func testAccMarketCreate(testName string) string { attributes { name = "Incentro Market" facebook_pixel_id = "pixel" + external_order_validation_url = "https://www.example.com" + metadata = { testName: "{{.testName}}" } @@ -95,6 +97,8 @@ func testAccMarketUpdate(testName string) string { attributes { name = "Incentro Market Changed" facebook_pixel_id = "pixelchanged" + external_order_validation_url = "https://www.example.com" + metadata = { testName: "{{.testName}}" } diff --git a/examples/full/market.tf b/examples/full/market.tf index 2832a21..053c335 100644 --- a/examples/full/market.tf +++ b/examples/full/market.tf @@ -4,7 +4,8 @@ resource "commercelayer_market" "incentro_market" { //TODO: check why these are considered invalid # checkout_url = "http://example.url" # external_prices_url = "http://example.url" - facebook_pixel_id = "pixel" + facebook_pixel_id = "pixel" + external_order_validation_url = "https://www.example.com" } relationships { diff --git a/examples/resources/commercelayer_market/resource.tf b/examples/resources/commercelayer_market/resource.tf index 8b9a0fe..3e8f411 100644 --- a/examples/resources/commercelayer_market/resource.tf +++ b/examples/resources/commercelayer_market/resource.tf @@ -39,8 +39,9 @@ resource "commercelayer_price_list" "incentro_price_list" { resource "commercelayer_market" "incentro_market" { attributes { - name = "Incentro Market" - facebook_pixel_id = "pixel" + name = "Incentro Market" + facebook_pixel_id = "pixel" + external_order_validation_url = "https://www.example.com" } relationships { diff --git a/go.mod b/go.mod index f0238bc..c8cfd61 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/terraform-plugin-docs v0.13.0 github.com/hashicorp/terraform-plugin-sdk/v2 v2.23.0 - github.com/incentro-dc/go-commercelayer-sdk v0.0.3 + github.com/incentro-dc/go-commercelayer-sdk v0.0.4 github.com/ladydascalie/currency v1.5.0 github.com/stretchr/testify v1.7.2 golang.org/x/oauth2 v0.0.0-20220630143837-2104d58473e0 diff --git a/go.sum b/go.sum index 32eddef..991cb89 100644 --- a/go.sum +++ b/go.sum @@ -158,8 +158,8 @@ github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= -github.com/incentro-dc/go-commercelayer-sdk v0.0.3 h1:CGXIPsrG9NE0ZilMpfSRsmMCbBXLgZef3JSWC/oiRhU= -github.com/incentro-dc/go-commercelayer-sdk v0.0.3/go.mod h1:7o1L5RRkJ6Fw04+Hvjqt/dCDonYA+it1Leug5rtE+/s= +github.com/incentro-dc/go-commercelayer-sdk v0.0.4 h1:9EaFccOB6fNqfkrqUZGhoAvet8gQdEOXuHD2XYjIYIk= +github.com/incentro-dc/go-commercelayer-sdk v0.0.4/go.mod h1:7o1L5RRkJ6Fw04+Hvjqt/dCDonYA+it1Leug5rtE+/s= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= diff --git a/mock/mappings/api_addresses-aeca9872-fcb0-4985-83a7-87199f955dc4.json b/mock/mappings/api_addresses-aeca9872-fcb0-4985-83a7-87199f955dc4.json new file mode 100644 index 0000000..c6fac21 --- /dev/null +++ b/mock/mappings/api_addresses-aeca9872-fcb0-4985-83a7-87199f955dc4.json @@ -0,0 +1,45 @@ +{ + "id" : "aeca9872-fcb0-4985-83a7-87199f955dc4", + "name" : "api_addresses", + "request" : { + "url" : "/api/addresses", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"business\":true,\"city\":\"Rotterdam\",\"company\":\"Incentro\",\"country_code\":\"NL\",\"line_1\":\"Van Nelleweg 1\",\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"},\"phone\":\"+31(0)10 20 20 544\",\"state_code\":\"ZH\",\"zip_code\":\"3044 BC\"},\"type\":\"addresses\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"dAJxuvNDAk\",\"type\":\"addresses\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk\"},\"attributes\":{\"business\":true,\"first_name\":null,\"last_name\":null,\"company\":\"Incentro\",\"full_name\":\"Incentro\",\"line_1\":\"Van Nelleweg 1\",\"line_2\":null,\"city\":\"Rotterdam\",\"zip_code\":\"3044 BC\",\"state_code\":\"ZH\",\"country_code\":\"NL\",\"phone\":\"+31(0)10 20 20 544\",\"full_address\":\"Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"name\":\"Incentro, Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"email\":null,\"notes\":null,\"lat\":null,\"lng\":null,\"is_localized\":false,\"is_geocoded\":false,\"provider_name\":null,\"map_url\":null,\"static_map_url\":null,\"billing_info\":null,\"created_at\":\"2023-02-01T09:33:05.734Z\",\"updated_at\":\"2023-02-01T09:33:05.734Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"geocoder\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/relationships/geocoder\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/geocoder\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "4", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"fcc67a0674feba0337787a86303cbdb2\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "3681d86b-ec83-4f0b-8bfc-4d408eeb3f49", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:05 GMT", + "X-Served-By" : "cache-ams21033-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243986.659787,VS0,VE91", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "aeca9872-fcb0-4985-83a7-87199f955dc4", + "persistent" : true, + "insertionIndex" : 348 +} \ No newline at end of file diff --git a/mock/mappings/api_addresses_dajxuvndak-18e8c0d9-cf3b-48a3-aca4-ef782fdb51b5.json b/mock/mappings/api_addresses_dajxuvndak-18e8c0d9-cf3b-48a3-aca4-ef782fdb51b5.json new file mode 100644 index 0000000..6161407 --- /dev/null +++ b/mock/mappings/api_addresses_dajxuvndak-18e8c0d9-cf3b-48a3-aca4-ef782fdb51b5.json @@ -0,0 +1,43 @@ +{ + "id" : "18e8c0d9-cf3b-48a3-aca4-ef782fdb51b5", + "name" : "api_addresses_dajxuvndak", + "request" : { + "url" : "/api/addresses/dAJxuvNDAk", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dAJxuvNDAk\",\"type\":\"addresses\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk\"},\"attributes\":{\"business\":true,\"first_name\":null,\"last_name\":null,\"company\":\"Incentro\",\"full_name\":\"Incentro\",\"line_1\":\"Van Nelleweg 1\",\"line_2\":null,\"city\":\"Rotterdam\",\"zip_code\":\"3044 BC\",\"state_code\":\"ZH\",\"country_code\":\"NL\",\"phone\":\"+31(0)10 20 20 544\",\"full_address\":\"Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"name\":\"Incentro, Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"email\":null,\"notes\":null,\"lat\":null,\"lng\":null,\"is_localized\":false,\"is_geocoded\":false,\"provider_name\":null,\"map_url\":null,\"static_map_url\":null,\"billing_info\":null,\"created_at\":\"2023-02-01T09:33:05.734Z\",\"updated_at\":\"2023-02-01T09:33:05.734Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"geocoder\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/relationships/geocoder\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/geocoder\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "9", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"fcc67a0674feba0337787a86303cbdb2\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "40479df7-9b30-4629-92a2-38851de224e5", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "X-Served-By" : "cache-ams21053-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.504529,VS0,VE86", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "18e8c0d9-cf3b-48a3-aca4-ef782fdb51b5", + "persistent" : true, + "scenarioName" : "scenario-3-api-addresses-dAJxuvNDAk", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-3-api-addresses-dAJxuvNDAk-2", + "insertionIndex" : 354 +} \ No newline at end of file diff --git a/mock/mappings/api_addresses_dajxuvndak-2a46a0c4-f004-42a8-8f11-ef01dbf0eca0.json b/mock/mappings/api_addresses_dajxuvndak-2a46a0c4-f004-42a8-8f11-ef01dbf0eca0.json new file mode 100644 index 0000000..bb34b9f --- /dev/null +++ b/mock/mappings/api_addresses_dajxuvndak-2a46a0c4-f004-42a8-8f11-ef01dbf0eca0.json @@ -0,0 +1,42 @@ +{ + "id" : "2a46a0c4-f004-42a8-8f11-ef01dbf0eca0", + "name" : "api_addresses_dajxuvndak", + "request" : { + "url" : "/api/addresses/dAJxuvNDAk", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dAJxuvNDAk\",\"type\":\"addresses\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk\"},\"attributes\":{\"business\":true,\"first_name\":null,\"last_name\":null,\"company\":\"Incentro\",\"full_name\":\"Incentro\",\"line_1\":\"Van Nelleweg 1\",\"line_2\":null,\"city\":\"Rotterdam\",\"zip_code\":\"3044 BC\",\"state_code\":\"ZH\",\"country_code\":\"NL\",\"phone\":\"+31(0)10 20 20 544\",\"full_address\":\"Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"name\":\"Incentro, Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"email\":null,\"notes\":null,\"lat\":null,\"lng\":null,\"is_localized\":false,\"is_geocoded\":false,\"provider_name\":null,\"map_url\":null,\"static_map_url\":null,\"billing_info\":null,\"created_at\":\"2023-02-01T09:33:05.734Z\",\"updated_at\":\"2023-02-01T09:33:05.734Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"geocoder\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/relationships/geocoder\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/geocoder\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "17", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"fcc67a0674feba0337787a86303cbdb2\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "6607f408-2a1f-4256-a7af-b5f9a12b14f4", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21059-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.002027,VS0,VE39", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "2a46a0c4-f004-42a8-8f11-ef01dbf0eca0", + "persistent" : true, + "scenarioName" : "scenario-3-api-addresses-dAJxuvNDAk", + "requiredScenarioState" : "scenario-3-api-addresses-dAJxuvNDAk-3", + "insertionIndex" : 365 +} \ No newline at end of file diff --git a/mock/mappings/api_addresses_dajxuvndak-7b7ca7c2-a88d-407f-b6d2-566f597e4ca1.json b/mock/mappings/api_addresses_dajxuvndak-7b7ca7c2-a88d-407f-b6d2-566f597e4ca1.json new file mode 100644 index 0000000..621dffa --- /dev/null +++ b/mock/mappings/api_addresses_dajxuvndak-7b7ca7c2-a88d-407f-b6d2-566f597e4ca1.json @@ -0,0 +1,43 @@ +{ + "id" : "7b7ca7c2-a88d-407f-b6d2-566f597e4ca1", + "name" : "api_addresses_dajxuvndak", + "request" : { + "url" : "/api/addresses/dAJxuvNDAk", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dAJxuvNDAk\",\"type\":\"addresses\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk\"},\"attributes\":{\"business\":true,\"first_name\":null,\"last_name\":null,\"company\":\"Incentro\",\"full_name\":\"Incentro\",\"line_1\":\"Van Nelleweg 1\",\"line_2\":null,\"city\":\"Rotterdam\",\"zip_code\":\"3044 BC\",\"state_code\":\"ZH\",\"country_code\":\"NL\",\"phone\":\"+31(0)10 20 20 544\",\"full_address\":\"Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"name\":\"Incentro, Van Nelleweg 1, 3044 BC Rotterdam ZH (NL) +31(0)10 20 20 544\",\"email\":null,\"notes\":null,\"lat\":null,\"lng\":null,\"is_localized\":false,\"is_geocoded\":false,\"provider_name\":null,\"map_url\":null,\"static_map_url\":null,\"billing_info\":null,\"created_at\":\"2023-02-01T09:33:05.734Z\",\"updated_at\":\"2023-02-01T09:33:05.734Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"geocoder\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/relationships/geocoder\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/addresses/dAJxuvNDAk/geocoder\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "12", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"fcc67a0674feba0337787a86303cbdb2\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "f63d1396-9910-43fd-8ac2-655c125d666e", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "X-Served-By" : "cache-ams21053-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.103024,VS0,VE78", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "7b7ca7c2-a88d-407f-b6d2-566f597e4ca1", + "persistent" : true, + "scenarioName" : "scenario-3-api-addresses-dAJxuvNDAk", + "requiredScenarioState" : "scenario-3-api-addresses-dAJxuvNDAk-2", + "newScenarioState" : "scenario-3-api-addresses-dAJxuvNDAk-3", + "insertionIndex" : 359 +} \ No newline at end of file diff --git a/mock/mappings/api_addresses_dajxuvndak-bb69d6ed-2dcc-4987-80b1-39c64deaeb3b.json b/mock/mappings/api_addresses_dajxuvndak-bb69d6ed-2dcc-4987-80b1-39c64deaeb3b.json new file mode 100644 index 0000000..5f56e7e --- /dev/null +++ b/mock/mappings/api_addresses_dajxuvndak-bb69d6ed-2dcc-4987-80b1-39c64deaeb3b.json @@ -0,0 +1,37 @@ +{ + "id" : "bb69d6ed-2dcc-4987-80b1-39c64deaeb3b", + "name" : "api_addresses_dajxuvndak", + "request" : { + "url" : "/api/addresses/dAJxuvNDAk", + "method" : "DELETE" + }, + "response" : { + "status" : 204, + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "24", + "X-Ratelimit-Period" : "300", + "Cache-Control" : "no-cache", + "X-Request-Id" : "c290a7f3-bf57-44be-93e8-e25f45a452d6", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:09 GMT", + "X-Served-By" : "cache-ams21056-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243989.998674,VS0,VE81", + "Vary" : "Origin" + } + }, + "uuid" : "bb69d6ed-2dcc-4987-80b1-39c64deaeb3b", + "persistent" : true, + "insertionIndex" : 372 +} \ No newline at end of file diff --git a/mock/mappings/api_inventory_models-be390d9c-0f1a-4d48-a0cc-7d569c059191.json b/mock/mappings/api_inventory_models-be390d9c-0f1a-4d48-a0cc-7d569c059191.json new file mode 100644 index 0000000..6ecd5fc --- /dev/null +++ b/mock/mappings/api_inventory_models-be390d9c-0f1a-4d48-a0cc-7d569c059191.json @@ -0,0 +1,45 @@ +{ + "id" : "be390d9c-0f1a-4d48-a0cc-7d569c059191", + "name" : "api_inventory_models", + "request" : { + "url" : "/api/inventory_models", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Inventory Model\",\"stock_locations_cutoff\":1,\"strategy\":\"no_split\"},\"type\":\"inventory_models\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW\"},\"attributes\":{\"name\":\"Incentro Inventory Model\",\"strategy\":\"no_split\",\"stock_locations_cutoff\":1,\"created_at\":\"2023-02-01T09:33:05.710Z\",\"updated_at\":\"2023-02-01T09:33:05.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"inventory_stock_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_stock_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_stock_locations\"}},\"inventory_return_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_return_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_return_locations\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "2", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"7892be521c4bd5a4b664856be725a6c0\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "ad3142a2-0d47-4317-899e-97766255d68d", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:05 GMT", + "X-Served-By" : "cache-ams21045-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243986.641288,VS0,VE89", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "be390d9c-0f1a-4d48-a0cc-7d569c059191", + "persistent" : true, + "insertionIndex" : 347 +} \ No newline at end of file diff --git a/mock/mappings/api_inventory_models_azdjrsdkyw-2ef5b1d5-e892-4112-84c4-03493bf16013.json b/mock/mappings/api_inventory_models_azdjrsdkyw-2ef5b1d5-e892-4112-84c4-03493bf16013.json new file mode 100644 index 0000000..8d49cfd --- /dev/null +++ b/mock/mappings/api_inventory_models_azdjrsdkyw-2ef5b1d5-e892-4112-84c4-03493bf16013.json @@ -0,0 +1,44 @@ +{ + "id" : "2ef5b1d5-e892-4112-84c4-03493bf16013", + "name" : "api_inventory_models_azdjrsdkyw", + "request" : { + "url" : "/api/inventory_models/AZdJRSDkyW", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW\"},\"attributes\":{\"name\":\"Incentro Inventory Model\",\"strategy\":\"no_split\",\"stock_locations_cutoff\":1,\"created_at\":\"2023-02-01T09:33:05.710Z\",\"updated_at\":\"2023-02-01T09:33:05.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"inventory_stock_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_stock_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_stock_locations\"}},\"inventory_return_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_return_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_return_locations\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "8", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"7892be521c4bd5a4b664856be725a6c0\"", + "X-Request-Id" : "64b9422b-1b9f-41ed-ad2b-58e5c321a3cb", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "Age" : "1", + "X-Served-By" : "cache-ams21065-AMS", + "X-Cache" : "HIT", + "X-Cache-Hits" : "1", + "X-Timer" : "S1675243987.103375,VS0,VE1", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "2ef5b1d5-e892-4112-84c4-03493bf16013", + "persistent" : true, + "scenarioName" : "scenario-2-api-inventory_models-AZdJRSDkyW", + "requiredScenarioState" : "scenario-2-api-inventory_models-AZdJRSDkyW-2", + "newScenarioState" : "scenario-2-api-inventory_models-AZdJRSDkyW-3", + "insertionIndex" : 357 +} \ No newline at end of file diff --git a/mock/mappings/api_inventory_models_azdjrsdkyw-8aefae09-ba71-491e-b416-1a37f65eccd5.json b/mock/mappings/api_inventory_models_azdjrsdkyw-8aefae09-ba71-491e-b416-1a37f65eccd5.json new file mode 100644 index 0000000..97e2c12 --- /dev/null +++ b/mock/mappings/api_inventory_models_azdjrsdkyw-8aefae09-ba71-491e-b416-1a37f65eccd5.json @@ -0,0 +1,43 @@ +{ + "id" : "8aefae09-ba71-491e-b416-1a37f65eccd5", + "name" : "api_inventory_models_azdjrsdkyw", + "request" : { + "url" : "/api/inventory_models/AZdJRSDkyW", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW\"},\"attributes\":{\"name\":\"Incentro Inventory Model\",\"strategy\":\"no_split\",\"stock_locations_cutoff\":1,\"created_at\":\"2023-02-01T09:33:05.710Z\",\"updated_at\":\"2023-02-01T09:33:05.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"inventory_stock_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_stock_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_stock_locations\"}},\"inventory_return_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_return_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_return_locations\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "15", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"7892be521c4bd5a4b664856be725a6c0\"", + "X-Request-Id" : "f0e034a9-a11b-42a7-b379-75f00b60745c", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21038-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.998806,VS0,VE39", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "8aefae09-ba71-491e-b416-1a37f65eccd5", + "persistent" : true, + "scenarioName" : "scenario-2-api-inventory_models-AZdJRSDkyW", + "requiredScenarioState" : "scenario-2-api-inventory_models-AZdJRSDkyW-3", + "insertionIndex" : 363 +} \ No newline at end of file diff --git a/mock/mappings/api_inventory_models_azdjrsdkyw-9c285770-4c51-417b-b130-28d2ceecd724.json b/mock/mappings/api_inventory_models_azdjrsdkyw-9c285770-4c51-417b-b130-28d2ceecd724.json new file mode 100644 index 0000000..0bfa163 --- /dev/null +++ b/mock/mappings/api_inventory_models_azdjrsdkyw-9c285770-4c51-417b-b130-28d2ceecd724.json @@ -0,0 +1,44 @@ +{ + "id" : "9c285770-4c51-417b-b130-28d2ceecd724", + "name" : "api_inventory_models_azdjrsdkyw", + "request" : { + "url" : "/api/inventory_models/AZdJRSDkyW", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW\"},\"attributes\":{\"name\":\"Incentro Inventory Model\",\"strategy\":\"no_split\",\"stock_locations_cutoff\":1,\"created_at\":\"2023-02-01T09:33:05.710Z\",\"updated_at\":\"2023-02-01T09:33:05.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"inventory_stock_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_stock_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_stock_locations\"}},\"inventory_return_locations\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/inventory_return_locations\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/inventory_return_locations\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/inventory_models/AZdJRSDkyW/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "8", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"7892be521c4bd5a4b664856be725a6c0\"", + "X-Request-Id" : "64b9422b-1b9f-41ed-ad2b-58e5c321a3cb", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21040-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.504321,VS0,VE80", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "9c285770-4c51-417b-b130-28d2ceecd724", + "persistent" : true, + "scenarioName" : "scenario-2-api-inventory_models-AZdJRSDkyW", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-2-api-inventory_models-AZdJRSDkyW-2", + "insertionIndex" : 353 +} \ No newline at end of file diff --git a/mock/mappings/api_inventory_models_azdjrsdkyw-f2a8cb9f-3ade-4632-ae75-5240ea02a269.json b/mock/mappings/api_inventory_models_azdjrsdkyw-f2a8cb9f-3ade-4632-ae75-5240ea02a269.json new file mode 100644 index 0000000..8578c9e --- /dev/null +++ b/mock/mappings/api_inventory_models_azdjrsdkyw-f2a8cb9f-3ade-4632-ae75-5240ea02a269.json @@ -0,0 +1,37 @@ +{ + "id" : "f2a8cb9f-3ade-4632-ae75-5240ea02a269", + "name" : "api_inventory_models_azdjrsdkyw", + "request" : { + "url" : "/api/inventory_models/AZdJRSDkyW", + "method" : "DELETE" + }, + "response" : { + "status" : 204, + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "22", + "X-Ratelimit-Period" : "300", + "Cache-Control" : "no-cache", + "X-Request-Id" : "4ef1b9d8-586b-4b82-a146-5fa007d29ec9", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21062-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243989.810083,VS0,VE58", + "Vary" : "Origin" + } + }, + "uuid" : "f2a8cb9f-3ade-4632-ae75-5240ea02a269", + "persistent" : true, + "insertionIndex" : 370 +} \ No newline at end of file diff --git a/mock/mappings/api_markets-5bb733f9-e716-4f1f-9944-0481644b7e1a.json b/mock/mappings/api_markets-5bb733f9-e716-4f1f-9944-0481644b7e1a.json new file mode 100644 index 0000000..c121b67 --- /dev/null +++ b/mock/mappings/api_markets-5bb733f9-e716-4f1f-9944-0481644b7e1a.json @@ -0,0 +1,45 @@ +{ + "id" : "5bb733f9-e716-4f1f-9944-0481644b7e1a", + "name" : "api_markets", + "request" : { + "url" : "/api/markets", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"external_order_validation_url\":\"https://www.example.com\",\"facebook_pixel_id\":\"pixel\",\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Market\"},\"relationships\":{\"inventory_model\":{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\"}},\"merchant\":{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\"}},\"price_list\":{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\"}}},\"type\":\"markets\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"KoaJYhQkzj\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj\"},\"attributes\":{\"number\":12491,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"external_order_validation_url\":\"https://www.example.com\",\"shared_secret\":\"192f3b34430c92ed8de49317d90df765\",\"private\":false,\"disabled_at\":null,\"created_at\":\"2023-02-01T09:33:06.153Z\",\"updated_at\":\"2023-02-01T09:33:06.153Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "6", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"4c4108aa41af106c8888a47b30244244\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "78e45093-4123-43a5-ad74-10fe1472b6e9", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "X-Served-By" : "cache-ams21055-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243986.063597,VS0,VE168", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "5bb733f9-e716-4f1f-9944-0481644b7e1a", + "persistent" : true, + "insertionIndex" : 351 +} \ No newline at end of file diff --git a/mock/mappings/api_markets-de45f071-f6d8-4a33-b8b3-2937c82ce413.json b/mock/mappings/api_markets-de45f071-f6d8-4a33-b8b3-2937c82ce413.json deleted file mode 100644 index fd9c574..0000000 --- a/mock/mappings/api_markets-de45f071-f6d8-4a33-b8b3-2937c82ce413.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id" : "de45f071-f6d8-4a33-b8b3-2937c82ce413", - "name" : "api_markets", - "request" : { - "url" : "/api/markets", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"data\":{\"attributes\":{\"facebook_pixel_id\":\"pixel\",\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Market\"},\"relationships\":{\"inventory_model\":{\"data\":{\"id\":\"JLzqXSDxyW\",\"type\":\"inventory_models\"}},\"merchant\":{\"data\":{\"id\":\"BbjrLHRgGb\",\"type\":\"merchants\"}},\"price_list\":{\"data\":{\"id\":\"vLmQxCqjZL\",\"type\":\"price_lists\"}}},\"type\":\"markets\"}}\n", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\"data\":{\"id\":\"ElDkXhNXyg\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg\"},\"attributes\":{\"number\":11728,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"private\":false,\"created_at\":\"2022-10-27T08:56:28.870Z\",\"updated_at\":\"2022-10-27T08:56:28.870Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", - "headers" : { - "Server" : "Cowboy", - "X-Frame-Options" : "SAMEORIGIN", - "X-Xss-Protection" : "1; mode=block", - "X-Content-Type-Options" : "nosniff", - "X-Download-Options" : "noopen", - "X-Permitted-Cross-Domain-Policies" : "none", - "Referrer-Policy" : "strict-origin-when-cross-origin", - "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "51", - "X-Ratelimit-Period" : "300", - "Content-Type" : "application/vnd.api+json", - "Etag" : "W/\"fb0eae3db27f59fed4be68ea177a797f\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "440c896b-a71b-420e-a4d5-e62d95d35f17", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:28 GMT", - "X-Served-By" : "cache-ams21076-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1666860989.794868,VS0,VE117", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "de45f071-f6d8-4a33-b8b3-2937c82ce413", - "persistent" : true, - "insertionIndex" : 45 -} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-046e6553-2a86-41cc-b5ea-988fa6f53d40.json b/mock/mappings/api_markets_eldkxhnxyg-046e6553-2a86-41cc-b5ea-988fa6f53d40.json deleted file mode 100644 index fa2a136..0000000 --- a/mock/mappings/api_markets_eldkxhnxyg-046e6553-2a86-41cc-b5ea-988fa6f53d40.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id" : "046e6553-2a86-41cc-b5ea-988fa6f53d40", - "name" : "api_markets_eldkxhnxyg", - "request" : { - "url" : "/api/markets/ElDkXhNXyg", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"ElDkXhNXyg\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg\"},\"attributes\":{\"number\":11728,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"private\":false,\"created_at\":\"2022-10-27T08:56:28.870Z\",\"updated_at\":\"2022-10-27T08:56:28.870Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", - "headers" : { - "Server" : "Cowboy", - "X-Frame-Options" : "SAMEORIGIN", - "X-Xss-Protection" : "1; mode=block", - "X-Content-Type-Options" : "nosniff", - "X-Download-Options" : "noopen", - "X-Permitted-Cross-Domain-Policies" : "none", - "Referrer-Policy" : "strict-origin-when-cross-origin", - "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "56", - "X-Ratelimit-Period" : "300", - "Content-Type" : "application/vnd.api+json", - "Cache-Control" : "public, no-cache", - "Etag" : "W/\"fb0eae3db27f59fed4be68ea177a797f\"", - "X-Request-Id" : "c6641941-b915-42fe-a43f-930670853c53", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:29 GMT", - "Age" : "0", - "X-Served-By" : "cache-ams21061-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1666860989.277813,VS0,VE74", - "Vary" : "Authorization, Origin" - } - }, - "uuid" : "046e6553-2a86-41cc-b5ea-988fa6f53d40", - "persistent" : true, - "scenarioName" : "scenario-10-api-markets-ElDkXhNXyg", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-2", - "insertionIndex" : 50 -} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-4988c053-3a5d-4806-920e-6b7346f2f52b.json b/mock/mappings/api_markets_eldkxhnxyg-4988c053-3a5d-4806-920e-6b7346f2f52b.json deleted file mode 100644 index b80068a..0000000 --- a/mock/mappings/api_markets_eldkxhnxyg-4988c053-3a5d-4806-920e-6b7346f2f52b.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id" : "4988c053-3a5d-4806-920e-6b7346f2f52b", - "name" : "api_markets_eldkxhnxyg", - "request" : { - "url" : "/api/markets/ElDkXhNXyg", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"ElDkXhNXyg\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg\"},\"attributes\":{\"number\":11728,\"name\":\"Incentro Market Changed\",\"facebook_pixel_id\":\"pixelchanged\",\"checkout_url\":null,\"external_prices_url\":null,\"private\":false,\"created_at\":\"2022-10-27T08:56:28.870Z\",\"updated_at\":\"2022-10-27T08:56:29.931Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", - "headers" : { - "Server" : "Cowboy", - "X-Frame-Options" : "SAMEORIGIN", - "X-Xss-Protection" : "1; mode=block", - "X-Content-Type-Options" : "nosniff", - "X-Download-Options" : "noopen", - "X-Permitted-Cross-Domain-Policies" : "none", - "Referrer-Policy" : "strict-origin-when-cross-origin", - "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "63", - "X-Ratelimit-Period" : "300", - "Content-Type" : "application/vnd.api+json", - "Cache-Control" : "public, no-cache", - "Etag" : "W/\"2751b3c6d1b4838bf7a495c372e76634\"", - "X-Request-Id" : "da1d9098-0e59-4bfe-aa6a-939459cc64ee", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:30 GMT", - "Age" : "0", - "X-Served-By" : "cache-ams21057-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1666860990.344105,VS0,VE37", - "Vary" : "Authorization, Origin" - } - }, - "uuid" : "4988c053-3a5d-4806-920e-6b7346f2f52b", - "persistent" : true, - "scenarioName" : "scenario-10-api-markets-ElDkXhNXyg", - "requiredScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-3", - "newScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-4", - "insertionIndex" : 61 -} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-a9408567-eea6-43dc-95ef-a2377424a91f.json b/mock/mappings/api_markets_eldkxhnxyg-a9408567-eea6-43dc-95ef-a2377424a91f.json deleted file mode 100644 index 20637b3..0000000 --- a/mock/mappings/api_markets_eldkxhnxyg-a9408567-eea6-43dc-95ef-a2377424a91f.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id" : "a9408567-eea6-43dc-95ef-a2377424a91f", - "name" : "api_markets_eldkxhnxyg", - "request" : { - "url" : "/api/markets/ElDkXhNXyg", - "method" : "PATCH", - "bodyPatterns" : [ { - "equalToJson" : "{\"data\":{\"attributes\":{\"facebook_pixel_id\":\"pixelchanged\",\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Market Changed\"},\"id\":\"ElDkXhNXyg\",\"relationships\":{\"inventory_model\":{\"data\":{\"id\":\"JLzqXSDxyW\",\"type\":\"inventory_models\"}},\"merchant\":{\"data\":{\"id\":\"BbjrLHRgGb\",\"type\":\"merchants\"}},\"price_list\":{\"data\":{\"id\":\"vLmQxCqjZL\",\"type\":\"price_lists\"}}},\"type\":\"markets\"}}\n", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"ElDkXhNXyg\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg\"},\"attributes\":{\"number\":11728,\"name\":\"Incentro Market Changed\",\"facebook_pixel_id\":\"pixelchanged\",\"checkout_url\":null,\"external_prices_url\":null,\"private\":false,\"created_at\":\"2022-10-27T08:56:28.870Z\",\"updated_at\":\"2022-10-27T08:56:29.931Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", - "headers" : { - "Server" : "Cowboy", - "X-Frame-Options" : "SAMEORIGIN", - "X-Xss-Protection" : "1; mode=block", - "X-Content-Type-Options" : "nosniff", - "X-Download-Options" : "noopen", - "X-Permitted-Cross-Domain-Policies" : "none", - "Referrer-Policy" : "strict-origin-when-cross-origin", - "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "59", - "X-Ratelimit-Period" : "300", - "Content-Type" : "application/vnd.api+json", - "Etag" : "W/\"2751b3c6d1b4838bf7a495c372e76634\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "33dfb556-13b0-4c82-97c8-5559506aff31", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:29 GMT", - "X-Served-By" : "cache-ams21080-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1666860990.898984,VS0,VE51", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "a9408567-eea6-43dc-95ef-a2377424a91f", - "persistent" : true, - "insertionIndex" : 56 -} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-b558afc0-4a82-4792-bc1a-1c91f9bb27ae.json b/mock/mappings/api_markets_eldkxhnxyg-b558afc0-4a82-4792-bc1a-1c91f9bb27ae.json deleted file mode 100644 index f6d3b2a..0000000 --- a/mock/mappings/api_markets_eldkxhnxyg-b558afc0-4a82-4792-bc1a-1c91f9bb27ae.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "id" : "b558afc0-4a82-4792-bc1a-1c91f9bb27ae", - "name" : "api_markets_eldkxhnxyg", - "request" : { - "url" : "/api/markets/ElDkXhNXyg", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"ElDkXhNXyg\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg\"},\"attributes\":{\"number\":11728,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"private\":false,\"created_at\":\"2022-10-27T08:56:28.870Z\",\"updated_at\":\"2022-10-27T08:56:28.870Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/ElDkXhNXyg/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", - "headers" : { - "Server" : "Cowboy", - "X-Frame-Options" : "SAMEORIGIN", - "X-Xss-Protection" : "1; mode=block", - "X-Content-Type-Options" : "nosniff", - "X-Download-Options" : "noopen", - "X-Permitted-Cross-Domain-Policies" : "none", - "Referrer-Policy" : "strict-origin-when-cross-origin", - "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "56", - "X-Ratelimit-Period" : "300", - "Content-Type" : "application/vnd.api+json", - "Cache-Control" : "public, no-cache", - "Etag" : "W/\"fb0eae3db27f59fed4be68ea177a797f\"", - "X-Request-Id" : "c6641941-b915-42fe-a43f-930670853c53", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:29 GMT", - "Age" : "0", - "X-Served-By" : "cache-ams21081-AMS", - "X-Cache" : "HIT", - "X-Cache-Hits" : "1", - "X-Timer" : "S1666860990.711600,VS0,VE2", - "Vary" : "Authorization, Origin" - } - }, - "uuid" : "b558afc0-4a82-4792-bc1a-1c91f9bb27ae", - "persistent" : true, - "scenarioName" : "scenario-10-api-markets-ElDkXhNXyg", - "requiredScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-2", - "newScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-3", - "insertionIndex" : 55 -} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-44558e34-20b8-4134-b031-158ddecab88e.json b/mock/mappings/api_markets_koajyhqkzj-06aada02-1bd0-40e7-bf89-a1f336a97c79.json similarity index 63% rename from mock/mappings/api_markets_eldkxhnxyg-44558e34-20b8-4134-b031-158ddecab88e.json rename to mock/mappings/api_markets_koajyhqkzj-06aada02-1bd0-40e7-bf89-a1f336a97c79.json index b4da8b1..25ab405 100644 --- a/mock/mappings/api_markets_eldkxhnxyg-44558e34-20b8-4134-b031-158ddecab88e.json +++ b/mock/mappings/api_markets_koajyhqkzj-06aada02-1bd0-40e7-bf89-a1f336a97c79.json @@ -1,8 +1,8 @@ { - "id" : "44558e34-20b8-4134-b031-158ddecab88e", - "name" : "api_markets_eldkxhnxyg", + "id" : "06aada02-1bd0-40e7-bf89-a1f336a97c79", + "name" : "api_markets_koajyhqkzj", "request" : { - "url" : "/api/markets/ElDkXhNXyg", + "url" : "/api/markets/KoaJYhQkzj", "method" : "DELETE" }, "response" : { @@ -16,22 +16,22 @@ "X-Permitted-Cross-Domain-Policies" : "none", "Referrer-Policy" : "strict-origin-when-cross-origin", "X-Ratelimit-Limit" : "600", - "X-Ratelimit-Count" : "64", + "X-Ratelimit-Count" : "20", "X-Ratelimit-Period" : "300", "Cache-Control" : "no-cache", - "X-Request-Id" : "c9dcdfa7-89d5-4dbe-a9a5-0096fb669482", + "X-Request-Id" : "0537d76b-69e7-4dd5-88df-a685cac7ceec", "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", "Via" : "1.1 vegur, 1.1 varnish", "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:30 GMT", - "X-Served-By" : "cache-ams21037-AMS", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21053-AMS", "X-Cache" : "MISS", "X-Cache-Hits" : "0", - "X-Timer" : "S1666860991.565842,VS0,VE113", + "X-Timer" : "S1675243989.618561,VS0,VE93", "Vary" : "Origin" } }, - "uuid" : "44558e34-20b8-4134-b031-158ddecab88e", + "uuid" : "06aada02-1bd0-40e7-bf89-a1f336a97c79", "persistent" : true, - "insertionIndex" : 62 + "insertionIndex" : 368 } \ No newline at end of file diff --git a/mock/mappings/api_markets_koajyhqkzj-83a0998f-0539-4bf5-8883-924726f8fc5b.json b/mock/mappings/api_markets_koajyhqkzj-83a0998f-0539-4bf5-8883-924726f8fc5b.json new file mode 100644 index 0000000..24bb893 --- /dev/null +++ b/mock/mappings/api_markets_koajyhqkzj-83a0998f-0539-4bf5-8883-924726f8fc5b.json @@ -0,0 +1,45 @@ +{ + "id" : "83a0998f-0539-4bf5-8883-924726f8fc5b", + "name" : "api_markets_koajyhqkzj", + "request" : { + "url" : "/api/markets/KoaJYhQkzj", + "method" : "PATCH", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"external_order_validation_url\":\"https://www.example.com\",\"facebook_pixel_id\":\"pixelchanged\",\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Market Changed\"},\"id\":\"KoaJYhQkzj\",\"relationships\":{\"inventory_model\":{\"data\":{\"id\":\"AZdJRSDkyW\",\"type\":\"inventory_models\"}},\"merchant\":{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\"}},\"price_list\":{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\"}}},\"type\":\"markets\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"KoaJYhQkzj\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj\"},\"attributes\":{\"number\":12491,\"name\":\"Incentro Market Changed\",\"facebook_pixel_id\":\"pixelchanged\",\"checkout_url\":null,\"external_prices_url\":null,\"external_order_validation_url\":\"https://www.example.com\",\"shared_secret\":\"192f3b34430c92ed8de49317d90df765\",\"private\":false,\"disabled_at\":null,\"created_at\":\"2023-02-01T09:33:06.153Z\",\"updated_at\":\"2023-02-01T09:33:07.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "14", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"64fc68f17584f436dad097d0d4783302\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "d0ad61c0-acff-410e-8ce2-75babcce95b5", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "X-Served-By" : "cache-ams21062-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.630784,VS0,VE97", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "83a0998f-0539-4bf5-8883-924726f8fc5b", + "persistent" : true, + "insertionIndex" : 362 +} \ No newline at end of file diff --git a/mock/mappings/api_markets_koajyhqkzj-93f4b809-5843-427e-8537-1034c5225b64.json b/mock/mappings/api_markets_koajyhqkzj-93f4b809-5843-427e-8537-1034c5225b64.json new file mode 100644 index 0000000..b0de668 --- /dev/null +++ b/mock/mappings/api_markets_koajyhqkzj-93f4b809-5843-427e-8537-1034c5225b64.json @@ -0,0 +1,44 @@ +{ + "id" : "93f4b809-5843-427e-8537-1034c5225b64", + "name" : "api_markets_koajyhqkzj", + "request" : { + "url" : "/api/markets/KoaJYhQkzj", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"KoaJYhQkzj\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj\"},\"attributes\":{\"number\":12491,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"external_order_validation_url\":\"https://www.example.com\",\"shared_secret\":\"192f3b34430c92ed8de49317d90df765\",\"private\":false,\"disabled_at\":null,\"created_at\":\"2023-02-01T09:33:06.153Z\",\"updated_at\":\"2023-02-01T09:33:06.153Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "11", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"4c4108aa41af106c8888a47b30244244\"", + "X-Request-Id" : "301a269c-5c23-4b66-8e2e-819af1506fd7", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "Age" : "1", + "X-Served-By" : "cache-ams21027-AMS", + "X-Cache" : "HIT", + "X-Cache-Hits" : "1", + "X-Timer" : "S1675243987.386500,VS0,VE1", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "93f4b809-5843-427e-8537-1034c5225b64", + "persistent" : true, + "scenarioName" : "scenario-5-api-markets-KoaJYhQkzj", + "requiredScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-2", + "newScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-3", + "insertionIndex" : 361 +} \ No newline at end of file diff --git a/mock/mappings/api_markets_koajyhqkzj-b47adda3-391b-47aa-bfcf-34369bfde448.json b/mock/mappings/api_markets_koajyhqkzj-b47adda3-391b-47aa-bfcf-34369bfde448.json new file mode 100644 index 0000000..a16c6b1 --- /dev/null +++ b/mock/mappings/api_markets_koajyhqkzj-b47adda3-391b-47aa-bfcf-34369bfde448.json @@ -0,0 +1,44 @@ +{ + "id" : "b47adda3-391b-47aa-bfcf-34369bfde448", + "name" : "api_markets_koajyhqkzj", + "request" : { + "url" : "/api/markets/KoaJYhQkzj", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"KoaJYhQkzj\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj\"},\"attributes\":{\"number\":12491,\"name\":\"Incentro Market\",\"facebook_pixel_id\":\"pixel\",\"checkout_url\":null,\"external_prices_url\":null,\"external_order_validation_url\":\"https://www.example.com\",\"shared_secret\":\"192f3b34430c92ed8de49317d90df765\",\"private\":false,\"disabled_at\":null,\"created_at\":\"2023-02-01T09:33:06.153Z\",\"updated_at\":\"2023-02-01T09:33:06.153Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "11", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"4c4108aa41af106c8888a47b30244244\"", + "X-Request-Id" : "301a269c-5c23-4b66-8e2e-819af1506fd7", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21056-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.802185,VS0,VE74", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "b47adda3-391b-47aa-bfcf-34369bfde448", + "persistent" : true, + "scenarioName" : "scenario-5-api-markets-KoaJYhQkzj", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-2", + "insertionIndex" : 356 +} \ No newline at end of file diff --git a/mock/mappings/api_markets_koajyhqkzj-c9bfd0d4-bb06-4528-8e22-938c65eb534d.json b/mock/mappings/api_markets_koajyhqkzj-c9bfd0d4-bb06-4528-8e22-938c65eb534d.json new file mode 100644 index 0000000..c8aeb9d --- /dev/null +++ b/mock/mappings/api_markets_koajyhqkzj-c9bfd0d4-bb06-4528-8e22-938c65eb534d.json @@ -0,0 +1,44 @@ +{ + "id" : "c9bfd0d4-bb06-4528-8e22-938c65eb534d", + "name" : "api_markets_koajyhqkzj", + "request" : { + "url" : "/api/markets/KoaJYhQkzj", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"KoaJYhQkzj\",\"type\":\"markets\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj\"},\"attributes\":{\"number\":12491,\"name\":\"Incentro Market Changed\",\"facebook_pixel_id\":\"pixelchanged\",\"checkout_url\":null,\"external_prices_url\":null,\"external_order_validation_url\":\"https://www.example.com\",\"shared_secret\":\"192f3b34430c92ed8de49317d90df765\",\"private\":false,\"disabled_at\":null,\"created_at\":\"2023-02-01T09:33:06.153Z\",\"updated_at\":\"2023-02-01T09:33:07.710Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"merchant\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/merchant\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/merchant\"}},\"price_list\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/price_list\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/price_list\"}},\"inventory_model\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/inventory_model\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/inventory_model\"}},\"tax_calculator\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/tax_calculator\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/tax_calculator\"}},\"customer_group\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/customer_group\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/customer_group\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/markets/KoaJYhQkzj/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "19", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"64fc68f17584f436dad097d0d4783302\"", + "X-Request-Id" : "f288edd7-8f1e-4b84-b49b-8fe70f2d302e", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21056-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.275575,VS0,VE92", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "c9bfd0d4-bb06-4528-8e22-938c65eb534d", + "persistent" : true, + "scenarioName" : "scenario-5-api-markets-KoaJYhQkzj", + "requiredScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-3", + "newScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-4", + "insertionIndex" : 367 +} \ No newline at end of file diff --git a/mock/mappings/api_markets_eldkxhnxyg-b608aff5-4b04-4f3b-9f86-b5601ed89b49.json b/mock/mappings/api_markets_koajyhqkzj-dbaa185d-640b-4a35-9554-fbda06ed2191.json similarity index 90% rename from mock/mappings/api_markets_eldkxhnxyg-b608aff5-4b04-4f3b-9f86-b5601ed89b49.json rename to mock/mappings/api_markets_koajyhqkzj-dbaa185d-640b-4a35-9554-fbda06ed2191.json index daf8ad5..f29875f 100644 --- a/mock/mappings/api_markets_eldkxhnxyg-b608aff5-4b04-4f3b-9f86-b5601ed89b49.json +++ b/mock/mappings/api_markets_koajyhqkzj-dbaa185d-640b-4a35-9554-fbda06ed2191.json @@ -1,8 +1,8 @@ { - "id" : "b608aff5-4b04-4f3b-9f86-b5601ed89b49", - "name" : "api_markets_eldkxhnxyg", + "id" : "dbaa185d-640b-4a35-9554-fbda06ed2191", + "name" : "api_markets_koajyhqkzj", "request" : { - "url" : "/api/markets/ElDkXhNXyg", + "url" : "/api/markets/KoaJYhQkzj", "method" : "GET" }, "response" : { @@ -13,17 +13,17 @@ "Retry-After" : "0", "Content-Type" : "text/html", "Accept-Ranges" : "bytes", - "Date" : "Thu, 27 Oct 2022 08:56:31 GMT", + "Date" : "Wed, 01 Feb 2023 09:33:09 GMT", "Via" : "1.1 varnish", - "X-Served-By" : "cache-ams21055-AMS", + "X-Served-By" : "cache-ams21024-AMS", "X-Cache" : "MISS", "X-Cache-Hits" : "0", - "X-Timer" : "S1666860991.033177,VS0,VE33" + "X-Timer" : "S1675243989.199027,VS0,VE31" } }, - "uuid" : "b608aff5-4b04-4f3b-9f86-b5601ed89b49", + "uuid" : "dbaa185d-640b-4a35-9554-fbda06ed2191", "persistent" : true, - "scenarioName" : "scenario-10-api-markets-ElDkXhNXyg", - "requiredScenarioState" : "scenario-10-api-markets-ElDkXhNXyg-4", - "insertionIndex" : 67 + "scenarioName" : "scenario-5-api-markets-KoaJYhQkzj", + "requiredScenarioState" : "scenario-5-api-markets-KoaJYhQkzj-4", + "insertionIndex" : 373 } \ No newline at end of file diff --git a/mock/mappings/api_merchants-65fb33ff-d5dd-4fff-b4f8-cce80e97d858.json b/mock/mappings/api_merchants-65fb33ff-d5dd-4fff-b4f8-cce80e97d858.json new file mode 100644 index 0000000..0240642 --- /dev/null +++ b/mock/mappings/api_merchants-65fb33ff-d5dd-4fff-b4f8-cce80e97d858.json @@ -0,0 +1,45 @@ +{ + "id" : "65fb33ff-d5dd-4fff-b4f8-cce80e97d858", + "name" : "api_merchants", + "request" : { + "url" : "/api/merchants", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"Incentro Merchant\"},\"relationships\":{\"address\":{\"data\":{\"id\":\"dAJxuvNDAk\",\"type\":\"addresses\"}}},\"type\":\"merchants\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM\"},\"attributes\":{\"name\":\"Incentro Merchant\",\"created_at\":\"2023-02-01T09:33:05.933Z\",\"updated_at\":\"2023-02-01T09:33:05.933Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"address\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/address\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/address\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "5", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"814646fbc7840bbb2338cd01582c8e27\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "ae4432df-43b5-4cb0-98d0-b11f592b4966", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:05 GMT", + "X-Served-By" : "cache-ams21073-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243986.855769,VS0,VE98", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "65fb33ff-d5dd-4fff-b4f8-cce80e97d858", + "persistent" : true, + "insertionIndex" : 350 +} \ No newline at end of file diff --git a/mock/mappings/api_merchants_dbdevhkddm-1282f3d7-78dc-4629-9946-975292322f31.json b/mock/mappings/api_merchants_dbdevhkddm-1282f3d7-78dc-4629-9946-975292322f31.json new file mode 100644 index 0000000..5fb4b9c --- /dev/null +++ b/mock/mappings/api_merchants_dbdevhkddm-1282f3d7-78dc-4629-9946-975292322f31.json @@ -0,0 +1,42 @@ +{ + "id" : "1282f3d7-78dc-4629-9946-975292322f31", + "name" : "api_merchants_dbdevhkddm", + "request" : { + "url" : "/api/merchants/dbdeVHKDDM", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM\"},\"attributes\":{\"name\":\"Incentro Merchant\",\"created_at\":\"2023-02-01T09:33:05.933Z\",\"updated_at\":\"2023-02-01T09:33:05.933Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"address\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/address\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/address\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "18", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"814646fbc7840bbb2338cd01582c8e27\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "fd77c0bb-3e5e-4cbd-8741-20bda24e9e29", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21071-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.115107,VS0,VE80", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "1282f3d7-78dc-4629-9946-975292322f31", + "persistent" : true, + "scenarioName" : "scenario-4-api-merchants-dbdeVHKDDM", + "requiredScenarioState" : "scenario-4-api-merchants-dbdeVHKDDM-3", + "insertionIndex" : 366 +} \ No newline at end of file diff --git a/mock/mappings/api_merchants_dbdevhkddm-439c7185-1108-465c-b8f9-6bddb46d318f.json b/mock/mappings/api_merchants_dbdevhkddm-439c7185-1108-465c-b8f9-6bddb46d318f.json new file mode 100644 index 0000000..c62d7b6 --- /dev/null +++ b/mock/mappings/api_merchants_dbdevhkddm-439c7185-1108-465c-b8f9-6bddb46d318f.json @@ -0,0 +1,43 @@ +{ + "id" : "439c7185-1108-465c-b8f9-6bddb46d318f", + "name" : "api_merchants_dbdevhkddm", + "request" : { + "url" : "/api/merchants/dbdeVHKDDM", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM\"},\"attributes\":{\"name\":\"Incentro Merchant\",\"created_at\":\"2023-02-01T09:33:05.933Z\",\"updated_at\":\"2023-02-01T09:33:05.933Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"address\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/address\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/address\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "13", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"814646fbc7840bbb2338cd01582c8e27\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "b25a8228-2013-4e72-acd5-d14170504d53", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "X-Served-By" : "cache-ams21047-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.260584,VS0,VE43", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "439c7185-1108-465c-b8f9-6bddb46d318f", + "persistent" : true, + "scenarioName" : "scenario-4-api-merchants-dbdeVHKDDM", + "requiredScenarioState" : "scenario-4-api-merchants-dbdeVHKDDM-2", + "newScenarioState" : "scenario-4-api-merchants-dbdeVHKDDM-3", + "insertionIndex" : 360 +} \ No newline at end of file diff --git a/mock/mappings/api_merchants_dbdevhkddm-78084daf-481d-4fa4-b2f5-39f51bba0ed3.json b/mock/mappings/api_merchants_dbdevhkddm-78084daf-481d-4fa4-b2f5-39f51bba0ed3.json new file mode 100644 index 0000000..af2e5a8 --- /dev/null +++ b/mock/mappings/api_merchants_dbdevhkddm-78084daf-481d-4fa4-b2f5-39f51bba0ed3.json @@ -0,0 +1,37 @@ +{ + "id" : "78084daf-481d-4fa4-b2f5-39f51bba0ed3", + "name" : "api_merchants_dbdevhkddm", + "request" : { + "url" : "/api/merchants/dbdeVHKDDM", + "method" : "DELETE" + }, + "response" : { + "status" : 204, + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "23", + "X-Ratelimit-Period" : "300", + "Cache-Control" : "no-cache", + "X-Request-Id" : "fa0e017d-9ee4-449c-bbe9-7fbb9d3f54d2", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21050-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243989.818221,VS0,VE57", + "Vary" : "Origin" + } + }, + "uuid" : "78084daf-481d-4fa4-b2f5-39f51bba0ed3", + "persistent" : true, + "insertionIndex" : 371 +} \ No newline at end of file diff --git a/mock/mappings/api_merchants_dbdevhkddm-f097db60-6207-49de-af58-2fe539ce3321.json b/mock/mappings/api_merchants_dbdevhkddm-f097db60-6207-49de-af58-2fe539ce3321.json new file mode 100644 index 0000000..41f2f99 --- /dev/null +++ b/mock/mappings/api_merchants_dbdevhkddm-f097db60-6207-49de-af58-2fe539ce3321.json @@ -0,0 +1,43 @@ +{ + "id" : "f097db60-6207-49de-af58-2fe539ce3321", + "name" : "api_merchants_dbdevhkddm", + "request" : { + "url" : "/api/merchants/dbdeVHKDDM", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dbdeVHKDDM\",\"type\":\"merchants\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM\"},\"attributes\":{\"name\":\"Incentro Merchant\",\"created_at\":\"2023-02-01T09:33:05.933Z\",\"updated_at\":\"2023-02-01T09:33:05.933Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"address\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/address\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/address\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/merchants/dbdeVHKDDM/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "10", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"814646fbc7840bbb2338cd01582c8e27\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "bc4e397a-e74e-4569-bdd8-6a18ec6487e3", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "X-Served-By" : "cache-ams21033-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.668599,VS0,VE49", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "f097db60-6207-49de-af58-2fe539ce3321", + "persistent" : true, + "scenarioName" : "scenario-4-api-merchants-dbdeVHKDDM", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-4-api-merchants-dbdeVHKDDM-2", + "insertionIndex" : 355 +} \ No newline at end of file diff --git a/mock/mappings/api_price_lists-982fb01a-7046-4a46-9d28-55403239c550.json b/mock/mappings/api_price_lists-982fb01a-7046-4a46-9d28-55403239c550.json new file mode 100644 index 0000000..468bbfb --- /dev/null +++ b/mock/mappings/api_price_lists-982fb01a-7046-4a46-9d28-55403239c550.json @@ -0,0 +1,45 @@ +{ + "id" : "982fb01a-7046-4a46-9d28-55403239c550", + "name" : "api_price_lists", + "request" : { + "url" : "/api/price_lists", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"currency_code\":\"EUR\",\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"},\"name\":\"incentro price list\",\"tax_included\":true},\"type\":\"price_lists\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl\"},\"attributes\":{\"name\":\"incentro price list\",\"currency_code\":\"EUR\",\"tax_included\":true,\"created_at\":\"2023-02-01T09:33:05.753Z\",\"updated_at\":\"2023-02-01T09:33:05.753Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"prices\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/prices\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/prices\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "3", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Etag" : "W/\"ae46161c15af69afb89f51bd02331850\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "d560457c-3bc5-4747-9471-e2d19ef86403", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:05 GMT", + "X-Served-By" : "cache-ams21066-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243986.655767,VS0,VE124", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "982fb01a-7046-4a46-9d28-55403239c550", + "persistent" : true, + "insertionIndex" : 349 +} \ No newline at end of file diff --git a/mock/mappings/api_price_lists_akebycovrl-0a14812d-940b-4999-a507-e9ddbc1f76a0.json b/mock/mappings/api_price_lists_akebycovrl-0a14812d-940b-4999-a507-e9ddbc1f76a0.json new file mode 100644 index 0000000..032a546 --- /dev/null +++ b/mock/mappings/api_price_lists_akebycovrl-0a14812d-940b-4999-a507-e9ddbc1f76a0.json @@ -0,0 +1,37 @@ +{ + "id" : "0a14812d-940b-4999-a507-e9ddbc1f76a0", + "name" : "api_price_lists_akebycovrl", + "request" : { + "url" : "/api/price_lists/AkebyCovrl", + "method" : "DELETE" + }, + "response" : { + "status" : 204, + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "21", + "X-Ratelimit-Period" : "300", + "Cache-Control" : "no-cache", + "X-Request-Id" : "b0f0beb2-51c6-4f3c-9ead-fb1f808c0b10", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "X-Served-By" : "cache-ams21027-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243989.810068,VS0,VE45", + "Vary" : "Origin" + } + }, + "uuid" : "0a14812d-940b-4999-a507-e9ddbc1f76a0", + "persistent" : true, + "insertionIndex" : 369 +} \ No newline at end of file diff --git a/mock/mappings/api_price_lists_akebycovrl-458e28c6-18c9-429c-8dc3-159c9bdb9f2d.json b/mock/mappings/api_price_lists_akebycovrl-458e28c6-18c9-429c-8dc3-159c9bdb9f2d.json new file mode 100644 index 0000000..ac46c07 --- /dev/null +++ b/mock/mappings/api_price_lists_akebycovrl-458e28c6-18c9-429c-8dc3-159c9bdb9f2d.json @@ -0,0 +1,44 @@ +{ + "id" : "458e28c6-18c9-429c-8dc3-159c9bdb9f2d", + "name" : "api_price_lists_akebycovrl", + "request" : { + "url" : "/api/price_lists/AkebyCovrl", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl\"},\"attributes\":{\"name\":\"incentro price list\",\"currency_code\":\"EUR\",\"tax_included\":true,\"created_at\":\"2023-02-01T09:33:05.753Z\",\"updated_at\":\"2023-02-01T09:33:05.753Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"prices\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/prices\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/prices\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "7", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"ae46161c15af69afb89f51bd02331850\"", + "X-Request-Id" : "fa4928e9-ba24-4878-bce9-e3d8ecd5cae5", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:06 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21034-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243987.504569,VS0,VE37", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "458e28c6-18c9-429c-8dc3-159c9bdb9f2d", + "persistent" : true, + "scenarioName" : "scenario-1-api-price_lists-AkebyCovrl", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-1-api-price_lists-AkebyCovrl-2", + "insertionIndex" : 352 +} \ No newline at end of file diff --git a/mock/mappings/api_price_lists_akebycovrl-49b6fb9c-5798-46c3-8405-eb372771e018.json b/mock/mappings/api_price_lists_akebycovrl-49b6fb9c-5798-46c3-8405-eb372771e018.json new file mode 100644 index 0000000..2d86c46 --- /dev/null +++ b/mock/mappings/api_price_lists_akebycovrl-49b6fb9c-5798-46c3-8405-eb372771e018.json @@ -0,0 +1,43 @@ +{ + "id" : "49b6fb9c-5798-46c3-8405-eb372771e018", + "name" : "api_price_lists_akebycovrl", + "request" : { + "url" : "/api/price_lists/AkebyCovrl", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl\"},\"attributes\":{\"name\":\"incentro price list\",\"currency_code\":\"EUR\",\"tax_included\":true,\"created_at\":\"2023-02-01T09:33:05.753Z\",\"updated_at\":\"2023-02-01T09:33:05.753Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"prices\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/prices\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/prices\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "16", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"ae46161c15af69afb89f51bd02331850\"", + "X-Request-Id" : "a328103a-3f17-4b7e-857e-4b2069b95c25", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:08 GMT", + "Age" : "0", + "X-Served-By" : "cache-ams21056-AMS", + "X-Cache" : "MISS", + "X-Cache-Hits" : "0", + "X-Timer" : "S1675243988.998800,VS0,VE42", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "49b6fb9c-5798-46c3-8405-eb372771e018", + "persistent" : true, + "scenarioName" : "scenario-1-api-price_lists-AkebyCovrl", + "requiredScenarioState" : "scenario-1-api-price_lists-AkebyCovrl-3", + "insertionIndex" : 364 +} \ No newline at end of file diff --git a/mock/mappings/api_price_lists_akebycovrl-6d79e36f-9fe9-4d63-8d17-b6fb67cc7b5f.json b/mock/mappings/api_price_lists_akebycovrl-6d79e36f-9fe9-4d63-8d17-b6fb67cc7b5f.json new file mode 100644 index 0000000..33a936c --- /dev/null +++ b/mock/mappings/api_price_lists_akebycovrl-6d79e36f-9fe9-4d63-8d17-b6fb67cc7b5f.json @@ -0,0 +1,44 @@ +{ + "id" : "6d79e36f-9fe9-4d63-8d17-b6fb67cc7b5f", + "name" : "api_price_lists_akebycovrl", + "request" : { + "url" : "/api/price_lists/AkebyCovrl", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"AkebyCovrl\",\"type\":\"price_lists\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl\"},\"attributes\":{\"name\":\"incentro price list\",\"currency_code\":\"EUR\",\"tax_included\":true,\"created_at\":\"2023-02-01T09:33:05.753Z\",\"updated_at\":\"2023-02-01T09:33:05.753Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_market.incentro_market\"}},\"relationships\":{\"prices\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/prices\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/prices\"}},\"attachments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/relationships/attachments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/price_lists/AkebyCovrl/attachments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "Server" : "Cowboy", + "X-Frame-Options" : "SAMEORIGIN", + "X-Xss-Protection" : "1; mode=block", + "X-Content-Type-Options" : "nosniff", + "X-Download-Options" : "noopen", + "X-Permitted-Cross-Domain-Policies" : "none", + "Referrer-Policy" : "strict-origin-when-cross-origin", + "X-Ratelimit-Limit" : "600", + "X-Ratelimit-Count" : "7", + "X-Ratelimit-Period" : "300", + "Content-Type" : "application/vnd.api+json", + "Cache-Control" : "public, no-cache", + "Etag" : "W/\"ae46161c15af69afb89f51bd02331850\"", + "X-Request-Id" : "fa4928e9-ba24-4878-bce9-e3d8ecd5cae5", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Via" : "1.1 vegur, 1.1 varnish", + "Accept-Ranges" : "bytes", + "Date" : "Wed, 01 Feb 2023 09:33:07 GMT", + "Age" : "1", + "X-Served-By" : "cache-ams21058-AMS", + "X-Cache" : "HIT", + "X-Cache-Hits" : "1", + "X-Timer" : "S1675243987.103726,VS0,VE1", + "Vary" : "Authorization, Origin" + } + }, + "uuid" : "6d79e36f-9fe9-4d63-8d17-b6fb67cc7b5f", + "persistent" : true, + "scenarioName" : "scenario-1-api-price_lists-AkebyCovrl", + "requiredScenarioState" : "scenario-1-api-price_lists-AkebyCovrl-2", + "newScenarioState" : "scenario-1-api-price_lists-AkebyCovrl-3", + "insertionIndex" : 358 +} \ No newline at end of file