Skip to content

Commit

Permalink
template code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranKBR committed May 8, 2024
1 parent 68fd7f9 commit 59e91f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 5 additions & 6 deletions crates/router/src/connector/payone.rs
Expand Up @@ -74,12 +74,11 @@ impl ConnectorCommon for Payone {
"payone"
}

fn get_currency_unit(&self) -> api::CurrencyUnit {
todo!()
// TODO! Check connector documentation, on which unit they are processing the currency.
// If the connector accepts amount in lower unit ( i.e cents for USD) then return api::CurrencyUnit::Minor,
// if connector accepts amount in base unit (i.e dollars for USD) then return api::CurrencyUnit::Base
}
// fn get_currency_unit(&self) -> api::CurrencyUnit {
// // TODO! Check connector documentation, on which unit they are processing the currency.
// // If the connector accepts amount in lower unit ( i.e cents for USD) then return api::CurrencyUnit::Minor,
// // if connector accepts amount in base unit (i.e dollars for USD) then return api::CurrencyUnit::Base
// }

fn common_get_content_type(&self) -> &'static str {
"application/json"
Expand Down
5 changes: 1 addition & 4 deletions crates/router/tests/connectors/payone.rs
@@ -1,8 +1,5 @@
use masking::Secret;
use router::{
core::utils as core_utils,
types::{self, api, domain, storage::enums},
};
use router::types::{self, domain, storage::enums};
use test_utils::connector_auth;

use crate::utils::{self, ConnectorActions};
Expand Down

0 comments on commit 59e91f4

Please sign in to comment.