mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
feat(core): Rename crate data_models to hyperswitch_domain_models (#4504)
This commit is contained in:
@ -307,8 +307,10 @@ pub async fn get_payment_attempt_from_object_reference_id(
|
||||
state: &AppState,
|
||||
object_reference_id: api_models::webhooks::ObjectReferenceId,
|
||||
merchant_account: &domain::MerchantAccount,
|
||||
) -> CustomResult<data_models::payments::payment_attempt::PaymentAttempt, errors::ApiErrorResponse>
|
||||
{
|
||||
) -> CustomResult<
|
||||
hyperswitch_domain_models::payments::payment_attempt::PaymentAttempt,
|
||||
errors::ApiErrorResponse,
|
||||
> {
|
||||
let db = &*state.store;
|
||||
match object_reference_id {
|
||||
api::ObjectReferenceId::PaymentId(api::PaymentIdType::ConnectorTransactionId(ref id)) => db
|
||||
@ -346,7 +348,7 @@ pub async fn get_or_update_dispute_object(
|
||||
option_dispute: Option<diesel_models::dispute::Dispute>,
|
||||
dispute_details: api::disputes::DisputePayload,
|
||||
merchant_id: &str,
|
||||
payment_attempt: &data_models::payments::payment_attempt::PaymentAttempt,
|
||||
payment_attempt: &hyperswitch_domain_models::payments::payment_attempt::PaymentAttempt,
|
||||
event_type: api_models::webhooks::IncomingWebhookEvent,
|
||||
business_profile: &diesel_models::business_profile::BusinessProfile,
|
||||
connector_name: &str,
|
||||
|
||||
Reference in New Issue
Block a user