mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
feat(refunds_v2): Add Refunds Retrieve and Refunds Sync Core flow (#7835)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -148,6 +148,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
|
||||
//Routes for refunds
|
||||
routes::refunds::refunds_create,
|
||||
routes::refunds::refunds_retrieve,
|
||||
|
||||
// Routes for Revenue Recovery flow under Process Tracker
|
||||
routes::revenue_recovery::revenue_recovery_pt_retrieve_api
|
||||
|
||||
@ -64,6 +64,7 @@ pub async fn refunds_create() {}
|
||||
operation_id = "Retrieve a Refund",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
#[cfg(feature = "v1")]
|
||||
pub async fn refunds_retrieve() {}
|
||||
|
||||
/// Refunds - Retrieve (POST)
|
||||
@ -212,3 +213,23 @@ pub async fn refunds_filter_list() {}
|
||||
)]
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn refunds_create() {}
|
||||
|
||||
/// Refunds - Retrieve
|
||||
///
|
||||
/// Retrieves a Refund. This may be used to get the status of a previously initiated refund
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/v2/refunds/{id}",
|
||||
params(
|
||||
("id" = String, Path, description = "The identifier for refund")
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Refund retrieved", body = RefundResponse),
|
||||
(status = 404, description = "Refund does not exist in our records")
|
||||
),
|
||||
tag = "Refunds",
|
||||
operation_id = "Retrieve a Refund",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn refunds_retrieve() {}
|
||||
|
||||
Reference in New Issue
Block a user