summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-04 13:12:15 +0200
committerFlorian Dold <florian@dold.me>2022-10-04 13:12:23 +0200
commit37d27ba437c0cd6fbff4c2262b782e758e14a008 (patch)
tree644df7281499df8aa123eed189f13a8ca6149377 /packages/taler-util/src/walletTypes.ts
parentbbde2a9bb9fcb8d008b67a4382b15864a9ef2e9b (diff)
downloadwallet-core-37d27ba437c0cd6fbff4c2262b782e758e14a008.tar.gz
wallet-core-37d27ba437c0cd6fbff4c2262b782e758e14a008.tar.bz2
wallet-core-37d27ba437c0cd6fbff4c2262b782e758e14a008.zip
restructure api types
Diffstat (limited to 'packages/taler-util/src/walletTypes.ts')
-rw-r--r--packages/taler-util/src/walletTypes.ts16
1 files changed, 11 insertions, 5 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index 64daee776..bb5d4b3a4 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -423,11 +423,17 @@ export const codecForPreparePayResult = (): Codec<PreparePayResult> =>
)
.build("PreparePayResult");
+/**
+ * Result of a prepare pay operation.
+ */
export type PreparePayResult =
| PreparePayResultInsufficientBalance
| PreparePayResultAlreadyConfirmed
| PreparePayResultPaymentPossible;
+/**
+ * Payment is possible.
+ */
export interface PreparePayResultPaymentPossible {
status: PreparePayResultType.PaymentPossible;
proposalId: string;
@@ -604,7 +610,7 @@ export interface KnownBankAccountsInfo {
uri: PaytoUri;
kyc_completed: boolean;
currency: string;
- alias: string,
+ alias: string;
}
export interface KnownBankAccounts {
@@ -1092,9 +1098,9 @@ export interface AddKnownBankAccountsRequest {
export const codecForAddKnownBankAccounts =
(): Codec<AddKnownBankAccountsRequest> =>
buildCodecForObject<AddKnownBankAccountsRequest>()
- .property("payto", (codecForString()))
- .property("alias", (codecForString()))
- .property("currency", (codecForString()))
+ .property("payto", codecForString())
+ .property("alias", codecForString())
+ .property("currency", codecForString())
.build("AddKnownBankAccountsRequest");
export interface ForgetKnownBankAccountsRequest {
@@ -1104,7 +1110,7 @@ export interface ForgetKnownBankAccountsRequest {
export const codecForForgetKnownBankAccounts =
(): Codec<ForgetKnownBankAccountsRequest> =>
buildCodecForObject<ForgetKnownBankAccountsRequest>()
- .property("payto", (codecForString()))
+ .property("payto", codecForString())
.build("ForgetKnownBankAccountsRequest");
export interface GetExchangeWithdrawalInfo {