From d8e7a14f2135bb4a4cf23baf04006ea4aaea4017 Mon Sep 17 00:00:00 2001 From: arebra Date: Thu, 12 Dec 2024 11:00:44 +0100 Subject: [PATCH] DEVP-506: Fixed code-example.html in GET requests --- _includes/authorizations.md | 1 - _includes/capture.md | 1 - _includes/card-authorization-transaction.md | 1 - _includes/card-payments-capture.md | 1 - _includes/checkout-v2-resource-models.md | 1 - _includes/checkout-v3-resource-models.md | 9 --------- _includes/checkout-v3-status-models.md | 1 - _includes/expand-parameter.md | 1 - _includes/integrated-commerce.md | 1 - _includes/invoice-capture.md | 1 - _includes/metadata.md | 2 +- _includes/network-tokenization.md | 1 - _includes/one-click-payments.md | 3 --- _includes/payee-info.md | 2 -- _includes/payment-order-after-payment.md | 1 - _includes/payment-order-get.md | 1 - _includes/payment-order-recur.md | 3 --- _includes/payment-order-unscheduled.md | 3 --- _includes/payment-resource.md | 1 - _includes/payments-operations.md | 2 -- _includes/prices.md | 1 - _includes/reversal.md | 1 - _includes/transaction.md | 2 -- _includes/transactions.md | 2 -- _includes/unscheduled-purchase.md | 2 -- _includes/urls.md | 1 - _includes/vipps-payments-capture.md | 1 - checkout-v3/get-started/fundamental-principles.md | 1 - checkout-v3/get-started/validate-status.md | 2 -- .../payment-instruments-v1/card/after-payment.md | 2 -- .../payment-instruments-v1/invoice/after-payment.md | 2 -- .../payment-instruments-v1/mobile-pay/redirect.md | 1 - .../payment-instruments-v1/swish/direct.md | 1 - .../payment-instruments-v1/trustly/after-payment.md | 1 - .../payment-instruments-v1/vipps/after-payment.md | 3 --- .../payment-instruments-v1/vipps/redirect.md | 1 - 36 files changed, 1 insertion(+), 60 deletions(-) diff --git a/_includes/authorizations.md b/_includes/authorizations.md index fa70db29f1..3a8ec694f2 100644 --- a/_includes/authorizations.md +++ b/_includes/authorizations.md @@ -13,7 +13,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="authorization" %} diff --git a/_includes/capture.md b/_includes/capture.md index 41fedf8403..54293a36db 100644 --- a/_includes/capture.md +++ b/_includes/capture.md @@ -114,7 +114,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md api_resource=include.api_resource documentation_section=include.documentation_section transaction="capture" %} diff --git a/_includes/card-authorization-transaction.md b/_includes/card-authorization-transaction.md index a7933565e2..b032ab30de 100644 --- a/_includes/card-authorization-transaction.md +++ b/_includes/card-authorization-transaction.md @@ -17,7 +17,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Authorization Response diff --git a/_includes/card-payments-capture.md b/_includes/card-payments-capture.md index c3b5da43ae..bcf5234e6b 100644 --- a/_includes/card-payments-capture.md +++ b/_includes/card-payments-capture.md @@ -110,7 +110,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="capture" %} diff --git a/_includes/checkout-v2-resource-models.md b/_includes/checkout-v2-resource-models.md index 621f442095..59a40f6ac6 100644 --- a/_includes/checkout-v2-resource-models.md +++ b/_includes/checkout-v2-resource-models.md @@ -18,7 +18,6 @@ Content-Type: application/json;version=2.0 // Version optional for 2.0{% en {% include code-example.html title='Request' header=request_header - json= request_content %} ### Card `Paid` Resource diff --git a/_includes/checkout-v3-resource-models.md b/_includes/checkout-v3-resource-models.md index e8ede58042..cccbb13dcc 100644 --- a/_includes/checkout-v3-resource-models.md +++ b/_includes/checkout-v3-resource-models.md @@ -12,7 +12,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -51,7 +50,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -137,7 +135,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -196,7 +193,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -302,7 +298,6 @@ Accept: application/json;version=3.x{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -383,7 +378,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -486,7 +480,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -726,7 +719,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} ### Card `Paid` Resource @@ -1313,7 +1305,6 @@ Content-Type: application/json;version=3.x{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ### Card `Reversed` Resource diff --git a/_includes/checkout-v3-status-models.md b/_includes/checkout-v3-status-models.md index d51a2eb05e..c1ccd15361 100644 --- a/_includes/checkout-v3-status-models.md +++ b/_includes/checkout-v3-status-models.md @@ -1011,7 +1011,6 @@ Content-Type: application/json;version=3.x{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ### Card `Reversed` Resource diff --git a/_includes/expand-parameter.md b/_includes/expand-parameter.md index 107efb935e..bb13c679bb 100644 --- a/_includes/expand-parameter.md +++ b/_includes/expand-parameter.md @@ -24,5 +24,4 @@ Host: {{ page.api_host }}{% endcapture %} {% include code-example.html title='Expansion' header=request_header - json= request_content %} diff --git a/_includes/integrated-commerce.md b/_includes/integrated-commerce.md index 6896abc86d..187dcb1a46 100644 --- a/_includes/integrated-commerce.md +++ b/_includes/integrated-commerce.md @@ -34,7 +34,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} ## QUERY Request diff --git a/_includes/invoice-capture.md b/_includes/invoice-capture.md index 0779b3f39c..186f057705 100644 --- a/_includes/invoice-capture.md +++ b/_includes/invoice-capture.md @@ -99,7 +99,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Capture Response diff --git a/_includes/metadata.md b/_includes/metadata.md index 32111091cf..783475aa45 100644 --- a/_includes/metadata.md +++ b/_includes/metadata.md @@ -64,7 +64,7 @@ Content-Type: application/json{% endcapture %} ## GET Request -{% capture request_header %}POST /psp/{{ api_resource }}/{% unless api_resource == "paymentorders" %}payments/{% endunless %}{{ page.payment_id }}/ HTTP/1.1 +{% capture request_header %}GET /psp/{{ api_resource }}/{% unless api_resource == "paymentorders" %}payments/{% endunless %}{{ page.payment_id }}/ HTTP/1.1 Host: {{ page.api_host }} Authorization: Bearer Content-Type: application/json{% endcapture %} diff --git a/_includes/network-tokenization.md b/_includes/network-tokenization.md index 79b1bfa84d..ad998ac36d 100644 --- a/_includes/network-tokenization.md +++ b/_includes/network-tokenization.md @@ -70,7 +70,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='GET Tokens Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK diff --git a/_includes/one-click-payments.md b/_includes/one-click-payments.md index 16bb36e3d2..59413bbd98 100644 --- a/_includes/one-click-payments.md +++ b/_includes/one-click-payments.md @@ -88,7 +88,6 @@ Authorization: Bearer {% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% else %} @@ -105,7 +104,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Get Request Payment Resource' header=request_header - json= request_content %} You can also perform a GET request towards the `id` of a Payment Order and find @@ -119,7 +117,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='GET Request Paid Resource' header=request_header - json= request_content %} {% endif %} diff --git a/_includes/payee-info.md b/_includes/payee-info.md index 65e18763b4..90468be12e 100644 --- a/_includes/payee-info.md +++ b/_includes/payee-info.md @@ -27,7 +27,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% else %} @@ -40,7 +39,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% endif %} diff --git a/_includes/payment-order-after-payment.md b/_includes/payment-order-after-payment.md index 2bf71f67d9..4ffbb77df6 100644 --- a/_includes/payment-order-after-payment.md +++ b/_includes/payment-order-after-payment.md @@ -28,7 +28,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Response diff --git a/_includes/payment-order-get.md b/_includes/payment-order-get.md index a43973c428..9fb5980306 100644 --- a/_includes/payment-order-get.md +++ b/_includes/payment-order-get.md @@ -25,7 +25,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Payment Order Response diff --git a/_includes/payment-order-recur.md b/_includes/payment-order-recur.md index 19f2df21e2..446c80c0e2 100644 --- a/_includes/payment-order-recur.md +++ b/_includes/payment-order-recur.md @@ -379,7 +379,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} As an alternative, you can also retrieve it by using the expand option when you @@ -395,7 +394,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% else %} @@ -413,7 +411,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% endif %} diff --git a/_includes/payment-order-unscheduled.md b/_includes/payment-order-unscheduled.md index a08915679e..87a8170e24 100644 --- a/_includes/payment-order-unscheduled.md +++ b/_includes/payment-order-unscheduled.md @@ -386,7 +386,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} As an alternative, you can also retrieve it by using the expand option when you @@ -402,7 +401,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% else %} @@ -420,7 +418,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='Request' header=request_header - json= request_content %} {% endif %} diff --git a/_includes/payment-resource.md b/_includes/payment-resource.md index f39a2c0cd3..c4686e4415 100644 --- a/_includes/payment-resource.md +++ b/_includes/payment-resource.md @@ -31,7 +31,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Payment Resource Response diff --git a/_includes/payments-operations.md b/_includes/payments-operations.md index c354f249a2..7178b36b59 100644 --- a/_includes/payments-operations.md +++ b/_includes/payments-operations.md @@ -33,7 +33,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% if documentation_section == "card" %} @@ -244,7 +243,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK diff --git a/_includes/prices.md b/_includes/prices.md index 518ff17182..b51683b626 100644 --- a/_includes/prices.md +++ b/_includes/prices.md @@ -22,7 +22,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Prices Response diff --git a/_includes/reversal.md b/_includes/reversal.md index 5d4fcd0ee0..9fb0ca441e 100644 --- a/_includes/reversal.md +++ b/_includes/reversal.md @@ -131,7 +131,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md api_resource=include.api_resource documentation_section=include.api_resource transaction="reversal" %} diff --git a/_includes/transaction.md b/_includes/transaction.md index 0a93fc99c7..241534b42c 100644 --- a/_includes/transaction.md +++ b/_includes/transaction.md @@ -35,7 +35,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 a {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -77,7 +76,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK diff --git a/_includes/transactions.md b/_includes/transactions.md index 244308db4f..39a34ebb0b 100644 --- a/_includes/transactions.md +++ b/_includes/transactions.md @@ -33,7 +33,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 a {% include code-example.html title='Request' header=request_header - json= request_content %} {% else %} @@ -46,7 +45,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% endif %} diff --git a/_includes/unscheduled-purchase.md b/_includes/unscheduled-purchase.md index 875d33bb2f..b2a1f999ad 100644 --- a/_includes/unscheduled-purchase.md +++ b/_includes/unscheduled-purchase.md @@ -371,7 +371,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} As an alternative, you can also retrieve it by using the expand option when you @@ -396,7 +395,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## Performing The Unscheduled Purchase diff --git a/_includes/urls.md b/_includes/urls.md index b451cbd5df..05c94ba0bc 100644 --- a/_includes/urls.md +++ b/_includes/urls.md @@ -35,7 +35,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 a {% include code-example.html title='Request' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK diff --git a/_includes/vipps-payments-capture.md b/_includes/vipps-payments-capture.md index 07ec50022c..6b722b0cfe 100644 --- a/_includes/vipps-payments-capture.md +++ b/_includes/vipps-payments-capture.md @@ -64,7 +64,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="capture" %} diff --git a/checkout-v3/get-started/fundamental-principles.md b/checkout-v3/get-started/fundamental-principles.md index f5fcdae878..e6a2ababe6 100644 --- a/checkout-v3/get-started/fundamental-principles.md +++ b/checkout-v3/get-started/fundamental-principles.md @@ -241,7 +241,6 @@ Host: {{ page.api_host }}{% endcapture %} {% include code-example.html title='HTTP Request with expansion' header=request_header - json= request_content %} To avoid unnecessary overhead, you should only expand the fields you need info diff --git a/checkout-v3/get-started/validate-status.md b/checkout-v3/get-started/validate-status.md index 71388a2438..29e9f0b831 100644 --- a/checkout-v3/get-started/validate-status.md +++ b/checkout-v3/get-started/validate-status.md @@ -39,7 +39,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='GET Request with expanded paid node' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK @@ -189,7 +188,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0 {% include code-example.html title='GET Request directly towards the paid resource' header=request_header - json= request_content %} {% capture response_header %}HTTP/1.1 200 OK diff --git a/old-implementations/payment-instruments-v1/card/after-payment.md b/old-implementations/payment-instruments-v1/card/after-payment.md index 00c2a72ad0..6c26e42cde 100644 --- a/old-implementations/payment-instruments-v1/card/after-payment.md +++ b/old-implementations/payment-instruments-v1/card/after-payment.md @@ -129,7 +129,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="cancellation" %} @@ -252,7 +251,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="reversal" %} diff --git a/old-implementations/payment-instruments-v1/invoice/after-payment.md b/old-implementations/payment-instruments-v1/invoice/after-payment.md index a37d552206..812277240e 100644 --- a/old-implementations/payment-instruments-v1/invoice/after-payment.md +++ b/old-implementations/payment-instruments-v1/invoice/after-payment.md @@ -75,7 +75,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="cancel" %} @@ -158,7 +157,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="reversal" %} diff --git a/old-implementations/payment-instruments-v1/mobile-pay/redirect.md b/old-implementations/payment-instruments-v1/mobile-pay/redirect.md index 1e2a4041c4..b0e1cefb83 100644 --- a/old-implementations/payment-instruments-v1/mobile-pay/redirect.md +++ b/old-implementations/payment-instruments-v1/mobile-pay/redirect.md @@ -212,7 +212,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Transaction Status Response diff --git a/old-implementations/payment-instruments-v1/swish/direct.md b/old-implementations/payment-instruments-v1/swish/direct.md index 5488267b2e..2efdb8e117 100644 --- a/old-implementations/payment-instruments-v1/swish/direct.md +++ b/old-implementations/payment-instruments-v1/swish/direct.md @@ -305,7 +305,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='GET Request' header=request_header - json= request_content %} ## GET Payment Response diff --git a/old-implementations/payment-instruments-v1/trustly/after-payment.md b/old-implementations/payment-instruments-v1/trustly/after-payment.md index 24b8898892..3e2abef2d8 100644 --- a/old-implementations/payment-instruments-v1/trustly/after-payment.md +++ b/old-implementations/payment-instruments-v1/trustly/after-payment.md @@ -82,7 +82,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} {% include transaction-list-response.md transaction="reversal" %} diff --git a/old-implementations/payment-instruments-v1/vipps/after-payment.md b/old-implementations/payment-instruments-v1/vipps/after-payment.md index 2a2d7bd68d..8883e4a0a4 100644 --- a/old-implementations/payment-instruments-v1/vipps/after-payment.md +++ b/old-implementations/payment-instruments-v1/vipps/after-payment.md @@ -220,7 +220,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Response Authorizations @@ -242,7 +241,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Response Cancel @@ -296,7 +294,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Response Reversal diff --git a/old-implementations/payment-instruments-v1/vipps/redirect.md b/old-implementations/payment-instruments-v1/vipps/redirect.md index b7d9e0e2ed..48963e262b 100644 --- a/old-implementations/payment-instruments-v1/vipps/redirect.md +++ b/old-implementations/payment-instruments-v1/vipps/redirect.md @@ -207,7 +207,6 @@ Content-Type: application/json{% endcapture %} {% include code-example.html title='Request' header=request_header - json= request_content %} ## GET Transaction State Response