fix(list): remove enabled payment methods from list customer payment … (#689)

This commit is contained in:
Nishant Joshi
2023-02-28 18:29:08 +05:30
committed by GitHub
parent d0c9dded8b
commit 5c29f37ab2
2 changed files with 3 additions and 46 deletions

View File

@ -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>,
}