test(connector): add and update tests for stripe, cybersource and shift4 connectors (#485)

This commit is contained in:
Jagan
2023-02-01 14:25:39 +05:30
committed by GitHub
parent 3dfd548cb8
commit 5c3c51fbd5
23 changed files with 921 additions and 340 deletions

View File

@ -3,6 +3,7 @@ use error_stack::ResultExt;
use serde::{Deserialize, Serialize};
use crate::{
connector::utils::RefundsRequestData,
core::errors,
pii::PeekInterface,
types::{self, api, storage::enums},
@ -466,12 +467,7 @@ impl<F> TryFrom<&types::RefundsRouterData<F>> for AuthorizedotnetCreateSyncReque
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(item: &types::RefundsRouterData<F>) -> Result<Self, Self::Error> {
let transaction_id = item
.request
.connector_refund_id
.clone()
.get_required_value("connector_refund_id")
.change_context(errors::ConnectorError::MissingConnectorRefundID)?;
let transaction_id = item.request.get_connector_refund_id()?;
let merchant_authentication = MerchantAuthentication::try_from(&item.connector_auth_type)?;
let payload = Self {