"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes deposit methods by IDs",operationId:"bulkDeleteDepositMethods",tags:["Admin","Deposit Methods"],parameters:(0,query_1.commonBulkDeleteParams)("Deposit Methods"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of deposit method IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Deposit Methods"),requiresAuth:!0,permission:"delete.deposit.method",logModule:"ADMIN_FIN",logTitle:"Bulk delete deposit methods"};exports.default=async e=>{const{body:t,query:s,ctx:o}=e,{ids:d}=t;null==o||o.step(`Deleting ${d.length} deposit method(s)`);const r=await(0,query_1.handleBulkDelete)({model:"depositMethod",ids:d,query:s});null==o||o.success("Deposit methods deleted successfully");return r};