-rename
This commit is contained in:
parent
dcbdddc32e
commit
c8b93a37ba
@ -40,7 +40,7 @@ export function useComponentState({
|
|||||||
const { i18n } = useTranslationContext();
|
const { i18n } = useTranslationContext();
|
||||||
const { pushAlertOnError } = useAlertContext();
|
const { pushAlertOnError } = useAlertContext();
|
||||||
const hook = useAsyncAsHook(async () => {
|
const hook = useAsyncAsHook(async () => {
|
||||||
const p2p = await api.wallet.call(WalletApiOperation.CheckPeerPullPayment, {
|
const p2p = await api.wallet.call(WalletApiOperation.PreparePeerPullDebit, {
|
||||||
talerUri: talerPayPullUri,
|
talerUri: talerPayPullUri,
|
||||||
});
|
});
|
||||||
const balance = await api.wallet.call(WalletApiOperation.GetBalances, {});
|
const balance = await api.wallet.call(WalletApiOperation.GetBalances, {});
|
||||||
@ -144,7 +144,7 @@ export function useComponentState({
|
|||||||
|
|
||||||
async function accept(): Promise<void> {
|
async function accept(): Promise<void> {
|
||||||
const resp = await api.wallet.call(
|
const resp = await api.wallet.call(
|
||||||
WalletApiOperation.AcceptPeerPullPayment,
|
WalletApiOperation.ConfirmPeerPullDebit,
|
||||||
{
|
{
|
||||||
peerPullPaymentIncomingId,
|
peerPullPaymentIncomingId,
|
||||||
},
|
},
|
||||||
|
@ -38,12 +38,9 @@ export function useComponentState({
|
|||||||
const [timestamp, setTimestamp] = useState<string | undefined>();
|
const [timestamp, setTimestamp] = useState<string | undefined>();
|
||||||
|
|
||||||
const hook = useAsyncAsHook(async () => {
|
const hook = useAsyncAsHook(async () => {
|
||||||
const resp = await api.wallet.call(
|
const resp = await api.wallet.call(WalletApiOperation.CheckPeerPushDebit, {
|
||||||
WalletApiOperation.PreparePeerPushPayment,
|
|
||||||
{
|
|
||||||
amount: amountStr,
|
amount: amountStr,
|
||||||
},
|
});
|
||||||
);
|
|
||||||
return resp;
|
return resp;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -98,7 +95,7 @@ export function useComponentState({
|
|||||||
async function accept(): Promise<void> {
|
async function accept(): Promise<void> {
|
||||||
if (!subject || !purse_expiration) return;
|
if (!subject || !purse_expiration) return;
|
||||||
const resp = await api.wallet.call(
|
const resp = await api.wallet.call(
|
||||||
WalletApiOperation.InitiatePeerPushPayment,
|
WalletApiOperation.InitiatePeerPushDebit,
|
||||||
{
|
{
|
||||||
partialContractTerms: {
|
partialContractTerms: {
|
||||||
summary: subject,
|
summary: subject,
|
||||||
|
@ -35,7 +35,7 @@ export function useComponentState({
|
|||||||
const { pushAlertOnError } = useAlertContext();
|
const { pushAlertOnError } = useAlertContext();
|
||||||
const { i18n } = useTranslationContext();
|
const { i18n } = useTranslationContext();
|
||||||
const hook = useAsyncAsHook(async () => {
|
const hook = useAsyncAsHook(async () => {
|
||||||
return await api.wallet.call(WalletApiOperation.CheckPeerPushPayment, {
|
return await api.wallet.call(WalletApiOperation.PreparePeerPushCredit, {
|
||||||
talerUri: talerPayPushUri,
|
talerUri: talerPayPushUri,
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
@ -71,7 +71,7 @@ export function useComponentState({
|
|||||||
|
|
||||||
async function accept(): Promise<void> {
|
async function accept(): Promise<void> {
|
||||||
const resp = await api.wallet.call(
|
const resp = await api.wallet.call(
|
||||||
WalletApiOperation.AcceptPeerPushPayment,
|
WalletApiOperation.ConfirmPeerPushCredit,
|
||||||
{
|
{
|
||||||
peerPushPaymentIncomingId,
|
peerPushPaymentIncomingId,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user