From aaa76b61d3d962db6ab3499502b27f9dd97c73ee Mon Sep 17 00:00:00 2001 From: Thomas De Meyer Date: Fri, 5 May 2023 14:04:13 +0200 Subject: [PATCH] Feat/additional adyen fields (#94) * fix: added missing adyen fields * fix: added remove mocks script --- .idea/runConfigurations/remove_mocks_sh.xml | 17 ++++++ commercelayer/resource_adyen_gateway.go | 54 +++++++++++++------ commercelayer/resource_adyen_gateway_test.go | 10 ++++ docs/resources/adyen_gateway.md | 16 ++++-- docs/resources/payment_method.md | 9 ++-- examples/full/adyen_gateways.tf | 15 +++--- .../commercelayer_adyen_gateway/resource.tf | 15 +++--- ...-2d52a297-3531-4b34-88bd-7ee5f1e48458.json | 45 ---------------- ...-621039b5-4c8d-4848-8425-a455edc424c6.json | 38 +++++++++++++ ...-12960e84-c7bc-4288-b60d-354aa2ecda71.json | 36 +++++++++++++ ...28a058ea-bb52-4655-92af-59a4977adeba.json} | 27 ++++------ ...-4308c025-0363-4f0f-8de0-e0adb7b2021a.json | 38 +++++++++++++ ...-bb8edc71-0b10-418c-92f1-f702135e26ce.json | 36 +++++++++++++ ...eab7c0ee-e5ff-4e04-a760-d900b129b7ec.json} | 23 +++----- ...-fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c.json | 36 +++++++++++++ ...-0a22e176-128f-4b16-b4eb-2a0bee02ee85.json | 45 ---------------- ...-2cbf560a-0267-447d-a76f-d6b32e88155a.json | 43 --------------- ...-a1ebbe09-1064-4bb6-a4e0-8f884db522b9.json | 43 --------------- ...-a8e5dcc5-ae36-4465-b6af-7d70d7abac83.json | 43 --------------- 19 files changed, 301 insertions(+), 288 deletions(-) create mode 100644 .idea/runConfigurations/remove_mocks_sh.xml delete mode 100644 mock/mappings/api_adyen_gateways-2d52a297-3531-4b34-88bd-7ee5f1e48458.json create mode 100644 mock/mappings/api_adyen_gateways-621039b5-4c8d-4848-8425-a455edc424c6.json create mode 100644 mock/mappings/api_adyen_gateways_dxgweszzmx-12960e84-c7bc-4288-b60d-354aa2ecda71.json rename mock/mappings/{api_adyen_gateways_njmoxszzrx-52b7818a-9aa2-41ad-8c3a-b54d13d01304.json => api_adyen_gateways_dxgweszzmx-28a058ea-bb52-4655-92af-59a4977adeba.json} (54%) create mode 100644 mock/mappings/api_adyen_gateways_dxgweszzmx-4308c025-0363-4f0f-8de0-e0adb7b2021a.json create mode 100644 mock/mappings/api_adyen_gateways_dxgweszzmx-bb8edc71-0b10-418c-92f1-f702135e26ce.json rename mock/mappings/{api_adyen_gateways_njmoxszzrx-dad59f80-8680-4718-bd9b-65feebb85d00.json => api_adyen_gateways_dxgweszzmx-eab7c0ee-e5ff-4e04-a760-d900b129b7ec.json} (50%) create mode 100644 mock/mappings/api_adyen_gateways_dxgweszzmx-fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c.json delete mode 100644 mock/mappings/api_adyen_gateways_njmoxszzrx-0a22e176-128f-4b16-b4eb-2a0bee02ee85.json delete mode 100644 mock/mappings/api_adyen_gateways_njmoxszzrx-2cbf560a-0267-447d-a76f-d6b32e88155a.json delete mode 100644 mock/mappings/api_adyen_gateways_njmoxszzrx-a1ebbe09-1064-4bb6-a4e0-8f884db522b9.json delete mode 100644 mock/mappings/api_adyen_gateways_njmoxszzrx-a8e5dcc5-ae36-4465-b6af-7d70d7abac83.json diff --git a/.idea/runConfigurations/remove_mocks_sh.xml b/.idea/runConfigurations/remove_mocks_sh.xml new file mode 100644 index 0000000..7d3cd72 --- /dev/null +++ b/.idea/runConfigurations/remove_mocks_sh.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/commercelayer/resource_adyen_gateway.go b/commercelayer/resource_adyen_gateway.go index eef04a0..11cf291 100644 --- a/commercelayer/resource_adyen_gateway.go +++ b/commercelayer/resource_adyen_gateway.go @@ -55,6 +55,22 @@ func resourceAdyenGateway() *schema.Resource { Type: schema.TypeString, Required: true, }, + "api_version": { + Description: "The checkout API version, supported range is from 66 to 68, default is 68.", + Type: schema.TypeString, + Optional: true, + }, + "async_api": { + Description: "Indicates if the gateway will leverage on the Adyen notification webhooks.", + Type: schema.TypeBool, + Optional: true, + Default: false, + }, + "webhook_endpoint_secret": { + Description: "The gateway webhook endpoint secret, generated by Adyen customer area.", + Type: schema.TypeString, + Optional: true, + }, "public_key": { Description: "The public key linked to your API credential.", Type: schema.TypeString, @@ -121,14 +137,17 @@ func resourceAdyenGatewayCreateFunc(ctx context.Context, d *schema.ResourceData, Data: commercelayer.AdyenGatewayCreateData{ Type: adyenGatewaysType, Attributes: commercelayer.POSTAdyenGateways201ResponseDataAttributes{ - Name: attributes["name"].(string), - MerchantAccount: attributes["merchant_account"].(string), - ApiKey: attributes["api_key"].(string), - PublicKey: stringRef(attributes["public_key"]), - LiveUrlPrefix: attributes["live_url_prefix"].(string), - Reference: stringRef(attributes["reference"]), - ReferenceOrigin: stringRef(attributes["reference_origin"]), - Metadata: keyValueRef(attributes["metadata"]), + Name: attributes["name"].(string), + MerchantAccount: attributes["merchant_account"].(string), + ApiKey: attributes["api_key"].(string), + ApiVersion: stringRef(attributes["api_version"]), + AsyncApi: boolRef(attributes["async_api"]), + WebhookEndpointSecret: stringRef(attributes["webhook_endpoint_secret"]), + PublicKey: stringRef(attributes["public_key"]), + LiveUrlPrefix: attributes["live_url_prefix"].(string), + Reference: stringRef(attributes["reference"]), + ReferenceOrigin: stringRef(attributes["reference_origin"]), + Metadata: keyValueRef(attributes["metadata"]), }, }, } @@ -164,14 +183,17 @@ func resourceAdyenGatewayUpdateFunc(ctx context.Context, d *schema.ResourceData, Type: adyenGatewaysType, Id: d.Id(), Attributes: commercelayer.PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes{ - Name: stringRef(attributes["name"]), - MerchantAccount: stringRef(attributes["merchant_account"]), - ApiKey: stringRef(attributes["api_key"]), - PublicKey: stringRef(attributes["public_key"]), - LiveUrlPrefix: stringRef(attributes["live_url_prefix"]), - Reference: stringRef(attributes["reference"]), - ReferenceOrigin: stringRef(attributes["reference_origin"]), - Metadata: keyValueRef(attributes["metadata"]), + Name: stringRef(attributes["name"]), + MerchantAccount: stringRef(attributes["merchant_account"]), + ApiKey: stringRef(attributes["api_key"]), + ApiVersion: stringRef(attributes["api_version"]), + AsyncApi: boolRef(attributes["async_api"]), + WebhookEndpointSecret: stringRef(attributes["webhook_endpoint_secret"]), + PublicKey: stringRef(attributes["public_key"]), + LiveUrlPrefix: stringRef(attributes["live_url_prefix"]), + Reference: stringRef(attributes["reference"]), + ReferenceOrigin: stringRef(attributes["reference_origin"]), + Metadata: keyValueRef(attributes["metadata"]), }, }, } diff --git a/commercelayer/resource_adyen_gateway_test.go b/commercelayer/resource_adyen_gateway_test.go index 4650532..8730cbc 100644 --- a/commercelayer/resource_adyen_gateway_test.go +++ b/commercelayer/resource_adyen_gateway_test.go @@ -45,6 +45,9 @@ func (s *AcceptanceSuite) TestAccAdyenGateway_basic() { resource.TestCheckResourceAttr(resourceName, "type", adyenGatewaysType), resource.TestCheckResourceAttr(resourceName, "attributes.0.name", "Incentro Adyen Gateway"), resource.TestCheckResourceAttr(resourceName, "attributes.0.metadata.foo", "bar"), + resource.TestCheckResourceAttr(resourceName, "attributes.0.api_version", "68"), + resource.TestCheckResourceAttr(resourceName, "attributes.0.async_api", "true"), + resource.TestCheckResourceAttr(resourceName, "attributes.0.webhook_endpoint_secret", "foobar"), ), }, { @@ -52,6 +55,8 @@ func (s *AcceptanceSuite) TestAccAdyenGateway_basic() { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(resourceName, "attributes.0.name", "Incentro Adyen Gateway Changed"), resource.TestCheckResourceAttr(resourceName, "attributes.0.metadata.bar", "foo"), + resource.TestCheckResourceAttr(resourceName, "attributes.0.api_version", "67"), + resource.TestCheckResourceAttr(resourceName, "attributes.0.async_api", "false"), ), }, }, @@ -67,6 +72,9 @@ func testAccAdyenGatewayCreate(testName string) string { api_key = "xxxx-yyyy-zzzz" public_key = "xxxx-yyyy-zzzz" live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + api_version = 68 + async_api = true + webhook_endpoint_secret = "foobar" metadata = { foo: "bar" @@ -86,6 +94,8 @@ func testAccAdyenGatewayUpdate(testName string) string { api_key = "xxxx-yyyy-zzzz" public_key = "xxxx-yyyy-zzzz" live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + api_version = 67 + async_api = false metadata = { bar: "foo" diff --git a/docs/resources/adyen_gateway.md b/docs/resources/adyen_gateway.md index 45a4091..63b32e1 100644 --- a/docs/resources/adyen_gateway.md +++ b/docs/resources/adyen_gateway.md @@ -15,11 +15,14 @@ Configuring a Adyen payment gateway for a market lets you safely process payment ```terraform resource "commercelayer_adyen_gateway" "incentro_adyen_gateway" { attributes { - name = "Incentro Adyen Gateway" - merchant_account = "xxxx-yyyy-zzzz" - api_key = "xxxx-yyyy-zzzz" - public_key = "xxxx-yyyy-zzzz" - live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + name = "Incentro Adyen Gateway" + merchant_account = "xxxx-yyyy-zzzz" + api_key = "xxxx-yyyy-zzzz" + public_key = "xxxx-yyyy-zzzz" + live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + api_version = 68 + async_api = true + webhook_endpoint_secret = "foobar" } } ``` @@ -48,9 +51,12 @@ Required: Optional: +- `api_version` (String) The checkout API version, supported range is from 66 to 68, default is 68. +- `async_api` (Boolean) Indicates if the gateway will leverage on the Adyen notification webhooks. - `metadata` (Map of String) Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format - `public_key` (String) The public key linked to your API credential. - `reference` (String) 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 marketing tool, a CRM, or whatever. - `reference_origin` (String) Any identifier of the third party system that defines the reference code +- `webhook_endpoint_secret` (String) The gateway webhook endpoint secret, generated by Adyen customer area. diff --git a/docs/resources/payment_method.md b/docs/resources/payment_method.md index f9aff2a..258a0d3 100644 --- a/docs/resources/payment_method.md +++ b/docs/resources/payment_method.md @@ -15,10 +15,11 @@ Payment methods represent the type of payment sources (e.g., Credit Card, PayPal ```terraform resource "commercelayer_adyen_gateway" "incentro_adyen_gateway" { attributes { - name = "Incentro Adyen Gateway" - metadata = { - foo : "bar" - } + name = "Incentro Adyen Gateway" + merchant_account = "xxxx-yyyy-zzzz" + api_key = "xxxx-yyyy-zzzz" + public_key = "xxxx-yyyy-zzzz" + live_url_prefix = "1797a841fbb37ca7-AdyenDemo" } } diff --git a/examples/full/adyen_gateways.tf b/examples/full/adyen_gateways.tf index b90cf98..c915414 100644 --- a/examples/full/adyen_gateways.tf +++ b/examples/full/adyen_gateways.tf @@ -1,9 +1,12 @@ resource "commercelayer_adyen_gateway" "incentro_adyen_gateway" { attributes { - name = "Incentro Adyen Gateway" - merchant_account = "xxxx-yyyy-zzzz" - api_key = "xxxx-yyyy-zzzz" - public_key = "xxxx-yyyy-zzzz" - live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + name = "Incentro Adyen Gateway" + merchant_account = "xxxx-yyyy-zzzz" + api_key = "xxxx-yyyy-zzzz" + public_key = "xxxx-yyyy-zzzz" + live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + api_version = 68 + async_api = true + webhook_endpoint_secret = "foobar" } -} \ No newline at end of file +} diff --git a/examples/resources/commercelayer_adyen_gateway/resource.tf b/examples/resources/commercelayer_adyen_gateway/resource.tf index b90cf98..c915414 100644 --- a/examples/resources/commercelayer_adyen_gateway/resource.tf +++ b/examples/resources/commercelayer_adyen_gateway/resource.tf @@ -1,9 +1,12 @@ resource "commercelayer_adyen_gateway" "incentro_adyen_gateway" { attributes { - name = "Incentro Adyen Gateway" - merchant_account = "xxxx-yyyy-zzzz" - api_key = "xxxx-yyyy-zzzz" - public_key = "xxxx-yyyy-zzzz" - live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + name = "Incentro Adyen Gateway" + merchant_account = "xxxx-yyyy-zzzz" + api_key = "xxxx-yyyy-zzzz" + public_key = "xxxx-yyyy-zzzz" + live_url_prefix = "1797a841fbb37ca7-AdyenDemo" + api_version = 68 + async_api = true + webhook_endpoint_secret = "foobar" } -} \ No newline at end of file +} diff --git a/mock/mappings/api_adyen_gateways-2d52a297-3531-4b34-88bd-7ee5f1e48458.json b/mock/mappings/api_adyen_gateways-2d52a297-3531-4b34-88bd-7ee5f1e48458.json deleted file mode 100644 index 2045a0f..0000000 --- a/mock/mappings/api_adyen_gateways-2d52a297-3531-4b34-88bd-7ee5f1e48458.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id" : "2d52a297-3531-4b34-88bd-7ee5f1e48458", - "name" : "api_adyen_gateways", - "request" : { - "url" : "/api/adyen_gateways", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"data\":{\"attributes\":{\"api_key\":\"xxxx-yyyy-zzzz\",\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"merchant_account\":\"xxxx-yyyy-zzzz\",\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"name\":\"Incentro Adyen Gateway\",\"public_key\":\"xxxx-yyyy-zzzz\"},\"type\":\"adyen_gateways\"}}\n", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 201, - "body" : "{\"data\":{\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-03-21T08:05:44.893Z\",\"updated_at\":\"2023-03-21T08:05:44.893Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":null,\"webhook_endpoint_secret\":null,\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/njmoXszZRx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/adyen_payments\"}}},\"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/\"8d51eabed74963757b9290012747c0ce\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "ced5b4ce-a4d4-482c-9406-ced68fdb126d", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:44 GMT", - "X-Served-By" : "cache-ams21075-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385945.861086,VS0,VE49", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "2d52a297-3531-4b34-88bd-7ee5f1e48458", - "persistent" : true, - "insertionIndex" : 1235 -} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways-621039b5-4c8d-4848-8425-a455edc424c6.json b/mock/mappings/api_adyen_gateways-621039b5-4c8d-4848-8425-a455edc424c6.json new file mode 100644 index 0000000..0786836 --- /dev/null +++ b/mock/mappings/api_adyen_gateways-621039b5-4c8d-4848-8425-a455edc424c6.json @@ -0,0 +1,38 @@ +{ + "id" : "621039b5-4c8d-4848-8425-a455edc424c6", + "name" : "api_adyen_gateways", + "request" : { + "url" : "/api/adyen_gateways", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"api_key\":\"xxxx-yyyy-zzzz\",\"api_version\":\"68\",\"async_api\":true,\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"merchant_account\":\"xxxx-yyyy-zzzz\",\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"name\":\"Incentro Adyen Gateway\",\"public_key\":\"xxxx-yyyy-zzzz\",\"webhook_endpoint_secret\":\"foobar\"},\"type\":\"adyen_gateways\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 201, + "body" : "{\"data\":{\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-05-05T11:41:33.289Z\",\"updated_at\":\"2023-05-05T11:41:33.289Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":true,\"webhook_endpoint_secret\":\"foobar\",\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/dxgWesZzMx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/adyen_payments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "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/\"29ccdbb83901a03cc349a3e808b0976c\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "9dab72a2-cc84-472c-ab6b-43231091ce5a", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Accept-Ranges" : "bytes", + "Date" : "Fri, 05 May 2023 11:41:33 GMT", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "621039b5-4c8d-4848-8425-a455edc424c6", + "persistent" : true, + "insertionIndex" : 888 +} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_dxgweszzmx-12960e84-c7bc-4288-b60d-354aa2ecda71.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-12960e84-c7bc-4288-b60d-354aa2ecda71.json new file mode 100644 index 0000000..26e1abf --- /dev/null +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-12960e84-c7bc-4288-b60d-354aa2ecda71.json @@ -0,0 +1,36 @@ +{ + "id" : "12960e84-c7bc-4288-b60d-354aa2ecda71", + "name" : "api_adyen_gateways_dxgweszzmx", + "request" : { + "url" : "/api/adyen_gateways/dxgWesZzMx", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway Changed\",\"created_at\":\"2023-05-05T11:41:33.289Z\",\"updated_at\":\"2023-05-05T11:41:33.988Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":false,\"webhook_endpoint_secret\":\"foobar\",\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/dxgWesZzMx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/adyen_payments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "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/\"4a191070327aed5d1c11b253ae6b6f5c\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "ed4e9496-a499-4d2d-a7a8-4f6c98cb3dc7", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Accept-Ranges" : "bytes", + "Date" : "Fri, 05 May 2023 11:41:34 GMT", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "12960e84-c7bc-4288-b60d-354aa2ecda71", + "persistent" : true, + "scenarioName" : "scenario-1-api-adyen_gateways-dxgWesZzMx", + "requiredScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-3", + "newScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-4", + "insertionIndex" : 892 +} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-52b7818a-9aa2-41ad-8c3a-b54d13d01304.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-28a058ea-bb52-4655-92af-59a4977adeba.json similarity index 54% rename from mock/mappings/api_adyen_gateways_njmoxszzrx-52b7818a-9aa2-41ad-8c3a-b54d13d01304.json rename to mock/mappings/api_adyen_gateways_dxgweszzmx-28a058ea-bb52-4655-92af-59a4977adeba.json index 67e44fe..8cc2b7b 100644 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-52b7818a-9aa2-41ad-8c3a-b54d13d01304.json +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-28a058ea-bb52-4655-92af-59a4977adeba.json @@ -1,41 +1,34 @@ { - "id" : "52b7818a-9aa2-41ad-8c3a-b54d13d01304", - "name" : "api_adyen_gateways_njmoxszzrx", + "id" : "28a058ea-bb52-4655-92af-59a4977adeba", + "name" : "api_adyen_gateways_dxgweszzmx", "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", + "url" : "/api/adyen_gateways/dxgWesZzMx", "method" : "GET" }, "response" : { "status" : 404, "body" : "{\"errors\":[{\"title\":\"Record not found\",\"detail\":\"The requested resource was not found. Please double-check the resource id.\",\"code\":\"RECORD_NOT_FOUND\",\"status\":\"404\"}]}", "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-Count" : "8", "X-Ratelimit-Period" : "300", "Content-Type" : "application/vnd.api+json; charset=utf-8", "Cache-Control" : "no-cache", - "X-Request-Id" : "a218a58a-fb10-4e0f-8d17-374e35bab283", + "X-Request-Id" : "7a885bf1-db4f-4ad2-9733-f888f83538b2", "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:46 GMT", - "X-Served-By" : "cache-ams21073-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385946.481146,VS0,VE67", + "Date" : "Fri, 05 May 2023 11:41:34 GMT", "Vary" : "Accept, Origin" } }, - "uuid" : "52b7818a-9aa2-41ad-8c3a-b54d13d01304", + "uuid" : "28a058ea-bb52-4655-92af-59a4977adeba", "persistent" : true, - "scenarioName" : "scenario-1-api-adyen_gateways-njmoXszZRx", - "requiredScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-4", - "insertionIndex" : 1241 + "scenarioName" : "scenario-1-api-adyen_gateways-dxgWesZzMx", + "requiredScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-4", + "insertionIndex" : 894 } \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_dxgweszzmx-4308c025-0363-4f0f-8de0-e0adb7b2021a.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-4308c025-0363-4f0f-8de0-e0adb7b2021a.json new file mode 100644 index 0000000..514316e --- /dev/null +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-4308c025-0363-4f0f-8de0-e0adb7b2021a.json @@ -0,0 +1,38 @@ +{ + "id" : "4308c025-0363-4f0f-8de0-e0adb7b2021a", + "name" : "api_adyen_gateways_dxgweszzmx", + "request" : { + "url" : "/api/adyen_gateways/dxgWesZzMx", + "method" : "PATCH", + "bodyPatterns" : [ { + "equalToJson" : "{\"data\":{\"attributes\":{\"api_key\":\"xxxx-yyyy-zzzz\",\"api_version\":\"67\",\"async_api\":false,\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"merchant_account\":\"xxxx-yyyy-zzzz\",\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"name\":\"Incentro Adyen Gateway Changed\",\"public_key\":\"xxxx-yyyy-zzzz\"},\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\"}}\n", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway Changed\",\"created_at\":\"2023-05-05T11:41:33.289Z\",\"updated_at\":\"2023-05-05T11:41:33.988Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":false,\"webhook_endpoint_secret\":\"foobar\",\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/dxgWesZzMx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/adyen_payments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "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/\"4a191070327aed5d1c11b253ae6b6f5c\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "01cc6535-1c6a-4ebb-873e-770ed76ed822", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Accept-Ranges" : "bytes", + "Date" : "Fri, 05 May 2023 11:41:34 GMT", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "4308c025-0363-4f0f-8de0-e0adb7b2021a", + "persistent" : true, + "insertionIndex" : 891 +} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_dxgweszzmx-bb8edc71-0b10-418c-92f1-f702135e26ce.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-bb8edc71-0b10-418c-92f1-f702135e26ce.json new file mode 100644 index 0000000..54df133 --- /dev/null +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-bb8edc71-0b10-418c-92f1-f702135e26ce.json @@ -0,0 +1,36 @@ +{ + "id" : "bb8edc71-0b10-418c-92f1-f702135e26ce", + "name" : "api_adyen_gateways_dxgweszzmx", + "request" : { + "url" : "/api/adyen_gateways/dxgWesZzMx", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-05-05T11:41:33.289Z\",\"updated_at\":\"2023-05-05T11:41:33.289Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":true,\"webhook_endpoint_secret\":\"foobar\",\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/dxgWesZzMx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/adyen_payments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "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/\"29ccdbb83901a03cc349a3e808b0976c\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "24e0a05b-7f8d-408b-b9af-93c178dba3b4", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Accept-Ranges" : "bytes", + "Date" : "Fri, 05 May 2023 11:41:33 GMT", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "bb8edc71-0b10-418c-92f1-f702135e26ce", + "persistent" : true, + "scenarioName" : "scenario-1-api-adyen_gateways-dxgWesZzMx", + "requiredScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-2", + "newScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-3", + "insertionIndex" : 890 +} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-dad59f80-8680-4718-bd9b-65feebb85d00.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-eab7c0ee-e5ff-4e04-a760-d900b129b7ec.json similarity index 50% rename from mock/mappings/api_adyen_gateways_njmoxszzrx-dad59f80-8680-4718-bd9b-65feebb85d00.json rename to mock/mappings/api_adyen_gateways_dxgweszzmx-eab7c0ee-e5ff-4e04-a760-d900b129b7ec.json index b2b13b8..0c7fa18 100644 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-dad59f80-8680-4718-bd9b-65feebb85d00.json +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-eab7c0ee-e5ff-4e04-a760-d900b129b7ec.json @@ -1,37 +1,30 @@ { - "id" : "dad59f80-8680-4718-bd9b-65feebb85d00", - "name" : "api_adyen_gateways_njmoxszzrx", + "id" : "eab7c0ee-e5ff-4e04-a760-d900b129b7ec", + "name" : "api_adyen_gateways_dxgweszzmx", "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", + "url" : "/api/adyen_gateways/dxgWesZzMx", "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" : "15", + "X-Ratelimit-Count" : "7", "X-Ratelimit-Period" : "300", "Cache-Control" : "no-cache", - "X-Request-Id" : "cc005e3b-c38f-41d9-b8b9-1aff9ed18b20", + "X-Request-Id" : "f234f73e-b7fd-4264-9123-3c68e1531a1c", "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:46 GMT", - "X-Served-By" : "cache-ams21054-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385946.308427,VS0,VE70", + "Date" : "Fri, 05 May 2023 11:41:34 GMT", "Vary" : "Origin" } }, - "uuid" : "dad59f80-8680-4718-bd9b-65feebb85d00", + "uuid" : "eab7c0ee-e5ff-4e04-a760-d900b129b7ec", "persistent" : true, - "insertionIndex" : 1240 + "insertionIndex" : 893 } \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_dxgweszzmx-fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c.json b/mock/mappings/api_adyen_gateways_dxgweszzmx-fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c.json new file mode 100644 index 0000000..88a51a5 --- /dev/null +++ b/mock/mappings/api_adyen_gateways_dxgweszzmx-fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c.json @@ -0,0 +1,36 @@ +{ + "id" : "fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c", + "name" : "api_adyen_gateways_dxgweszzmx", + "request" : { + "url" : "/api/adyen_gateways/dxgWesZzMx", + "method" : "GET" + }, + "response" : { + "status" : 200, + "body" : "{\"data\":{\"id\":\"dxgWesZzMx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-05-05T11:41:33.289Z\",\"updated_at\":\"2023-05-05T11:41:33.289Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":true,\"webhook_endpoint_secret\":\"foobar\",\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/dxgWesZzMx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/dxgWesZzMx/adyen_payments\"}}},\"meta\":{\"mode\":\"test\",\"organization_id\":\"VyjBZFOWJy\"}}}", + "headers" : { + "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/\"29ccdbb83901a03cc349a3e808b0976c\"", + "Cache-Control" : "max-age=0, private, must-revalidate", + "X-Request-Id" : "42af44b9-fe57-467b-b2cb-9cc45a091b78", + "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", + "Accept-Ranges" : "bytes", + "Date" : "Fri, 05 May 2023 11:41:33 GMT", + "Vary" : "Accept, Origin" + } + }, + "uuid" : "fb4f8bc5-d542-40dd-ae3e-7acb2e4c130c", + "persistent" : true, + "scenarioName" : "scenario-1-api-adyen_gateways-dxgWesZzMx", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-1-api-adyen_gateways-dxgWesZzMx-2", + "insertionIndex" : 889 +} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-0a22e176-128f-4b16-b4eb-2a0bee02ee85.json b/mock/mappings/api_adyen_gateways_njmoxszzrx-0a22e176-128f-4b16-b4eb-2a0bee02ee85.json deleted file mode 100644 index 2048ed4..0000000 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-0a22e176-128f-4b16-b4eb-2a0bee02ee85.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id" : "0a22e176-128f-4b16-b4eb-2a0bee02ee85", - "name" : "api_adyen_gateways_njmoxszzrx", - "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", - "method" : "PATCH", - "bodyPatterns" : [ { - "equalToJson" : "{\"data\":{\"attributes\":{\"api_key\":\"xxxx-yyyy-zzzz\",\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"merchant_account\":\"xxxx-yyyy-zzzz\",\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"name\":\"Incentro Adyen Gateway Changed\",\"public_key\":\"xxxx-yyyy-zzzz\"},\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\"}}\n", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway Changed\",\"created_at\":\"2023-03-21T08:05:44.893Z\",\"updated_at\":\"2023-03-21T08:05:45.732Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":null,\"webhook_endpoint_secret\":null,\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/njmoXszZRx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/adyen_payments\"}}},\"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/\"d71ee11ce9848e9f46abad16de1918e3\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "56567c70-8b78-446d-bdc8-b53bae008b95", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:45 GMT", - "X-Served-By" : "cache-ams21027-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385946.660631,VS0,VE86", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "0a22e176-128f-4b16-b4eb-2a0bee02ee85", - "persistent" : true, - "insertionIndex" : 1238 -} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-2cbf560a-0267-447d-a76f-d6b32e88155a.json b/mock/mappings/api_adyen_gateways_njmoxszzrx-2cbf560a-0267-447d-a76f-d6b32e88155a.json deleted file mode 100644 index 9e34870..0000000 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-2cbf560a-0267-447d-a76f-d6b32e88155a.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "2cbf560a-0267-447d-a76f-d6b32e88155a", - "name" : "api_adyen_gateways_njmoxszzrx", - "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-03-21T08:05:44.893Z\",\"updated_at\":\"2023-03-21T08:05:44.893Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":null,\"webhook_endpoint_secret\":null,\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/njmoXszZRx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/adyen_payments\"}}},\"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", - "Etag" : "W/\"8d51eabed74963757b9290012747c0ce\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "a84f2192-f2b5-4f60-bfdd-3bb36f5ecb74", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:45 GMT", - "X-Served-By" : "cache-ams21049-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385945.159964,VS0,VE41", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "2cbf560a-0267-447d-a76f-d6b32e88155a", - "persistent" : true, - "scenarioName" : "scenario-1-api-adyen_gateways-njmoXszZRx", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-2", - "insertionIndex" : 1236 -} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-a1ebbe09-1064-4bb6-a4e0-8f884db522b9.json b/mock/mappings/api_adyen_gateways_njmoxszzrx-a1ebbe09-1064-4bb6-a4e0-8f884db522b9.json deleted file mode 100644 index 7ab1db5..0000000 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-a1ebbe09-1064-4bb6-a4e0-8f884db522b9.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "a1ebbe09-1064-4bb6-a4e0-8f884db522b9", - "name" : "api_adyen_gateways_njmoxszzrx", - "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway Changed\",\"created_at\":\"2023-03-21T08:05:44.893Z\",\"updated_at\":\"2023-03-21T08:05:45.732Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"bar\":\"foo\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":null,\"webhook_endpoint_secret\":null,\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/njmoXszZRx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/adyen_payments\"}}},\"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/\"d71ee11ce9848e9f46abad16de1918e3\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "a026d412-bde2-4dd0-8168-994c6260c903", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:46 GMT", - "X-Served-By" : "cache-ams21051-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385946.004193,VS0,VE69", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "a1ebbe09-1064-4bb6-a4e0-8f884db522b9", - "persistent" : true, - "scenarioName" : "scenario-1-api-adyen_gateways-njmoXszZRx", - "requiredScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-3", - "newScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-4", - "insertionIndex" : 1239 -} \ No newline at end of file diff --git a/mock/mappings/api_adyen_gateways_njmoxszzrx-a8e5dcc5-ae36-4465-b6af-7d70d7abac83.json b/mock/mappings/api_adyen_gateways_njmoxszzrx-a8e5dcc5-ae36-4465-b6af-7d70d7abac83.json deleted file mode 100644 index 1c91780..0000000 --- a/mock/mappings/api_adyen_gateways_njmoxszzrx-a8e5dcc5-ae36-4465-b6af-7d70d7abac83.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "a8e5dcc5-ae36-4465-b6af-7d70d7abac83", - "name" : "api_adyen_gateways_njmoxszzrx", - "request" : { - "url" : "/api/adyen_gateways/njmoXszZRx", - "method" : "GET" - }, - "response" : { - "status" : 200, - "body" : "{\"data\":{\"id\":\"njmoXszZRx\",\"type\":\"adyen_gateways\",\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx\"},\"attributes\":{\"name\":\"Incentro Adyen Gateway\",\"created_at\":\"2023-03-21T08:05:44.893Z\",\"updated_at\":\"2023-03-21T08:05:44.893Z\",\"reference\":null,\"reference_origin\":null,\"metadata\":{\"foo\":\"bar\",\"testName\":\"commercelayer_adyen_gateway.incentro_adyen_gateway\"},\"live_url_prefix\":\"1797a841fbb37ca7-AdyenDemo\",\"async_api\":null,\"webhook_endpoint_secret\":null,\"webhook_endpoint_url\":\"https://core.commercelayer.io/webhook_callbacks/adyen_gateways/njmoXszZRx\"},\"relationships\":{\"payment_methods\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/payment_methods\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/payment_methods\"}},\"adyen_payments\":{\"links\":{\"self\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/relationships/adyen_payments\",\"related\":\"https://the-green-brand-245.commercelayer.io/api/adyen_gateways/njmoXszZRx/adyen_payments\"}}},\"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/\"8d51eabed74963757b9290012747c0ce\"", - "Cache-Control" : "max-age=0, private, must-revalidate", - "X-Request-Id" : "d5941971-fbd9-42cf-a1c3-33febcb039f0", - "Strict-Transport-Security" : "max-age=63072000; includeSubDomains", - "Via" : "1.1 vegur, 1.1 varnish", - "Accept-Ranges" : "bytes", - "Date" : "Tue, 21 Mar 2023 08:05:45 GMT", - "X-Served-By" : "cache-ams21060-AMS", - "X-Cache" : "MISS", - "X-Cache-Hits" : "0", - "X-Timer" : "S1679385945.399004,VS0,VE39", - "Vary" : "Accept, Origin" - } - }, - "uuid" : "a8e5dcc5-ae36-4465-b6af-7d70d7abac83", - "persistent" : true, - "scenarioName" : "scenario-1-api-adyen_gateways-njmoXszZRx", - "requiredScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-2", - "newScenarioState" : "scenario-1-api-adyen_gateways-njmoXszZRx-3", - "insertionIndex" : 1237 -} \ No newline at end of file