From 8b9581d18ce256aa841ed857031cfecc62647317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:44:08 +0200 Subject: [PATCH] Add bruno request for checkout metadata (#1304) --- .../bruno/5._Update_checkout_metadata.bru | 48 +++++++++++++++++++ ...ethod.bru => 6_Update_delivery_method.bru} | 4 +- ...e_checkout.bru => 7_Complete_checkout.bru} | 4 +- 3 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 apps/avatax/bruno/5._Update_checkout_metadata.bru rename apps/avatax/bruno/{5_Update_delivery_method.bru => 6_Update_delivery_method.bru} (96%) rename apps/avatax/bruno/{6_Complete_checkout.bru => 7_Complete_checkout.bru} (93%) diff --git a/apps/avatax/bruno/5._Update_checkout_metadata.bru b/apps/avatax/bruno/5._Update_checkout_metadata.bru new file mode 100644 index 000000000..85d900243 --- /dev/null +++ b/apps/avatax/bruno/5._Update_checkout_metadata.bru @@ -0,0 +1,48 @@ +meta { + name: 5. Update checkout metadata + type: graphql + seq: 5 +} + +post { + url: {{API_URL}} + body: graphql + auth: bearer +} + +auth:bearer { + token: {{storefrontUserToken}} +} + +body:graphql { + mutation UpdateMetadata($checkoutId: ID!, $input: [MetadataInput!]!) { + updateMetadata(id: $checkoutId, input: $input) { + errors { + field + message + } + item { + ... on Checkout { + id + metadata { + key + value + } + } + } + } + } + +} + +body:graphql:vars { + { + "checkoutId": "{{checkoutId}}", + "input": [ + { + "key": "avataxCustomerCode", + "value": "code" + } + ] + } +} diff --git a/apps/avatax/bruno/5_Update_delivery_method.bru b/apps/avatax/bruno/6_Update_delivery_method.bru similarity index 96% rename from apps/avatax/bruno/5_Update_delivery_method.bru rename to apps/avatax/bruno/6_Update_delivery_method.bru index a7206c850..7c7f45b9c 100644 --- a/apps/avatax/bruno/5_Update_delivery_method.bru +++ b/apps/avatax/bruno/6_Update_delivery_method.bru @@ -1,7 +1,7 @@ meta { - name: 5. Update delivery method + name: 6. Update delivery method type: graphql - seq: 5 + seq: 6 } post { diff --git a/apps/avatax/bruno/6_Complete_checkout.bru b/apps/avatax/bruno/7_Complete_checkout.bru similarity index 93% rename from apps/avatax/bruno/6_Complete_checkout.bru rename to apps/avatax/bruno/7_Complete_checkout.bru index 1d5d302ba..84a98c1a9 100644 --- a/apps/avatax/bruno/6_Complete_checkout.bru +++ b/apps/avatax/bruno/7_Complete_checkout.bru @@ -1,7 +1,7 @@ meta { - name: 6. Complete checkout + name: 7. Complete checkout type: graphql - seq: 6 + seq: 7 } post {