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