From 2f336a77ea0f2cd0f19e7a1297826ae5e510598e Mon Sep 17 00:00:00 2001 From: Andreas Sonnleitner <56999154+asonnleitner@users.noreply.github.com> Date: Tue, 11 Jul 2023 15:45:07 +0200 Subject: [PATCH] feat(core): Add currencyCode option to RequestContextService.create (#2277) --- .../helpers/request-context/request-context.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/service/helpers/request-context/request-context.service.ts b/packages/core/src/service/helpers/request-context/request-context.service.ts index c2bfd0d45c..4e6aa0b6de 100644 --- a/packages/core/src/service/helpers/request-context/request-context.service.ts +++ b/packages/core/src/service/helpers/request-context/request-context.service.ts @@ -39,10 +39,11 @@ export class RequestContextService { apiType: ApiType; channelOrToken?: Channel | string; languageCode?: LanguageCode; + currencyCode?: CurrencyCode; user?: User; activeOrderId?: ID; }): Promise { - const { req, apiType, channelOrToken, languageCode, user, activeOrderId } = config; + const { req, apiType, channelOrToken, languageCode, currencyCode, user, activeOrderId } = config; let channel: Channel; if (channelOrToken instanceof Channel) { channel = channelOrToken; @@ -73,6 +74,7 @@ export class RequestContextService { apiType, channel, languageCode, + currencyCode, session, isAuthorized: true, authorizedAsOwnerOnly: false,