mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor: separate DB queries and HTML creation for payout links (#4967)
Signed-off-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-C02FC60MMD6M.local> Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Signed-off-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-G961M60MK7.local> Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-C02FC60MMD6M.local> Co-authored-by: Srujan chikke <chikke.srujan@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-G961M60MK7.local>
This commit is contained in:
@ -168,6 +168,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
routes::payouts::payouts_fulfill,
|
||||
routes::payouts::payouts_list,
|
||||
routes::payouts::payouts_filter,
|
||||
routes::payouts::payouts_confirm,
|
||||
|
||||
// Routes for api keys
|
||||
routes::api_keys::api_key_create,
|
||||
@ -185,6 +186,8 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
),
|
||||
components(schemas(
|
||||
common_utils::types::MinorUnit,
|
||||
common_utils::link_utils::GenericLinkUiConfig,
|
||||
common_utils::link_utils::EnabledPaymentMethod,
|
||||
api_models::refunds::RefundRequest,
|
||||
api_models::refunds::RefundType,
|
||||
api_models::refunds::RefundResponse,
|
||||
@ -197,6 +200,9 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::admin::MerchantConnectorResponse,
|
||||
api_models::admin::AuthenticationConnectorDetails,
|
||||
api_models::admin::ExtendedCardInfoConfig,
|
||||
api_models::admin::BusinessGenericLinkConfig,
|
||||
api_models::admin::BusinessCollectLinkConfig,
|
||||
api_models::admin::BusinessPayoutLinkConfig,
|
||||
api_models::customers::CustomerRequest,
|
||||
api_models::customers::CustomerDeleteResponse,
|
||||
api_models::payment_methods::PaymentMethodCreate,
|
||||
@ -431,6 +437,8 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payment_methods::SurchargeDetailsResponse,
|
||||
api_models::payment_methods::SurchargeResponse,
|
||||
api_models::payment_methods::SurchargePercentage,
|
||||
api_models::payment_methods::PaymentMethodCollectLinkRequest,
|
||||
api_models::payment_methods::PaymentMethodCollectLinkResponse,
|
||||
api_models::refunds::RefundListRequest,
|
||||
api_models::refunds::RefundListResponse,
|
||||
api_models::payments::TimeRange,
|
||||
@ -463,7 +471,9 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payouts::PayoutRetrieveBody,
|
||||
api_models::payouts::PayoutRetrieveRequest,
|
||||
api_models::payouts::PayoutMethodData,
|
||||
api_models::payouts::PayoutLinkResponse,
|
||||
api_models::payouts::Bank,
|
||||
api_models::payouts::PayoutCreatePayoutLinkConfig,
|
||||
api_models::enums::PayoutEntityType,
|
||||
api_models::enums::PayoutSendPriority,
|
||||
api_models::enums::PayoutStatus,
|
||||
@ -492,6 +502,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payments::PaymentLinkResponse,
|
||||
api_models::payments::RetrievePaymentLinkResponse,
|
||||
api_models::payments::PaymentLinkInitiateRequest,
|
||||
api_models::payouts::PayoutLinkInitiateRequest,
|
||||
api_models::payments::ExtendedCardInfoResponse,
|
||||
api_models::payments::GooglePayAssuranceDetails,
|
||||
api_models::routing::RoutingConfigRequest,
|
||||
|
||||
@ -111,3 +111,21 @@ pub async fn payouts_list() {}
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
pub async fn payouts_filter() {}
|
||||
|
||||
/// Payouts - Confirm
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/payouts/{payout_id}/confirm",
|
||||
params(
|
||||
("payout_id" = String, Path, description = "The identifier for payout]")
|
||||
),
|
||||
request_body=PayoutCreateRequest,
|
||||
responses(
|
||||
(status = 200, description = "Payout updated", body = PayoutCreateResponse),
|
||||
(status = 400, description = "Missing Mandatory fields")
|
||||
),
|
||||
tag = "Payouts",
|
||||
operation_id = "Confirm a Payout",
|
||||
security(("api_key" = []))
|
||||
)]
|
||||
pub async fn payouts_confirm() {}
|
||||
|
||||
Reference in New Issue
Block a user