taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit dd5b6797910600e2ba39cde95aabea098eb637a5
parent cce3f589dcb35bb9036b513da24b3b8207bc4772
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sun, 12 Feb 2017 19:31:46 +0100

remove deprecated contract fields and add 'extra' field for merchant data

Diffstat:
Msrc/types.ts | 15+++------------
1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/types.ts b/src/types.ts @@ -450,12 +450,6 @@ export class Contract { @Checkable.List(Checkable.AnyObject) auditors: any[]; - /** - * DEPRECATED alias for pay_deadline. - */ - @Checkable.Optional(Checkable.String) - expiry: string; - @Checkable.Optional(Checkable.String) pay_deadline: string; @@ -492,15 +486,12 @@ export class Contract { @Checkable.Optional(Checkable.String) repurchase_correlation_id: string; - /** - * DEPRECATED alias for instance - */ - @Checkable.Optional(Checkable.String) - receiver: string; - @Checkable.Optional(Checkable.String) instance: string; + @Checkable.Any + extra: any; + static checked: (obj: any) => Contract; }