From 119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 31 Jul 2020 00:34:31 +0530 Subject: respond with contract terms as JSON (instead of string) in the wallet API --- src/types/walletTypes.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/types/walletTypes.ts') diff --git a/src/types/walletTypes.ts b/src/types/walletTypes.ts index 9f0bfaf37..767b4c703 100644 --- a/src/types/walletTypes.ts +++ b/src/types/walletTypes.ts @@ -329,7 +329,7 @@ export type PreparePayResult = export interface PreparePayResultPaymentPossible { status: PreparePayResultType.PaymentPossible; proposalId: string; - contractTerms: string; + contractTerms: Record; amountRaw: string; amountEffective: string; } @@ -337,12 +337,12 @@ export interface PreparePayResultPaymentPossible { export interface PreparePayResultInsufficientBalance { status: PreparePayResultType.InsufficientBalance; proposalId: string; - contractTerms: any; + contractTerms: Record; } export interface PreparePayResultAlreadyConfirmed { status: PreparePayResultType.AlreadyConfirmed; - contractTerms: any; + contractTerms: Record; paid: boolean; // Only specified if paid. nextUrl?: string; @@ -368,7 +368,7 @@ export interface AcceptWithdrawalResponse { * Details about a purchase, including refund status. */ export interface PurchaseDetails { - contractTerms: any; + contractTerms: Record; hasRefund: boolean; totalRefundAmount: AmountJson; totalRefundAndRefreshFees: AmountJson; -- cgit v1.2.3