text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|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 |
<|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 |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
self.build_error_response(res, event_builder)
}
// fn get_multiple_capture_sync_method(
// ... | 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 |
<|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... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
),
}
}
}
impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Helcim {
//TODO: implement sessions flow
}
impl Connecto... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
message: error_string.clone(),
reason: Some(error_string),
attempt_status: None,
connector_transaction_id: None,
network_advice_code... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Base
}
fn common_get_content_type(&self) -> &'static str {
"application/json"
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
}
impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
for Helcim
{
// Not Implemented (R)
}
impl<Flow, Request, Response... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim.rs | crate: hyperswitch_connectors | connector: helcim
impl api::ConnectorAccessToken for Helcim {}
impl api::MandateSetup for Helcim {}
impl api::PaymentAuthorize for Helcim {}
impl api::PaymentSync for Helcim {}
impl api::PaymentCapture for Helc... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
RequestBuilder::new()
.method(PaymentsCaptureType::get_http_method(self))
.url(&PaymentsCaptureType::get_url(self, req, connect... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
let details = request
.body
.parse_struct::<worldlin... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
.body
.parse_struct::<worldline::WebhookBody>("WorldlineWebhookEvent")?
.payment
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
let details = request
.body
.parse_struct::<worldlin... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
use common_utils::{
consts, crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, OptionExt},
request::{Method, Request, RequestBuilder, RequestContent},
};
use hypers... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
ConnectorValidation, Pay... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
}
}
impl api::PaymentSession for Worldline {}
impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Worldline {
// Not Implemented
}
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
}
fn get_request_body(
&self,
req: &RouterData<Capture, PaymentsCaptureData, PaymentsResponseData>,
_connectors: &Connectors,
) -> Cus... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
req: &RouterData<Capture, PaymentsCaptureData, PaymentsResponseData>,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
}
impl PaymentCapture for Worldline {}
impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Worldline {
fn get_headers(
&self,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
RouterData::try_from(ResponseRouterData {
response,
data: data.clone(),
http_code: res.status_code,
})
.change... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
.build(),
))
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<Err... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
let base_url = self.base_url(connectors);
let auth: worldline::Wor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
impl api::PaymentToken for Worldline {}
impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
for Worldline
{
// Not... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
use common_utils::{
consts, crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, OptionExt},
request::{Method, Request, RequestBuilder, RequestContent}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline.rs | crate: hyperswitch_connectors | connector: worldline
use common_utils::{
consts, crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, OptionExt},
request::{Method, Request, RequestBuilder, RequestContent}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
fn get_headers(
&self,
req: &recovery_router_data_types::RevenueRecoveryRecordBackRouterData,
connectors: &Connectors,
) -> CustomR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, StringMinorUn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
common_enums::AttemptStatus::Charged => Ok(format!(
"{}/v1/invoices/{invoice_id}/pay?paid_out_of_band=true",
self.base_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, StringMinorUn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
fn get_url(
&self,
req: &recovery_router_data_types::BillingConnectorPaymentsSyncRouterData,
connectors: &Connectors,
) -> CustomRe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, StringMinorUn... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling.rs | crate: hyperswitch_connectors | connector: stripebilling
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, StringMinorUn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
};
us... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
)?)
.attach_default_headers()
.headers(types::ConnectorCustomerType::get_headers(
self, req, connecto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
fn get_webhook_source_verification_message(
&self,
request: &IncomingWebhookRequestDetails<'_>,
_merchant_id: &common_utils::id_type::Mercha... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
_req: &PaymentsAuthorizeRouterData,
connec... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
fn get_headers(
&self,
req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::C... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
RequestBuilder::new()
.method(Method::Post)
.url(&types::TokenizationType::get_url(self, req, connectors)?)
.... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
self.build_headers(req, connectors)
}
fn get_url(
&self,
_req... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
ConnectorValidation,
},
confi... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/gocardless.rs | crate: hyperswitch_connectors | connector: gocardless
impl api::RefundSync for Gocardless {}
impl api::PaymentToken for Gocardless {}
impl api::ConnectorCustomer for Gocardless {}
impl api::PaymentsPreProcessing for Gocardless {}
const G... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
.build(),
))
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> C... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
request: &IncomingWebhookRequestDetails<'_>,
) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
Ok(Box::new(
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto,
errors::{CustomResult, ReportSwitchExt},
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
use api_models::webhooks::IncomingWebhookEvent;
use common_utils::{
crypto,
errors::{CustomResult, ReportSwitchExt},
ext_traits::{ByteSliceExt, BytesExt},
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
fn get_url(
&self,
req: &PaymentsCaptureRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(format!(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto,
errors::{CustomResult, ReportSwitchExt},
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, Reque... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto,
errors::{CustomResult, ReportSwitchExt},
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay.rs | crate: hyperswitch_connectors | connector: globalpay
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(format!(
"{}transactions/{}/confirmation",
self... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
.change_context(errors::ConnectorError::WebhookSourceVerificationFailed)
.attach_printable("Could not convert secret to UTF-8")?;
let auth: transfo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
impl api::PaymentSession for Rapyd {}
impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Rapyd {
//TODO: implement sessions flow
}
impl api::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
router_env::logger::info!(connector_response=?response);
RouterData::try_from(ResponseRouterData {
response,
data: data.clone(),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
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/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
_connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Err(
errors::ConnectorError::NotImplemented("Setup Mandate f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
for Rapyd
{
// Not Implemented (R)
}
impl ConnectorIntegration<AccessT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/rapyd.rs | crate: hyperswitch_connectors | connector: rapyd
use common_utils::{
consts::BASE64_ENGINE_URL_SAFE,
crypto, date_time,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt, Encode, StringExt},
request::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay
.parse_struct("CryptopayWebhookDetails")
.change_context(errors::ConnectorError::WebhookReferenceIdNotFound)?;
match notif.data.cus... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay
fn get_webhook_source_verification_message(
&self,
request: &webhooks::IncomingWebhookRequestDetails<'_>,
_merchant_id: &common_utils::id_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.metho... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay
RequestBuilder::new()
.method(Method::Post)
.url(&PaymentsAuthorizeType::get_url(self, req, connectors)?)
.atta... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay | op: sync
use common_utils::{
crypto::{self, GenerateDigest, SignMessage},
date_time,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay.rs | crate: hyperswitch_connectors | connector: cryptopay
fn get_content_type(&self) -> &'static str {
self.common_get_content_type()
}
fn get_url(
&self,
_req: &PaymentsAuthorizeRouterData,
connecto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
) -> CustomResult<CallConnectorAction, errors::ConnectorError> {
match action {
PaymentAction::PSync
| PaymentAction::CompleteAuthorize
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
let signature = utils::get_header_key_value("cko-signature", request.headers)
.change_context(errors::ConnectorError::WebhookSignatureNotFound)?;
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(Method::Post)
.ur... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor, MinorUn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
let request = RequestBuilder::new()
.method(Method::Put... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
fn get_url(
&self,
req: &SubmitEvidenceRouterData,
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(fo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(Method::Post)
.url(&UploadFileTy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountCon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
if !supported_file_types.contains(&file_type.to_string().as_str()) {
Err(errors::ConnectorError::FileValidationFailed {
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
connectors: &Connectors,
) -> CustomResult<Option<Request>, errors::ConnectorError> {
Ok(Some(
RequestBuilder::new()
.method(... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
}
}
impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Checkout {
fn get_headers(
&self,
req: &RefundsRouterData<RSync>,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Conn... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
}
}
impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Checkout {
fn get_headers(
&self,
req: &PaymentsCaptureRouterData,
co... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
impl api::PaymentCapture for Checkout {}
impl api::PaymentSession for Checkout {}
impl api::ConnectorAccessToken for Checkout {}
impl AcceptDispute for Checkout {}
impl api:... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/checkout.rs | crate: hyperswitch_connectors | connector: checkout
fn id(&self) -> &'static str {
"checkout"
}
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
};
use hyperswitch_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
_ => Some(Self::get_default_header()),
};
if let Some(api_header) = api_headers {
headers.push(api_header)
}
Ok(headers)
}
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Zen {
fn build_request(
&self,
_req: &RouterData<SetupMandate, SetupMan... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
let mut message = self.get_webhook_source_verification_message(
request,
merchant_id,
&connector_webhook_secrets,
)?;
let m... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
use api_models::webhooks::IncomingWebhookEvent;
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, Req... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
sel... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},
};
use hyperswitch_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen.rs | crate: hyperswitch_connectors | connector: zen
use masking::{Mask, PeekInterface, Secret};
fn get_default_header() -> (String, masking::Maskable<String>) {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.