mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -13,8 +13,6 @@ use crate::{ | ||||
|     types::{self, api, domain, PaymentAddress}, | ||||
| }; | ||||
|  | ||||
| const IRRELEVANT_PAYMENT_ID_IN_SOURCE_VERIFICATION_FLOW: &str = | ||||
|     "irrelevant_payment_id_in_source_verification_flow"; | ||||
| const IRRELEVANT_ATTEMPT_ID_IN_SOURCE_VERIFICATION_FLOW: &str = | ||||
|     "irrelevant_attempt_id_in_source_verification_flow"; | ||||
| const IRRELEVANT_CONNECTOR_REQUEST_REFERENCE_ID_IN_SOURCE_VERIFICATION_FLOW: &str = | ||||
| @ -76,7 +74,9 @@ pub async fn construct_webhook_router_data<'a>( | ||||
|         merchant_id: merchant_account.get_id().clone(), | ||||
|         connector: connector_name.to_string(), | ||||
|         customer_id: None, | ||||
|         payment_id: IRRELEVANT_PAYMENT_ID_IN_SOURCE_VERIFICATION_FLOW.to_string(), | ||||
|         payment_id: common_utils::id_type::PaymentId::get_irrelevant_id("source_verification_flow") | ||||
|             .get_string_repr() | ||||
|             .to_owned(), | ||||
|         attempt_id: IRRELEVANT_ATTEMPT_ID_IN_SOURCE_VERIFICATION_FLOW.to_string(), | ||||
|         status: diesel_models::enums::AttemptStatus::default(), | ||||
|         payment_method: diesel_models::enums::PaymentMethod::default(), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat