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": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Get the Payment Method Balance",
|
"description": "Apply the Payment Method Data",
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
|
|||||||
@ -3150,17 +3150,20 @@ pub enum GiftCardData {
|
|||||||
BhnCardNetwork(BHNGiftCardDetails),
|
BhnCardNetwork(BHNGiftCardDetails),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "v2")]
|
||||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum BalanceCheckPaymentMethodData {
|
pub enum BalanceCheckPaymentMethodData {
|
||||||
GiftCard(GiftCardData),
|
GiftCard(GiftCardData),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "v2")]
|
||||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||||
pub struct ApplyPaymentMethodDataRequest {
|
pub struct ApplyPaymentMethodDataRequest {
|
||||||
pub payment_methods: Vec<BalanceCheckPaymentMethodData>,
|
pub payment_methods: Vec<BalanceCheckPaymentMethodData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "v2")]
|
||||||
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
||||||
pub struct ApplyPaymentMethodDataResponse {
|
pub struct ApplyPaymentMethodDataResponse {
|
||||||
pub remaining_amount: MinorUnit,
|
pub remaining_amount: MinorUnit,
|
||||||
@ -3168,6 +3171,7 @@ pub struct ApplyPaymentMethodDataResponse {
|
|||||||
pub surcharge_details: Option<Vec<ApplyPaymentMethodDataSurchargeResponseItem>>,
|
pub surcharge_details: Option<Vec<ApplyPaymentMethodDataSurchargeResponseItem>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "v2")]
|
||||||
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
#[derive(Debug, serde::Serialize, Clone, ToSchema)]
|
||||||
pub struct ApplyPaymentMethodDataSurchargeResponseItem {
|
pub struct ApplyPaymentMethodDataSurchargeResponseItem {
|
||||||
#[schema(value_type = PaymentMethod)]
|
#[schema(value_type = PaymentMethod)]
|
||||||
|
|||||||
@ -1333,7 +1333,7 @@ pub fn payment_check_gift_card_balance() {}
|
|||||||
content = ApplyPaymentMethodDataRequest,
|
content = ApplyPaymentMethodDataRequest,
|
||||||
),
|
),
|
||||||
responses(
|
responses(
|
||||||
(status = 200, description = "Get the Payment Method Balance", body = ApplyPaymentMethodDataResponse),
|
(status = 200, description = "Apply the Payment Method Data", body = ApplyPaymentMethodDataResponse),
|
||||||
),
|
),
|
||||||
tag = "Payments",
|
tag = "Payments",
|
||||||
operation_id = "Apply Payment Method Data",
|
operation_id = "Apply Payment Method Data",
|
||||||
|
|||||||
Reference in New Issue
Block a user