mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(payouts): implement list and filter APIs (#3651)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Kashif <mohammed.kashif@juspay.in>
This commit is contained in:
@ -163,6 +163,8 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
routes::payouts::payouts_update,
|
||||
routes::payouts::payouts_cancel,
|
||||
routes::payouts::payouts_fulfill,
|
||||
routes::payouts::payouts_list,
|
||||
routes::payouts::payouts_filter,
|
||||
|
||||
// Routes for api keys
|
||||
routes::api_keys::api_key_create,
|
||||
@ -406,7 +408,6 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payments::CustomerDetails,
|
||||
api_models::payments::GiftCardData,
|
||||
api_models::payments::GiftCardDetails,
|
||||
api_models::payouts::PayoutCreateRequest,
|
||||
api_models::payments::Address,
|
||||
api_models::payouts::Card,
|
||||
api_models::payouts::Wallet,
|
||||
@ -414,11 +415,16 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payouts::AchBankTransfer,
|
||||
api_models::payouts::BacsBankTransfer,
|
||||
api_models::payouts::SepaBankTransfer,
|
||||
api_models::payouts::PayoutRequest,
|
||||
api_models::payouts::PayoutAttemptResponse,
|
||||
api_models::payouts::PayoutActionRequest,
|
||||
api_models::payouts::PayoutCreateRequest,
|
||||
api_models::payouts::PayoutCreateResponse,
|
||||
api_models::payouts::PayoutListConstraints,
|
||||
api_models::payouts::PayoutListFilterConstraints,
|
||||
api_models::payouts::PayoutListResponse,
|
||||
api_models::payouts::PayoutRetrieveBody,
|
||||
api_models::payouts::PayoutRetrieveRequest,
|
||||
api_models::payouts::PayoutActionRequest,
|
||||
api_models::payouts::PayoutRequest,
|
||||
api_models::payouts::PayoutMethodData,
|
||||
api_models::payouts::Bank,
|
||||
api_models::enums::PayoutEntityType,
|
||||
|
||||
@ -83,3 +83,31 @@ pub async fn payouts_cancel() {}
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
pub async fn payouts_fulfill() {}
|
||||
|
||||
/// Payouts - List
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/payouts/list",
|
||||
responses(
|
||||
(status = 200, description = "Payouts listed", body = PayoutListResponse),
|
||||
(status = 404, description = "Payout not found")
|
||||
),
|
||||
tag = "Payouts",
|
||||
operation_id = "List payouts",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
pub async fn payouts_list() {}
|
||||
|
||||
/// Payouts - Filter
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/payouts/list",
|
||||
responses(
|
||||
(status = 200, description = "Payouts filtered", body = PayoutListResponse),
|
||||
(status = 404, description = "Payout not found")
|
||||
),
|
||||
tag = "Payouts",
|
||||
operation_id = "Filter payouts",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
pub async fn payouts_filter() {}
|
||||
|
||||
Reference in New Issue
Block a user