import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../wayfinder'
import payments from './payments'
import exportMethod from './export'
/**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/financing',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
    const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: index.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\FinancingController::index
 * @see app/Http/Controllers/FinancingController.php:37
 * @route '/financing'
 */
        indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    index.form = indexForm
/**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

create.definition = {
    methods: ["get","head"],
    url: '/financing/create',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\FinancingController::create
 * @see app/Http/Controllers/FinancingController.php:69
 * @route '/financing/create'
 */
        createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    create.form = createForm
/**
* @see \App\Http\Controllers\FinancingController::store
 * @see app/Http/Controllers/FinancingController.php:82
 * @route '/financing'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/financing',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\FinancingController::store
 * @see app/Http/Controllers/FinancingController.php:82
 * @route '/financing'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::store
 * @see app/Http/Controllers/FinancingController.php:82
 * @route '/financing'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\FinancingController::store
 * @see app/Http/Controllers/FinancingController.php:82
 * @route '/financing'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\FinancingController::store
 * @see app/Http/Controllers/FinancingController.php:82
 * @route '/financing'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
export const show = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/financing/{financing}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
show.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return show.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
show.get = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
show.head = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
    const showForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
        showForm.get = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\FinancingController::show
 * @see app/Http/Controllers/FinancingController.php:104
 * @route '/financing/{financing}'
 */
        showForm.head = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    show.form = showForm
/**
* @see \App\Http\Controllers\FinancingController::approve
 * @see app/Http/Controllers/FinancingController.php:118
 * @route '/financing/{financing}/approve'
 */
export const approve = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approve.url(args, options),
    method: 'post',
})

approve.definition = {
    methods: ["post"],
    url: '/financing/{financing}/approve',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\FinancingController::approve
 * @see app/Http/Controllers/FinancingController.php:118
 * @route '/financing/{financing}/approve'
 */
approve.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return approve.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::approve
 * @see app/Http/Controllers/FinancingController.php:118
 * @route '/financing/{financing}/approve'
 */
approve.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: approve.url(args, options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\FinancingController::approve
 * @see app/Http/Controllers/FinancingController.php:118
 * @route '/financing/{financing}/approve'
 */
    const approveForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: approve.url(args, options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\FinancingController::approve
 * @see app/Http/Controllers/FinancingController.php:118
 * @route '/financing/{financing}/approve'
 */
        approveForm.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: approve.url(args, options),
            method: 'post',
        })
    
    approve.form = approveForm
/**
* @see \App\Http\Controllers\FinancingController::reject
 * @see app/Http/Controllers/FinancingController.php:135
 * @route '/financing/{financing}/reject'
 */
export const reject = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reject.url(args, options),
    method: 'post',
})

reject.definition = {
    methods: ["post"],
    url: '/financing/{financing}/reject',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\FinancingController::reject
 * @see app/Http/Controllers/FinancingController.php:135
 * @route '/financing/{financing}/reject'
 */
reject.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return reject.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::reject
 * @see app/Http/Controllers/FinancingController.php:135
 * @route '/financing/{financing}/reject'
 */
reject.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reject.url(args, options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\FinancingController::reject
 * @see app/Http/Controllers/FinancingController.php:135
 * @route '/financing/{financing}/reject'
 */
    const rejectForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: reject.url(args, options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\FinancingController::reject
 * @see app/Http/Controllers/FinancingController.php:135
 * @route '/financing/{financing}/reject'
 */
        rejectForm.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: reject.url(args, options),
            method: 'post',
        })
    
    reject.form = rejectForm
/**
* @see \App\Http\Controllers\FinancingController::disburse
 * @see app/Http/Controllers/FinancingController.php:153
 * @route '/financing/{financing}/disburse'
 */
export const disburse = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: disburse.url(args, options),
    method: 'post',
})

disburse.definition = {
    methods: ["post"],
    url: '/financing/{financing}/disburse',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\FinancingController::disburse
 * @see app/Http/Controllers/FinancingController.php:153
 * @route '/financing/{financing}/disburse'
 */
disburse.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return disburse.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::disburse
 * @see app/Http/Controllers/FinancingController.php:153
 * @route '/financing/{financing}/disburse'
 */
disburse.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: disburse.url(args, options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\FinancingController::disburse
 * @see app/Http/Controllers/FinancingController.php:153
 * @route '/financing/{financing}/disburse'
 */
    const disburseForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: disburse.url(args, options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\FinancingController::disburse
 * @see app/Http/Controllers/FinancingController.php:153
 * @route '/financing/{financing}/disburse'
 */
        disburseForm.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: disburse.url(args, options),
            method: 'post',
        })
    
    disburse.form = disburseForm
/**
* @see \App\Http\Controllers\FinancingController::reassign
 * @see app/Http/Controllers/FinancingController.php:248
 * @route '/financing/{financing}/reassign'
 */
export const reassign = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reassign.url(args, options),
    method: 'post',
})

reassign.definition = {
    methods: ["post"],
    url: '/financing/{financing}/reassign',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\FinancingController::reassign
 * @see app/Http/Controllers/FinancingController.php:248
 * @route '/financing/{financing}/reassign'
 */
reassign.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return reassign.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::reassign
 * @see app/Http/Controllers/FinancingController.php:248
 * @route '/financing/{financing}/reassign'
 */
reassign.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reassign.url(args, options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\FinancingController::reassign
 * @see app/Http/Controllers/FinancingController.php:248
 * @route '/financing/{financing}/reassign'
 */
    const reassignForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: reassign.url(args, options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\FinancingController::reassign
 * @see app/Http/Controllers/FinancingController.php:248
 * @route '/financing/{financing}/reassign'
 */
        reassignForm.post = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: reassign.url(args, options),
            method: 'post',
        })
    
    reassign.form = reassignForm
/**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
export const installments = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: installments.url(args, options),
    method: 'get',
})

installments.definition = {
    methods: ["get","head"],
    url: '/financing/{financing}/installments',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
installments.url = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { financing: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { financing: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    financing: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        financing: typeof args.financing === 'object'
                ? args.financing.id
                : args.financing,
                }

    return installments.definition.url
            .replace('{financing}', parsedArgs.financing.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
installments.get = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: installments.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
installments.head = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: installments.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
    const installmentsForm = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: installments.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
        installmentsForm.get = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: installments.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\FinancingController::installments
 * @see app/Http/Controllers/FinancingController.php:196
 * @route '/financing/{financing}/installments'
 */
        installmentsForm.head = (args: { financing: string | number | { id: string | number } } | [financing: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: installments.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    installments.form = installmentsForm
const financing = {
    index: Object.assign(index, index),
create: Object.assign(create, create),
store: Object.assign(store, store),
show: Object.assign(show, show),
approve: Object.assign(approve, approve),
reject: Object.assign(reject, reject),
disburse: Object.assign(disburse, disburse),
payments: Object.assign(payments, payments),
reassign: Object.assign(reassign, reassign),
installments: Object.assign(installments, installments),
export: Object.assign(exportMethod, exportMethod),
}

export default financing