Skip to content

Commit

Permalink
fix: address failing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
swangi-kumari committed Oct 15, 2024
1 parent ba11316 commit d699171
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ pub trait PaymentAttemptInterface {
payment_method_type: Option<Vec<storage_enums::PaymentMethodType>>,
authentication_type: Option<Vec<storage_enums::AuthenticationType>>,
merchant_connector_id: Option<Vec<id_type::MerchantConnectorAccountId>>,
time_range: Option<common_utils::types::TimeRange>,
profile_id_list: Option<Vec<id_type::ProfileId>>,
storage_scheme: storage_enums::MerchantStorageScheme,
) -> error_stack::Result<i64, errors::StorageError>;
Expand Down Expand Up @@ -715,6 +714,10 @@ pub enum PaymentAttemptUpdate {
unified_message: Option<String>,
connector_transaction_id: Option<String>,
},
PostSessionTokensUpdate {
updated_by: String,
connector_metadata: Option<serde_json::Value>,
},
}

// TODO: Add fields as necessary
Expand Down
14 changes: 14 additions & 0 deletions crates/storage_impl/src/payments/payment_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,13 @@ impl DataModelExt for PaymentAttemptUpdate {
unified_message,
connector_transaction_id,
},
Self::PostSessionTokensUpdate {
updated_by,
connector_metadata,
} => DieselPaymentAttemptUpdate::PostSessionTokensUpdate {
updated_by,
connector_metadata,
},
}
}

Expand Down Expand Up @@ -2386,6 +2393,13 @@ impl DataModelExt for PaymentAttemptUpdate {
unified_message,
connector_transaction_id,
},
DieselPaymentAttemptUpdate::PostSessionTokensUpdate {
updated_by,
connector_metadata,
} => Self::PostSessionTokensUpdate {
updated_by,
connector_metadata,
},
}
}
}
Expand Down

0 comments on commit d699171

Please sign in to comment.