mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(router): restricted list payment method Customer to api-key based (#3100)
This commit is contained in:
@ -13,9 +13,7 @@ use utoipa::{schema, ToSchema};
|
||||
#[cfg(feature = "payouts")]
|
||||
use crate::payouts;
|
||||
use crate::{
|
||||
admin,
|
||||
customers::CustomerId,
|
||||
enums as api_enums,
|
||||
admin, enums as api_enums,
|
||||
payments::{self, BankCodeResponse},
|
||||
};
|
||||
|
||||
@ -459,8 +457,6 @@ pub struct RequestPaymentMethodTypes {
|
||||
#[derive(Debug, Clone, serde::Serialize, Default, ToSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct PaymentMethodListRequest {
|
||||
#[serde(skip_deserializing)]
|
||||
pub customer_id: Option<CustomerId>,
|
||||
/// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
|
||||
#[schema(max_length = 30, min_length = 30, example = "secret_k2uj3he2893ein2d")]
|
||||
pub client_secret: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user