mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(ucs): Add profile ID to lineage tracking in Unified Connector Service (#9559)
This commit is contained in:
@ -167,9 +167,9 @@ pub struct GrpcHeadersUcs {
|
||||
/// Type aliase for GrpcHeaders builder in initial stage
|
||||
pub type GrpcHeadersUcsBuilderInitial = GrpcHeadersUcsBuilder<((String,), (), (), ())>;
|
||||
/// Type aliase for GrpcHeaders builder in intermediate stage
|
||||
pub type GrpcHeadersUcsBuilderIntermediate = GrpcHeadersUcsBuilder<(
|
||||
pub type GrpcHeadersUcsBuilderFinal = GrpcHeadersUcsBuilder<(
|
||||
(String,),
|
||||
(),
|
||||
(LineageIds,),
|
||||
(Option<String>,),
|
||||
(Option<ucs_types::UcsReferenceId>,),
|
||||
)>;
|
||||
@ -178,11 +178,15 @@ pub type GrpcHeadersUcsBuilderIntermediate = GrpcHeadersUcsBuilder<(
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
pub struct LineageIds {
|
||||
merchant_id: id_type::MerchantId,
|
||||
profile_id: id_type::ProfileId,
|
||||
}
|
||||
impl LineageIds {
|
||||
/// constructor for LineageIds
|
||||
pub fn new(merchant_id: id_type::MerchantId) -> Self {
|
||||
Self { merchant_id }
|
||||
pub fn new(merchant_id: id_type::MerchantId, profile_id: id_type::ProfileId) -> Self {
|
||||
Self {
|
||||
merchant_id,
|
||||
profile_id,
|
||||
}
|
||||
}
|
||||
/// get url encoded string representation of LineageIds
|
||||
pub fn get_url_encoded_string(self) -> Result<String, serde_urlencoded::ser::Error> {
|
||||
|
||||
Reference in New Issue
Block a user