mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(list): remove enabled payment methods from list customer payment … (#689)
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
use std::collections::HashSet;
|
||||
|
||||
use common_utils::pii;
|
||||
use serde::de;
|
||||
use utoipa::ToSchema;
|
||||
@ -443,21 +441,6 @@ impl serde::Serialize for ListPaymentMethod {
|
||||
|
||||
#[derive(Debug, serde::Serialize, ToSchema)]
|
||||
pub struct ListCustomerPaymentMethodsResponse {
|
||||
/// List of enabled payment methods for a customer
|
||||
#[schema(value_type = Vec<ListPaymentMethod>,example = json!(
|
||||
[
|
||||
{
|
||||
"payment_method": "wallet",
|
||||
"payment_experience": null,
|
||||
"payment_method_issuers": [
|
||||
"labore magna ipsum",
|
||||
"aute"
|
||||
]
|
||||
}
|
||||
]
|
||||
))]
|
||||
pub enabled_payment_methods: HashSet<ListPaymentMethod>,
|
||||
|
||||
/// List of payment methods for customer
|
||||
pub customer_payment_methods: Vec<CustomerPaymentMethod>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user