refactor: introduce a domain type for profile ID (#5687)

This commit is contained in:
Sanchith Hegde
2024-08-27 13:31:01 +05:30
committed by GitHub
parent fac8e7916f
commit b63d723b8b
118 changed files with 707 additions and 547 deletions

View File

@ -156,7 +156,8 @@ pub struct RefundResponse {
#[schema(example = "stripe")]
pub connector: String,
/// The id of business profile for this refund
pub profile_id: Option<String>,
#[schema(value_type = Option<String>)]
pub profile_id: Option<common_utils::id_type::ProfileId>,
/// The merchant_connector_id of the processor through which this payment went through
pub merchant_connector_id: Option<String>,
/// Charge specific fields for controlling the revert of funds from either platform or connected account
@ -171,7 +172,8 @@ pub struct RefundListRequest {
/// The identifier for the refund
pub refund_id: Option<String>,
/// The identifier for business profile
pub profile_id: Option<String>,
#[schema(value_type = Option<String>)]
pub profile_id: Option<common_utils::id_type::ProfileId>,
/// Limit on the number of objects to return
pub limit: Option<i64>,
/// The starting point within a list of objects