diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-16 22:52:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-16 22:52:56 +0530 |
commit | 85a095fa7d4d31e1e84e5e096fa28c59f3cd1918 (patch) | |
tree | bfad4a87f540c0ae1480fd2ab80911045f7f912e /src/types/walletTypes.ts | |
parent | dd3a31f33dc54b475b204e15d8d0a5c5e2a70ee8 (diff) | |
download | wallet-core-85a095fa7d4d31e1e84e5e096fa28c59f3cd1918.tar.xz |
manual withdrawalv0.7.1-dev.8v0.7.1-dev.7
Diffstat (limited to 'src/types/walletTypes.ts')
-rw-r--r-- | src/types/walletTypes.ts | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/types/walletTypes.ts b/src/types/walletTypes.ts index 74f2428dd..63b20095e 100644 --- a/src/types/walletTypes.ts +++ b/src/types/walletTypes.ts @@ -246,7 +246,7 @@ export interface CreateReserveRequest { * Payto URI that identifies the exchange's account that the funds * for this reserve go into. */ - exchangeWire: string; + exchangePaytoUri?: string; /** * Wire details (as a payto URI) for the bank account that sent the funds to @@ -264,7 +264,7 @@ export const codecForCreateReserveRequest = (): Codec<CreateReserveRequest> => makeCodecForObject<CreateReserveRequest>() .property("amount", codecForAmountJson()) .property("exchange", codecForString) - .property("exchangeWire", codecForString) + .property("exchangePaytoUri", codecForString) .property("senderWire", makeCodecOptional(codecForString)) .property("bankWithdrawStatusUrl", makeCodecOptional(codecForString)) .build("CreateReserveRequest"); @@ -491,6 +491,18 @@ export interface ExchangeListItem { paytoUris: string[]; } +export interface AcceptManualWithdrawalResult { + /** + * Payto URIs that can be used to fund the withdrawal. + */ + exchangePaytoUris: string[]; + + /** + * Public key of the newly created reserve. + */ + reservePub: string; +} + export interface ManualWithdrawalDetails { /** * Did the user accept the current version of the exchange's |