mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix(router): fix retry_count and add validation for process_tracker (#7614)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local>
This commit is contained in:
@ -268,7 +268,7 @@ impl ApiModelToDieselModelConvertor<ApiRevenueRecoveryMetadata> for PaymentReven
|
||||
fn convert_from(from: ApiRevenueRecoveryMetadata) -> Self {
|
||||
Self {
|
||||
total_retry_count: from.total_retry_count,
|
||||
payment_connector_transmission: from.payment_connector_transmission,
|
||||
payment_connector_transmission: from.payment_connector_transmission.unwrap_or_default(),
|
||||
billing_connector_id: from.billing_connector_id,
|
||||
active_attempt_payment_connector_id: from.active_attempt_payment_connector_id,
|
||||
billing_connector_payment_details: BillingConnectorPaymentDetails::convert_from(
|
||||
@ -283,7 +283,7 @@ impl ApiModelToDieselModelConvertor<ApiRevenueRecoveryMetadata> for PaymentReven
|
||||
fn convert_back(self) -> ApiRevenueRecoveryMetadata {
|
||||
ApiRevenueRecoveryMetadata {
|
||||
total_retry_count: self.total_retry_count,
|
||||
payment_connector_transmission: self.payment_connector_transmission,
|
||||
payment_connector_transmission: Some(self.payment_connector_transmission),
|
||||
billing_connector_id: self.billing_connector_id,
|
||||
active_attempt_payment_connector_id: self.active_attempt_payment_connector_id,
|
||||
billing_connector_payment_details: self
|
||||
|
||||
Reference in New Issue
Block a user