forked from incentro-ecx/terraform-provider-commercelayer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/additional adyen fields (incentro-ecx#94)
* fix: added missing adyen fields * fix: added remove mocks script
- Loading branch information
Thomas De Meyer
authored
May 5, 2023
1 parent
053eac2
commit aaa76b6
Showing
19 changed files
with
301 additions
and
288 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} |
45 changes: 0 additions & 45 deletions
45
mock/mappings/api_adyen_gateways-2d52a297-3531-4b34-88bd-7ee5f1e48458.json
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
mock/mappings/api_adyen_gateways-621039b5-4c8d-4848-8425-a455edc424c6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
36 changes: 36 additions & 0 deletions
36
mock/mappings/api_adyen_gateways_dxgweszzmx-12960e84-c7bc-4288-b60d-354aa2ecda71.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
Oops, something went wrong.