"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes a wallet",operationId:"deleteWallet",tags:["Admin","Wallets"],parameters:(0,query_1.deleteRecordParams)("wallet"),responses:(0,query_1.deleteRecordResponses)("Wallet"),requiresAuth:!0,permission:"delete.withdraw.method",logModule:"ADMIN_FIN",logTitle:"Delete Withdraw Method"};exports.default=async e=>{const{params:t,query:l,ctx:r}=e;null==r||r.step("Deleting withdraw method");const s=await(0,query_1.handleSingleDelete)({model:"withdrawMethod",id:t.id,query:l});null==r||r.success("Withdraw method deleted successfully");return s};