Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(core): Add network_transaction_link_id field for Mastercard TLID (#12260)

Ayush Anand6147d4d730ce
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 7bcb0329bc..bdbcc7dd05 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -25623,6 +25623,11 @@
"network_transaction_id": {
"type": "string",
"description": "The network transaction ID provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`."
+ },
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
}
}
},
@@ -25661,6 +25666,11 @@
"type": "string",
"description": "The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT)\nwhen `setup_future_usage` is set to `off_session`."
},
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
+ },
"eci": {
"type": "string",
"description": "ECI indicator of the card",
@@ -25760,6 +25770,11 @@
"network_transaction_id": {
"type": "string",
"description": "The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT)\nwhen `setup_future_usage` is set to `off_session`."
+ },
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
}
}
},
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index fa4259bb20..5c950a39b1 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -18709,6 +18709,11 @@
"network_transaction_id": {
"type": "string",
"description": "The network transaction ID provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`."
+ },
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
}
}
},
@@ -18747,6 +18752,11 @@
"type": "string",
"description": "The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT)\nwhen `setup_future_usage` is set to `off_session`."
},
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
+ },
"eci": {
"type": "string",
"description": "ECI indicator of the card",
@@ -18846,6 +18856,11 @@
"network_transaction_id": {
"type": "string",
"description": "The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT)\nwhen `setup_future_usage` is set to `off_session`."
+ },
+ "transaction_link_id": {
+ "type": "string",
+ "description": "The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),\nwhen `setup_future_usage` is set to `off_session`.",
+ "nullable": true
}
}
},
diff --git a/crates/api_models/src/mandates.rs b/crates/api_models/src/mandates.rs
index 3a6f2fc92d..3302262b5f 100644
--- a/crates/api_models/src/mandates.rs
+++ b/crates/api_models/src/mandates.rs
@@ -267,6 +267,12 @@ pub struct NetworkTransactionIdAndCardDetails {
#[schema(value_type = String)]
#[smithy(value_type = "String")]
pub network_transaction_id: Secret<String>,
+
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ #[schema(value_type = Option<String>)]
+ #[smithy(value_type = "Option<String>")]
+ pub transaction_link_id: Option<String>,
}
#[derive(
@@ -365,6 +371,12 @@ pub struct NetworkTransactionIdAndNetworkTokenDetails {
#[schema(value_type = String)]
#[smithy(value_type = "String")]
pub network_transaction_id: Secret<String>,
+
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ #[schema(value_type = Option<String>)]
+ #[smithy(value_type = "Option<String>")]
+ pub transaction_link_id: Option<String>,
}
impl RecurringDetails {
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index 854b827296..ceb2be972b 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -2408,14 +2408,26 @@ impl MandateIds {
#[derive(Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone)]
pub enum MandateReferenceId {
ConnectorMandateId(ConnectorMandateReferenceId), // mandate_id send by connector
- NetworkMandateId(String), // network_txns_id send by Issuer to connector, Used for PG agnostic mandate txns along with card data
+ NetworkMandateId(NetworkMandateIdRef), // network_txns_id send by Issuer to connector, Used for PG agnostic mandate txns along with card data
NetworkTokenWithNTI(NetworkTokenWithNTIRef), // network_txns_id send by Issuer to connector, Used for PG agnostic mandate txns along with network token data
CardWithLimitedData, // indicates the recurring transaction is done by card data only
}
+/// Scheme-level identifiers for PSP-agnostic MIT flows (raw card path).
+#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, Eq, PartialEq)]
+pub struct NetworkMandateIdRef {
+ pub network_transaction_id: String,
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ pub transaction_link_id: Option<String>,
+}
+
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, Eq, PartialEq)]
pub struct NetworkTokenWithNTIRef {
pub network_transaction_id: String,
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ pub transaction_link_id: Option<String>,
pub token_exp_month: Option<Secret<String>>,
pub token_exp_year: Option<Secret<String>>,
}
diff --git a/crates/common_types/src/payments.rs b/crates/common_types/src/payments.rs
index 9bbf7a7de4..f5e726a9ea 100644
--- a/crates/common_types/src/payments.rs
+++ b/crates/common_types/src/payments.rs
@@ -1252,6 +1252,12 @@ pub struct NetworkTransactionIdAndDecryptedWalletTokenDetails {
#[smithy(value_type = "String")]
pub network_transaction_id: Secret<String>,
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ #[schema(value_type = Option<String>)]
+ #[smithy(value_type = "Option<String>")]
+ pub transaction_link_id: Option<String>,
+
/// ECI indicator of the card
pub eci: Option<String>,
diff --git a/crates/diesel_models/src/payment_attempt.rs b/crates/diesel_models/src/payment_attempt.rs
index f4c1ca2b20..a051d5f3ba 100644
--- a/crates/diesel_models/src/payment_attempt.rs
+++ b/crates/diesel_models/src/payment_attempt.rs
@@ -169,6 +169,7 @@ pub struct PaymentAttempt {
pub retry_type: Option<storage_enums::RetryType>,
pub installment_data: Option<common_types::payments::InstallmentData>,
pub external_surcharge_details: Option<common_types::payments::ExternalSurchargeDetails>,
+ pub network_transaction_link_id: Option<String>,
#[diesel(deserialize_as = RequiredFromNullable<storage_enums::PaymentMethod>)]
pub payment_method_type_v2: storage_enums::PaymentMethod,
pub connector_payment_id: Option<ConnectorTransactionId>,
@@ -303,6 +304,7 @@ pub struct PaymentAttempt {
pub installment_data: Option<common_types::payments::InstallmentData>,
/// External surcharge details from InterPayments (stored as JSONB)
pub external_surcharge_details: Option<common_types::payments::ExternalSurchargeDetails>,
+ pub network_transaction_link_id: Option<String>,
}
#[cfg(feature = "v1")]
@@ -404,6 +406,7 @@ pub struct PaymentAttemptNew {
pub error_reason: Option<String>,
pub connector_response_reference_id: Option<String>,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub network_details: Option<NetworkDetails>,
pub is_stored_credential: Option<bool>,
pub multiple_capture_count: Option<i16>,
@@ -552,6 +555,7 @@ pub struct PaymentAttemptNew {
pub retry_type: Option<storage_enums::RetryType>,
pub installment_data: Option<common_types::payments::InstallmentData>,
pub external_surcharge_details: Option<common_types::payments::ExternalSurchargeDetails>,
+ pub network_transaction_link_id: Option<String>,
}
#[cfg(feature = "v1")]
@@ -575,6 +579,7 @@ pub enum PaymentAttemptUpdate {
fingerprint_id: Option<String>,
payment_method_billing_address_id: Option<String>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
updated_by: String,
shipping_cost: Option<MinorUnit>,
order_tax_amount: Option<MinorUnit>,
@@ -634,6 +639,7 @@ pub enum PaymentAttemptUpdate {
routing_approach: Option<storage_enums::RoutingApproach>,
connector_request_reference_id: Option<String>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
is_stored_credential: Option<bool>,
request_extended_authorization: Option<RequestExtendedAuthorizationBool>,
},
@@ -669,6 +675,7 @@ pub enum PaymentAttemptUpdate {
connector_transaction_id: Option<String>,
authentication_type: Option<storage_enums::AuthenticationType>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
payment_method_id: Option<String>,
mandate_id: Option<String>,
connector_metadata: Option<serde_json::Value>,
@@ -1131,6 +1138,7 @@ impl PaymentAttemptUpdateInternal {
created_by: source.created_by,
payment_method_type_v2: source.payment_method_type_v2,
network_transaction_id: source.network_transaction_id,
+ network_transaction_link_id: source.network_transaction_link_id,
connector_payment_id: connector_payment_id.or(source.connector_payment_id),
payment_method_subtype: source.payment_method_subtype,
routing_result: source.routing_result,
@@ -1230,6 +1238,7 @@ pub struct PaymentAttemptUpdateInternal {
pub routing_approach: Option<storage_enums::RoutingApproach>,
pub connector_request_reference_id: Option<String>,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub is_overcapture_enabled: Option<OvercaptureEnabledBool>,
pub network_details: Option<NetworkDetails>,
pub is_stored_credential: Option<bool>,
@@ -1437,6 +1446,7 @@ impl PaymentAttemptUpdate {
routing_approach,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled,
network_details,
is_stored_credential,
@@ -1519,6 +1529,8 @@ impl PaymentAttemptUpdate {
connector_request_reference_id: connector_request_reference_id
.or(source.connector_request_reference_id),
network_transaction_id: network_transaction_id.or(source.network_transaction_id),
+ network_transaction_link_id: network_transaction_link_id
+ .or(source.network_transaction_link_id),
is_overcapture_enabled: is_overcapture_enabled.or(source.is_overcapture_enabled),
network_details: network_details.or(source.network_details),
is_stored_credential: is_stored_credential.or(source.is_stored_credential),
@@ -2819,6 +2831,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
updated_by,
payment_method_billing_address_id,
network_transaction_id,
+ network_transaction_link_id,
shipping_cost,
order_tax_amount,
} => Self {
@@ -2885,6 +2898,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -2960,6 +2974,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3008,6 +3023,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_stored_credential,
request_extended_authorization,
} => Self {
@@ -3073,6 +3089,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential,
@@ -3149,6 +3166,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3226,6 +3244,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3303,6 +3322,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3379,6 +3399,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3454,6 +3475,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3492,6 +3514,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
charges,
setup_future_usage_applied,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled,
authorized_amount,
error_details: boxed_error_details,
@@ -3565,6 +3588,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled,
network_details: None,
is_stored_credential: None,
@@ -3664,6 +3688,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: network_details.flatten(),
is_stored_credential: None,
@@ -3737,6 +3762,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3820,6 +3846,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential,
@@ -3910,6 +3937,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -3997,6 +4025,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4074,6 +4103,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4150,6 +4180,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4235,6 +4266,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4311,6 +4343,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4389,6 +4422,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4477,6 +4511,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4553,6 +4588,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
@@ -4633,6 +4669,7 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
is_overcapture_enabled: None,
network_details: None,
is_stored_credential: None,
diff --git a/crates/diesel_models/src/payment_method.rs b/crates/diesel_models/src/payment_method.rs
index 786d4ad906..374cef2a02 100644
--- a/crates/diesel_models/src/payment_method.rs
+++ b/crates/diesel_models/src/payment_method.rs
@@ -77,6 +77,7 @@ pub struct PaymentMethod {
// Compatibility-only field: backfilled by modular-compat PT for v2 interoperability.
// Do not use this column in v1 business logic.
pub payment_method_subtype: Option<storage_enums::PaymentMethodType>,
+ pub network_transaction_link_id: Option<String>,
}
#[cfg(feature = "v2")]
@@ -114,6 +115,7 @@ pub struct PaymentMethod {
pub id: common_utils::id_type::GlobalPaymentMethodId,
pub payment_method_type_v2: Option<storage_enums::PaymentMethod>,
pub payment_method_subtype: Option<storage_enums::PaymentMethodType>,
+ pub network_transaction_link_id: Option<Secret<String>>,
pub external_vault_token_data: Option<Encryption>,
pub auxiliary_fingerprint_id: Option<String>,
}
@@ -163,6 +165,7 @@ pub struct PaymentMethodNew {
pub customer_acceptance: Option<pii::SecretSerdeValue>,
pub status: storage_enums::PaymentMethodStatus,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub client_secret: Option<String>,
pub payment_method_billing_address: Option<Encryption>,
pub updated_by: Option<String>,
@@ -196,6 +199,7 @@ pub struct PaymentMethodNew {
pub customer_acceptance: Option<pii::SecretSerdeValue>,
pub status: storage_enums::PaymentMethodStatus,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub client_secret: Option<String>,
pub payment_method_billing_address: Option<Encryption>,
pub updated_by: Option<String>,
@@ -260,6 +264,7 @@ pub enum PaymentMethodUpdate {
},
NetworkTransactionIdAndStatusUpdate {
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
status: Option<storage_enums::PaymentMethodStatus>,
last_modified_by: Option<String>,
},
@@ -302,6 +307,7 @@ pub enum PaymentMethodUpdate {
PaymentMethodBatchUpdate {
connector_mandate_details: Option<pii::SecretSerdeValue>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
status: Option<storage_enums::PaymentMethodStatus>,
payment_method_data: Option<Encryption>,
last_modified_by: Option<String>,
@@ -334,6 +340,7 @@ pub enum PaymentMethodUpdate {
},
NetworkTransactionIdAndStatusUpdate {
network_transaction_id: Option<Secret<String>>,
+ network_transaction_link_id: Option<Secret<String>>,
status: Option<storage_enums::PaymentMethodStatus>,
last_modified_by: Option<String>,
},
@@ -351,9 +358,10 @@ pub enum PaymentMethodUpdate {
network_token_locker_id: Option<String>,
network_token_payment_method_data: Option<Encryption>,
locker_fingerprint_id: Option<String>,
- connector_mandate_details: Option<CommonMandateReference>,
+ connector_mandate_details: Box<Option<CommonMandateReference>>,
external_vault_source: Option<common_utils::id_type::MerchantConnectorAccountId>,
network_transaction_id: Option<Secret<String>>,
+ network_transaction_link_id: Option<Secret<String>>,
last_modified_by: Option<String>,
},
ConnectorMandateDetailsUpdate {
@@ -385,6 +393,7 @@ pub struct PaymentMethodUpdateInternal {
payment_method_data: Option<Encryption>,
last_used_at: Option<PrimitiveDateTime>,
network_transaction_id: Option<Secret<String>>,
+ network_transaction_link_id: Option<Secret<String>>,
status: Option<storage_enums::PaymentMethodStatus>,
locker_id: Option<String>,
payment_method_type_v2: Option<storage_enums::PaymentMethod>,
@@ -408,6 +417,7 @@ impl PaymentMethodUpdateInternal {
payment_method_data,
last_used_at,
network_transaction_id,
+ network_transaction_link_id,
status,
locker_id,
payment_method_type_v2,
@@ -437,6 +447,8 @@ impl PaymentMethodUpdateInternal {
customer_acceptance: source.customer_acceptance,
status: status.unwrap_or(source.status),
network_transaction_id: network_transaction_id.or(source.network_transaction_id),
+ network_transaction_link_id: network_transaction_link_id
+ .or(source.network_transaction_link_id),
client_secret: source.client_secret,
payment_method_billing_address: source.payment_method_billing_address,
updated_by: updated_by.or(source.updated_by),
@@ -476,6 +488,7 @@ pub struct PaymentMethodUpdateInternal {
payment_method_data: Option<Encryption>,
last_used_at: Option<PrimitiveDateTime>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
status: Option<storage_enums::PaymentMethodStatus>,
locker_id: Option<String>,
network_token_requestor_reference_id: Option<String>,
@@ -504,6 +517,7 @@ impl PaymentMethodUpdateInternal {
payment_method_data,
last_used_at,
network_transaction_id,
+ network_transaction_link_id,
status,
locker_id,
network_token_requestor_reference_id,
@@ -554,6 +568,8 @@ impl PaymentMethodUpdateInternal {
customer_acceptance: source.customer_acceptance,
status: status.unwrap_or(source.status),
network_transaction_id: network_transaction_id.or(source.network_transaction_id),
+ network_transaction_link_id: network_transaction_link_id
+ .or(source.network_transaction_link_id),
client_secret: source.client_secret,
payment_method_billing_address: source.payment_method_billing_address,
updated_by: updated_by.or(source.updated_by),
@@ -590,6 +606,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: Some(last_used_at),
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -617,6 +634,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -641,6 +659,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: Some(last_used_at),
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -670,6 +689,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data,
last_used_at: Some(last_used_at),
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -691,6 +711,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
},
PaymentMethodUpdate::NetworkTransactionIdAndStatusUpdate {
network_transaction_id,
+ network_transaction_link_id,
status,
last_modified_by,
} => Self {
@@ -698,6 +719,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: None,
network_transaction_id,
+ network_transaction_link_id,
status,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -725,6 +747,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -764,6 +787,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data,
last_used_at,
network_transaction_id: None,
+ network_transaction_link_id: None,
status,
locker_id,
network_token_requestor_reference_id,
@@ -797,6 +821,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method: None,
connector_mandate_details,
network_transaction_id: None,
+ network_transaction_link_id: None,
updated_by: None,
payment_method_issuer: None,
payment_method_type: None,
@@ -830,6 +855,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_type: None,
last_modified: common_utils::date_time::now(),
network_transaction_id: None,
+ network_transaction_link_id: None,
network_token_requestor_reference_id,
network_token_locker_id,
network_token_payment_method_data,
@@ -849,6 +875,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
connector_mandate_details: connector_mandate_details
.map(|mandate_details| mandate_details.expose()),
network_transaction_id: network_transaction_id.map(|txn_id| txn_id.expose()),
+ network_transaction_link_id: None,
last_modified: common_utils::date_time::now(),
status: None,
metadata: None,
@@ -873,6 +900,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
PaymentMethodUpdate::PaymentMethodBatchUpdate {
connector_mandate_details,
network_transaction_id,
+ network_transaction_link_id,
status,
payment_method_data,
last_modified_by,
@@ -886,6 +914,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
connector_mandate_details: connector_mandate_details
.map(|mandate_details| mandate_details.expose()),
network_transaction_id,
+ network_transaction_link_id,
updated_by: None,
payment_method_issuer: None,
payment_method_type: None,
@@ -911,6 +940,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
network_token_requestor_reference_id: None,
@@ -945,6 +975,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
payment_method_type_v2: None,
@@ -964,6 +995,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: Some(last_used_at),
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
payment_method_type_v2: None,
@@ -988,6 +1020,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data,
last_used_at: Some(last_used_at),
network_transaction_id: None,
+ network_transaction_link_id: None,
status: None,
locker_id: None,
payment_method_type_v2: None,
@@ -1005,12 +1038,14 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
},
PaymentMethodUpdate::NetworkTransactionIdAndStatusUpdate {
network_transaction_id,
+ network_transaction_link_id,
status,
last_modified_by,
} => Self {
payment_method_data: None,
last_used_at: None,
network_transaction_id,
+ network_transaction_link_id,
status,
locker_id: None,
payment_method_type_v2: None,
@@ -1033,6 +1068,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status,
locker_id: None,
payment_method_type_v2: None,
@@ -1061,6 +1097,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
connector_mandate_details,
external_vault_source,
network_transaction_id,
+ network_transaction_link_id,
last_modified_by,
} => Self {
payment_method_data,
@@ -1068,7 +1105,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
status,
locker_id,
payment_method_type_v2,
- connector_mandate_details,
+ connector_mandate_details: *connector_mandate_details,
updated_by: None,
payment_method_subtype,
last_modified: common_utils::date_time::now(),
@@ -1078,6 +1115,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
locker_fingerprint_id,
external_vault_source,
network_transaction_id,
+ network_transaction_link_id,
last_modified_by,
customer_details: None,
},
@@ -1092,6 +1130,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_type_v2: None,
connector_mandate_details,
network_transaction_id: None,
+ network_transaction_link_id: None,
updated_by: None,
payment_method_subtype: None,
last_modified: common_utils::date_time::now(),
@@ -1111,6 +1150,7 @@ impl From<PaymentMethodUpdate> for PaymentMethodUpdateInternal {
payment_method_data: None,
last_used_at: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
status,
locker_id: None,
payment_method_type_v2: None,
@@ -1164,6 +1204,7 @@ impl From<&PaymentMethodNew> for PaymentMethod {
customer_acceptance: payment_method_new.customer_acceptance.clone(),
status: payment_method_new.status,
network_transaction_id: payment_method_new.network_transaction_id.clone(),
+ network_transaction_link_id: payment_method_new.network_transaction_link_id.clone(),
client_secret: payment_method_new.client_secret.clone(),
updated_by: payment_method_new.updated_by.clone(),
payment_method_billing_address: payment_method_new
@@ -1206,6 +1247,10 @@ impl From<&PaymentMethodNew> for PaymentMethod {
.network_transaction_id
.clone()
.map(Secret::new),
+ network_transaction_link_id: payment_method_new
+ .network_transaction_link_id
+ .clone()
+ .map(Secret::new),
client_secret: payment_method_new.client_secret.clone(),
updated_by: payment_method_new.updated_by.clone(),
payment_method_billing_address: payment_method_new
diff --git a/crates/diesel_models/src/schema.rs b/crates/diesel_models/src/schema.rs
index 26d9849f28..763d1f031b 100644
--- a/crates/diesel_models/src/schema.rs
+++ b/crates/diesel_models/src/schema.rs
@@ -1201,6 +1201,8 @@ diesel::table! {
retry_type -> Nullable<Varchar>,
installment_data -> Nullable<Jsonb>,
external_surcharge_details -> Nullable<Jsonb>,
+ #[max_length = 255]
+ network_transaction_link_id -> Nullable<Varchar>,
}
}
@@ -1426,6 +1428,8 @@ diesel::table! {
payment_method_type_v2 -> Nullable<Varchar>,
#[max_length = 64]
payment_method_subtype -> Nullable<Varchar>,
+ #[max_length = 255]
+ network_transaction_link_id -> Nullable<Varchar>,
}
}
diff --git a/crates/diesel_models/src/schema_v2.rs b/crates/diesel_models/src/schema_v2.rs
index 89d11e0bca..c0c5cda6a3 100644
--- a/crates/diesel_models/src/schema_v2.rs
+++ b/crates/diesel_models/src/schema_v2.rs
@@ -1142,6 +1142,8 @@ diesel::table! {
retry_type -> Nullable<Varchar>,
installment_data -> Nullable<Jsonb>,
external_surcharge_details -> Nullable<Jsonb>,
+ #[max_length = 255]
+ network_transaction_link_id -> Nullable<Varchar>,
payment_method_type_v2 -> Nullable<Varchar>,
#[max_length = 128]
connector_payment_id -> Nullable<Varchar>,
@@ -1363,6 +1365,8 @@ diesel::table! {
payment_method_type_v2 -> Nullable<Varchar>,
#[max_length = 64]
payment_method_subtype -> Nullable<Varchar>,
+ #[max_length = 255]
+ network_transaction_link_id -> Nullable<Varchar>,
external_vault_token_data -> Nullable<Bytea>,
#[max_length = 64]
auxiliary_fingerprint_id -> Nullable<Varchar>,
diff --git a/crates/diesel_models/src/user/sample_data.rs b/crates/diesel_models/src/user/sample_data.rs
index d699a4bfe9..db1f8750ea 100644
--- a/crates/diesel_models/src/user/sample_data.rs
+++ b/crates/diesel_models/src/user/sample_data.rs
@@ -222,6 +222,7 @@ pub struct PaymentAttemptBatchNew {
pub routing_approach: Option<common_enums::RoutingApproach>,
pub connector_request_reference_id: Option<String>,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub network_details: Option<NetworkDetails>,
pub is_stored_credential: Option<bool>,
pub authorized_amount: Option<MinorUnit>,
@@ -315,6 +316,7 @@ impl PaymentAttemptBatchNew {
routing_approach: self.routing_approach,
connector_request_reference_id: self.connector_request_reference_id,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
network_details: self.network_details,
is_stored_credential: self.is_stored_credential,
authorized_amount: self.authorized_amount,
diff --git a/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs b/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
index fea7127dce..08e6a4d584 100644
--- a/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs
@@ -1463,6 +1463,7 @@ where
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1601,6 +1602,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AciCaptureResponse, T, PaymentsResponse
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.referenced_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1665,6 +1667,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AciVoidResponse, T, PaymentsResponseDat
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.referenced_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1842,6 +1845,7 @@ impl
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
index 4665364913..a77acb6715 100644
--- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs
@@ -152,6 +152,8 @@ pub struct AdditionalData {
#[serde(rename = "recurring.shopperReference")]
recurring_shopper_reference: Option<String>,
network_tx_reference: Option<Secret<String>>,
+ #[serde(rename = "transactionLinkId")]
+ transaction_link_id: Option<String>,
#[cfg(feature = "payouts")]
payout_eligible: Option<PayoutEligibility>,
funds_availability: Option<String>,
@@ -3186,7 +3188,9 @@ impl
cvc: None,
holder_name: test_holder_name.or(card_holder_name),
brand: Some(brand),
- network_payment_reference: Some(Secret::new(network_mandate_id)),
+ network_payment_reference: Some(Secret::new(
+ network_mandate_id.network_transaction_id.clone(),
+ )),
};
Ok(PaymentMethod::AdyenPaymentMethod(Box::new(
AdyenPaymentMethod::AdyenCard(Box::new(adyen_card)),
@@ -4365,6 +4369,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<AdyenCancelResponse>> for Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.reference),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -4389,6 +4394,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<AdyenBalanceResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -4544,6 +4550,8 @@ pub fn get_adyen_response(
.map(|network_tx_id| network_tx_id.clone().expose())
});
+ let network_txn_link_id = None; // TODO(TLID-PR2): extract from response.additional_data.transaction_link_id
+
let charges = match &response.splits {
Some(split_items) => Some(construct_charge_response(response.store, split_items)),
None => None,
@@ -4555,6 +4563,7 @@ pub fn get_adyen_response(
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id,
+ network_txn_link_id,
connector_response_reference_id: Some(response.merchant_reference),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -4668,6 +4677,7 @@ pub fn get_webhook_response(
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.merchant_reference_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -4767,6 +4777,7 @@ pub fn get_redirection_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response
.merchant_reference
.clone()
@@ -4840,6 +4851,7 @@ pub fn get_present_to_shopper_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response
.merchant_reference
.clone()
@@ -4911,6 +4923,7 @@ pub fn get_qr_code_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response
.merchant_reference
.clone()
@@ -4986,6 +4999,7 @@ pub fn get_redirection_error_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response
.merchant_reference
.clone()
@@ -5432,6 +5446,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<AdyenCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.reference),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs b/crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
index 6e586c3ea6..1730230f5d 100644
--- a/crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
@@ -328,6 +328,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AffirmResponseWrapper, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
authentication_data: None,
charges: None,
@@ -346,6 +347,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AffirmResponseWrapper, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: resp.order_id.clone(),
authentication_data: None,
charges: None,
@@ -373,6 +375,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AffirmCompleteAuthorizeResponse, T, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -496,6 +499,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<AffirmCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -528,6 +532,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<AffirmCancelResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs b/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
index 7671e2dbb0..eb1023d325 100644
--- a/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
@@ -1379,6 +1379,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AirwallexPaymentsResponse, T, PaymentsR
mandate_reference,
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1435,6 +1436,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AirwallexRedirectResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1487,6 +1489,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
index 877fda3a72..3e03ebc062 100644
--- a/crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs
@@ -306,6 +306,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AmazonpayFinalizeResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.checkout_session_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -470,6 +471,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AmazonpayPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs b/crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
index b5389372ff..a37fc4410d 100644
--- a/crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs
@@ -941,6 +941,7 @@ impl TryFrom<PaymentsResponseRouterData<ArchipelPaymentsResponse>> for PaymentsA
.request
.is_customer_initiated_mandate_payment()
.then_some(item.response.transaction_id),
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: Some(is_incremental_allowed),
}),
@@ -988,6 +989,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<ArchipelPaymentsResponse>> for Payme
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
}),
@@ -1053,6 +1055,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<ArchipelPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
}),
@@ -1176,6 +1179,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: Some(item.response.transaction_id.clone()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id),
incremental_authorization_allowed: Some(false),
}),
@@ -1234,6 +1238,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<ArchipelPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
}),
diff --git a/crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
index 5c1c06af49..e7aa196ddc 100644
--- a/crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/authipay/transformers.rs
@@ -421,6 +421,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AuthipayPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
gateway_resp.transaction_processing_details.order_id.clone(),
),
diff --git a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
index 11ccfaabab..574f016756 100644
--- a/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs
@@ -712,6 +712,7 @@ impl<F, T>
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -814,7 +815,10 @@ impl TryFrom<&AuthorizedotnetRouterData<&PaymentsAuthorizeRouterData>>
.and_then(|mandate_ids| mandate_ids.mandate_reference_id)
{
Some(api_models::payments::MandateReferenceId::NetworkMandateId(network_trans_id)) => {
- TransactionRequest::try_from((item, network_trans_id))?
+ TransactionRequest::try_from((
+ item,
+ network_trans_id.network_transaction_id.clone(),
+ ))?
}
Some(api_models::payments::MandateReferenceId::ConnectorMandateId(
connector_mandate_id,
@@ -1622,6 +1626,7 @@ impl<F, T>
.network_trans_id
.clone()
.map(|network_trans_id| network_trans_id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
transaction_response.transaction_id.clone(),
),
@@ -1698,6 +1703,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AuthorizedotnetVoidResponse, T, Payment
.network_trans_id
.clone()
.map(|network_trans_id| network_trans_id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
transaction_response.transaction_id.clone(),
),
@@ -2058,6 +2064,7 @@ impl<F, Req> TryFrom<ResponseRouterData<F, AuthorizedotnetSyncResponse, Req, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction.transaction_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
index c3977a4b7c..df13a1889a 100644
--- a/crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
@@ -480,6 +480,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(pg_response.order_number.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -506,6 +507,7 @@ impl<F> TryFrom<ResponseRouterData<F, BamboraResponse, PaymentsAuthorizeData, Pa
.change_context(errors::ConnectorError::ResponseHandlingFailed)?,
),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.data.connector_request_reference_id.to_string(),
),
@@ -552,6 +554,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -592,6 +595,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BamboraPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -621,6 +625,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<BamboraPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -650,6 +655,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<BamboraPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_number.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
index f03615a3f6..ac39b57acb 100644
--- a/crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
@@ -304,6 +304,7 @@ impl TryFrom<PaymentsResponseRouterData<BamboraapacPaymentsResponse>>
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -482,6 +483,7 @@ impl<F>
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -622,6 +624,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<BamboraapacCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -901,6 +904,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BamboraapacSyncResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(connector_transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
index acce7cff10..27d7c7df97 100644
--- a/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
@@ -434,6 +434,7 @@ impl<F, T>
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -1657,6 +1658,7 @@ fn get_payment_response(
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -1919,6 +1921,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BankOfAmericaTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.client_reference_information
@@ -1941,6 +1944,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BankOfAmericaTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs b/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
index e37e74f6b6..f89eab2177 100644
--- a/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
@@ -1244,6 +1244,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<BarclaycardPreProcessingR
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -1368,6 +1369,7 @@ impl TryFrom<PaymentsAuthenticateResponseRouterData<BarclaycardAuthenticationRes
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -1492,6 +1494,7 @@ impl TryFrom<PaymentsPostAuthenticateResponseRouterData<BarclaycardAuthenticatio
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -1616,6 +1619,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<BarclaycardPreProcessingRes
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -2337,6 +2341,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<BarclaycardAuthSetupRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -2421,6 +2426,7 @@ impl TryFrom<PaymentsResponseRouterData<BarclaycardAuthSetupResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -2832,6 +2838,7 @@ fn get_payment_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -3109,6 +3116,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BarclaycardTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.client_reference_information
@@ -3131,6 +3139,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<BarclaycardTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs b/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
index a0322eb2c0..b2b157c609 100644
--- a/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs
@@ -299,6 +299,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BillwerkPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.handle),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
index b7beae5297..d7a71b88f3 100644
--- a/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs
@@ -163,6 +163,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BitpayPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.data
diff --git a/crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs b/crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
index 1c8f7d9777..85d01ba59a 100644
--- a/crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs
@@ -325,6 +325,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BlackhawknetworkRedeemResponse, T, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bluesnap.rs b/crates/hyperswitch_connectors/src/connectors/bluesnap.rs
index 87efcd81d5..3af9d26e50 100644
--- a/crates/hyperswitch_connectors/src/connectors/bluesnap.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bluesnap.rs
@@ -793,6 +793,7 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
index aa65efe230..ed8c719fc6 100644
--- a/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs
@@ -901,6 +901,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BluesnapPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/boku/transformers.rs b/crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
index ebfcbd9bc2..eae60b0ff7 100644
--- a/crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
@@ -325,6 +325,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BokuResponse, T, PaymentsResponseData>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
index f531122421..313c56a3fa 100644
--- a/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs
@@ -790,6 +790,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreeAuthResponse>>
)),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -815,6 +816,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreeAuthResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -847,6 +849,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreeAuthResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: txn.legacy_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1008,6 +1011,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreePaymentsResponse>>
)),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1033,6 +1037,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreePaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1075,6 +1080,7 @@ impl TryFrom<PaymentsResponseRouterData<BraintreePaymentsResponse>>
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1148,6 +1154,7 @@ impl<F>
)),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1220,6 +1227,7 @@ impl<F>
)),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2112,6 +2120,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<BraintreeCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2318,6 +2327,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BraintreeCancelResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2447,6 +2457,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BraintreePSyncResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
index d64efe855d..a2b13761d3 100644
--- a/crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/breadpay/transformers.rs
@@ -202,6 +202,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BreadpayTransactionResponse, T, Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -249,6 +250,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, BreadpayPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/calida/transformers.rs b/crates/hyperswitch_connectors/src/connectors/calida/transformers.rs
index 2b8b9bba47..a3a2d42d41 100644
--- a/crates/hyperswitch_connectors/src/connectors/calida/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/calida/transformers.rs
@@ -273,6 +273,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CalidaPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment_request_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
index b99dbb944d..7bbe1de7c2 100644
--- a/crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
@@ -269,6 +269,7 @@ impl TryFrom<PaymentsResponseRouterData<CashtocodePaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -303,6 +304,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CashtocodePaymentsSyncResponse, T, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs b/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
index d48426f9ee..c67cd7d448 100644
--- a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs
@@ -573,6 +573,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CeleroPaymentsResponse, T, PaymentsResp
mandate_reference: data.get_mandate_reference(),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response.auth_code.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -695,6 +696,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -772,6 +774,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs b/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
index 7b9440063f..5c0a6ad980 100644
--- a/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs
@@ -312,6 +312,7 @@ convert_connector_response_to_domain_response!(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs b/crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs
index bddc83cf59..d7f65158c7 100644
--- a/crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/checkbook/transformers.rs
@@ -139,6 +139,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CheckbookPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs b/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
index 197ec61a62..04f61229ab 100644
--- a/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs
@@ -1361,6 +1361,7 @@ impl TryFrom<PaymentsResponseRouterData<PaymentsResponse>> for PaymentsAuthorize
mandate_reference: Box::new(mandate_reference),
connector_metadata: Some(connector_meta),
network_txn_id: item.response.scheme_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response.reference.unwrap_or(item.response.id),
),
@@ -1477,6 +1478,7 @@ impl
mandate_reference: Box::new(mandate_reference),
connector_metadata: Some(connector_meta),
network_txn_id: item.response.scheme_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response.reference.unwrap_or(item.response.id),
),
@@ -1558,6 +1560,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<PaymentsResponse>> for PaymentsSyncR
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: item.response.scheme_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response.reference.unwrap_or(item.response.id),
),
@@ -1638,6 +1641,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<PaymentVoidResponse>> for Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: item.response.scheme_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1741,6 +1745,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<PaymentCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: item.response.scheme_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: item.response.reference,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs b/crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
index 9c081c727b..9c550f176b 100644
--- a/crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs
@@ -167,6 +167,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CoinbasePaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.data.id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs b/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
index 732a1eee2a..e43f720052 100644
--- a/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs
@@ -105,6 +105,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<CoingateSyncResponse>> for PaymentsS
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -190,6 +191,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CoingatePaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
index c66b53f5d1..21bafcf204 100644
--- a/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs
@@ -198,6 +198,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.data
diff --git a/crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs b/crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
index b1ca6c200a..47a5fbcaab 100644
--- a/crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/custombilling/transformers.rs
@@ -118,6 +118,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CustombillingPaymentsResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
index 5350a6b55b..778d5ab079 100644
--- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs
@@ -1070,7 +1070,9 @@ impl
merchant_initiated_transaction: Some(MerchantInitiatedTransaction {
reason: Some("7".to_string()),
original_authorized_amount,
- previous_transaction_id: Some(Secret::new(network_transaction_id)),
+ previous_transaction_id: Some(Secret::new(
+ network_transaction_id.network_transaction_id.clone(),
+ )),
}),
ignore_avs_result: connector_merchant_config.disable_avs,
ignore_cv_result: connector_merchant_config.disable_cvn,
@@ -3361,6 +3363,7 @@ fn get_payment_response(
network_txn_id: info_response.processor_information.as_ref().and_then(
|processor_information| processor_information.network_transaction_id.clone(),
),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -3446,6 +3449,7 @@ impl TryFrom<PaymentsResponseRouterData<CybersourceAuthSetupResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -4132,6 +4136,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<CybersourcePreProcessingRes
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -4362,6 +4367,7 @@ impl
processor_information.network_transaction_id.clone()
},
),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response
.client_reference_information
@@ -4476,6 +4482,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -4615,6 +4622,7 @@ impl<F>
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -4751,6 +4759,7 @@ impl<F>
"three_ds_data": three_ds_data
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data,
@@ -4844,6 +4853,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<CybersourceTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.client_reference_information
@@ -4865,6 +4875,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<CybersourceTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs b/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
index a92b856808..8cfe642d19 100644
--- a/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs
@@ -585,6 +585,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -608,6 +609,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -661,6 +663,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -684,6 +687,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -849,6 +853,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<DatatransSyncResponse>>
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs b/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
index f0c46b4bf8..d7e6d1ca41 100644
--- a/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs
@@ -388,6 +388,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(processed.tx_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -421,6 +422,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -605,6 +607,7 @@ impl
},
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -657,6 +660,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -908,6 +912,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -998,6 +1003,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs b/crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
index ce7c95c7ea..f16397448c 100644
--- a/crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/digitalvirgo/transformers.rs
@@ -165,6 +165,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DigitalvirgoPaymentsResponse, T, Paymen
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -222,6 +223,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DigitalvirgoPaymentSyncResponse, T, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs b/crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
index 362d99d2a6..8692982db6 100644
--- a/crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs
@@ -338,6 +338,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DlocalPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -375,6 +376,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DlocalPaymentsSyncResponse, T, Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -407,6 +409,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DlocalPaymentsCaptureResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -437,6 +440,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DlocalPaymentsCancelResponse, T, Paymen
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs b/crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
index a42e4a9b58..4225327908 100644
--- a/crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs
@@ -314,6 +314,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaymentsResponse, T, PaymentsResponseDa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/dwolla.rs b/crates/hyperswitch_connectors/src/connectors/dwolla.rs
index 3ce4bca52c..e3f3e191bf 100644
--- a/crates/hyperswitch_connectors/src/connectors/dwolla.rs
+++ b/crates/hyperswitch_connectors/src/connectors/dwolla.rs
@@ -589,6 +589,7 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(payment_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs b/crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
index 3ad1730eb5..9b7dbe0d1a 100644
--- a/crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
@@ -336,6 +336,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DwollaPSyncResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(payment_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -355,6 +356,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, DwollaPSyncResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(payment_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs b/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
index d05993acf9..76c733d9e6 100644
--- a/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs
@@ -314,6 +314,7 @@ impl TryFrom<PaymentsResponseRouterData<ElavonPaymentsResponse>> for PaymentsAut
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.ssl_txn_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -462,6 +463,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<ElavonSyncResponse>> for PaymentsSyn
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -535,6 +537,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<ElavonPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.ssl_txn_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs b/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
index 988cef2bcd..d68986b991 100644
--- a/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
@@ -140,6 +140,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, EnvoyPaymentsResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
index f729736e5a..0f014639ba 100644
--- a/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs
@@ -467,6 +467,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FacilitapayPaymentsResponse, T, Payment
mandate_reference: Box::new(None),
connector_metadata: get_qr_code_data(&item.response)?,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.data.transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -575,6 +576,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<FacilitapayVoidResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.data.void_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/finix/transformers.rs b/crates/hyperswitch_connectors/src/connectors/finix/transformers.rs
index 534b3f0656..571aabdeb7 100644
--- a/crates/hyperswitch_connectors/src/connectors/finix/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/finix/transformers.rs
@@ -466,6 +466,7 @@ pub(crate) fn get_setup_mandate_router_data<Request>(
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -639,6 +640,7 @@ pub(crate) fn get_finix_response<F, T>(
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
index 6bd9e4d90a..f81b2a3a00 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs
@@ -1021,6 +1021,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FiservPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
gateway_resp.transaction_processing_details.order_id,
),
@@ -1080,6 +1081,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FiservSyncResponse, T, PaymentsResponse
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(connector_response_reference_id.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/fiservcommercehub/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiservcommercehub/transformers.rs
index fd3ab0de4f..ec953d4a66 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiservcommercehub/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiservcommercehub/transformers.rs
@@ -135,6 +135,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
index 576464366c..566d7ccc9b 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiservemea/transformers.rs
@@ -375,6 +375,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FiservemeaPaymentsResponse, T, Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.order_id,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
index b1347b41f9..360ea572fc 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs
@@ -625,7 +625,10 @@ impl TryFrom<&FiuuRouterData<&PaymentsAuthorizeRouterData>> for FiuuPaymentReque
Some(payments::MandateReferenceId::NetworkMandateId(network_transaction_id)) => {
match item.router_data.request.payment_method_data {
PaymentMethodData::CardDetailsForNetworkTransactionId(ref raw_card_details) => {
- FiuuPaymentMethodData::try_from((raw_card_details, network_transaction_id))
+ FiuuPaymentMethodData::try_from((
+ raw_card_details,
+ network_transaction_id.network_transaction_id.clone(),
+ ))
}
_ => Err(errors::ConnectorError::NotImplemented(
utils::get_unimplemented_payment_method_error_message("fiuu"),
@@ -885,6 +888,7 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
mandate_reference: Box::new(None),
connector_metadata: get_qr_metadata(response)?,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -927,6 +931,7 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -989,6 +994,7 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1041,6 +1047,7 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1061,6 +1068,7 @@ impl TryFrom<PaymentsResponseRouterData<FiuuPaymentsResponse>> for PaymentsAutho
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1418,6 +1426,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<FiuuPaymentResponse>> for PaymentsSy
.scheme_transaction_id
.as_ref()
.map(|id| id.clone().expose()),
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1488,6 +1497,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<FiuuPaymentResponse>> for PaymentsSy
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1666,6 +1676,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<PaymentCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1787,6 +1798,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<FiuuPaymentCancelResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs b/crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
index 79d33faf48..1cb508e6c4 100644
--- a/crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs
@@ -255,6 +255,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FlexitiSyncResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -285,6 +286,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FlexitiPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs b/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
index 0d0ca4a64b..af36afa60d 100644
--- a/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs
@@ -314,6 +314,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FortePaymentsResponse, T, PaymentsRespo
auth_id: item.response.authorization_code,
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -372,6 +373,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, FortePaymentsSyncResponse, T, PaymentsR
auth_id: item.response.authorization_code,
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -442,6 +444,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<ForteCaptureResponse>>
auth_id: item.response.authorization_code,
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -511,6 +514,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ForteCancelResponse, T, PaymentsRespons
auth_id: item.response.authorization_code,
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id.to_string()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
index 34caab596e..1155c4e2cf 100644
--- a/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
@@ -421,6 +421,7 @@ impl TryFrom<PaymentsResponseRouterData<GetnetPaymentsResponse>> for PaymentsAut
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -473,6 +474,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<GetnetPaymentsResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -496,6 +498,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<GetnetPaymentsResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -645,6 +648,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<GetnetCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -976,6 +980,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<GetnetCancelResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs b/crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs
index 7b5b3ebea3..0cf08c699b 100644
--- a/crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/gigadat/transformers.rs
@@ -325,6 +325,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GigadatPaymentResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -362,6 +363,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GigadatTransactionStatusResponse, T, Pa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
index 33419b7196..3e4431da22 100644
--- a/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs
@@ -442,6 +442,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GlobalpayPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.reference.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
index 6cba34de73..e0a72c126c 100644
--- a/crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs
@@ -229,6 +229,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GlobepayPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -304,6 +305,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, GlobepaySyncResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs b/crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
index 5b9e836894..27cb38a121 100644
--- a/crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs
@@ -552,6 +552,7 @@ impl<F>
redirection_data: Box::new(None),
mandate_reference: Box::new(mandate_reference),
network_txn_id: None,
+ network_txn_link_id: None,
authentication_data: None,
charges: None,
}),
@@ -694,6 +695,7 @@ impl TryFrom<PaymentsResponseRouterData<GocardlessPaymentsResponse>>
mandate_reference: Box::new(Some(mandate_reference)),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -719,6 +721,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<GocardlessPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs b/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
index d7e0aa0b79..0315371a3c 100644
--- a/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs
@@ -399,6 +399,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -442,6 +443,7 @@ impl TryFrom<PaymentsResponseRouterData<HelcimPaymentsResponse>> for PaymentsAut
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -489,6 +491,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<HelcimPaymentsResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -563,6 +566,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<HelcimPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -615,6 +619,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<HelcimPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.invoice_number.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
index bbfe8628e3..6deb2eea6c 100644
--- a/crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs
@@ -387,6 +387,7 @@ impl TryFrom<PaymentsResponseRouterData<HipayPaymentsResponse>> for PaymentsAuth
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -622,6 +623,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<HipayMaintenanceResponse<HipayPay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -648,6 +650,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<HipayMaintenanceResponse<HipayPaym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -764,6 +767,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<HipaySyncResponse>> for PaymentsSync
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/hyperpg/transformers.rs b/crates/hyperswitch_connectors/src/connectors/hyperpg/transformers.rs
index dcdb56c0e2..5d4dbd44ad 100644
--- a/crates/hyperswitch_connectors/src/connectors/hyperpg/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/hyperpg/transformers.rs
@@ -129,6 +129,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, HyperpgPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charges: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs
index d0422d8439..4e0f8ef855 100644
--- a/crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs
@@ -121,6 +121,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, HyperwalletPaymentsResponse, T, Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
index 7ba415bbb6..c3390b4bb6 100644
--- a/crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs
@@ -402,6 +402,7 @@ fn get_iatpay_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: connector_response_reference_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -414,6 +415,7 @@ fn get_iatpay_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: connector_response_reference_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/imerchantsolutions/transformers.rs b/crates/hyperswitch_connectors/src/connectors/imerchantsolutions/transformers.rs
index aba663bf18..4135946b09 100644
--- a/crates/hyperswitch_connectors/src/connectors/imerchantsolutions/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/imerchantsolutions/transformers.rs
@@ -130,6 +130,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
index ac1ce054a0..6c62a85b09 100644
--- a/crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/inespay/transformers.rs
@@ -127,6 +127,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, InespayPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -239,6 +240,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, InespayPSyncResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -259,6 +261,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, InespayPSyncResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs
index 3682def389..29b31fffd2 100644
--- a/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs
@@ -127,6 +127,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, InterpaymentsPaymentsResponse, T, Payme
incremental_authorization_allowed: None,
authentication_data: None,
charges: None,
+ network_txn_link_id: None,
}),
..item.data
})
diff --git a/crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs b/crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
index 1de42790ef..3b8daf8180 100644
--- a/crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs
@@ -298,6 +298,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ItaubankPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.txid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -378,6 +379,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ItaubankPaymentsSyncResponse, T, Paymen
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.txid),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs b/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
index 5230fd16be..7fa71d0949 100644
--- a/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs
@@ -387,6 +387,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, JpmorganPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -475,6 +476,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, JpmorganCaptureResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -519,6 +521,7 @@ impl<F, PaymentsSyncData>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -752,6 +755,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<JpmorganCancelResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs b/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
index ed819382c3..88b9db0cb8 100644
--- a/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs
@@ -136,6 +136,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs b/crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
index b712eb1a8b..1c470fc830 100644
--- a/crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/katapult/transformers.rs
@@ -121,6 +121,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, KatapultPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs b/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
index 571cddc1be..6bd647650b 100644
--- a/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs
@@ -391,6 +391,7 @@ impl TryFrom<PaymentsResponseRouterData<KlarnaAuthResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -413,6 +414,7 @@ impl TryFrom<PaymentsResponseRouterData<KlarnaAuthResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -574,6 +576,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, KlarnaPsyncResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response
.klarna_reference
.or(Some(response.order_id.clone())),
@@ -591,6 +594,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, KlarnaPsyncResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -657,6 +661,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<KlarnaCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs b/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs
index 8956bac82c..5b86d60f8d 100644
--- a/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs
@@ -165,6 +165,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, LoonioPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -265,6 +266,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, LoonioPaymentResponseData, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -299,6 +301,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, LoonioPaymentResponseData, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs b/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
index ddd8578857..18ea18cf81 100644
--- a/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs
@@ -278,6 +278,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MifinityPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(trace_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -294,6 +295,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MifinityPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -363,6 +365,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MifinityPsyncResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -379,6 +382,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MifinityPsyncResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -396,6 +400,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MifinityPsyncResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs b/crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
index 441d47a532..eec047cb5c 100644
--- a/crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs
@@ -949,6 +949,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MolliePaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs b/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
index c3c8579d66..86cdb18e04 100644
--- a/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs
@@ -326,6 +326,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MonerisPaymentsResponse, T, PaymentsRes
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs b/crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
index 130c428245..f03b67c125 100644
--- a/crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/mpgs/transformers.rs
@@ -119,6 +119,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MpgsPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
index 96c2fb8368..78f29ead55 100644
--- a/crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs
@@ -1085,6 +1085,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, MultisafepayAuthResponse, T, PaymentsRe
),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
payment_response.data.order_id.clone(),
),
diff --git a/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
index 8d3b4c71bb..fef151d94b 100644
--- a/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs
@@ -386,6 +386,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, NexinetsPreAuthOrDebitResponse, T, Paym
mandate_reference: Box::new(mandate_reference),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -467,6 +468,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, NexinetsPaymentResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order.order_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
index b4ec27bb75..f25d981a4a 100644
--- a/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs
@@ -780,6 +780,7 @@ fn process_nexixpay_preprocessing_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.operation.order_id),
incremental_authorization_allowed: None,
authentication_data,
@@ -1355,6 +1356,7 @@ impl TryFrom<PaymentsResponseRouterData<NexixpayPaymentsResponse>> for PaymentsA
mandate_reference,
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
response_body.operation.order_id.clone(),
),
@@ -1406,6 +1408,7 @@ impl TryFrom<PaymentsResponseRouterData<NexixpayPaymentsResponse>> for PaymentsA
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
mandate_response.operation.order_id.clone(),
),
@@ -1479,6 +1482,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<NexixpayPaymentsResponse>
mandate_reference,
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
response_body.operation.order_id.clone(),
),
@@ -1523,6 +1527,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<NexixpayPaymentsResponse>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
mandate_response.operation.order_id.clone(),
),
@@ -1674,6 +1679,7 @@ impl<F>
mandate_reference,
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.operation.order_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1865,6 +1871,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<NexixpayTransactionResponse>>
mandate_reference,
connector_metadata: item.data.request.connector_meta.clone(),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1916,6 +1923,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<NexixpayOperationResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.data.request.connector_transaction_id.clone(),
),
@@ -1973,6 +1981,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<NexixpayOperationResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.data.request.connector_transaction_id.clone(),
),
@@ -2063,6 +2072,7 @@ impl
})),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.operation.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
index fe5963fad6..520336ca50 100644
--- a/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs
@@ -251,6 +251,7 @@ fn build_nmi_vault_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(vault_response.transactionid.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -463,6 +464,7 @@ impl
},
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.orderid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1168,6 +1170,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.orderid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1284,6 +1287,7 @@ impl<T> TryFrom<ResponseRouterData<SetupMandate, StandardResponse, T, PaymentsRe
},
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.orderid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1351,6 +1355,7 @@ impl TryFrom<PaymentsResponseRouterData<StandardResponse>>
},
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.orderid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1392,6 +1397,7 @@ impl<T> TryFrom<ResponseRouterData<Void, StandardResponse, T, PaymentsResponseDa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.orderid),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1441,6 +1447,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SyncResponse, T, PaymentsResponseData>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs b/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
index 84192ec9ad..214e586d06 100644
--- a/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs
@@ -667,6 +667,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, NoonPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs
index 1a4c59f3ea..c0dca93a15 100644
--- a/crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs
@@ -525,6 +525,7 @@ fn convert_nordea_payment_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: payment_response.external_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -658,6 +659,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: payment.external_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -677,6 +679,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs b/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
index 0d656e5956..549913bf6d 100644
--- a/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
@@ -556,7 +556,10 @@ impl TryFrom<&NovalnetRouterData<&PaymentsAuthorizeRouterData>> for NovalnetPaym
card_number: raw_card_details.card_number.clone(),
card_expiry_month: raw_card_details.card_exp_month.clone(),
card_expiry_year: raw_card_details.card_exp_year.clone(),
- scheme_tid: network_transaction_id.into(),
+ scheme_tid: network_transaction_id
+ .network_transaction_id
+ .clone()
+ .into(),
});
let transaction = NovalnetPaymentsRequestTransaction {
@@ -794,6 +797,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, NovalnetPaymentsResponse, T, PaymentsRe
NovalnetResponsePaymentData::Paypal(_) => None,
})
}),
+ network_txn_link_id: None,
connector_response_reference_id: transaction_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1233,6 +1237,7 @@ impl<F>
NovalnetResponsePaymentData::Paypal(_) => None,
})
}),
+ network_txn_link_id: None,
connector_response_reference_id: transaction_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1317,6 +1322,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<NovalnetCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: transaction_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1487,6 +1493,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<NovalnetCancelResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: transaction_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
index 91f4088125..ba0a82701d 100644
--- a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs
@@ -2347,6 +2347,7 @@ fn create_transaction_response(
network_txn_id: external_scheme_transaction_id
.as_ref()
.map(|ntid| ntid.clone().expose()),
+ network_txn_link_id: None,
connector_response_reference_id: order_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs b/crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
index 8c579e2662..14f73f8c60 100644
--- a/crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/opayo/transformers.rs
@@ -163,6 +163,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, OpayoPaymentsResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs b/crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
index 78c8031564..6e6081248a 100644
--- a/crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/opennode/transformers.rs
@@ -137,6 +137,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, OpennodePaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.data.order_id,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
index e500f696c5..2d19cdf899 100644
--- a/crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs
@@ -665,6 +665,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayboxCaptureResponse, T, PaymentsRespo
connector_request_id: response.transaction_number.clone()
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -730,6 +731,7 @@ impl<F> TryFrom<ResponseRouterData<F, PayboxResponse, PaymentsAuthorizeData, Pay
connector_request_id: response.transaction_number.clone()
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -765,6 +767,7 @@ impl<F> TryFrom<ResponseRouterData<F, PayboxResponse, PaymentsAuthorizeData, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -814,6 +817,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayboxSyncResponse, T, PaymentsResponse
connector_request_id: response.transaction_number.clone()
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1018,6 +1022,7 @@ impl<F>
connector_request_id: response.transaction_number.clone()
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
index 129e42d122..46b1d0c816 100644
--- a/crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs
@@ -449,6 +449,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayeezyPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(mandate_reference),
connector_metadata: metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response
.reference
diff --git a/crates/hyperswitch_connectors/src/connectors/payjustnow/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payjustnow/transformers.rs
index c69c918647..7bac2f802d 100644
--- a/crates/hyperswitch_connectors/src/connectors/payjustnow/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payjustnow/transformers.rs
@@ -248,6 +248,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -355,6 +356,7 @@ impl<F, T> TryFrom<types::ResponseRouterData<F, PayjustnowSyncResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.payment_reference
diff --git a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
index e271a38851..7f21ab485e 100644
--- a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
@@ -156,6 +156,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -249,6 +250,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayjustnowinstoreSyncResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/payload/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
index 00c5513672..41e68463bb 100644
--- a/crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payload/transformers.rs
@@ -523,6 +523,7 @@ where
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response.ref_number,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -571,6 +572,7 @@ impl<F, T>
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
index d47ad61c08..46945f5d32 100644
--- a/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs
@@ -268,6 +268,7 @@ impl TryFrom<&PaymePaySaleResponse> for PaymentsResponseData {
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -341,6 +342,7 @@ impl From<&SaleQuery> for PaymentsResponseData {
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -633,6 +635,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -760,6 +763,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1372,6 +1376,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<PaymeVoidResponse>> for PaymentsCa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
index 2d5401fbf0..7fde54f00e 100644
--- a/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
@@ -678,6 +678,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaypalSetupMandatesResponse, T, Payment
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(info_response.id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1829,6 +1830,7 @@ impl TryFrom<PaymentsExtendAuthorizationResponseRouterData<PaypalExtendedAuthRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2044,6 +2046,7 @@ fn auth_success_response() -> PaymentsResponseData {
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2479,6 +2482,7 @@ where
})),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: purchase_units
.invoice_id
.clone()
@@ -2597,6 +2601,7 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
purchase_units.map_or(item.response.id, |item| item.invoice_id.clone()),
),
@@ -2651,6 +2656,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
purchase_units.map_or(item.response.id, |item| item.invoice_id.clone()),
),
@@ -2705,6 +2711,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2730,6 +2737,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<PaypalThreeDsSyncResponse>> for Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2771,6 +2779,7 @@ impl TryFrom<PaymentsResponseRouterData<PaypalThreeDsResponse>> for PaymentsAuth
mandate_reference: Box::new(None),
connector_metadata: Some(connector_meta),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2830,6 +2839,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaypalPaymentsSyncResponse, T, Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.invoice_id
@@ -3246,6 +3256,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<PaypalCaptureResponse>>
order_id: None,
})),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.invoice_id
@@ -3292,6 +3303,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaypalPaymentsCancelResponse, T, Paymen
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.invoice_id
diff --git a/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
index f91a82e88f..ad0fe8221c 100644
--- a/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs
@@ -935,6 +935,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<PaysafePaymentHandleRespons
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1009,6 +1010,7 @@ impl TryFrom<PaymentsResponseRouterData<PaysafePaymentsResponse>> for PaymentsAu
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1047,6 +1049,7 @@ impl TryFrom<PaymentsResponseRouterData<PaysafePaymentHandleResponse>>
mandate_reference: Box::new(None),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1739,6 +1742,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1974,6 +1978,7 @@ impl<F> TryFrom<ResponseRouterData<F, PaysafeSyncResponse, PaymentsSyncData, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2050,6 +2055,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaysafeSettlementResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2119,6 +2125,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, VoidResponse, T, PaymentsResponseData>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
index 6091a13b72..28afe31415 100644
--- a/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs
@@ -127,6 +127,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaystackPaymentsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -227,6 +228,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaystackPSyncResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -242,6 +244,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaystackPSyncResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
index 8dff020744..ea76d36e3a 100644
--- a/crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs
@@ -127,6 +127,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaytmPaymentsResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
index 091ce7c1fe..c7e38f0e67 100644
--- a/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs
@@ -253,6 +253,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayuPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.ext_order_id
@@ -304,6 +305,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayuPaymentsCaptureResponse, T, Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -380,6 +382,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayuPaymentsCancelResponse, T, Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.ext_order_id
@@ -510,6 +513,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PayuPaymentsSyncResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: order
.ext_order_id
.clone()
diff --git a/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
index 10bac0d405..ee227a7358 100644
--- a/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs
@@ -1040,6 +1040,7 @@ pub fn get_peachpayments_response(
network_txn_id: response
.ecommerce_card_payment_only_transaction_data
.and_then(|data| data.trace_id),
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.reference_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1088,6 +1089,7 @@ pub fn get_webhook_response(
network_txn_id: transaction
.ecommerce_card_payment_only_transaction_data
.and_then(|data| data.trace_id),
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction.reference_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1159,6 +1161,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PeachpaymentsCaptureResponse, T, Paymen
})
}),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.reference_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs b/crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
index d4b63529da..3c9402e4ff 100644
--- a/crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs
@@ -129,6 +129,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PhonepePaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
index 6141d72eaa..095f6eda2b 100644
--- a/crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/placetopay/transformers.rs
@@ -283,6 +283,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PlacetopayPaymentsResponse, T, Payments
.clone()
.map(|authorization| serde_json::json!(authorization)),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs b/crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
index ac645e7cd7..6eaf695f4d 100644
--- a/crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs
@@ -322,6 +322,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PlaidPaymentsResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -413,6 +414,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PlaidSyncResponse, T, PaymentsResponseD
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs b/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
index b4c5b5de86..40237e8d60 100644
--- a/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs
@@ -358,6 +358,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PowertranzBaseResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.order_identifier),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
index 032e180797..aa084e9c0b 100644
--- a/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs
@@ -202,6 +202,7 @@ impl TryFrom<PaymentsResponseRouterData<ProphetpayTokenResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -401,6 +402,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -455,6 +457,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ProphetpaySyncResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -509,6 +512,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ProphetpayVoidResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs b/crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
index 564f740ec3..232a2c642b 100644
--- a/crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs
@@ -500,6 +500,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, RapydPaymentsResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: data
.merchant_reference_id
.to_owned(),
diff --git a/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
index 9c73c2c109..9c458b300e 100644
--- a/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
@@ -252,6 +252,7 @@ impl TryFrom<PaymentsResponseRouterData<RazorpayPaymentsResponse>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(order_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -336,6 +337,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, RazorpaySyncResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs b/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
index 9e3664a094..80aa65baf2 100644
--- a/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
@@ -951,6 +951,7 @@ fn build_threeds_invoke_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response_data.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data,
@@ -994,6 +995,7 @@ fn build_threeds_invoke_exempt_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response_data.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data,
@@ -1656,6 +1658,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<RedsysResponse>> for PaymentsCapt
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response_data.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1763,6 +1766,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<RedsysResponse>> for PaymentsCance
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response_data.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1906,6 +1910,7 @@ fn get_payments_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(redsys_payments_response.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data,
@@ -1927,6 +1932,7 @@ fn get_payments_response(
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(redsys_payments_response.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data,
@@ -2228,6 +2234,7 @@ impl<F> TryFrom<ResponseRouterData<F, RedsysSyncResponse, PaymentsSyncData, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2265,6 +2272,7 @@ impl<F> TryFrom<ResponseRouterData<F, RedsysSyncResponse, PaymentsSyncData, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(response.ds_order.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/sanlam/transformers.rs b/crates/hyperswitch_connectors/src/connectors/sanlam/transformers.rs
index 3f1253755e..d64adca38c 100644
--- a/crates/hyperswitch_connectors/src/connectors/sanlam/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/sanlam/transformers.rs
@@ -113,6 +113,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SanlamWebhookEvent, T, PaymentsResponse
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
index eada4ec5ab..79ecb81291 100644
--- a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
@@ -177,6 +177,7 @@ impl
mandate_reference: Box::new(mandate_reference),
connector_metadata: metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -243,6 +244,7 @@ impl
mandate_reference,
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1296,6 +1298,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderPaymentsSyncResponse, T, Payme
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed,
authentication_data,
@@ -1357,6 +1360,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderPaymentsSyncResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(cobr_data.id_rec.expose()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1453,6 +1457,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1503,6 +1508,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1527,6 +1533,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderPaymentsResponse, T, PaymentsR
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1556,6 +1563,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SantanderVoidResponse, T, PaymentsRespo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charges: None,
@@ -2377,6 +2385,7 @@ impl<F>
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
charges: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs b/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
index 6c215c19f0..7cb772cc6e 100644
--- a/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs
@@ -1028,6 +1028,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<Shift4ThreeDsResponse>>
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?,
),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1070,6 +1071,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<Shift4ThreeDsResponse>>
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?,
),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1109,6 +1111,7 @@ impl<T, F> TryFrom<ResponseRouterData<F, Shift4NonThreeDsResponse, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/sift/transformers.rs b/crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
index 9e95bf4983..70f34ad801 100644
--- a/crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/sift/transformers.rs
@@ -119,6 +119,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SiftPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs b/crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
index 4af6784cb1..b83b60c249 100644
--- a/crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs
@@ -318,6 +318,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SilverflowPaymentsResponse, T, Payments
.transaction_identifier
.clone()
}),
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.key.clone()),
incremental_authorization_allowed: Some(false),
authentication_data: None,
@@ -407,6 +408,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SilverflowCaptureResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.key.clone()),
incremental_authorization_allowed: Some(false),
authentication_data: None,
@@ -503,6 +505,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SilverflowVoidResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.key.clone()),
incremental_authorization_allowed: Some(false),
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/square/transformers.rs b/crates/hyperswitch_connectors/src/connectors/square/transformers.rs
index 6cb9dee69a..91d93a672c 100644
--- a/crates/hyperswitch_connectors/src/connectors/square/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/square/transformers.rs
@@ -419,6 +419,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, SquarePaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.payment.reference_id,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/stax/transformers.rs b/crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
index 1d6f1165db..68f2638b18 100644
--- a/crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/stax/transformers.rs
@@ -397,6 +397,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, StaxPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response.idempotency_id.unwrap_or(item.response.id),
),
diff --git a/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs b/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs
index d1f8db5169..ee0cb23d1e 100644
--- a/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs
@@ -2102,7 +2102,9 @@ impl TryFrom<(&PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntentRequest
mandate_options: None,
network_transaction_id: None,
mit_exemption: Some(MitExemption {
- network_transaction_id: Secret::new(network_transaction_id),
+ network_transaction_id: Secret::new(
+ network_transaction_id.network_transaction_id.clone(),
+ ),
}),
});
@@ -3328,6 +3330,7 @@ where
mandate_reference: Box::new(mandate_reference),
connector_metadata,
network_txn_id,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: item
.data
@@ -3659,6 +3662,7 @@ where
mandate_reference: Box::new(mandate_reference),
connector_metadata,
network_txn_id: network_transaction_id,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -3753,6 +3757,7 @@ where
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: network_transaction_id,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -4455,6 +4460,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ChargesResponse, T, PaymentsResponseDat
mandate_reference: Box::new(None),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs b/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
index 1a5e0822ae..94f58f44af 100644
--- a/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs
@@ -155,6 +155,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, StripebillingPaymentsResponse, T, Payme
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs b/crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs
index d87a56a505..1047ae39e6 100644
--- a/crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs
@@ -1104,6 +1104,7 @@ impl TryFrom<PaymentsResponseRouterData<TesouroAuthorizeResponse>> for PaymentsA
)?),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1148,6 +1149,7 @@ impl TryFrom<PaymentsResponseRouterData<TesouroAuthorizeResponse>> for PaymentsA
mandate_reference: Box::new(None),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1284,6 +1286,7 @@ impl<F>
)?),
connector_metadata: Some(connector_metadata),
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1418,6 +1421,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<TesouroCaptureResponse>>
)?),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1459,6 +1463,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<TesouroCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1562,6 +1567,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<TesouroVoidResponse>> for Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1603,6 +1609,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<TesouroVoidResponse>> for Payments
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2005,6 +2012,7 @@ impl<F> TryFrom<ResponseRouterData<F, TesouroSyncResponse, PaymentsSyncData, Pay
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs b/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
index f7f3c25e3c..a2d8d585be 100644
--- a/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs
@@ -133,6 +133,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ThunesPaymentsResponse, T, PaymentsResp
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs b/crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
index 3088167a7c..39785427e1 100644
--- a/crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/tokenio/transformers.rs
@@ -468,6 +468,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, TokenioPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/truelayer/transformers.rs b/crates/hyperswitch_connectors/src/connectors/truelayer/transformers.rs
index da29e18ea4..098c4dc91f 100644
--- a/crates/hyperswitch_connectors/src/connectors/truelayer/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/truelayer/transformers.rs
@@ -239,6 +239,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, TruelayerPaymentsResponse, T, PaymentsR
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/trustly/transformers.rs b/crates/hyperswitch_connectors/src/connectors/trustly/transformers.rs
index b14cd67303..93db607cfe 100644
--- a/crates/hyperswitch_connectors/src/connectors/trustly/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/trustly/transformers.rs
@@ -154,6 +154,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, TrustlyPaymentsResponse, T, PaymentsRes
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
index 03bf8b6776..ca75f33dc1 100644
--- a/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs
@@ -910,6 +910,7 @@ fn handle_cards_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -940,6 +941,7 @@ fn handle_bank_redirects_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -989,6 +991,7 @@ fn handle_bank_redirects_error_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1057,6 +1060,7 @@ fn handle_bank_redirects_sync_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1113,6 +1117,7 @@ pub fn handle_webhook_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
index ee96bd54a9..f64573cae8 100644
--- a/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs
@@ -615,6 +615,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -690,6 +691,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -765,6 +767,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -840,6 +843,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs b/crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
index c7a6c21655..540b8ea465 100644
--- a/crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs
@@ -258,6 +258,7 @@ fn get_payments_response(connector_response: TsysResponse) -> PaymentsResponseDa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(connector_response.transaction_id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -279,6 +280,7 @@ fn get_payments_sync_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
connector_response
.transaction_details
diff --git a/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs b/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
index 20275b056b..f0093e4a1b 100644
--- a/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
@@ -413,6 +413,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, VoltPaymentsResponse, T, PaymentsRespon
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -501,6 +502,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, VoltPaymentsResponseData, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: payment_response
.merchant_internal_reference
.or(Some(payment_response.id)),
@@ -548,6 +550,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, VoltPaymentsResponseData, T, PaymentsRe
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: webhook_response
.merchant_internal_reference
.or(Some(webhook_response.payment)),
@@ -586,6 +589,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<VoltCancelResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment_id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs b/crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
index be2c9f7998..fb76b1e142 100644
--- a/crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs
@@ -737,7 +737,9 @@ impl
merchant_initiated_transaction: Some(MerchantInitiatedTransaction {
reason: Some("7".to_string()),
original_authorized_amount,
- previous_transaction_id: Some(Secret::new(network_transaction_id)),
+ previous_transaction_id: Some(Secret::new(
+ network_transaction_id.network_transaction_id.clone(),
+ )),
}),
}),
)
@@ -1808,6 +1810,7 @@ fn get_payment_response(
network_txn_id: info_response.processor_information.as_ref().and_then(
|processor_information| processor_information.network_transaction_id.clone(),
),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
info_response
.client_reference_information
@@ -1998,6 +2001,7 @@ impl
processor_information.network_transaction_id.clone()
},
),
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response
.client_reference_information
@@ -2109,6 +2113,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<WellsfargoTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.client_reference_information
@@ -2130,6 +2135,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<WellsfargoTransactionResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs b/crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
index 6aa8aa940a..c98f2b46e9 100644
--- a/crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/wellsfargopayout/transformers.rs
@@ -135,6 +135,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, WellsfargopayoutPaymentsResponse, T, Pa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
index b73e552544..2f704e9bf2 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
@@ -588,6 +588,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, Payment, T, PaymentsResponseData>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.id),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -640,6 +641,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, PaymentResponse, T, PaymentsResponseDat
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.payment.id),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpay.rs b/crates/hyperswitch_connectors/src/connectors/worldpay.rs
index 2334609697..6f6c2e740e 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpay.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpay.rs
@@ -420,6 +420,7 @@ impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Wo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: optional_correlation_id,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -578,6 +579,7 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Wor
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: optional_correlation_id,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -681,6 +683,7 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: optional_correlation_id,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs
index e8e1d0bebe..80433914a2 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs
@@ -503,7 +503,9 @@ fn get_token_and_agreement(
MandateReferenceId::NetworkMandateId(network_transaction_id) => {
Some(CustomerAgreement {
agreement_type: CustomerAgreementType::Unscheduled,
- scheme_reference: Some(network_transaction_id.into()),
+ scheme_reference: Some(
+ network_transaction_id.network_transaction_id.clone().into(),
+ ),
stored_card_usage: None,
})
}
@@ -795,6 +797,7 @@ impl<F, T>
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: network_txn_id.map(|id| id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: optional_correlation_id.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpaymodular/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpaymodular/transformers.rs
index 4ff9a108a2..45d9364525 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpaymodular/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpaymodular/transformers.rs
@@ -262,6 +262,7 @@ pub fn get_worldpay_combined_psync_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -284,6 +285,7 @@ pub fn get_worldpay_combined_capture_response(
mandate_reference: Box::new(mandate),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -304,6 +306,7 @@ pub fn get_worldpay_void_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -381,6 +384,7 @@ impl TryFrom<PaymentsResponseRouterData<WorldpaymodularPaymentsResponse>>
mandate_reference: Box::new(mandate),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
index b0e0fb6875..df933c28d8 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs
@@ -602,6 +602,7 @@ impl<F> TryFrom<ResponseRouterData<F, VantivSyncResponse, PaymentsSyncData, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1085,7 +1086,7 @@ fn get_processing_info(
network_transaction_id,
)) => Ok(VantivMandateDetail {
processing_type: Some(VantivProcessingType::MerchantInitiatedCOF),
- network_transaction_id: Some(network_transaction_id.into()),
+ network_transaction_id: Some(network_transaction_id.network_transaction_id.into()),
token: None,
}),
Some(api_models::payments::MandateReferenceId::ConnectorMandateId(mandate_data)) => {
@@ -1534,6 +1535,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<CnpOnlineResponse>> for PaymentsC
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1650,6 +1652,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<CnpOnlineResponse>> for PaymentsCa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2027,6 +2030,7 @@ impl<F>
mandate_reference: Box::new(mandate_reference_data),
connector_metadata,
network_txn_id: sale_response.network_transaction_id.clone().map(|network_transaction_id| network_transaction_id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(sale_response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2114,6 +2118,7 @@ impl<F>
mandate_reference: Box::new(mandate_reference_data),
connector_metadata,
network_txn_id: auth_response.network_transaction_id.clone().map(|network_transaction_id| network_transaction_id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(auth_response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2259,6 +2264,7 @@ impl<F>
.network_transaction_id
.clone()
.map(|network_transaction_id| network_transaction_id.expose()),
+ network_txn_link_id: None,
connector_response_reference_id: Some(auth_response.order_id.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
index 49dd89f811..3bb6cc9e27 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs
@@ -860,6 +860,7 @@ impl TryFrom<PaymentsPreAuthenticateResponseRouterData<bytes::Bytes>>
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1632,6 +1633,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
order_status.order_code.clone(),
),
@@ -1652,6 +1654,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1678,6 +1681,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(data.order_code.clone()),
incremental_authorization_allowed: None,
charges: None,
@@ -2001,6 +2005,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(order_status.order_code.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2436,6 +2441,7 @@ impl<F>
mandate_reference: Box::new(None),
connector_metadata: metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(order_status.order_code.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2523,6 +2529,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<PaymentService>> for PaymentsCapt
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(capture_received.order_code.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -2585,6 +2592,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<PaymentService>> for PaymentsCance
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(cancel_received.order_code.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -3296,6 +3304,7 @@ fn process_payment_response(
mandate_reference: Box::new(mandate_reference),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(order_code.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs b/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
index 4ef9a790c8..8f8927b99b 100644
--- a/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
@@ -511,6 +511,7 @@ impl TryFrom<PaymentsResponseRouterData<XenditPaymentResponse>> for PaymentsAuth
},
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item
.response
.reference_id
@@ -579,6 +580,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<XenditCaptureResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(
item.response.reference_id.peek().to_string(),
),
@@ -655,6 +657,7 @@ impl TryFrom<PaymentsSettlementSplitCreateResponseRouterData<XenditSplitResponse
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -732,6 +735,7 @@ impl TryFrom<PaymentsPreprocessingResponseRouterData<XenditSplitResponse>>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -789,6 +793,7 @@ impl TryFrom<PaymentsSyncResponseRouterData<XenditResponse>> for PaymentsSyncRou
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
index a6c4029b8d..9999441030 100644
--- a/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs
@@ -976,6 +976,7 @@ fn get_zen_response(
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1024,6 +1025,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, CheckoutResponse, T, PaymentsResponseDa
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/zift/transformers.rs b/crates/hyperswitch_connectors/src/connectors/zift/transformers.rs
index 1924d06c05..86a2a93024 100644
--- a/crates/hyperswitch_connectors/src/connectors/zift/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/zift/transformers.rs
@@ -434,6 +434,7 @@ impl TryFrom<PaymentsCaptureResponseRouterData<ZiftCaptureResponse>> for Payment
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -520,6 +521,7 @@ impl<F>
mandate_reference,
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.transaction_code.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -757,6 +759,7 @@ impl TryFrom<ResponseRouterData<PSync, ZiftSyncResponse, PaymentsSyncData, Payme
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -848,6 +851,7 @@ impl TryFrom<PaymentsCancelResponseRouterData<ZiftVoidResponse>> for PaymentsCan
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
@@ -1004,6 +1008,7 @@ impl<F>
})),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: item.response.transaction_code.clone(),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs b/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
index fa03b1231d..c58e986c4b 100644
--- a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs
@@ -345,6 +345,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, ZslPaymentsResponse, T, PaymentsRespons
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.mer_ref.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
@@ -449,6 +450,7 @@ impl<F> TryFrom<ResponseRouterData<F, ZslWebhookResponse, PaymentsSyncData, Paym
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: Some(item.response.mer_ref.clone()),
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/hyperswitch_connectors/src/utils.rs b/crates/hyperswitch_connectors/src/utils.rs
index 335e89500f..3149520f6d 100644
--- a/crates/hyperswitch_connectors/src/utils.rs
+++ b/crates/hyperswitch_connectors/src/utils.rs
@@ -2540,7 +2540,7 @@ impl PaymentsAuthorizeRequestData for PaymentsAuthorizeData {
.as_ref()
.and_then(|mandate_ids| match &mandate_ids.mandate_reference_id {
Some(payments::MandateReferenceId::NetworkMandateId(network_transaction_id)) => {
- Some(network_transaction_id.clone())
+ Some(network_transaction_id.network_transaction_id.clone())
}
Some(payments::MandateReferenceId::ConnectorMandateId(_))
| Some(payments::MandateReferenceId::NetworkTokenWithNTI(_))
diff --git a/crates/hyperswitch_domain_models/src/payment_method_data.rs b/crates/hyperswitch_domain_models/src/payment_method_data.rs
index 414fb84b9c..2c8aa96ecf 100644
--- a/crates/hyperswitch_domain_models/src/payment_method_data.rs
+++ b/crates/hyperswitch_domain_models/src/payment_method_data.rs
@@ -127,6 +127,10 @@ pub struct NetworkTransactionIdAndCardDetails {
/// The network transaction ID provided by the card network during a CIT (Customer Initiated Transaction),
/// when `setup_future_usage` is set to `off_session`.
pub network_transaction_id: Secret<String>,
+
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ pub transaction_link_id: Option<String>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
@@ -167,6 +171,10 @@ pub struct NetworkTransactionIdAndNetworkTokenDetails {
/// The network transaction ID provided by the card network during a Customer Initiated Transaction (CIT)
/// when `setup_future_usage` is set to `off_session`.
pub network_transaction_id: Secret<String>,
+
+ /// The Mastercard Transaction Link Identifier (TLID) provided by the card network during a CIT (Customer Initiated Transaction),
+ /// when `setup_future_usage` is set to `off_session`.
+ pub transaction_link_id: Option<String>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
@@ -657,10 +665,15 @@ impl CardDetailsForNetworkTransactionId {
network_transaction_id_and_card_details: NetworkTransactionIdAndCardDetails,
) -> (api_models::payments::MandateReferenceId, PaymentMethodData) {
let mandate_reference_id = api_models::payments::MandateReferenceId::NetworkMandateId(
- network_transaction_id_and_card_details
- .network_transaction_id
- .peek()
- .to_string(),
+ api_models::payments::NetworkMandateIdRef {
+ network_transaction_id: network_transaction_id_and_card_details
+ .network_transaction_id
+ .peek()
+ .to_string(),
+ transaction_link_id: network_transaction_id_and_card_details
+ .transaction_link_id
+ .clone(),
+ },
);
(
@@ -677,10 +690,15 @@ impl NetworkTokenDetailsForNetworkTransactionId {
network_transaction_id_and_network_token_details: NetworkTransactionIdAndNetworkTokenDetails,
) -> (api_models::payments::MandateReferenceId, PaymentMethodData) {
let mandate_reference_id = api_models::payments::MandateReferenceId::NetworkMandateId(
- network_transaction_id_and_network_token_details
- .network_transaction_id
- .peek()
- .to_string(),
+ api_models::payments::NetworkMandateIdRef {
+ network_transaction_id: network_transaction_id_and_network_token_details
+ .network_transaction_id
+ .peek()
+ .to_string(),
+ transaction_link_id: network_transaction_id_and_network_token_details
+ .transaction_link_id
+ .clone(),
+ },
);
(
@@ -697,10 +715,15 @@ impl DecryptedWalletTokenDetailsForNetworkTransactionId {
network_transaction_id_and_decrypted_wallet_token_details: common_types::payments::NetworkTransactionIdAndDecryptedWalletTokenDetails,
) -> (api_models::payments::MandateReferenceId, PaymentMethodData) {
let mandate_reference_id = api_models::payments::MandateReferenceId::NetworkMandateId(
- network_transaction_id_and_decrypted_wallet_token_details
- .network_transaction_id
- .peek()
- .to_string(),
+ api_models::payments::NetworkMandateIdRef {
+ network_transaction_id: network_transaction_id_and_decrypted_wallet_token_details
+ .network_transaction_id
+ .peek()
+ .to_string(),
+ transaction_link_id: network_transaction_id_and_decrypted_wallet_token_details
+ .transaction_link_id
+ .clone(),
+ },
);
(
@@ -4262,6 +4285,7 @@ impl From<mandates::NetworkTransactionIdAndCardDetails> for NetworkTransactionId
card_exp_month: value.card_exp_month,
card_exp_year: value.card_exp_year,
network_transaction_id: value.network_transaction_id,
+ transaction_link_id: value.transaction_link_id,
card_holder_name: value.card_holder_name,
card_issuer: value.card_issuer,
card_network: value.card_network,
@@ -4283,6 +4307,7 @@ impl From<mandates::NetworkTransactionIdAndNetworkTokenDetails>
token_exp_month: value.token_exp_month,
token_exp_year: value.token_exp_year,
network_transaction_id: value.network_transaction_id,
+ transaction_link_id: value.transaction_link_id,
card_holder_name: value.card_holder_name,
card_issuer: value.card_issuer,
card_network: value.card_network,
diff --git a/crates/hyperswitch_domain_models/src/payment_methods.rs b/crates/hyperswitch_domain_models/src/payment_methods.rs
index f112673d7f..51c8dde8c0 100644
--- a/crates/hyperswitch_domain_models/src/payment_methods.rs
+++ b/crates/hyperswitch_domain_models/src/payment_methods.rs
@@ -83,6 +83,7 @@ pub struct PaymentMethod {
pub customer_acceptance: Option<pii::SecretSerdeValue>,
pub status: storage_enums::PaymentMethodStatus,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub client_secret: Option<String>,
pub payment_method_billing_address: OptionalEncryptableValue,
pub updated_by: Option<String>,
@@ -125,6 +126,7 @@ pub struct PaymentMethod {
pub customer_acceptance: Option<pii::SecretSerdeValue>,
pub status: storage_enums::PaymentMethodStatus,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub client_secret: Option<String>,
#[encrypt(ty = Value)]
pub payment_method_billing_address: Option<Encryptable<Address>>,
@@ -477,6 +479,7 @@ impl super::behaviour::Conversion for PaymentMethod {
customer_acceptance: self.customer_acceptance,
status: self.status,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
client_secret: self.client_secret,
payment_method_billing_address: self
.payment_method_billing_address
@@ -643,6 +646,7 @@ impl super::behaviour::Conversion for PaymentMethod {
customer_acceptance: item.customer_acceptance,
status: item.status,
network_transaction_id: item.network_transaction_id,
+ network_transaction_link_id: item.network_transaction_link_id,
client_secret: item.client_secret,
payment_method_billing_address,
updated_by: item.updated_by,
@@ -695,6 +699,7 @@ impl super::behaviour::Conversion for PaymentMethod {
customer_acceptance: self.customer_acceptance,
status: self.status,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
client_secret: self.client_secret,
payment_method_billing_address: self
.payment_method_billing_address
@@ -743,6 +748,7 @@ impl super::behaviour::Conversion for PaymentMethod {
customer_acceptance: self.customer_acceptance,
status: self.status,
network_transaction_id: self.network_transaction_id.map(Secret::new),
+ network_transaction_link_id: self.network_transaction_link_id.map(Secret::new),
client_secret: self.client_secret,
payment_method_billing_address: self
.payment_method_billing_address
@@ -885,6 +891,9 @@ impl super::behaviour::Conversion for PaymentMethod {
network_transaction_id: storage_model
.network_transaction_id
.map(ExposeInterface::expose),
+ network_transaction_link_id: storage_model
+ .network_transaction_link_id
+ .map(ExposeInterface::expose),
client_secret: storage_model.client_secret,
payment_method_billing_address,
updated_by: storage_model.updated_by,
@@ -932,6 +941,7 @@ impl super::behaviour::Conversion for PaymentMethod {
customer_acceptance: self.customer_acceptance,
status: self.status,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
client_secret: self.client_secret,
payment_method_billing_address: self
.payment_method_billing_address
@@ -1730,6 +1740,7 @@ mod tests {
customer_acceptance: None,
status: storage_enums::PaymentMethodStatus::Active,
network_transaction_id: None,
+ network_transaction_link_id: None,
client_secret: None,
payment_method_billing_address: None,
updated_by: None,
diff --git a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs b/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
index 8a8c15afb3..7885eeb1a3 100644
--- a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
+++ b/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
@@ -828,6 +828,7 @@ pub struct PaymentAttempt {
pub created_by: Option<CreatedBy>,
pub connector_request_reference_id: Option<String>,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
/// stores the authorized amount in case of partial authorization
pub authorized_amount: Option<MinorUnit>,
/// External surcharge details from InterPayments
@@ -996,6 +997,7 @@ impl PaymentAttempt {
created_by: initiator.and_then(|initiator| initiator.to_created_by()),
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
authorized_amount: None,
external_surcharge_details: None,
})
@@ -1089,6 +1091,7 @@ impl PaymentAttempt {
created_by: initiator.and_then(|initiator| initiator.to_created_by()),
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
authorized_amount: None,
external_surcharge_details: None,
})
@@ -1189,6 +1192,7 @@ impl PaymentAttempt {
created_by: initiator.and_then(|initiator| initiator.to_created_by()),
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
authorized_amount: None,
external_surcharge_details: None,
})
@@ -1314,6 +1318,7 @@ impl PaymentAttempt {
created_by: initiator.and_then(|initiator| initiator.to_created_by()),
connector_request_reference_id,
network_transaction_id: None,
+ network_transaction_link_id: None,
authorized_amount: None,
external_surcharge_details: None,
})
@@ -1419,6 +1424,7 @@ pub struct PaymentAttempt {
pub connector_request_reference_id: Option<String>,
pub debit_routing_savings: Option<MinorUnit>,
pub network_transaction_id: Option<String>,
+ pub network_transaction_link_id: Option<String>,
pub is_overcapture_enabled: Option<OvercaptureEnabledBool>,
pub network_details: Option<NetworkDetails>,
pub is_stored_credential: Option<bool>,
@@ -1915,6 +1921,7 @@ pub enum PaymentAttemptUpdate {
payment_method_billing_address_id: Option<String>,
updated_by: String,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
shipping_cost: Option<MinorUnit>,
order_tax_amount: Option<MinorUnit>,
},
@@ -1969,6 +1976,7 @@ pub enum PaymentAttemptUpdate {
routing_approach: Option<storage_enums::RoutingApproach>,
connector_request_reference_id: Option<String>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
is_stored_credential: Option<bool>,
request_extended_authorization: Option<RequestExtendedAuthorizationBool>,
},
@@ -2003,6 +2011,7 @@ pub enum PaymentAttemptUpdate {
connector: Option<String>,
connector_transaction_id: Option<String>,
network_transaction_id: Option<String>,
+ network_transaction_link_id: Option<String>,
authentication_type: Option<storage_enums::AuthenticationType>,
payment_method_id: Option<String>,
mandate_id: Option<String>,
@@ -2164,6 +2173,7 @@ impl PaymentAttemptUpdate {
capture_method,
fingerprint_id,
network_transaction_id,
+ network_transaction_link_id,
payment_method_billing_address_id,
updated_by,
order_tax_amount,
@@ -2186,6 +2196,7 @@ impl PaymentAttemptUpdate {
fingerprint_id,
payment_method_billing_address_id,
network_transaction_id,
+ network_transaction_link_id,
updated_by,
order_tax_amount,
shipping_cost,
@@ -2289,6 +2300,7 @@ impl PaymentAttemptUpdate {
routing_approach,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_stored_credential,
request_extended_authorization,
} => DieselPaymentAttemptUpdate::ConfirmUpdate {
@@ -2337,6 +2349,7 @@ impl PaymentAttemptUpdate {
}),
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_stored_credential,
request_extended_authorization,
},
@@ -2381,6 +2394,7 @@ impl PaymentAttemptUpdate {
charges,
setup_future_usage_applied,
network_transaction_id,
+ network_transaction_link_id,
debit_routing_savings: _,
is_overcapture_enabled,
authorized_amount,
@@ -2450,6 +2464,7 @@ impl PaymentAttemptUpdate {
charges,
setup_future_usage_applied,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled,
authorized_amount,
encrypted_payment_method_data: encrypted_payment_method_data
@@ -2941,6 +2956,7 @@ impl behaviour::Conversion for PaymentAttempt {
routing_approach: self.routing_approach,
connector_request_reference_id: self.connector_request_reference_id,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
is_overcapture_enabled: self.is_overcapture_enabled,
network_details: self.network_details,
is_stored_credential: self.is_stored_credential,
@@ -3073,6 +3089,7 @@ impl behaviour::Conversion for PaymentAttempt {
connector_request_reference_id: storage_model.connector_request_reference_id,
debit_routing_savings: None,
network_transaction_id: storage_model.network_transaction_id,
+ network_transaction_link_id: storage_model.network_transaction_link_id,
is_overcapture_enabled: storage_model.is_overcapture_enabled,
network_details: storage_model.network_details,
is_stored_credential: storage_model.is_stored_credential,
@@ -3175,6 +3192,7 @@ impl behaviour::Conversion for PaymentAttempt {
routing_approach: self.routing_approach,
connector_request_reference_id: self.connector_request_reference_id,
network_transaction_id: self.network_transaction_id,
+ network_transaction_link_id: self.network_transaction_link_id,
network_details: self.network_details,
is_stored_credential: self.is_stored_credential,
authorized_amount: self.authorized_amount,
@@ -3257,6 +3275,7 @@ impl behaviour::Conversion for PaymentAttempt {
created_by,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
authorized_amount,
external_surcharge_details,
} = self;
@@ -3357,6 +3376,7 @@ impl behaviour::Conversion for PaymentAttempt {
created_by: created_by.map(|created_by| created_by.to_string()),
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
is_overcapture_enabled: None,
network_details: None,
attempts_group_id,
@@ -3496,6 +3516,7 @@ impl behaviour::Conversion for PaymentAttempt {
.and_then(|created_by| created_by.parse::<CreatedBy>().ok()),
connector_request_reference_id: storage_model.connector_request_reference_id,
network_transaction_id: storage_model.network_transaction_id,
+ network_transaction_link_id: storage_model.network_transaction_link_id,
authorized_amount: storage_model.authorized_amount,
})
}
@@ -3558,6 +3579,7 @@ impl behaviour::Conversion for PaymentAttempt {
created_by,
connector_request_reference_id,
network_transaction_id,
+ network_transaction_link_id,
authorized_amount,
external_surcharge_details: _,
} = self;
@@ -3578,6 +3600,7 @@ impl behaviour::Conversion for PaymentAttempt {
merchant_id,
status,
network_transaction_id,
+ network_transaction_link_id,
error_message: error_details
.as_ref()
.map(|details| details.message.clone()),
diff --git a/crates/hyperswitch_domain_models/src/router_response_types.rs b/crates/hyperswitch_domain_models/src/router_response_types.rs
index 5a3fa2e994..d6d222d3f5 100644
--- a/crates/hyperswitch_domain_models/src/router_response_types.rs
+++ b/crates/hyperswitch_domain_models/src/router_response_types.rs
@@ -62,6 +62,7 @@ pub enum PaymentsResponseData {
mandate_reference: Box<Option<MandateReference>>,
connector_metadata: Option<serde_json::Value>,
network_txn_id: Option<String>,
+ network_txn_link_id: Option<String>,
connector_response_reference_id: Option<String>,
incremental_authorization_allowed: Option<bool>,
authentication_data: Option<Box<UcsAuthenticationData>>,
@@ -228,6 +229,16 @@ impl PaymentsResponseData {
}
}
+ pub fn get_network_transaction_link_id(&self) -> Option<String> {
+ match self {
+ Self::TransactionResponse {
+ network_txn_link_id,
+ ..
+ } => network_txn_link_id.clone(),
+ _ => None,
+ }
+ }
+
pub fn get_connector_transaction_id(
&self,
) -> Result<String, error_stack::Report<ApiErrorResponse>> {
@@ -255,6 +266,7 @@ impl PaymentsResponseData {
mandate_reference: auth_mandate_reference,
connector_metadata: auth_connector_metadata,
network_txn_id: auth_network_txn_id,
+ network_txn_link_id: auth_network_txn_link_id,
connector_response_reference_id: auth_connector_response_reference_id,
incremental_authorization_allowed: auth_incremental_auth_allowed,
authentication_data: auth_authentication_data,
@@ -266,6 +278,7 @@ impl PaymentsResponseData {
mandate_reference: capture_mandate_reference,
connector_metadata: capture_connector_metadata,
network_txn_id: capture_network_txn_id,
+ network_txn_link_id: capture_network_txn_link_id,
connector_response_reference_id: capture_connector_response_reference_id,
incremental_authorization_allowed: capture_incremental_auth_allowed,
authentication_data: capture_authentication_data,
@@ -289,6 +302,9 @@ impl PaymentsResponseData {
network_txn_id: capture_network_txn_id
.clone()
.or(auth_network_txn_id.clone()),
+ network_txn_link_id: capture_network_txn_link_id
+ .clone()
+ .or(auth_network_txn_link_id.clone()),
connector_response_reference_id: capture_connector_response_reference_id
.clone()
.or(auth_connector_response_reference_id.clone()),
diff --git a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
index 05bf86ea6d..d2cc7c4ce3 100644
--- a/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
+++ b/crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs
@@ -285,6 +285,7 @@ impl ForeignTryFrom<(payments_grpc::PaymentServiceGetResponse, AttemptStatus)>
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata: None,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_transaction_id,
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
diff --git a/crates/payment_methods/src/controller.rs b/crates/payment_methods/src/controller.rs
index ef4a1d6810..68777c861c 100644
--- a/crates/payment_methods/src/controller.rs
+++ b/crates/payment_methods/src/controller.rs
@@ -52,6 +52,7 @@ pub trait PaymentMethodsController {
status: Option<common_enums::PaymentMethodStatus>,
network_transaction_id: Option<String>,
payment_method_billing_address: crypto::OptionalEncryptableValue,
+ network_transaction_link_id: Option<String>,
card_scheme: Option<String>,
network_token_requestor_reference_id: Option<String>,
network_token_locker_id: Option<String>,
diff --git a/crates/payment_methods/src/core/migration/payment_methods.rs b/crates/payment_methods/src/core/migration/payment_methods.rs
index 6aa458671f..4f564ad756 100644
--- a/crates/payment_methods/src/core/migration/payment_methods.rs
+++ b/crates/payment_methods/src/core/migration/payment_methods.rs
@@ -555,6 +555,7 @@ pub async fn get_client_secret_or_add_payment_method_for_migration(
None,
None,
None,
+ None,
Default::default(),
None,
None,
@@ -703,6 +704,7 @@ pub async fn skip_locker_call_and_migrate_payment_method(
client_secret: None,
status: enums::PaymentMethodStatus::Active,
network_transaction_id: network_transaction_id.clone(),
+ network_transaction_link_id: None,
payment_method_issuer_code: None,
accepted_currency: None,
token: None,
diff --git a/crates/router/src/connector/utils.rs b/crates/router/src/connector/utils.rs
index c861240c15..14ecb25a57 100644
--- a/crates/router/src/connector/utils.rs
+++ b/crates/router/src/connector/utils.rs
@@ -1065,7 +1065,7 @@ impl PaymentsAuthorizeRequestData for types::PaymentsAuthorizeData {
.as_ref()
.and_then(|mandate_ids| match &mandate_ids.mandate_reference_id {
Some(payments::MandateReferenceId::NetworkMandateId(network_transaction_id)) => {
- Some(network_transaction_id.clone())
+ Some(network_transaction_id.network_transaction_id.clone())
}
Some(payments::MandateReferenceId::ConnectorMandateId(_))
| Some(payments::MandateReferenceId::CardWithLimitedData)
diff --git a/crates/router/src/core/payment_methods.rs b/crates/router/src/core/payment_methods.rs
index 830021ab92..3444ca19a2 100644
--- a/crates/router/src/core/payment_methods.rs
+++ b/crates/router/src/core/payment_methods.rs
@@ -3795,6 +3795,7 @@ pub async fn create_payment_method_for_intent(
client_secret: None,
status: enums::PaymentMethodStatus::AwaitingData,
network_transaction_id: None,
+ network_transaction_link_id: None,
created_at: current_time,
last_modified: current_time,
last_used_at: current_time,
@@ -3883,6 +3884,7 @@ pub async fn construct_payment_method_object(
client_secret: None,
status: enums::PaymentMethodStatus::New,
network_transaction_id: None,
+ network_transaction_link_id: None,
created_at: current_time,
last_modified: current_time,
last_used_at: current_time,
@@ -3949,6 +3951,7 @@ pub async fn create_payment_method_for_confirm(
client_secret: None,
status,
network_transaction_id: None,
+ network_transaction_link_id: None,
created_at: current_time,
last_modified: current_time,
last_used_at: current_time,
@@ -4193,10 +4196,11 @@ pub async fn create_pm_additional_data_update(
.map(|data| data.network_token_requestor_reference_id),
network_token_locker_id: nt_data.clone().map(|data| data.network_token_locker_id),
network_token_payment_method_data: nt_data.map(|data| data.network_token_pmd.into()),
- connector_mandate_details: connector_mandate_details_update,
+ connector_mandate_details: Box::new(connector_mandate_details_update),
locker_fingerprint_id: vault_fingerprint_id,
external_vault_source,
network_transaction_id,
+ network_transaction_link_id: None,
last_modified_by: initiator
.and_then(|initiator| initiator.to_created_by())
.map(|last_modified_by| last_modified_by.to_string()),
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs
index b45fd65e07..9e009ebdfc 100644
--- a/crates/router/src/core/payment_methods/cards.rs
+++ b/crates/router/src/core/payment_methods/cards.rs
@@ -133,6 +133,7 @@ impl PaymentMethodsController for PmCards<'_> {
status: Option<enums::PaymentMethodStatus>,
network_transaction_id: Option<String>,
payment_method_billing_address: crypto::OptionalEncryptableValue,
+ network_transaction_link_id: Option<String>,
card_scheme: Option<String>,
network_token_requestor_reference_id: Option<String>,
network_token_locker_id: Option<String>,
@@ -179,6 +180,7 @@ impl PaymentMethodsController for PmCards<'_> {
client_secret: Some(client_secret),
status: status.unwrap_or(enums::PaymentMethodStatus::Active),
network_transaction_id: network_transaction_id.to_owned(),
+ network_transaction_link_id: network_transaction_link_id.to_owned(),
payment_method_issuer_code: None,
accepted_currency: None,
token: None,
@@ -591,6 +593,7 @@ impl PaymentMethodsController for PmCards<'_> {
None,
network_transaction_id,
payment_method_billing_address,
+ None,
resp.card.clone().and_then(|card| {
card.card_network
.map(|card_network| card_network.to_string())
@@ -1699,6 +1702,7 @@ pub async fn get_client_secret_or_add_payment_method(
None,
None,
None,
+ None,
Default::default(), //Currently this method is used for adding payment method via PaymentMethodCreate API which doesn't support external vault. hence Default i.e. InternalVault is passed for vault type
None,
None,
diff --git a/crates/router/src/core/payment_methods/migration.rs b/crates/router/src/core/payment_methods/migration.rs
index 7a0ef0eb88..c4c4d6955c 100644
--- a/crates/router/src/core/payment_methods/migration.rs
+++ b/crates/router/src/core/payment_methods/migration.rs
@@ -253,6 +253,7 @@ pub async fn update_payment_method_record(
connector_mandate_details_value,
)),
network_transaction_id,
+ network_transaction_link_id: None,
status,
payment_method_data: updated_payment_method_data.clone(),
last_modified_by: platform
@@ -342,6 +343,7 @@ pub async fn update_payment_method_record(
connector_mandate_details_value,
)),
network_transaction_id,
+ network_transaction_link_id: None,
status,
payment_method_data: updated_payment_method_data.clone(),
last_modified_by: platform
@@ -362,6 +364,7 @@ pub async fn update_payment_method_record(
} else {
PaymentMethodUpdate::NetworkTransactionIdAndStatusUpdate {
network_transaction_id,
+ network_transaction_link_id: None,
status,
last_modified_by: platform
.get_initiator()
diff --git a/crates/router/src/core/payment_methods/tokenize/card_executor.rs b/crates/router/src/core/payment_methods/tokenize/card_executor.rs
index d33cb02aaa..64ac69eb20 100644
--- a/crates/router/src/core/payment_methods/tokenize/card_executor.rs
+++ b/crates/router/src/core/payment_methods/tokenize/card_executor.rs
@@ -609,6 +609,7 @@ impl CardNetworkTokenizeExecutor<'_, domain::TokenizeCardRequest> {
None,
None,
None,
+ None,
network_token_details.1.clone(),
Some(stored_locker_resp.store_token_resp.card_reference.clone()),
Some(enc_token_data),
diff --git a/crates/router/src/core/payment_methods/transformers.rs b/crates/router/src/core/payment_methods/transformers.rs
index 3903376111..c89f66a553 100644
--- a/crates/router/src/core/payment_methods/transformers.rs
+++ b/crates/router/src/core/payment_methods/transformers.rs
@@ -1450,6 +1450,7 @@ impl DomainPaymentMethodWrapper {
customer_acceptance: None,
status: common_enums::PaymentMethodStatus::Active, //should be sent from PM service
network_transaction_id: response.network_transaction_id.clone(),
+ network_transaction_link_id: None,
client_secret: None,
payment_method_billing_address: encrypted_payment_method_billing_address,
updated_by: None,
@@ -1573,6 +1574,7 @@ impl DomainPaymentMethodWrapper {
customer_acceptance: None,
status: common_enums::PaymentMethodStatus::Active, //should be sent from PM service
network_transaction_id: None,
+ network_transaction_link_id: None,
client_secret: None,
payment_method_billing_address: encrypted_payment_method_billing_address,
updated_by: None,
@@ -1756,6 +1758,7 @@ impl TryFrom<CreatePaymentMethodResponse> for DomainPaymentMethodWrapper {
customer_acceptance: None,
status: common_enums::PaymentMethodStatus::Active, //should be sent from PM service
network_transaction_id: None,
+ network_transaction_link_id: None,
client_secret: None,
payment_method_billing_address: None, //Should be sent from PM service
updated_by: None,
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index f8d04b6265..a7c89e9c10 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -10736,7 +10736,10 @@ where
logger::info!("using card with network_transaction_id for MIT flow");
Some(payments_api::MandateReferenceId::NetworkMandateId(
- network_transaction_id,
+ payments_api::NetworkMandateIdRef {
+ network_transaction_id,
+ transaction_link_id: None,
+ },
))
}
Some(ActionType::ConnectorMandate(connector_mandate_details)) => {
@@ -10874,7 +10877,10 @@ where
.attach_printable("Failed to fetch the network transaction id")?;
let mandate_reference_id = Some(payments_api::MandateReferenceId::NetworkMandateId(
- network_transaction_id.to_string(),
+ payments_api::NetworkMandateIdRef {
+ network_transaction_id: network_transaction_id.to_string(),
+ transaction_link_id: None,
+ },
));
connector_choice = Some((connector_data, mandate_reference_id.clone()));
@@ -10932,6 +10938,7 @@ impl From<NTWithNTIRef> for payments_api::NetworkTokenWithNTIRef {
fn from(network_token_data: NTWithNTIRef) -> Self {
Self {
network_transaction_id: network_token_data.network_transaction_id,
+ transaction_link_id: None,
token_exp_month: network_token_data.token_exp_month,
token_exp_year: network_token_data.token_exp_year,
}
diff --git a/crates/router/src/core/payments/flows/authorize_flow.rs b/crates/router/src/core/payments/flows/authorize_flow.rs
index 5984aedd38..ddcb87aaf7 100644
--- a/crates/router/src/core/payments/flows/authorize_flow.rs
+++ b/crates/router/src/core/payments/flows/authorize_flow.rs
@@ -1430,6 +1430,7 @@ fn transform_response_for_pre_authenticate_flow(
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id: _,
connector_response_reference_id,
incremental_authorization_allowed,
authentication_data,
@@ -1454,6 +1455,7 @@ fn transform_response_for_pre_authenticate_flow(
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id: None,
connector_response_reference_id,
incremental_authorization_allowed,
authentication_data,
@@ -1484,6 +1486,7 @@ fn transform_response_for_pre_authenticate_flow(
mandate_reference,
connector_metadata: _,
network_txn_id,
+ network_txn_link_id,
connector_response_reference_id,
incremental_authorization_allowed,
charges,
@@ -1546,6 +1549,7 @@ fn transform_response_for_pre_authenticate_flow(
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id,
connector_response_reference_id,
incremental_authorization_allowed,
charges,
diff --git a/crates/router/src/core/payments/flows/complete_authorize_flow.rs b/crates/router/src/core/payments/flows/complete_authorize_flow.rs
index 1d40df1fba..3e1a086978 100644
--- a/crates/router/src/core/payments/flows/complete_authorize_flow.rs
+++ b/crates/router/src/core/payments/flows/complete_authorize_flow.rs
@@ -701,6 +701,7 @@ fn transform_response_for_authenticate_flow(
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id,
connector_response_reference_id,
incremental_authorization_allowed,
authentication_data,
@@ -725,6 +726,7 @@ fn transform_response_for_authenticate_flow(
mandate_reference,
connector_metadata,
network_txn_id,
+ network_txn_link_id,
connector_response_reference_id,
incremental_authorization_allowed,
authentication_data,
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs
index e21f7d2542..42c6ab37e0 100644
--- a/crates/router/src/core/payments/helpers.rs
+++ b/crates/router/src/core/payments/helpers.rs
@@ -5365,6 +5365,7 @@ impl AttemptType {
routing_approach: old_payment_attempt.routing_approach,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
network_details: None,
is_stored_credential: old_payment_attempt.is_stored_credential,
authorized_amount: old_payment_attempt.authorized_amount,
diff --git a/crates/router/src/core/payments/operations/payment_confirm.rs b/crates/router/src/core/payments/operations/payment_confirm.rs
index bc5fd00889..f41b547ba4 100644
--- a/crates/router/src/core/payments/operations/payment_confirm.rs
+++ b/crates/router/src/core/payments/operations/payment_confirm.rs
@@ -2687,6 +2687,10 @@ impl<F: Clone + Sync> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for
.payment_attempt
.network_transaction_id
.clone(),
+ network_transaction_link_id: payment_data
+ .payment_attempt
+ .network_transaction_link_id
+ .clone(),
is_stored_credential,
request_extended_authorization: payment_data
.payment_attempt
diff --git a/crates/router/src/core/payments/operations/payment_create.rs b/crates/router/src/core/payments/operations/payment_create.rs
index 1e269822a6..cf487dcf31 100644
--- a/crates/router/src/core/payments/operations/payment_create.rs
+++ b/crates/router/src/core/payments/operations/payment_create.rs
@@ -454,7 +454,10 @@ impl<F: Send + Clone + Sync> GetTracker<F, PaymentData<F>, api::PaymentsRequest>
mandate_id: Some(mandate_obj.mandate_id),
mandate_reference_id: Some(
api_models::payments::MandateReferenceId::NetworkMandateId(
- network_tx_id,
+ api_models::payments::NetworkMandateIdRef {
+ network_transaction_id: network_tx_id,
+ transaction_link_id: None,
+ },
),
),
}),
@@ -1688,8 +1691,9 @@ impl PaymentCreate {
setup_future_usage_applied: request.setup_future_usage,
routing_approach: Some(common_enums::RoutingApproach::default()),
connector_request_reference_id: None,
- network_transaction_id:None,
- network_details:None,
+ network_transaction_id: None,
+ network_transaction_link_id: None,
+ network_details: None,
is_stored_credential,
authorized_amount: None,
tokenization:request.tokenization,
diff --git a/crates/router/src/core/payments/operations/payment_response.rs b/crates/router/src/core/payments/operations/payment_response.rs
index 4f1ec7d1a5..41f407a817 100644
--- a/crates/router/src/core/payments/operations/payment_response.rs
+++ b/crates/router/src/core/payments/operations/payment_response.rs
@@ -2362,6 +2362,12 @@ async fn payment_response_update_tracker<F: Clone, T: types::Capturable>(
.ok()
.and_then(|resp| resp.get_network_transaction_id());
+ let resp_network_transaction_link_id = router_data
+ .response
+ .as_ref()
+ .ok()
+ .and_then(|resp| resp.get_network_transaction_link_id());
+
let encoded_data = payment_data.payment_attempt.encoded_data.clone();
let authentication_data = (*redirection_data)
@@ -2534,6 +2540,8 @@ async fn payment_response_update_tracker<F: Clone, T: types::Capturable>(
.setup_future_usage_applied,
debit_routing_savings,
network_transaction_id: resp_network_transaction_id,
+ network_transaction_link_id:
+ resp_network_transaction_link_id,
is_overcapture_enabled,
authorized_amount: router_data.authorized_amount,
tokenization: payment_data
@@ -3032,15 +3040,26 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
}
};
- let pm_resp_network_transaction_id = payment_response
- .map(|resp| if let types::PaymentsResponseData::TransactionResponse { network_txn_id: network_transaction_id, .. } = resp {
- network_transaction_id
- } else {None})
- .map_err(|err| {
- logger::error!(error=?err, "Failed to obtain the network_transaction_id from payment response");
- })
- .ok()
- .flatten();
+ let (pm_resp_network_transaction_id, pm_resp_network_transaction_link_id) =
+ payment_response
+ .map(|resp| {
+ if let types::PaymentsResponseData::TransactionResponse {
+ network_txn_id,
+ network_txn_link_id,
+ ..
+ } = resp
+ {
+ (network_txn_id, network_txn_link_id)
+ } else {
+ (None, None)
+ }
+ })
+ .map_err(|err| {
+ logger::error!(error=?err, "Failed to obtain the network_transaction_id from payment response");
+ })
+ .ok()
+ .unwrap_or((None, None));
+
let network_transaction_id = if payment_data.payment_intent.setup_future_usage
== Some(diesel_models::enums::FutureUsage::OffSession)
{
@@ -3054,6 +3073,14 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
None
};
+ let network_transaction_link_id = if payment_data.payment_intent.setup_future_usage
+ == Some(diesel_models::enums::FutureUsage::OffSession)
+ {
+ pm_resp_network_transaction_link_id
+ } else {
+ None
+ };
+
let pm_update = if payment_method.status != common_enums::PaymentMethodStatus::Active
&& payment_method.status != attempt_status.into()
{
@@ -3064,6 +3091,7 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
.map(|info| info.status = updated_pm_status);
storage::PaymentMethodUpdate::NetworkTransactionIdAndStatusUpdate {
network_transaction_id,
+ network_transaction_link_id,
status: Some(updated_pm_status),
last_modified_by: initiator
.and_then(|initiator| initiator.to_created_by())
@@ -3072,6 +3100,7 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
} else {
storage::PaymentMethodUpdate::NetworkTransactionIdAndStatusUpdate {
network_transaction_id,
+ network_transaction_link_id,
status: None,
last_modified_by: initiator
.and_then(|initiator| initiator.to_created_by())
diff --git a/crates/router/src/core/payments/operations/payment_update.rs b/crates/router/src/core/payments/operations/payment_update.rs
index 79cbbcf29f..1b9eb6c71f 100644
--- a/crates/router/src/core/payments/operations/payment_update.rs
+++ b/crates/router/src/core/payments/operations/payment_update.rs
@@ -344,7 +344,10 @@ impl<F: Send + Clone + Sync> GetTracker<F, PaymentData<F>, api::PaymentsRequest>
mandate_id: Some(mandate_obj.mandate_id),
mandate_reference_id: Some(
api_models::payments::MandateReferenceId::NetworkMandateId(
- network_tx_id,
+ api_models::payments::NetworkMandateIdRef {
+ network_transaction_id: network_tx_id,
+ transaction_link_id: None,
+ },
),
),
}),
@@ -927,6 +930,7 @@ impl<F: Clone + Sync> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for
payment_method_billing_address_id,
updated_by: storage_scheme.to_string(),
network_transaction_id,
+ network_transaction_link_id: None,
net_amount:
hyperswitch_domain_models::payments::payment_attempt::NetAmount::new(
payment_data.amount.into(),
diff --git a/crates/router/src/core/payments/retry.rs b/crates/router/src/core/payments/retry.rs
index f93886233e..da2a2d8f14 100644
--- a/crates/router/src/core/payments/retry.rs
+++ b/crates/router/src/core/payments/retry.rs
@@ -624,6 +624,10 @@ where
.get_payment_attempt()
.network_transaction_id
.clone(),
+ network_transaction_link_id: payment_data
+ .get_payment_attempt()
+ .network_transaction_link_id
+ .clone(),
is_overcapture_enabled: None,
authorized_amount: router_data.authorized_amount,
tokenization: None,
@@ -850,6 +854,7 @@ pub fn make_new_auto_retry_payment_attempt(
routing_approach: old_payment_attempt.routing_approach,
connector_request_reference_id: Default::default(),
network_transaction_id: old_payment_attempt.network_transaction_id,
+ network_transaction_link_id: old_payment_attempt.network_transaction_link_id,
network_details: Default::default(),
is_stored_credential: old_payment_attempt.is_stored_credential,
authorized_amount: old_payment_attempt.authorized_amount,
diff --git a/crates/router/src/core/payments/tokenization.rs b/crates/router/src/core/payments/tokenization.rs
index 89c5a5ea0e..9480a99020 100644
--- a/crates/router/src/core/payments/tokenization.rs
+++ b/crates/router/src/core/payments/tokenization.rs
@@ -182,11 +182,13 @@ where
.map(|token_filter| token_filter.long_lived_token)
.unwrap_or(false);
- let network_transaction_id = match &responses {
- types::PaymentsResponseData::TransactionResponse { network_txn_id, .. } => {
- network_txn_id.clone()
- }
- _ => None,
+ let (network_transaction_id, network_transaction_link_id) = match &responses {
+ types::PaymentsResponseData::TransactionResponse {
+ network_txn_id,
+ network_txn_link_id,
+ ..
+ } => (network_txn_id.clone(), network_txn_link_id.clone()),
+ _ => (None, None),
};
let network_transaction_id =
@@ -203,6 +205,15 @@ where
None
};
+ let network_transaction_link_id =
+ if save_payment_method_data.request.get_setup_future_usage()
+ == Some(storage_enums::FutureUsage::OffSession)
+ {
+ network_transaction_link_id
+ } else {
+ None
+ };
+
let connector_token = if token_store {
let tokens = save_payment_method_data
.payment_method_token
@@ -543,6 +554,7 @@ where
pm_status,
network_transaction_id,
encrypted_payment_method_billing_address,
+ network_transaction_link_id,
resp.card.and_then(|card| {
card.card_network.map(|card_network| {
card_network.to_string()
@@ -689,6 +701,7 @@ where
pm_status,
network_transaction_id,
encrypted_payment_method_billing_address,
+ network_transaction_link_id,
resp.card.and_then(|card| {
card.card_network.map(|card_network| {
card_network.to_string()
@@ -920,6 +933,7 @@ where
pm_status,
network_transaction_id,
encrypted_payment_method_billing_address,
+ network_transaction_link_id,
resp.card.and_then(|card| {
card.card_network
.map(|card_network| card_network.to_string())
diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs
index 39e4c40b60..af58da0700 100644
--- a/crates/router/src/core/payments/transformers.rs
+++ b/crates/router/src/core/payments/transformers.rs
@@ -1735,6 +1735,7 @@ where
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: None,
authentication_data: None,
diff --git a/crates/router/src/core/payouts/helpers.rs b/crates/router/src/core/payouts/helpers.rs
index 54e7f8d709..24e2516abd 100644
--- a/crates/router/src/core/payouts/helpers.rs
+++ b/crates/router/src/core/payouts/helpers.rs
@@ -762,6 +762,7 @@ pub async fn save_payout_data_to_locker(
None,
None,
None,
+ None,
Default::default(),
None,
None,
diff --git a/crates/router/src/core/pm_auth.rs b/crates/router/src/core/pm_auth.rs
index a8bebb684e..84742ee80c 100644
--- a/crates/router/src/core/pm_auth.rs
+++ b/crates/router/src/core/pm_auth.rs
@@ -525,6 +525,7 @@ async fn store_bank_details_in_payment_methods(
connector_mandate_details: None,
customer_acceptance: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
client_secret: None,
payment_method_billing_address: None,
updated_by: None,
diff --git a/crates/router/src/core/split_payments.rs b/crates/router/src/core/split_payments.rs
index e4c447bed1..e81a10abb4 100644
--- a/crates/router/src/core/split_payments.rs
+++ b/crates/router/src/core/split_payments.rs
@@ -594,6 +594,7 @@ pub async fn create_domain_model_for_split_payment(
created_by: initiator.and_then(|initiator| initiator.to_created_by()),
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
authorized_amount: None,
external_surcharge_details: None,
})
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs
index 1ff39534ed..e5a9bf1c72 100644
--- a/crates/router/src/core/unified_connector_service/transformers.rs
+++ b/crates/router/src/core/unified_connector_service/transformers.rs
@@ -1805,7 +1805,7 @@ impl
)) => Some(payments_grpc::MandateReference {
mandate_id_type: Some(
payments_grpc::mandate_reference::MandateIdType::NetworkMandateId(
- network_mandate_id.clone(),
+ network_mandate_id.network_transaction_id.clone(),
),
),
}),
@@ -2183,6 +2183,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_order_id.clone(),
incremental_authorization_allowed: None,
authentication_data,
@@ -2374,6 +2375,7 @@ impl
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_transaction_id.clone(),
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
@@ -2480,6 +2482,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceCaptureResponse,
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_capture_id.clone(),
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
@@ -2670,6 +2673,7 @@ impl
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata,
network_txn_id: response.network_transaction_id,
+ network_txn_link_id: None,
connector_response_reference_id: None,
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
@@ -2785,6 +2789,7 @@ impl
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_charge_id.clone(),
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
@@ -4144,6 +4149,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_order_id.clone(),
incremental_authorization_allowed: None,
authentication_data,
@@ -5341,6 +5347,7 @@ impl
mandate_reference: Box::new(None),
connector_metadata,
network_txn_id: response.network_transaction_id.clone(),
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_order_id.clone(),
incremental_authorization_allowed: None,
authentication_data,
@@ -6071,6 +6078,7 @@ impl transformers::ForeignTryFrom<(payments_grpc::PaymentServiceVoidResponse, At
mandate_reference: Box::new(response.mandate_reference.map(hyperswitch_domain_models::router_response_types::MandateReference::foreign_try_from).transpose()?),
connector_metadata,
network_txn_id: None,
+ network_txn_link_id: None,
connector_response_reference_id: response.merchant_void_id.clone(),
incremental_authorization_allowed: response.incremental_authorization_allowed,
authentication_data: None,
diff --git a/crates/router/src/services/kafka/payment_attempt.rs b/crates/router/src/services/kafka/payment_attempt.rs
index 02d17eea69..cd82e8de63 100644
--- a/crates/router/src/services/kafka/payment_attempt.rs
+++ b/crates/router/src/services/kafka/payment_attempt.rs
@@ -285,6 +285,7 @@ impl<'a> KafkaPaymentAttempt<'a> {
created_by,
connector_request_reference_id,
network_transaction_id: _,
+ network_transaction_link_id: _,
authorized_amount: _,
external_surcharge_details: _,
} = attempt;
diff --git a/crates/router/src/services/kafka/payment_attempt_event.rs b/crates/router/src/services/kafka/payment_attempt_event.rs
index 99312dec6a..e549dcc3b0 100644
--- a/crates/router/src/services/kafka/payment_attempt_event.rs
+++ b/crates/router/src/services/kafka/payment_attempt_event.rs
@@ -287,6 +287,7 @@ impl<'a> KafkaPaymentAttemptEvent<'a> {
created_by,
connector_request_reference_id,
network_transaction_id: _,
+ network_transaction_link_id: _,
authorized_amount: _,
external_surcharge_details: _,
} = attempt;
diff --git a/crates/router/src/types/storage/payment_attempt.rs b/crates/router/src/types/storage/payment_attempt.rs
index 617e9f8818..e3ce3dcbcf 100644
--- a/crates/router/src/types/storage/payment_attempt.rs
+++ b/crates/router/src/types/storage/payment_attempt.rs
@@ -230,6 +230,7 @@ mod tests {
routing_approach: Default::default(),
connector_request_reference_id: Default::default(),
network_transaction_id: Default::default(),
+ network_transaction_link_id: Default::default(),
network_details: Default::default(),
is_stored_credential: None,
authorized_amount: Default::default(),
@@ -351,6 +352,7 @@ mod tests {
routing_approach: Default::default(),
connector_request_reference_id: Default::default(),
network_transaction_id: Default::default(),
+ network_transaction_link_id: Default::default(),
network_details: Default::default(),
is_stored_credential: Default::default(),
authorized_amount: Default::default(),
@@ -486,6 +488,7 @@ mod tests {
routing_approach: Default::default(),
connector_request_reference_id: Default::default(),
network_transaction_id: Default::default(),
+ network_transaction_link_id: Default::default(),
network_details: Default::default(),
is_stored_credential: Default::default(),
authorized_amount: Default::default(),
diff --git a/crates/router/src/utils/user/sample_data.rs b/crates/router/src/utils/user/sample_data.rs
index 56b8ce4f4d..ef72f0e227 100644
--- a/crates/router/src/utils/user/sample_data.rs
+++ b/crates/router/src/utils/user/sample_data.rs
@@ -396,6 +396,7 @@ pub async fn generate_sample_data(
routing_approach: None,
connector_request_reference_id: None,
network_transaction_id: None,
+ network_transaction_link_id: None,
network_details: None,
is_stored_credential: None,
authorized_amount: None,
diff --git a/crates/router/tests/connectors/utils.rs b/crates/router/tests/connectors/utils.rs
index 541c140ea0..610c3f72f9 100644
--- a/crates/router/tests/connectors/utils.rs
+++ b/crates/router/tests/connectors/utils.rs
@@ -1211,6 +1211,7 @@ pub fn get_connector_metadata(
mandate_reference: _,
connector_metadata,
network_txn_id: _,
+ network_txn_link_id: None,
connector_response_reference_id: _,
incremental_authorization_allowed: _,
authentication_data: None,
diff --git a/crates/storage_impl/src/mock_db/payment_attempt.rs b/crates/storage_impl/src/mock_db/payment_attempt.rs
index aa55ee48dc..54e8df65f4 100644
--- a/crates/storage_impl/src/mock_db/payment_attempt.rs
+++ b/crates/storage_impl/src/mock_db/payment_attempt.rs
@@ -241,6 +241,7 @@ impl PaymentAttemptInterface for MockDb {
connector_request_reference_id: payment_attempt.connector_request_reference_id,
debit_routing_savings: None,
network_transaction_id: payment_attempt.network_transaction_id,
+ network_transaction_link_id: payment_attempt.network_transaction_link_id,
is_overcapture_enabled: None,
network_details: payment_attempt.network_details,
is_stored_credential: payment_attempt.is_stored_credential,
diff --git a/crates/storage_impl/src/payments/payment_attempt.rs b/crates/storage_impl/src/payments/payment_attempt.rs
index 90dee9867c..c063242c91 100644
--- a/crates/storage_impl/src/payments/payment_attempt.rs
+++ b/crates/storage_impl/src/payments/payment_attempt.rs
@@ -838,6 +838,9 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
.clone(),
debit_routing_savings: None,
network_transaction_id: payment_attempt.network_transaction_id.clone(),
+ network_transaction_link_id: payment_attempt
+ .network_transaction_link_id
+ .clone(),
is_overcapture_enabled: None,
network_details: payment_attempt.network_details.clone(),
is_stored_credential: payment_attempt.is_stored_credential,
diff --git a/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/down.sql b/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/down.sql
new file mode 100644
index 0000000000..09113cb9f9
--- /dev/null
+++ b/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/down.sql
@@ -0,0 +1,2 @@
+ALTER TABLE payment_attempt DROP COLUMN IF EXISTS network_transaction_link_id;
+ALTER TABLE payment_methods DROP COLUMN IF EXISTS network_transaction_link_id;
diff --git a/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/up.sql b/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/up.sql
new file mode 100644
index 0000000000..4500d607b3
--- /dev/null
+++ b/migrations/2026-05-11-000001_add_tlid_to_payment_attempt_and_payment_methods/up.sql
@@ -0,0 +1,5 @@
+ALTER TABLE payment_attempt
+ ADD COLUMN IF NOT EXISTS network_transaction_link_id VARCHAR(255);
+
+ALTER TABLE payment_methods
+ ADD COLUMN IF NOT EXISTS network_transaction_link_id VARCHAR(255);