'use strict';
import { changeCurrentUserDefaultPaymentMethod, getCurrentDefaultPaymentMethod } from '../../payments/payments/payments.js';
import { parseJsonBodyFromRequest } from '../../../../fd-toolbox/lib/utils.js';

var __defProp=Object['defineProperty'],__name=(_0x3ebbb9,_0x4a4b0b)=>__defProp(_0x3ebbb9,'name',{'value':_0x4a4b0b,'configurable':!![]});async function paymentMethodPutRoute(_0x353941){const {paymentMethodId:_0x5b99b9}=await parseJsonBodyFromRequest(_0x353941);return changeCurrentUserDefaultPaymentMethod(_0x5b99b9);}__name(paymentMethodPutRoute,'paymentMethodPutRoute');async function paymentMethodGetRoute(){return getCurrentDefaultPaymentMethod();}__name(paymentMethodGetRoute,'paymentMethodGetRoute');

export { paymentMethodGetRoute, paymentMethodPutRoute };
