Skip to content

Commit 8982e33

Browse files
committed
update
1 parent ea4e9d8 commit 8982e33

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

crates/router/tests/connectors/celero.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use masking::Secret;
2-
use router::types::{self, api, storage::enums};
2+
use router::types::{self, api, domain, storage::enums};
33
use test_utils::connector_auth;
44

55
use crate::utils::{self, ConnectorActions};
@@ -10,12 +10,12 @@ impl ConnectorActions for CeleroTest {}
1010
impl utils::Connector for CeleroTest {
1111
fn get_data(&self) -> api::ConnectorData {
1212
use router::connector::Celero;
13-
api::ConnectorData {
14-
connector: Box::new(Celero::new()),
15-
connector_name: types::Connector::Celero,
16-
get_token: types::api::GetToken::Connector,
17-
merchant_connector_id: None,
18-
}
13+
utils::construct_connector_data_old(
14+
Box::new(Celero::new()),
15+
types::Connector::Celero,
16+
api::GetToken::Connector,
17+
None,
18+
)
1919
}
2020

2121
fn get_auth_token(&self) -> types::ConnectorAuthType {
@@ -302,7 +302,7 @@ async fn should_fail_payment_for_incorrect_cvc() {
302302
let response = CONNECTOR
303303
.make_payment(
304304
Some(types::PaymentsAuthorizeData {
305-
payment_method_data: types::api::PaymentMethodData::Card(api::Card {
305+
payment_method_data: domain::PaymentMethodData::Card(domain::Card {
306306
card_cvc: Secret::new("12345".to_string()),
307307
..utils::CCardType::default().0
308308
}),
@@ -324,7 +324,7 @@ async fn should_fail_payment_for_invalid_exp_month() {
324324
let response = CONNECTOR
325325
.make_payment(
326326
Some(types::PaymentsAuthorizeData {
327-
payment_method_data: api::PaymentMethodData::Card(api::Card {
327+
payment_method_data: domain::PaymentMethodData::Card(domain::Card {
328328
card_exp_month: Secret::new("20".to_string()),
329329
..utils::CCardType::default().0
330330
}),
@@ -346,7 +346,7 @@ async fn should_fail_payment_for_incorrect_expiry_year() {
346346
let response = CONNECTOR
347347
.make_payment(
348348
Some(types::PaymentsAuthorizeData {
349-
payment_method_data: api::PaymentMethodData::Card(api::Card {
349+
payment_method_data: domain::PaymentMethodData::Card(domain::Card {
350350
card_exp_year: Secret::new("2000".to_string()),
351351
..utils::CCardType::default().0
352352
}),

grace

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c25aa204acc4e2484c9b17fbd9a958e2ceb525c6

0 commit comments

Comments
 (0)