mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
feat(core): Add Network Details in Payments Response (#9273)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -240,6 +240,7 @@ impl PaymentAttemptInterface for MockDb {
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: payment_attempt.network_transaction_id,
|
||||
is_overcapture_enabled: None,
|
||||
network_details: payment_attempt.network_details,
|
||||
};
|
||||
payment_attempts.push(payment_attempt.clone());
|
||||
Ok(payment_attempt)
|
||||
|
||||
@ -694,6 +694,7 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: payment_attempt.network_transaction_id.clone(),
|
||||
is_overcapture_enabled: None,
|
||||
network_details: payment_attempt.network_details.clone(),
|
||||
};
|
||||
|
||||
let field = format!("pa_{}", created_attempt.attempt_id);
|
||||
@ -1904,6 +1905,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
connector_request_reference_id: self.connector_request_reference_id,
|
||||
network_transaction_id: self.network_transaction_id,
|
||||
is_overcapture_enabled: self.is_overcapture_enabled,
|
||||
network_details: self.network_details,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1999,6 +2001,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
debit_routing_savings: None,
|
||||
network_transaction_id: storage_model.network_transaction_id,
|
||||
is_overcapture_enabled: storage_model.is_overcapture_enabled,
|
||||
network_details: storage_model.network_details,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2091,6 +2094,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
routing_approach: self.routing_approach,
|
||||
connector_request_reference_id: self.connector_request_reference_id,
|
||||
network_transaction_id: self.network_transaction_id,
|
||||
network_details: self.network_details,
|
||||
}
|
||||
}
|
||||
|
||||
@ -2176,6 +2180,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
routing_approach: storage_model.routing_approach,
|
||||
connector_request_reference_id: storage_model.connector_request_reference_id,
|
||||
network_transaction_id: storage_model.network_transaction_id,
|
||||
network_details: storage_model.network_details,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user