feat(core): Rename crate data_models to hyperswitch_domain_models (#4504)

This commit is contained in:
DEEPANSHU BANSAL
2024-05-02 17:56:11 +05:30
committed by GitHub
parent 6c59d2434c
commit 86e93cd3a0
77 changed files with 309 additions and 258 deletions

View File

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