mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
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:
@ -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,
|
||||
|
||||
@ -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() { /* … */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user