import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../wayfinder'
/**
 * @see routes/web.php:21
 * @route '/api/payment/fee-calculator'
 */
export const feeCalculator = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: feeCalculator.url(options),
    method: 'post',
})

feeCalculator.definition = {
    methods: ["post"],
    url: '/api/payment/fee-calculator',
} satisfies RouteDefinition<["post"]>

/**
 * @see routes/web.php:21
 * @route '/api/payment/fee-calculator'
 */
feeCalculator.url = (options?: RouteQueryOptions) => {
    return feeCalculator.definition.url + queryParams(options)
}

/**
 * @see routes/web.php:21
 * @route '/api/payment/fee-calculator'
 */
feeCalculator.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: feeCalculator.url(options),
    method: 'post',
})

    /**
 * @see routes/web.php:21
 * @route '/api/payment/fee-calculator'
 */
    const feeCalculatorForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: feeCalculator.url(options),
        method: 'post',
    })

            /**
 * @see routes/web.php:21
 * @route '/api/payment/fee-calculator'
 */
        feeCalculatorForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: feeCalculator.url(options),
            method: 'post',
        })
    
    feeCalculator.form = feeCalculatorForm
const payment = {
    feeCalculator: Object.assign(feeCalculator, feeCalculator),
}

export default payment