From d656f978116363783b0cf9ffd936c10527bfe1c5 Mon Sep 17 00:00:00 2001 From: Andrea Ferracci <andrea.ferracci@gmail.com> Date: Mon, 16 Dec 2024 23:32:27 +0100 Subject: [PATCH 1/2] [PQ-257] add ebollo configuration to checkout policy apim --- .../api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl b/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl index 81152120a7..39b853cb2c 100644 --- a/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl +++ b/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl @@ -11,6 +11,11 @@ <value>WISP_REDIRECT</value> </set-header> </when> + <when condition="@(context.Subscription != null && context.Subscription.Id.ToLower().Equals("ebollo"))"> + <set-header name="x-client-id" exists-action="override"> + <value>CHECKOUT_CART</value> + </set-header> + </when> <!-- add here handling for future api clients to be integrated, such as SEND --> </choose> </inbound> From 25ab57099ca12050b59d5ad89daff9711d55be7d Mon Sep 17 00:00:00 2001 From: Andrea Ferracci <andrea.ferracci@gmail.com> Date: Tue, 17 Dec 2024 10:00:11 +0100 Subject: [PATCH 2/2] [PQ-257] replaced when block with otherwise --- .../api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl b/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl index 39b853cb2c..259d99a473 100644 --- a/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl +++ b/src/domains/checkout-app/api/checkout/checkout_carts_auth/v1/_base_policy.xml.tpl @@ -11,11 +11,11 @@ <value>WISP_REDIRECT</value> </set-header> </when> - <when condition="@(context.Subscription != null && context.Subscription.Id.ToLower().Equals("ebollo"))"> + <otherwise> <set-header name="x-client-id" exists-action="override"> <value>CHECKOUT_CART</value> </set-header> - </when> + </otherwise> <!-- add here handling for future api clients to be integrated, such as SEND --> </choose> </inbound>