import { CrudClient } from "../infra/crud-client"
import type { ApiClientOptions } from "../infra/client"
import type { ApiPath } from "../infra/types"

export const PAYMENT_RECEIVED_ROUTES = {
    INDEX: "/api/payment-recieved",
    BY_ID: "/api/payment-recieved/{id}",
} as const satisfies Record<string, ApiPath>

export class PaymentReceivedClient extends CrudClient<
    typeof PAYMENT_RECEIVED_ROUTES.INDEX,
    typeof PAYMENT_RECEIVED_ROUTES.BY_ID
> {
    constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
        super(baseUrl, defaultOptions, PAYMENT_RECEIVED_ROUTES.INDEX, PAYMENT_RECEIVED_ROUTES.BY_ID)
    }
}
