diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-22 15:15:15 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:57:58 -0300 |
commit | 5181d060cf09ffc7250c9f1069920da0724e0284 (patch) | |
tree | 477312c567976c63caa101202bc525490727c096 /packages/merchant-backoffice-ui/src/utils/amount.ts | |
parent | e2bfbced7ab027c901913e83ff7dd82240661990 (diff) | |
download | wallet-core-5181d060cf09ffc7250c9f1069920da0724e0284.tar.gz wallet-core-5181d060cf09ffc7250c9f1069920da0724e0284.tar.bz2 wallet-core-5181d060cf09ffc7250c9f1069920da0724e0284.zip |
wip, doesn't compile. now merchant doesn't have it's own definition of types... it uses the one defined by taler-util
Diffstat (limited to 'packages/merchant-backoffice-ui/src/utils/amount.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/utils/amount.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/merchant-backoffice-ui/src/utils/amount.ts b/packages/merchant-backoffice-ui/src/utils/amount.ts index fda997619..c94101b4b 100644 --- a/packages/merchant-backoffice-ui/src/utils/amount.ts +++ b/packages/merchant-backoffice-ui/src/utils/amount.ts @@ -17,8 +17,8 @@ import { amountFractionalBase, AmountJson, Amounts, + TalerMerchantApi, } from "@gnu-taler/taler-util"; -import { MerchantBackend } from "../declaration.js"; /** * merge refund with the same description and a difference less than one minute @@ -27,9 +27,9 @@ import { MerchantBackend } from "../declaration.js"; * @returns list with the new refund, may be merged with the last */ export function mergeRefunds( - prev: MerchantBackend.Orders.RefundDetails[], - cur: MerchantBackend.Orders.RefundDetails, -): MerchantBackend.Orders.RefundDetails[] { + prev: TalerMerchantApi.RefundDetails[], + cur: TalerMerchantApi.RefundDetails, +): TalerMerchantApi.RefundDetails[] { let tail; if ( |