From 3322103f5c9b7c2a5b663980246c6ca36b8dc63e Mon Sep 17 00:00:00 2001
From: Sai Harsha Vardhan
<56996463+sai-harsha-vardhan@users.noreply.github.com>
Date: Fri, 24 Nov 2023 12:33:30 +0530
Subject: [PATCH] feat(router): add `connector_transaction_id` in
error_response from connector flows (#2972)
---
crates/data_models/src/payments/payment_attempt.rs | 1 +
crates/diesel_models/src/payment_attempt.rs | 3 +++
crates/router/src/connector/aci.rs | 1 +
crates/router/src/connector/adyen.rs | 7 +++++++
crates/router/src/connector/adyen/transformers.rs | 5 +++++
crates/router/src/connector/airwallex.rs | 1 +
crates/router/src/connector/authorizedotnet.rs | 3 +++
.../src/connector/authorizedotnet/transformers.rs | 4 ++++
crates/router/src/connector/bambora.rs | 1 +
crates/router/src/connector/bankofamerica.rs | 1 +
.../src/connector/bankofamerica/transformers.rs | 3 +++
crates/router/src/connector/bitpay.rs | 1 +
crates/router/src/connector/bluesnap.rs | 3 +++
crates/router/src/connector/boku.rs | 2 ++
crates/router/src/connector/braintree.rs | 2 ++
.../braintree/braintree_graphql_transformers.rs | 1 +
crates/router/src/connector/cashtocode.rs | 1 +
.../router/src/connector/cashtocode/transformers.rs | 1 +
crates/router/src/connector/checkout.rs | 1 +
.../router/src/connector/checkout/transformers.rs | 2 ++
crates/router/src/connector/coinbase.rs | 1 +
crates/router/src/connector/cryptopay.rs | 1 +
crates/router/src/connector/cybersource.rs | 1 +
.../src/connector/cybersource/transformers.rs | 1 +
crates/router/src/connector/dlocal.rs | 1 +
crates/router/src/connector/dummyconnector.rs | 1 +
crates/router/src/connector/fiserv.rs | 2 ++
crates/router/src/connector/forte.rs | 1 +
crates/router/src/connector/globalpay.rs | 2 ++
crates/router/src/connector/globepay.rs | 1 +
.../router/src/connector/globepay/transformers.rs | 1 +
crates/router/src/connector/gocardless.rs | 1 +
crates/router/src/connector/helcim.rs | 1 +
crates/router/src/connector/iatapay.rs | 2 ++
crates/router/src/connector/klarna.rs | 1 +
crates/router/src/connector/mollie.rs | 1 +
crates/router/src/connector/multisafepay.rs | 1 +
.../src/connector/multisafepay/transformers.rs | 3 +++
crates/router/src/connector/nexinets.rs | 1 +
crates/router/src/connector/nmi/transformers.rs | 1 +
crates/router/src/connector/noon.rs | 1 +
crates/router/src/connector/noon/transformers.rs | 1 +
crates/router/src/connector/nuvei/transformers.rs | 1 +
crates/router/src/connector/opayo.rs | 1 +
crates/router/src/connector/opennode.rs | 1 +
crates/router/src/connector/payeezy.rs | 1 +
crates/router/src/connector/payme.rs | 1 +
crates/router/src/connector/payme/transformers.rs | 2 ++
crates/router/src/connector/paypal.rs | 3 +++
crates/router/src/connector/payu.rs | 2 ++
crates/router/src/connector/powertranz.rs | 1 +
.../router/src/connector/powertranz/transformers.rs | 2 ++
crates/router/src/connector/prophetpay.rs | 1 +
.../router/src/connector/prophetpay/transformers.rs | 5 +++++
crates/router/src/connector/rapyd.rs | 1 +
crates/router/src/connector/rapyd/transformers.rs | 2 ++
crates/router/src/connector/shift4.rs | 1 +
crates/router/src/connector/square.rs | 1 +
crates/router/src/connector/stax.rs | 1 +
crates/router/src/connector/stripe.rs | 13 +++++++++++++
crates/router/src/connector/stripe/transformers.rs | 7 +++++++
crates/router/src/connector/trustpay.rs | 3 +++
.../router/src/connector/trustpay/transformers.rs | 8 ++++++++
crates/router/src/connector/tsys/transformers.rs | 1 +
crates/router/src/connector/volt.rs | 1 +
crates/router/src/connector/wise.rs | 4 ++++
crates/router/src/connector/worldpay.rs | 1 +
crates/router/src/connector/zen.rs | 1 +
crates/router/src/core/payments/access_token.rs | 1 +
.../core/payments/operations/payment_response.rs | 1 +
crates/router/src/core/payments/retry.rs | 1 +
crates/router/src/services/api.rs | 3 +++
crates/router/src/types.rs | 3 +++
crates/router/src/types/api.rs | 1 +
crates/router/src/utils.rs | 1 +
crates/router/src/workflows/payment_sync.rs | 1 +
crates/storage_impl/src/payments/payment_attempt.rs | 4 ++++
77 files changed, 153 insertions(+)
diff --git a/crates/data_models/src/payments/payment_attempt.rs b/crates/data_models/src/payments/payment_attempt.rs
index 80ae283be85..b866237745f 100644
--- a/crates/data_models/src/payments/payment_attempt.rs
+++ b/crates/data_models/src/payments/payment_attempt.rs
@@ -326,6 +326,7 @@ pub enum PaymentAttemptUpdate {
updated_by: String,
unified_code: Option