From 613a14c14f969bf21ff7569f93cde3a7a35ce96a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 31 May 2017 16:04:14 +0200 Subject: fix messaging, small issues and safer types --- src/types.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/types.ts') diff --git a/src/types.ts b/src/types.ts index 4dee93a10..82777f96b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1047,33 +1047,27 @@ export class Contract { /** - * Offer record, stored in the wallet's database. + * Proposal record, stored in the wallet's database. */ @Checkable.Class() -export class OfferRecord { +export class ProposalRecord { /** * The contract that was offered by the merchant. */ @Checkable.Value(Contract) - contract: Contract; + contractTerms: Contract; /** * Signature by the merchant over the contract details. */ @Checkable.String - merchant_sig: string; + merchantSig: string; /** * Hash of the contract terms. */ @Checkable.String - H_contract: string; - - /** - * Time when the offer was made. - */ - @Checkable.Number - offer_time: number; + contractTermsHash: string; /** * Serial ID when the offer is stored in the wallet DB. @@ -1085,7 +1079,7 @@ export class OfferRecord { * Verify that a value matches the schema of this class and convert it into a * member. */ - static checked: (obj: any) => OfferRecord; + static checked: (obj: any) => ProposalRecord; } -- cgit v1.2.3