diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-08 17:40:47 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-08 17:40:47 +0530 |
commit | b063382d25d1ed8572ebe2f52bf54247379300d5 (patch) | |
tree | b60e4abf9b5285ffdf3339639ba8dae30d0bfff1 /packages/taler-wallet-core/src/types/talerTypes.ts | |
parent | be77ee284a819f7932831bd85e88c47c655addb2 (diff) | |
download | wallet-core-b063382d25d1ed8572ebe2f52bf54247379300d5.tar.xz |
tipping API and integration test
Diffstat (limited to 'packages/taler-wallet-core/src/types/talerTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/talerTypes.ts | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/packages/taler-wallet-core/src/types/talerTypes.ts b/packages/taler-wallet-core/src/types/talerTypes.ts index c944f1561..52dc4cb62 100644 --- a/packages/taler-wallet-core/src/types/talerTypes.ts +++ b/packages/taler-wallet-core/src/types/talerTypes.ts @@ -773,17 +773,11 @@ export class WithdrawOperationStatusResponse { * Response from the merchant. */ export class TipPickupGetResponse { - extra: any; - - amount: string; - - amount_left: string; + tip_amount: string; exchange_url: string; - stamp_expire: Timestamp; - - stamp_created: Timestamp; + expiration: Timestamp; } export class WithdrawResponse { @@ -1261,12 +1255,9 @@ export const codecForWithdrawOperationStatusResponse = (): Codec< export const codecForTipPickupGetResponse = (): Codec<TipPickupGetResponse> => buildCodecForObject<TipPickupGetResponse>() - .property("extra", codecForAny()) - .property("amount", codecForString()) - .property("amount_left", codecForString()) + .property("tip_amount", codecForString()) .property("exchange_url", codecForString()) - .property("stamp_expire", codecForTimestamp) - .property("stamp_created", codecForTimestamp) + .property("expiration", codecForTimestamp) .build("TipPickupGetResponse"); export const codecForRecoupConfirmation = (): Codec<RecoupConfirmation> => |