import type { PaymentTransactions } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type ModifyTransactionInput = { contractId: string ptId: string payment_transaction: { amount: number } } const modifyPaymentTransaction = (http: HttpClient) => ({ query: ( input: ModifyTransactionInput, ): Promise> => { return http.put( `v3/admin/contracts/${input.contractId}/payment_transactions/${input.ptId}`, input.payment_transaction, ) }, }) export default modifyPaymentTransaction