mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(refunds_v2): Add refunds list flow in v2 apis (#7966)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -149,6 +149,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
//Routes for refunds
|
||||
routes::refunds::refunds_create,
|
||||
routes::refunds::refunds_retrieve,
|
||||
routes::refunds::refunds_list,
|
||||
|
||||
// Routes for Revenue Recovery flow under Process Tracker
|
||||
routes::revenue_recovery::revenue_recovery_pt_retrieve_api
|
||||
|
||||
@ -128,6 +128,7 @@ pub async fn refunds_update() {}
|
||||
operation_id = "List all Refunds",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
#[cfg(feature = "v1")]
|
||||
pub fn refunds_list() {}
|
||||
|
||||
/// Refunds - List For the Given profiles
|
||||
@ -233,3 +234,20 @@ pub async fn refunds_create() {}
|
||||
)]
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn refunds_retrieve() {}
|
||||
|
||||
/// Refunds - List
|
||||
///
|
||||
/// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/v2/refunds/list",
|
||||
request_body=RefundListRequest,
|
||||
responses(
|
||||
(status = 200, description = "List of refunds", body = RefundListResponse),
|
||||
),
|
||||
tag = "Refunds",
|
||||
operation_id = "List all Refunds",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
#[cfg(feature = "v2")]
|
||||
pub fn refunds_list() {}
|
||||
|
||||
Reference in New Issue
Block a user