mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor: Add routing_approach other variant to handle unknown data (#8754)
This commit is contained in:
@ -160,7 +160,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -122,7 +122,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -117,7 +117,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -127,7 +127,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -108,7 +108,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -122,7 +122,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -115,7 +115,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -112,7 +112,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -123,7 +123,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -118,7 +118,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -128,7 +128,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -183,7 +183,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -109,7 +109,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -140,7 +140,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -116,7 +116,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -119,7 +119,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -112,7 +112,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -112,7 +112,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
@ -111,7 +111,7 @@ where
|
||||
i.card_last_4.clone(),
|
||||
i.card_issuer.clone(),
|
||||
i.error_reason.clone(),
|
||||
i.routing_approach.as_ref().map(|i| i.0),
|
||||
i.routing_approach.as_ref().map(|i| i.0.clone()),
|
||||
TimeRange {
|
||||
start_time: match (granularity, i.start_bucket) {
|
||||
(Some(g), Some(st)) => g.clip_to_start(st)?,
|
||||
|
||||
Reference in New Issue
Block a user