feat(authentication): create api for update profile acquirer (#8307)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sahkal Poddar
2025-06-12 17:39:15 +05:30
committed by GitHub
parent 261818f215
commit d33e344f82
14 changed files with 417 additions and 24 deletions

View File

@ -205,6 +205,7 @@ Never share your secret api keys. Keep them guarded and secure.
// Routes for profile acquirer account
routes::profile_acquirer::profile_acquirer_create,
routes::profile_acquirer::profile_acquirer_update,
// Routes for 3DS Decision Rule
routes::three_ds_decision_rule::three_ds_decision_rule_execute,
@ -781,6 +782,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::open_router::DecisionEngineSRSubLevelInputConfig,
api_models::open_router::DecisionEngineEliminationData,
api_models::profile_acquirer::ProfileAcquirerCreate,
api_models::profile_acquirer::ProfileAcquirerUpdate,
api_models::profile_acquirer::ProfileAcquirerResponse,
euclid::frontend::dir::enums::CustomerDevicePlatform,
euclid::frontend::dir::enums::CustomerDeviceType,

View File

@ -16,3 +16,26 @@
)]
pub async fn profile_acquirer_create() { /**/
}
#[cfg(feature = "v1")]
/// Profile Acquirer - Update
///
/// Update a Profile Acquirer for accessing our APIs from your servers.
#[utoipa::path(
post,
path = "/profile_acquirers/{profile_id}/{profile_acquirer_id}",
params (
("profile_id" = String, Path, description = "The unique identifier for the Profile"),
("profile_acquirer_id" = String, Path, description = "The unique identifier for the Profile Acquirer")
),
request_body = ProfileAcquirerUpdate,
responses(
(status = 200, description = "Profile Acquirer updated", body = ProfileAcquirerResponse),
(status = 400, description = "Invalid data")
),
tag = "Profile Acquirer",
operation_id = "Update a Profile Acquirer",
security(("api_key" = []))
)]
pub async fn profile_acquirer_update() { /**/
}