mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
doc: update openapi (#453)
Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in> Co-authored-by: dracarys18 <karthikey.hegde@juspay.in> Co-authored-by: bernard eugine <bernard.eugine@bernard.eugine-MacBookPro> Co-authored-by: Abhishek Marrivagu <abhi.codes10@gmail.com>
This commit is contained in:
@ -198,14 +198,14 @@ pub async fn merchant_account_update(
|
||||
pub async fn merchant_account_delete(
|
||||
db: &dyn StorageInterface,
|
||||
merchant_id: String,
|
||||
) -> RouterResponse<api::DeleteResponse> {
|
||||
) -> RouterResponse<api::DeleteMerchantAccountResponse> {
|
||||
let is_deleted = db
|
||||
.delete_merchant_account_by_merchant_id(&merchant_id)
|
||||
.await
|
||||
.map_err(|error| {
|
||||
error.to_not_found_response(errors::ApiErrorResponse::MerchantAccountNotFound)
|
||||
})?;
|
||||
let response = api::DeleteResponse {
|
||||
let response = api::DeleteMerchantAccountResponse {
|
||||
merchant_id,
|
||||
deleted: is_deleted,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user