refactor(schema): add a new column for storing large connector transaction IDs (#7017)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Kashif
2025-02-12 13:18:38 +05:30
committed by GitHub
parent 40a36fd319
commit fa09db1534
28 changed files with 987 additions and 122 deletions

View File

@ -277,7 +277,7 @@ pub async fn generate_sample_data(
psd2_sca_exemption_type: None,
platform_merchant_id: None,
};
let (connector_transaction_id, connector_transaction_data) =
let (connector_transaction_id, processor_transaction_data) =
ConnectorTransactionId::form_id_and_data(attempt_id.clone());
let payment_attempt = PaymentAttemptBatchNew {
attempt_id: attempt_id.clone(),
@ -359,14 +359,14 @@ pub async fn generate_sample_data(
organization_id: org_id.clone(),
shipping_cost: None,
order_tax_amount: None,
connector_transaction_data,
processor_transaction_data,
connector_mandate_detail: None,
card_discovery: None,
};
let refund = if refunds_count < number_of_refunds && !is_failed_payment {
refunds_count += 1;
let (connector_transaction_id, connector_transaction_data) =
let (connector_transaction_id, processor_transaction_data) =
ConnectorTransactionId::form_id_and_data(attempt_id.clone());
Some(RefundNew {
refund_id: common_utils::generate_id_with_default_len("test"),
@ -401,8 +401,8 @@ pub async fn generate_sample_data(
charges: None,
split_refunds: None,
organization_id: org_id.clone(),
connector_refund_data: None,
connector_transaction_data,
processor_refund_data: None,
processor_transaction_data,
})
} else {
None