refactor(router): restricted list payment method Customer to api-key based (#3100)

This commit is contained in:
Sahkal Poddar
2024-01-11 13:58:56 +05:30
committed by GitHub
parent 5a5400cf5b
commit 9eaebe8db3
3 changed files with 2 additions and 30 deletions

View File

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