refactor: add encryption support to payment attempt domain model (#5882)

This commit is contained in:
Sanchith Hegde
2024-09-17 16:26:08 +05:30
committed by GitHub
parent bc6c460ca9
commit f72abe4b97
30 changed files with 2986 additions and 735 deletions

View File

@ -262,7 +262,7 @@ pub async fn generate_sample_data(
true => common_enums::AttemptStatus::Failure,
_ => common_enums::AttemptStatus::Charged,
},
amount: amount * 100,
amount: MinorUnit::new(amount * 100),
currency: payment_intent.currency,
connector: Some(
(*connector_vec
@ -289,7 +289,7 @@ pub async fn generate_sample_data(
created_at,
modified_at,
last_synced: Some(last_synced),
amount_to_capture: Some(amount * 100),
amount_to_capture: Some(MinorUnit::new(amount * 100)),
connector_response_reference_id: Some(attempt_id.clone()),
updated_by: merchant_from_db.storage_scheme.to_string(),
save_to_locker: None,
@ -312,7 +312,7 @@ pub async fn generate_sample_data(
mandate_details: None,
error_reason: None,
multiple_capture_count: None,
amount_capturable: i64::default(),
amount_capturable: MinorUnit::new(i64::default()),
merchant_connector_id: None,
authentication_data: None,
encoded_data: None,