-minor insufficient balance tweaks
This commit is contained in:
parent
24cac493dd
commit
f4e1e8e6e7
@ -2081,3 +2081,50 @@ export interface InitiatePeerPullPaymentResponse {
|
||||
|
||||
transactionId: string;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Detailed reason for why the wallet's balance is insufficient.
|
||||
*/
|
||||
export interface PayMerchantInsufficientBalanceDetails {
|
||||
/**
|
||||
* Amount requested by the merchant.
|
||||
*/
|
||||
amountRequested: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "available" (see balance.ts for definition).
|
||||
*/
|
||||
balanceAvailable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "material" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMaterial: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "age-acceptable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceAgeAcceptable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "merchant-acceptable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMechantAcceptable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "merchant-depositable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMechantDepositable: AmountJson;
|
||||
|
||||
/**
|
||||
* If the payment would succeed without fees
|
||||
* (i.e. balanceMechantWireable >= amountRequested),
|
||||
* this field contains an estimate of the amount that would additionally
|
||||
* be required to cover the fees.
|
||||
*
|
||||
* It is not possible to give an exact value here, since it depends
|
||||
* on the coin selection for the amount that would be additionally withdrawn.
|
||||
*/
|
||||
feeGapEstimate: AmountJson;
|
||||
}
|
@ -39,7 +39,7 @@
|
||||
* - "merchant-acceptable": Subset of the material balance that can be spent with a particular
|
||||
* merchant (restricted via min age, exchange, auditor, wire_method).
|
||||
*
|
||||
* - "merchant-wireable": Subset of the merchant-acceptable balance that the merchant
|
||||
* - "merchant-depositable": Subset of the merchant-acceptable balance that the merchant
|
||||
* can accept via their supported wire methods.
|
||||
*/
|
||||
|
||||
|
@ -875,51 +875,6 @@ async function unblockBackup(
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Detailed reason for why the wallet's balance is insufficient.
|
||||
*/
|
||||
export interface PayMerchantInsufficientBalanceDetails {
|
||||
/**
|
||||
* Amount requested by the merchant.
|
||||
*/
|
||||
amountRequested: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "available" (see balance.ts for definition).
|
||||
*/
|
||||
balanceAvailable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "material" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMaterial: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "age-acceptable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceAgeAcceptable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "merchant-acceptable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMechantAcceptable: AmountJson;
|
||||
|
||||
/**
|
||||
* Balance of type "merchant-wireable" (see balance.ts for definition).
|
||||
*/
|
||||
balanceMechantWireable: AmountJson;
|
||||
|
||||
/**
|
||||
* If the payment would succeed without fees,
|
||||
* this field contains an estimate of the amount that would additionally
|
||||
* be required to cover the fees.
|
||||
*
|
||||
* It is not possible to give an exact value here, since it depends
|
||||
* on the coin selection for the amount that would be additionally withdrawn.
|
||||
*/
|
||||
feeGapEstimate: AmountJson
|
||||
}
|
||||
|
||||
export interface SelectPayCoinRequestNg {
|
||||
exchanges: AllowedExchangeInfo[];
|
||||
auditors: AllowedAuditorInfo[];
|
||||
|
Loading…
Reference in New Issue
Block a user