text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
"{}{}{}{}{}{}",
notif.event.tid,
notif.event.event_type,
notif.result.status,
amount,
currency,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
fn get_webhook_source_verification_signature(
&self,
request: &webhooks::IncomingWebhookRequestDetails<'_>,
_connector_webhook_secrets: &api_mode... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::enums;
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse,
ConnectorSpeci... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
types... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
self.common_get_content_type()
}
fn get_url(
&self,
_req: &RefundSyncRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::Con... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
fn get_url(
&self,
req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
let endpoint = se... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
fn get_headers(
&self,
req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::Conne... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs | crate: hyperswitch_connectors | connector: novalnet
self.common_get_content_type()
}
fn get_url(
&self,
_req: &SetupMandateRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::C... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
api_models::payments::PaymentIdType::ConnectorTransactionId(
match webhook_body.transaction_type {
StaxWebhookEventType::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
)?)
.attach_default_headers()
.headers(types::ConnectorCustomerType::get_headers(
self, req, connectors,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax | op: verify
use common_utils::{
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
};
use hyperswitch_interface... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
fn get_url(
&self,
req: &PaymentsCancelRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(format!(
"{}/... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
s... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
_req: &PaymentsAuthorizeRouterData,
connectors: &Conne... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
)?)
.attach_default_headers()
.headers(types::ConnectorCustomerType::get_headers(
self, req, connectors,
)?)
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
}
fn get_request_body(
&self,
req: &ConnectorCustomerRouterData,
_connectors: &Connectors,
) -> CustomResult<RequestContent, errors::ConnectorEr... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
_req: &ConnectorCustomerRouterData,
con... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
fn get_headers(
&self,
req: &ConnectorCustomerRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
enums::CaptureMethod::ManualMultiple | enums::CaptureMethod::Scheduled => Err(
utils::construct_not_supported_error_report(capture_method, self.id()),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
let auth = stax::StaxAuthType... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stax.rs | crate: hyperswitch_connectors | connector: stax
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
}
fn base_... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate.rs | crate: hyperswitch_connectors | connector: coingate
fn get_auth_header(
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
let auth = c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate.rs | crate: hyperswitch_connectors | connector: coingate
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate.rs | crate: hyperswitch_connectors | connector: coingate | op: verify
Ok(api_models::webhooks::IncomingWebhookEvent::PaymentActionRequired)
}
transformers::CoingatePaymentStatus::Paid => {
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate.rs | crate: hyperswitch_connectors | connector: coingate
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate.rs | crate: hyperswitch_connectors | connector: coingate
_req: &PaymentsCaptureRouterData,
_connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Err(errors::ConnectorErr... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
fn get_headers(
&self,
req: &PaymentsSyncRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> {
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
RequestBuilder::new()
.method(Method::Patch)
.url(&SdkSessionUpdateType::get_url(self, req, connectors)?)
.attach_def... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
)?)
.attach_default_headers()
.headers(PaymentsPostSessionTokensType::get_headers(
self, req, connectors,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
impl api::PaymentPostSessionTokens for Paypal {}
impl api::PaymentSessionUpdate for Paypal {}
impl api::Payouts for Paypal {}
#[cfg(feature = "payouts")]
impl api::PayoutCreate... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<Option<Request>, errors::ConnectorError> {
let request = RequestBuilder::new()
.method(Method::Post)
.url(&VerifyWebhookSou... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
VerifyWebhookSource,
VerifyWebhookSourceRequestData,
VerifyWebhookSourceResponseData,
>,
connectors: &Connectors,
) -> Cu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
)?;
let shipping_cost = connector_utils::convert_amount(
self.amount_converter,
req.request.shipping_cost.unwrap_or(MinorUnit::zero()),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
let batch_id = req.request.connector_payout_id.clone().ok_or(
errors::ConnectorError::MissingRequiredField {
field_name: "connector_payout_id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
&self,
req: &RouterData<
VerifyWebhookSource,
VerifyWebhookSourceRequestData,
VerifyWebhookSourceResponseData,
>,
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<Option<Request>, errors::ConnectorError> {
let request = RequestBuilder::new()
.method(Method::Post)
.url(&VerifyWebhookSourceType::get_ur... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
VerifyWebhookSource,
VerifyWebhookSourceRequestData,
VerifyWebhookSourceResponseData,
>,
connectors: &Connectors,
) -> CustomResult<Stri... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
VerifyWebhookSourceType::get_content_type(self)
.to_string()
.into(),
),
(headers::AUTHORIZATION.... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
self.build_error_response(res, event_builder)
}
}
impl
ConnectorIntegration<
VerifyWebhoo... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<RequestContent, errors::ConnectorError> {
let amount = connector_utils::convert_amount(
self.amount_converter,
req.request.minor_refund_am... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
req: &PaymentsSyncRouterData,
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
Some(order_tax_amount),
Some(order_amount),
req,
))?;
let connector_req = paypal::PaypalUpdateOrderRequest::try_from(&connec... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
.session_id
.clone()
.ok_or(errors::ConnectorError::MissingRequiredField {
field_name: "session_id",
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
fn get_headers(
&self,
req: &SdkSessionUpdateRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::Conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
)?;
let connector_router_data = paypal::PaypalRouterData::try_from((
amount,
Some(shipping_cost),
None,
Some(orde... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
self.build_headers(req, connectors)
}
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
for Paypal
{
fn get_headers(
&self,
req: &PaymentsPostSessionTokensRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, Maskab... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<Option<Request>, errors::ConnectorError> {
let request = RequestBuilder::new()
.method(Method::Get)
.url(&PayoutSyncType::g... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
batch_id
))
}
fn get_headers(
&self,
req: &PayoutsRouterData<PoSync>,
connectors: &Connectors,
) -> CustomResult<Vec<(St... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
let batch_id = req.request.connector_payout_id.clone().ok_or(
errors::ConnectorError::MissingRequiredField {
field_name: "connector_payout_id",
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
let request = RequestBuilder::new()
.method(Method::Post)
.url(&PayoutFulfillType::get_url(self, req, connectors)?)
.attach_default_h... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
) -> CustomResult<RequestContent, errors::ConnectorError> {
let amount = connector_utils::convert_amount(
self.amount_converter,
req.request.... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
event_builder.map(|i| i.set_response_body(&response));
router_env::logger::info!(connector... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
])
}
fn get_request_body(
&self,
req: &RefreshTokenRouterData,
_connectors: &Connectors,
) -> CustomResult<RequestContent, errors::ConnectorError> {... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse,
ConnectorSpecifications, ConnectorValidatio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
use common_utils::{
consts,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvert... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal.rs | crate: hyperswitch_connectors | connector: paypal
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse,
ConnectorSpecifications, Con... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
reason: None,
status_code: res.status_code,
attempt_status: None,
connector_transaction_id: None,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.method(Method::Post)
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
.attach_default_headers()
.he... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.url(&types::RefundExecuteType::get_url(self, req, connectors)?)
.attach_default_headers()
.headers(types::RefundExecuteType::get_headers(
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
ConnectorValidation,
},
configs::Conn... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, FloatMajorUnit, FloatMajorU... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.headers(types::PaymentsAuthorizeType::get_headers(
self, req, connectors,
)?)
.set_body(types::PaymentsAutho... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.attach_default_headers()
.headers(types::PaymentsCaptureType::get_headers(
self, req, connectors,
)?)
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.method(Method::Post)
.url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
.attach_default_headers()
.... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, FloatMajorUnit, FloatMajorU... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, FloatMajorUnit, FloatMajorU... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
.url(&types::PaymentsVoidType::get_url(self, req, connectors)?)
.attach_default_headers()
.headers(types::PaymentsVoidType::get_h... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv.rs | crate: hyperswitch_connectors | connector: fiserv
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, FloatMajorUn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/multisafepay.rs | crate: hyperswitch_connectors | connector: multisafepay
use common_enums::{enums, AttemptStatus};
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, Requ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay | op: verify
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
type... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
use hyperswitch_domain_models::{
router_data::{AccessToken, ErrorResponse, RouterData},
router_flow_types::{
access_token_auth::AccessTokenAuth,
payments::{Authoriz... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay | op: verify
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConve... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorE... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
fn get_url(
&self,
_req: &RefundSyncRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(form... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
.url(&types::RefundExecuteType::get_url(self, req, connectors)?)
.attach_default_headers()
.headers(types::RefundExecuteType::get_headers(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
_req: &RefundsRouterData<Execute>,
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, FloatMa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
fn get_url(
&self,
_req: &PaymentsSyncRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(fo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
fn get_url(
&self,
_req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
ConnectorValidation,
},
configs::... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
ConnectorValidation,
},
configs::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay.rs | crate: hyperswitch_connectors | connector: razorpay
impl api::PaymentToken for Razorpay {}
impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
for Razorpay
{
// Not Impl... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/opayo.rs | crate: hyperswitch_connectors | connector: opayo
message: response.message,
reason: response.reason,
attempt_status: None,
connector_transaction_id: None,
network_advic... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/opayo.rs | crate: hyperswitch_connectors | connector: opayo
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
let request = RequestBuilder::new()
.method(Method::Post)
.url(&... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet.rs | crate: hyperswitch_connectors | connector: getnet | op: verify
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, Reques... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet.rs | crate: hyperswitch_connectors | connector: getnet
message: response.message,
reason: response.reason,
attempt_status: None,
connector_transaction_id: None,
network_adv... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet.rs | crate: hyperswitch_connectors | connector: getnet
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{Amoun... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet.rs | crate: hyperswitch_connectors | connector: getnet
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{Amoun... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt.rs | crate: hyperswitch_connectors | connector: volt
.split('/')
.next_back()
.ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?;
Ok(format!(
"{}|{}|{}",
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt.rs | crate: hyperswitch_connectors | connector: volt
fn get_auth_header(
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
let a... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt.rs | crate: hyperswitch_connectors | connector: volt
}
fn get_headers(
&self,
_req: &RefreshTokenRouterData,
_connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorE... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt.rs | crate: hyperswitch_connectors | connector: volt
impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Volt {
fn get_url(
&self,
_req: &RefreshTokenRouterData,
connectors: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::maskable::Maskable<String>)>, errors::ConnectorError>
{
let auth = ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
errors::api_error_response::ApiErrorResponse,
payments::payment_attempt::PaymentAttempt,
router_data::{AccessToken, ConnectorAuthTyp... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Connecto... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.