mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(router): add profile id and extra filters in lists (#2379)
This commit is contained in:
@ -104,6 +104,8 @@ pub struct DisputeEvidenceBlock {
|
||||
pub struct DisputeListConstraints {
|
||||
/// limit on the number of objects to return
|
||||
pub limit: Option<i64>,
|
||||
/// The identifier for business profile
|
||||
pub profile_id: Option<String>,
|
||||
/// status of the dispute
|
||||
pub dispute_status: Option<DisputeStatus>,
|
||||
/// stage of the dispute
|
||||
|
||||
@ -1999,10 +1999,13 @@ pub struct PaymentListResponseV2 {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct PaymentListFilterConstraints {
|
||||
/// The identifier for payment
|
||||
pub payment_id: Option<String>,
|
||||
/// The identifier for business profile
|
||||
pub profile_id: Option<String>,
|
||||
/// The identifier for customer
|
||||
pub customer_id: Option<String>,
|
||||
/// The limit on the number of objects. The default limit is 10 and max limit is 20
|
||||
#[serde(default = "default_limit")]
|
||||
pub limit: u32,
|
||||
@ -2015,10 +2018,14 @@ pub struct PaymentListFilterConstraints {
|
||||
pub connector: Option<Vec<api_enums::Connector>>,
|
||||
/// The list of currencies to filter payments list
|
||||
pub currency: Option<Vec<enums::Currency>>,
|
||||
/// The list of payment statuses to filter payments list
|
||||
/// The list of payment status to filter payments list
|
||||
pub status: Option<Vec<enums::IntentStatus>>,
|
||||
/// The list of payment methods to filter payments list
|
||||
pub payment_methods: Option<Vec<enums::PaymentMethod>>,
|
||||
pub payment_method: Option<Vec<enums::PaymentMethod>>,
|
||||
/// The list of payment method types to filter payments list
|
||||
pub payment_method_type: Option<Vec<enums::PaymentMethodType>>,
|
||||
/// The list of authentication types to filter payments list
|
||||
pub authentication_type: Option<Vec<enums::AuthenticationType>>,
|
||||
}
|
||||
#[derive(Clone, Debug, serde::Serialize)]
|
||||
pub struct PaymentListFilters {
|
||||
@ -2030,6 +2037,10 @@ pub struct PaymentListFilters {
|
||||
pub status: Vec<enums::IntentStatus>,
|
||||
/// The list of available payment method filters
|
||||
pub payment_method: Vec<enums::PaymentMethod>,
|
||||
/// The list of available payment method types
|
||||
pub payment_method_type: Vec<enums::PaymentMethodType>,
|
||||
/// The list of available authentication types
|
||||
pub authentication_type: Vec<enums::AuthenticationType>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash)]
|
||||
|
||||
@ -132,6 +132,8 @@ pub struct RefundListRequest {
|
||||
pub payment_id: Option<String>,
|
||||
/// The identifier for the refund
|
||||
pub refund_id: Option<String>,
|
||||
/// The identifier for business profile
|
||||
pub profile_id: Option<String>,
|
||||
/// Limit on the number of objects to return
|
||||
pub limit: Option<i64>,
|
||||
/// The starting point within a list of objects
|
||||
|
||||
Reference in New Issue
Block a user