mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
refactor: shrink sizes of VARCHAR columns and rename some columns (#188)
This commit is contained in:
@ -82,7 +82,7 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsCancelRequest>
|
||||
.await?;
|
||||
|
||||
let connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_attempt.payment_id,
|
||||
&payment_attempt.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -86,7 +86,7 @@ impl<F: Send + Clone> GetTracker<F, payments::PaymentData<F>, api::PaymentsCaptu
|
||||
amount = payment_attempt.amount.into();
|
||||
|
||||
let connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_attempt.payment_id,
|
||||
&payment_attempt.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -94,7 +94,7 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsRequest> for Pa
|
||||
amount = payment_attempt.amount.into();
|
||||
|
||||
connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_attempt.payment_id,
|
||||
&payment_attempt.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -503,7 +503,7 @@ impl PaymentCreate {
|
||||
storage::ConnectorResponseNew {
|
||||
payment_id: payment_attempt.payment_id.clone(),
|
||||
merchant_id: payment_attempt.merchant_id.clone(),
|
||||
txn_id: payment_attempt.attempt_id.clone(),
|
||||
attempt_id: payment_attempt.attempt_id.clone(),
|
||||
created_at: payment_attempt.created_at,
|
||||
modified_at: payment_attempt.modified_at,
|
||||
connector_name: payment_attempt.connector.clone(),
|
||||
|
||||
@ -103,7 +103,7 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsSessionRequest>
|
||||
|
||||
let db = db as &dyn StorageInterface;
|
||||
let connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_intent.payment_id,
|
||||
&payment_intent.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -100,7 +100,7 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsStartRequest> f
|
||||
};
|
||||
|
||||
let connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_intent.payment_id,
|
||||
&payment_intent.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -230,7 +230,7 @@ async fn get_tracker_for_sync<
|
||||
.map_err(|error| error.to_not_found_response(errors::ApiErrorResponse::PaymentNotFound))?;
|
||||
|
||||
let mut connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_intent.payment_id,
|
||||
&payment_intent.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
@ -113,7 +113,7 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsRequest> for Pa
|
||||
|
||||
let db = db as &dyn StorageInterface;
|
||||
let connector_response = db
|
||||
.find_connector_response_by_payment_id_merchant_id_txn_id(
|
||||
.find_connector_response_by_payment_id_merchant_id_attempt_id(
|
||||
&payment_intent.payment_id,
|
||||
&payment_intent.merchant_id,
|
||||
&payment_attempt.attempt_id,
|
||||
|
||||
Reference in New Issue
Block a user