summaryrefslogtreecommitdiff
path: root/src/types/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-31 00:34:31 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-31 00:34:31 +0530
commit119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 (patch)
tree5c00e984ca11d0a22f0c8b34ceaa9f92a942ed1d /src/types/walletTypes.ts
parentb51932cc85287a04dca13cbb3e4d12c5b98e9c47 (diff)
downloadwallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.tar.gz
wallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.tar.bz2
wallet-core-119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4.zip
respond with contract terms as JSON (instead of string) in the wallet APIv0.7.1-dev.16
Diffstat (limited to 'src/types/walletTypes.ts')
-rw-r--r--src/types/walletTypes.ts8
1 files changed, 4 insertions, 4 deletions
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<string, unknown>;
amountRaw: string;
amountEffective: string;
}
@@ -337,12 +337,12 @@ export interface PreparePayResultPaymentPossible {
export interface PreparePayResultInsufficientBalance {
status: PreparePayResultType.InsufficientBalance;
proposalId: string;
- contractTerms: any;
+ contractTerms: Record<string, unknown>;
}
export interface PreparePayResultAlreadyConfirmed {
status: PreparePayResultType.AlreadyConfirmed;
- contractTerms: any;
+ contractTerms: Record<string, unknown>;
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<string, undefined>;
hasRefund: boolean;
totalRefundAmount: AmountJson;
totalRefundAndRefreshFees: AmountJson;