import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Wp\CouponsSyncController::__invoke
* @see app/Http/Controllers/Wp/CouponsSyncController.php:32
* @route '/api/v1/wp/coupons/sync'
*/
const CouponsSyncController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: CouponsSyncController.url(options),
    method: 'post',
})

CouponsSyncController.definition = {
    methods: ["post"],
    url: '/api/v1/wp/coupons/sync',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Wp\CouponsSyncController::__invoke
* @see app/Http/Controllers/Wp/CouponsSyncController.php:32
* @route '/api/v1/wp/coupons/sync'
*/
CouponsSyncController.url = (options?: RouteQueryOptions) => {
    return CouponsSyncController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Wp\CouponsSyncController::__invoke
* @see app/Http/Controllers/Wp/CouponsSyncController.php:32
* @route '/api/v1/wp/coupons/sync'
*/
CouponsSyncController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: CouponsSyncController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\CouponsSyncController::__invoke
* @see app/Http/Controllers/Wp/CouponsSyncController.php:32
* @route '/api/v1/wp/coupons/sync'
*/
const CouponsSyncControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: CouponsSyncController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\CouponsSyncController::__invoke
* @see app/Http/Controllers/Wp/CouponsSyncController.php:32
* @route '/api/v1/wp/coupons/sync'
*/
CouponsSyncControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: CouponsSyncController.url(options),
    method: 'post',
})

CouponsSyncController.form = CouponsSyncControllerForm

export default CouponsSyncController