mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(core): structure of split payments (#6706)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub use common_utils::types::{ChargeRefunds, MinorUnit};
|
||||
pub use common_utils::types::MinorUnit;
|
||||
use common_utils::{pii, types::TimeRange};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use time::PrimitiveDateTime;
|
||||
@ -57,8 +57,8 @@ pub struct RefundRequest {
|
||||
pub merchant_connector_details: Option<admin::MerchantConnectorDetailsWrap>,
|
||||
|
||||
/// Charge specific fields for controlling the revert of funds from either platform or connected account
|
||||
#[schema(value_type = Option<ChargeRefunds>)]
|
||||
pub charges: Option<ChargeRefunds>,
|
||||
#[schema(value_type = Option<SplitRefund>)]
|
||||
pub split_refunds: Option<common_types::refunds::SplitRefund>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -204,8 +204,8 @@ pub struct RefundResponse {
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
|
||||
/// Charge specific fields for controlling the revert of funds from either platform or connected account
|
||||
#[schema(value_type = Option<ChargeRefunds>)]
|
||||
pub charges: Option<ChargeRefunds>,
|
||||
#[schema(value_type = Option<SplitRefund>,)]
|
||||
pub split_refunds: Option<common_types::refunds::SplitRefund>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
|
||||
Reference in New Issue
Block a user