aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/http-client/types.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-21 14:55:26 -0300
committerSebastian <sebasjm@gmail.com>2024-04-22 08:52:55 -0300
commiteada01727571fe0aae632696baa97bc4ab6be521 (patch)
tree9feae9659e13a6f902144486175cbf98a201ae8c /packages/taler-util/src/http-client/types.ts
parent96d0833d703a55e9a5e707dd464f85ad0c78ab0e (diff)
downloadwallet-core-eada01727571fe0aae632696baa97bc4ab6be521.tar.xz
fix challenger api
Diffstat (limited to 'packages/taler-util/src/http-client/types.ts')
-rw-r--r--packages/taler-util/src/http-client/types.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-util/src/http-client/types.ts b/packages/taler-util/src/http-client/types.ts
index e12c2ed6b..13ef9a3e6 100644
--- a/packages/taler-util/src/http-client/types.ts
+++ b/packages/taler-util/src/http-client/types.ts
@@ -1533,7 +1533,7 @@ export const codecForChallengeCreateResponse =
export const codecForInvalidPinResponse =
(): Codec<ChallengerApi.InvalidPinResponse> =>
buildCodecForObject<ChallengerApi.InvalidPinResponse>()
- .property("ec", codecForNumber())
+ .property("ec", codecOptional(codecForNumber()))
.property("hint", codecForAny())
.property("addresses_left", codecForNumber())
.property("pin_transmissions_left", codecForNumber())
@@ -5319,17 +5319,17 @@ export namespace ChallengerApi {
// timestamp explaining when we would re-transmit the challenge the next
// time (at the earliest) if requested by the user
- next_tx_time: String;
+ next_tx_time: string;
}
export interface InvalidPinResponse {
// numeric Taler error code, should be shown to indicate the error
// compactly for reporting to developers
- ec: Integer;
+ ec?: number;
// human-readable Taler error code, should be shown for the user to
// understand the error
- hint: String;
+ hint: string;
// how many times is the user still allowed to change the address;
// if 0, the user should not be shown a link to jump to the