commit e787cda20315b1ed4a82f83d04824b5836d5ac72
parent 2bf59afa54f9e0d777b0fa206585d02088696e81
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 21 May 2024 14:15:24 -0300
added supportedCurrencies in CheckPayTemplateReponse
Diffstat:
1 file changed, 34 insertions(+), 24 deletions(-)
diff --git a/wallet/wallet-core.md b/wallet/wallet-core.md
@@ -758,29 +758,13 @@ export type GetWithdrawalDetailsForUriOp = {
```typescript
export interface GetWithdrawalDetailsForUriRequest {
talerWithdrawUri: string;
+ /**
+ * @deprecated not used
+ */
restrictAge?: number;
}
```
-```typescript
-export interface WithdrawUriInfoResponse {
- operationId: string;
- status: WithdrawalOperationStatus;
- confirmTransferUrl?: string;
- amount: AmountString;
- defaultExchangeBaseUrl?: string;
- possibleExchanges: ExchangeListItem[];
-}
-
-```
-```typescript
-export type WithdrawalOperationStatus =
- | "pending"
- | "selected"
- | "aborted"
- | "confirmed";
-
-```
### PrepareBankIntegratedWithdrawalOp
```typescript
@@ -798,15 +782,14 @@ export type PrepareBankIntegratedWithdrawalOp = {
```typescript
export interface PrepareBankIntegratedWithdrawalRequest {
talerWithdrawUri: string;
- exchangeBaseUrl: string;
- forcedDenomSel?: ForcedDenomSel;
- restrictAge?: number;
+ selectedExchange?: string;
}
```
```typescript
export interface PrepareBankIntegratedWithdrawalResponse {
- transactionId: string;
+ transactionId?: string;
+ info: WithdrawUriInfoResponse;
}
```
@@ -827,6 +810,10 @@ export type ConfirmWithdrawalOp = {
```typescript
export interface ConfirmWithdrawalRequest {
transactionId: string;
+ exchangeBaseUrl: string;
+ amount: AmountString;
+ forcedDenomSel?: ForcedDenomSel;
+ restrictAge?: number;
}
```
@@ -960,7 +947,7 @@ export interface SharePaymentResult {
export type CheckPayForTemplateOp = {
op: WalletApiOperation.CheckPayForTemplate;
request: CheckPayTemplateRequest;
- response: TalerMerchantApi.WalletTemplateDetails;
+ response: CheckPayTemplateReponse;
};
// CheckPayForTemplate = "checkPayForTemplate"
@@ -972,6 +959,12 @@ export interface CheckPayTemplateRequest {
```
```typescript
+export type CheckPayTemplateReponse = TalerMerchantApi.WalletTemplateDetails & {
+ supportedCurrencies: string[];
+};
+
+```
+```typescript
export interface WalletTemplateDetails {
template_contract: TemplateContractDetails;
editable_defaults?: TemplateContractDetailsDefaults;
@@ -4027,6 +4020,23 @@ export interface AbortTransactionRequest {
}
```
```typescript
+export interface WithdrawUriInfoResponse {
+ operationId: string;
+ status: WithdrawalOperationStatus;
+ confirmTransferUrl?: string;
+ amount: AmountString;
+ defaultExchangeBaseUrl?: string;
+ possibleExchanges: ExchangeListItem[];
+}
+```
+```typescript
+export type WithdrawalOperationStatus =
+ | "pending"
+ | "selected"
+ | "aborted"
+ | "confirmed";
+```
+```typescript
/**
* Info about an exchange entry in the wallet.
*/