mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 03:13:56 +08:00
fix clippy
This commit is contained in:
@ -2692,7 +2692,7 @@
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Get the Payment Method Balance",
|
||||
"description": "Apply the Payment Method Data",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
||||
@ -3150,17 +3150,20 @@ pub enum GiftCardData {
|
||||
BhnCardNetwork(BHNGiftCardDetails),
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum BalanceCheckPaymentMethodData {
|
||||
GiftCard(GiftCardData),
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct ApplyPaymentMethodDataRequest {
|
||||
pub payment_methods: Vec<BalanceCheckPaymentMethodData>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct ApplyPaymentMethodDataResponse {
|
||||
pub remaining_amount: MinorUnit,
|
||||
@ -3168,6 +3171,7 @@ pub struct ApplyPaymentMethodDataResponse {
|
||||
pub surcharge_details: Option<Vec<ApplyPaymentMethodDataSurchargeResponseItem>>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct ApplyPaymentMethodDataSurchargeResponseItem {
|
||||
#[schema(value_type = PaymentMethod)]
|
||||
|
||||
@ -1333,7 +1333,7 @@ pub fn payment_check_gift_card_balance() {}
|
||||
content = ApplyPaymentMethodDataRequest,
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Get the Payment Method Balance", body = ApplyPaymentMethodDataResponse),
|
||||
(status = 200, description = "Apply the Payment Method Data", body = ApplyPaymentMethodDataResponse),
|
||||
),
|
||||
tag = "Payments",
|
||||
operation_id = "Apply Payment Method Data",
|
||||
|
||||
Reference in New Issue
Block a user