From f613abb2bd433f395f91a8153ef6e377b8cc12ab Mon Sep 17 00:00:00 2001 From: Federico Mastrini Date: Mon, 22 Jan 2024 12:46:34 +0100 Subject: [PATCH] fix: authorizatio request payload --- .../networking/handleWalletPaymentAuthorization.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ts/features/walletV3/payment/saga/networking/handleWalletPaymentAuthorization.ts b/ts/features/walletV3/payment/saga/networking/handleWalletPaymentAuthorization.ts index d634e782503..2a1a9614566 100644 --- a/ts/features/walletV3/payment/saga/networking/handleWalletPaymentAuthorization.ts +++ b/ts/features/walletV3/payment/saga/networking/handleWalletPaymentAuthorization.ts @@ -2,16 +2,17 @@ import * as E from "fp-ts/lib/Either"; import { pipe } from "fp-ts/lib/function"; import { call, put } from "typed-redux-saga/macro"; import { ActionType } from "typesafe-actions"; +import { + LanguageEnum, + RequestAuthorizationRequest +} from "../../../../../../definitions/pagopa/ecommerce/RequestAuthorizationRequest"; +import { WalletDetailTypeEnum } from "../../../../../../definitions/pagopa/ecommerce/WalletDetailType"; import { SagaCallReturnType } from "../../../../../types/utils"; import { getGenericError, getNetworkError } from "../../../../../utils/errors"; import { readablePrivacyReport } from "../../../../../utils/reporters"; import { withRefreshApiCall } from "../../../../fastLogin/saga/utils"; import { PaymentClient } from "../../api/client"; import { walletPaymentAuthorization } from "../../store/actions/networking"; -import { - LanguageEnum, - RequestAuthorizationRequest -} from "../../../../../../definitions/pagopa/ecommerce/RequestAuthorizationRequest"; export function* handleWalletPaymentAuthorization( requestTransactionAuthorization: PaymentClient["requestTransactionAuthorization"], @@ -23,7 +24,10 @@ export function* handleWalletPaymentAuthorization( isAllCCP: true, language: LanguageEnum.IT, pspId: action.payload.pspId, - walletId: action.payload.walletId + details: { + detailType: WalletDetailTypeEnum.wallet, + walletId: action.payload.walletId + } }; const requestTransactionAuthorizationRequest = requestTransactionAuthorization({