Skip to content

Commit

Permalink
fix: openapi v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed Jan 3, 2025
1 parent 1f20a95 commit 64808eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/api_models/src/payment_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,12 +1246,12 @@ pub struct ResponsePaymentMethodTypes {
#[derive(Debug, Clone, serde::Serialize, ToSchema, PartialEq)]
#[serde(untagged)] // Untagged used for serialization only
pub enum PaymentMethodSubtypeSpecificData {
#[schema(title = "card")]
Card {
card_networks: Vec<CardNetworkTypes>,
},
Bank {
bank_names: Vec<BankCodeResponse>,
},
#[schema(title = "bank")]
Bank { bank_names: Vec<BankCodeResponse> },
}

#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
Expand Down
2 changes: 1 addition & 1 deletion crates/openapi/src/routes/payment_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ pub async fn list_customer_payment_method_api() {}

/// Payment Methods - Payment Methods List
///
/// List the payment methods eligible for a payment. This endpoint also returns the saved payment methods for the customer when the customer_id is passed when creating the payment
/// List the payment methods eligible for a payment. This endpoint also returns the saved payment methods for the customer.
#[cfg(feature = "v2")]
#[utoipa::path(
get,
Expand Down

0 comments on commit 64808eb

Please sign in to comment.