diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-08 13:53:04 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-08 13:53:04 -0300 |
commit | 4409d8384b77401489c2a92d3de20f79959ae34a (patch) | |
tree | 6483e7cc0a70dbbfcf9b16a7ce43576a4aef2c08 /packages/taler-wallet-core/src/wallet.ts | |
parent | 88bdcae030ae845f412957f6455e44b009b490e2 (diff) | |
download | wallet-core-4409d8384b77401489c2a92d3de20f79959ae34a.tar.xz |
add delivery info in the parse contract terms and a function to get info from a proposalId
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index b56e9402d..066f91a30 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -43,6 +43,7 @@ import { codecForCreateDepositGroupRequest, codecForDeleteTransactionRequest, codecForForceRefreshRequest, + codecForGetContractTermsDetails, codecForGetExchangeTosRequest, codecForGetExchangeWithdrawalInfo, codecForGetFeeForDeposit, @@ -142,6 +143,7 @@ import { import { getMerchantInfo } from "./operations/merchants.js"; import { confirmPay, + getContractTermsDetails, preparePayForUri, processDownloadProposal, processPurchasePay, @@ -868,6 +870,10 @@ async function dispatchRequestInternal( const req = codecForGetExchangeTosRequest().decode(payload); return getExchangeTos(ws, req.exchangeBaseUrl, req.acceptedFormat); } + case "getContractTermsDetails": { + const req = codecForGetContractTermsDetails().decode(payload); + return getContractTermsDetails(ws, req.proposalId); + } case "retryPendingNow": { await runPending(ws, true); return {}; |