refactor: shrink sizes of VARCHAR columns and rename some columns (#188)

This commit is contained in:
Sanchith Hegde
2022-12-22 12:27:59 +05:30
committed by GitHub
parent 349036bff3
commit 60f076f1c3
26 changed files with 323 additions and 97 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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(),

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,