diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 01:20:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 01:20:41 +0100 |
commit | fddc6eb4f21e7b85f089d5bf532580c3da874d54 (patch) | |
tree | c538bb5485fae6767c70fc031ea4652af0dfd5b3 /packages/taler-util | |
parent | 357457018cd4f9feb4f15bc5b801af63bc4779bd (diff) |
-deep rename
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 5841b316e..dc683a232 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -2030,7 +2030,7 @@ export interface PayCoinSelection { customerDepositFees: AmountString; } -export interface PreparePeerPushPaymentRequest { +export interface CheckPeerPushDebitRequest { /** * Preferred exchange to use for the p2p payment. */ @@ -2045,13 +2045,13 @@ export interface PreparePeerPushPaymentRequest { } export const codecForPreparePeerPushPaymentRequest = - (): Codec<PreparePeerPushPaymentRequest> => - buildCodecForObject<PreparePeerPushPaymentRequest>() + (): Codec<CheckPeerPushDebitRequest> => + buildCodecForObject<CheckPeerPushDebitRequest>() .property("exchangeBaseUrl", codecOptional(codecForString())) .property("amount", codecForAmountString()) - .build("InitiatePeerPushPaymentRequest"); + .build("CheckPeerPushDebitRequest"); -export interface PreparePeerPushPaymentResponse { +export interface CheckPeerPushDebitResponse { amountRaw: AmountString; amountEffective: AmountString; } @@ -2080,7 +2080,7 @@ export interface CheckPeerPushPaymentRequest { talerUri: string; } -export interface CheckPeerPullPaymentRequest { +export interface PreparePeerPullDebitRequest { talerUri: string; } @@ -2090,7 +2090,7 @@ export interface CheckPeerPushPaymentResponse { peerPushPaymentIncomingId: string; } -export interface CheckPeerPullPaymentResponse { +export interface PreparePeerPullDebitResponse { contractTerms: PeerContractTerms; /** * @deprecated Redundant field with bad name, will be removed soon. @@ -2110,12 +2110,12 @@ export const codecForCheckPeerPushPaymentRequest = .build("CheckPeerPushPaymentRequest"); export const codecForCheckPeerPullPaymentRequest = - (): Codec<CheckPeerPullPaymentRequest> => - buildCodecForObject<CheckPeerPullPaymentRequest>() + (): Codec<PreparePeerPullDebitRequest> => + buildCodecForObject<PreparePeerPullDebitRequest>() .property("talerUri", codecForString()) - .build("CheckPeerPullPaymentRequest"); + .build("PreparePeerPullDebitRequest"); -export interface AcceptPeerPushPaymentRequest { +export interface ConfirmPeerPushCreditRequest { /** * Transparent identifier of the incoming peer push payment. */ @@ -2130,12 +2130,12 @@ export interface AcceptPeerPullPaymentResponse { } export const codecForAcceptPeerPushPaymentRequest = - (): Codec<AcceptPeerPushPaymentRequest> => - buildCodecForObject<AcceptPeerPushPaymentRequest>() + (): Codec<ConfirmPeerPushCreditRequest> => + buildCodecForObject<ConfirmPeerPushCreditRequest>() .property("peerPushPaymentIncomingId", codecForString()) - .build("AcceptPeerPushPaymentRequest"); + .build("ConfirmPeerPushCreditRequest"); -export interface AcceptPeerPullPaymentRequest { +export interface ConfirmPeerPullDebitRequest { /** * Transparent identifier of the incoming peer pull payment. */ @@ -2162,40 +2162,40 @@ export const codecForApplyDevExperiment = .build("ApplyDevExperimentRequest"); export const codecForAcceptPeerPullPaymentRequest = - (): Codec<AcceptPeerPullPaymentRequest> => - buildCodecForObject<AcceptPeerPullPaymentRequest>() + (): Codec<ConfirmPeerPullDebitRequest> => + buildCodecForObject<ConfirmPeerPullDebitRequest>() .property("peerPullPaymentIncomingId", codecForString()) - .build("AcceptPeerPllPaymentRequest"); + .build("ConfirmPeerPullDebitRequest"); -export interface PreparePeerPullPaymentRequest { +export interface CheckPeerPullCreditRequest { exchangeBaseUrl?: string; amount: AmountString; } export const codecForPreparePeerPullPaymentRequest = - (): Codec<PreparePeerPullPaymentRequest> => - buildCodecForObject<PreparePeerPullPaymentRequest>() + (): Codec<CheckPeerPullCreditRequest> => + buildCodecForObject<CheckPeerPullCreditRequest>() .property("amount", codecForAmountString()) .property("exchangeBaseUrl", codecOptional(codecForString())) - .build("PreparePeerPullPaymentRequest"); + .build("CheckPeerPullCreditRequest"); -export interface PreparePeerPullPaymentResponse { +export interface CheckPeerPullCreditResponse { exchangeBaseUrl: string; amountRaw: AmountString; amountEffective: AmountString; } -export interface InitiatePeerPullPaymentRequest { +export interface InitiatePeerPullCreditRequest { exchangeBaseUrl?: string; partialContractTerms: PeerContractTerms; } export const codecForInitiatePeerPullPaymentRequest = - (): Codec<InitiatePeerPullPaymentRequest> => - buildCodecForObject<InitiatePeerPullPaymentRequest>() + (): Codec<InitiatePeerPullCreditRequest> => + buildCodecForObject<InitiatePeerPullCreditRequest>() .property("partialContractTerms", codecForPeerContractTerms()) .property("exchangeBaseUrl", codecOptional(codecForString())) - .build("InitiatePeerPullPaymentRequest"); + .build("InitiatePeerPullCreditRequest"); -export interface InitiatePeerPullPaymentResponse { +export interface InitiatePeerPullCreditResponse { /** * Taler URI for the other party to make the payment * that was requested. |