import { ApiCall, ApiResponse, BaseAPI } from './api-manager';
export class TransactionAPI extends BaseAPI {
// Explicitly add the index signature to satisfy BaseAPI's requirements
static readonly [key: string]:
| ApiCall<unknown>
| { [subKey: string]: ApiCall<unknown> }
| undefined
| (() => string);
public static readonly CREATE: ApiCall<Transaction> = {
method: 'POST',
endpoint: 'transaction',
response: {} as ApiResponse<Transaction>, // Placeholder for response
};
public static readonly READ: ApiCall<Transaction> = {
method: 'GET',
endpoint: 'transaction',
response: {} as ApiResponse<Transaction>,
};
public static readonly UPDATE = {
TRANSACTION: {
method: 'PUT',
endpoint: 'transaction',
response: {} as ApiResponse<Transaction>,
},
PAYMENTPARTY: {
method: 'PUT',