refactor(refunds_v2): Change refunds v2 list request verb from GET to POST (#8289)

This commit is contained in:
Amey Wale
2025-06-11 18:56:10 +05:30
committed by GitHub
parent ee7bce0ff6
commit 6ea2e2a6f4
3 changed files with 3 additions and 3 deletions

View File

@ -3365,7 +3365,7 @@
} }
}, },
"/v2/refunds/list": { "/v2/refunds/list": {
"get": { "post": {
"tags": [ "tags": [
"Refunds" "Refunds"
], ],

View File

@ -272,7 +272,7 @@ pub async fn refunds_retrieve() {}
/// ///
/// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided /// To list the refunds associated with a payment_id or with the merchant, if payment_id is not provided
#[utoipa::path( #[utoipa::path(
get, post,
path = "/v2/refunds/list", path = "/v2/refunds/list",
request_body=RefundListRequest, request_body=RefundListRequest,
responses( responses(

View File

@ -1215,7 +1215,7 @@ impl Refunds {
#[cfg(feature = "olap")] #[cfg(feature = "olap")]
{ {
route = route =
route.service(web::resource("/list").route(web::get().to(refunds::refunds_list))); route.service(web::resource("/list").route(web::post().to(refunds::refunds_list)));
} }
#[cfg(feature = "oltp")] #[cfg(feature = "oltp")]
{ {