diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-27 13:36:32 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-27 13:36:32 +0530 |
commit | 694d913d1f226b3d284258286c73a035fd43da7d (patch) | |
tree | 20bb4f1e2d4eddb9720b4700c99ebf0803b3fbaa /src/util | |
parent | 880f335ee648743f6e58918b5a62b42c4f0962bb (diff) |
latest merchant protocol for refunds
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/codec.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/codec.ts b/src/util/codec.ts index c468704b2..383a2d99e 100644 --- a/src/util/codec.ts +++ b/src/util/codec.ts @@ -176,6 +176,11 @@ class UnionCodecBuilder< const baseCodec = this.baseCodec; return { decode(x: any, c?: Context): R { + if (!c) { + c = { + path: [`(${objectDisplayName})`], + }; + } const d = x[discriminator]; if (d === undefined) { throw new DecodingError( |