text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
let payload: authorizedotnet::AuthorizedotnetWebhookObjectId = request
.body
.parse_struct("AuthorizedotnetWebhookObjectId")
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
let payload: authorizedotnet::AuthorizedotnetWebhookObjectId = request
.body
.parse_struct("AuthorizedotnetWebhookObjectId")
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
&self,
req: &RefundsRouterData<RSync>,
connectors: &Connectors,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::Connecto... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
use common_utils::{
crypto,
errors::CustomResult,
ext_traits::ByteSliceExt,
request::{Method, Request, RequestBuilder, RequestContent},
};
use hyperswitch_int... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
&self,
req: &RefundsRouterData<RSync>,
connectors: &Connectors,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> {
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Conne... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
let response: authorizedotnet::AuthorizedotnetVoidResponse = intermediate_response
.parse_struct("AuthorizedotnetPaymentsResponse")
.change_co... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
}
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Conne... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
) -> CustomResult<String, errors::ConnectorError> {
Ok(self.base_url(connectors).to_string())
}
fn get_request_body(
&self,
req: &SetupMan... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs | crate: hyperswitch_connectors | connector: authorizedotnet
self as connector_utils, ForeignTryFrom, PaymentMethodDataType,
PaymentsAuthorizeRequestData, PaymentsCompleteAuthorizeRequestData,
},
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/iatapay.rs | crate: hyperswitch_connectors | connector: iatapay
fn get_webhook_source_verification_message(
&self,
request: &IncomingWebhookRequestDetails<'_>,
_merchant_id: &common_utils::id_type::MerchantId,
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/iatapay.rs | crate: hyperswitch_connectors | connector: iatapay
use api_models::{enums, webhooks::IncomingWebhookEvent};
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecificat... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/iatapay.rs | crate: hyperswitch_connectors | connector: iatapay
use hyperswitch_domain_models::{
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types::{
access_token_auth::AccessTokenAuth,
pa... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/iatapay.rs | crate: hyperswitch_connectors | connector: iatapay
.method(Method::Post)
.attach_default_headers()
.headers(types::RefreshTokenType::get_headers(self, req, connectors)?)
.url(&t... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/iatapay.rs | crate: hyperswitch_connectors | connector: iatapay
use common_utils::{
consts::BASE64_ENGINE,
crypto,
errors::CustomResult,
ext_traits::{ByteSliceExt, BytesExt},
request::{Method, Request, RequestBuilder, RequestContent},... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly.rs | crate: hyperswitch_connectors | connector: recurly
recovery_router_flows::RecoveryRecordBack,
recovery_request_types::RevenueRecoveryRecordBackRequest,
recovery_response_types::RevenueRecoveryRecordBack... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly.rs | crate: hyperswitch_connectors | connector: recurly
.url(&types::RevenueRecoveryRecordBackType::get_url(
self, req, connectors,
)?)
.attach_default_headers()
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly.rs | crate: hyperswitch_connectors | connector: recurly
use common_utils::{
consts,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly.rs | crate: hyperswitch_connectors | connector: recurly
use common_utils::{
consts,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly.rs | crate: hyperswitch_connectors | connector: recurly
use common_utils::{
consts,
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
types::{AmountConvertor... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
fn get_auth_header(
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
let auth = t... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
) -> CustomResult<enums::CallConnectorAction, errors::ConnectorError> {
match action {
PaymentAction::PSync
| PaymentAction::CompleteAuth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
))
} else {
Ok(api_models::webhooks::ObjectReferenceId::RefundId(
api_models::webhooks::Refun... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
match req.payment_method {
enums::PaymentMethod::BankRedirect | enums::PaymentMethod::BankTransfer => Ok(format!(
"{}{}{}{}",
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
fn get_headers(
&self,
req: &RefundsRouterData<Execute>,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>,... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
fn get_headers(
&self,
req: &RefundSyncRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorErr... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
fn get_headers(
&self,
req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::Conne... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
.change_context(errors::ConnectorError::ResponseHandlingFailed)
}
}
impl api::PaymentCapture for Trustpay {}
impl ConnectorIntegration<Capture, PaymentsCaptureD... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay.rs | crate: hyperswitch_connectors | connector: trustpay
])
}
fn get_request_body(
&self,
req: &RefreshTokenRouterData,
_connectors: &Connectors,
) -> CustomResult<RequestContent, errors::ConnectorErr... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
fn get_currency_unit(&self) -> api::CurrencyUnit {
api::CurrencyUnit::Minor
}
fn common_get_content_type(&self) -> &'static str {
"text/xml"
}
f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::Conne... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ErrorResponse, RouterData},
router_flow_types::{
access_token_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
fn html_to_xml_string_conversion(res: String) -> String {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
fn get_error_response(
&self,
res: Response,
event_builder: Option<&mut ConnectorEvent>,
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
fn get_headers(
&self,
req: &PaymentsAuthorizeRouterData,
connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors:... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
RequestBuilder::new()
.method(Method::Post)
.url(&types::SetupMandateType::get_url(self, req, connectors)?)
.attach_defaul... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bamboraapac.rs | crate: hyperswitch_connectors | connector: bamboraapac
_req: &RouterData<Flow, Request, Response>,
_connectors: &Connectors,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::Connector... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris.rs | crate: hyperswitch_connectors | connector: moneris
fn get_auth_header(
&self,
auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris.rs | crate: hyperswitch_connectors | connector: moneris
RequestBuilder::new()
.method(Method::Get)
.url(&types::RefundSyncType::get_url(self, req, connectors)?)
.attach_default_headers()... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use common_enums::enums::{self, AuthenticationType};
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{self, CardData, Pa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use common_enums::enums::{self, AuthenticationType};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use common_enums::enums::{self, AuthenticationType};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use common_enums::enums::{self, AuthenticationType};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
fn is_3ds_payment(response_code: String) -> bool {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz/transformers.rs | crate: hyperswitch_connectors | connector: powertranz
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_utils::{ext_traits::OptionExt, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethod... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_enums::{enums, Currency};
use common_utils::{ext_traits::OptionExt, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
fn from(item: CoingateRefundStatus) -> Self {
{
CoingateRefundStatus::Pending => Self::Pending,<|fim_suffix|>
<|fim_middle|>
CoingateRefundStatus::Processing =>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
fn from(item: CoingatePaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_utils::{ext_traits::OptionExt, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethod... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
fn from(item: CoingateRefundStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterDat... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
fn from(item: CoingatePaymentStatus) -> Self {
match item {
CoingatePaymentStatus::Paid => Self::Charged,
CoingatePaymentStatus::Canceled
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterDat... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/coingate/transformers.rs | crate: hyperswitch_connectors | connector: coingate
use common_utils::{ext_traits::OptionExt, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
route... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_enums::enums;
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
use hyperswitch_domain_models::{
payme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(funding_type: ChargebeeFundingType) -> Self {
{
ChargebeeFundingType::Credit => Self::Credit,<|fim_suffix|>
<|fim_middle|>
ChargebeeFundingType::Debit... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(status: ChargebeeTranasactionStatus) -> Self {
{
ChargebeeTranasactionStatus::InProgress
| ChargebeeTranasactionStatus::NeedsAttention => ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(item: ChargebeePaymentStatus) -> Self {
{
ChargebeePaymentStatus::Succeeded => Self::Charged,<|fim_suffix|>
<|fim_middle|>
ChargebeePaymentStatus::Pro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
fn try_from(item: ChargebeeInvoiceBody) -> Result<Self, Self::Error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(event: ChargebeeEventType) -> Self {
{
ChargebeeEventType::PaymentSucceeded => Self::RecoveryPaymentSuccess,<|fim_suffix|>
<|fim_middle|>
ChargebeeEve... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(funding_type: ChargebeeFundingType) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(payment_method: ChargebeeTransactionPaymentMethod) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(status: ChargebeeTranasactionStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
use crate::{
types::{RefundsResponseRouterData, ResponseRouterD... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
pub fn get_invoice_webhook_data_from_body(
body: &[u8],
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Se... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
fn from(item: ChargebeePaymentStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs | crate: hyperswitch_connectors | connector: chargebee
use common_utils::{errors::CustomResult, ext_traits::ByteSliceExt, pii, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refund... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refund... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refund... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
fn from(item: HelcimPaymentsResponse) -> Self {
{
HelcimPaymentStatus::Approved => Self::Authorized,<|fim_suffix|>
<|fim_middle|>
HelcimPaymentStatus::Declined => S... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
fn from(item: RefundResponse) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refund... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refund... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
fn from(item: HelcimPaymentsResponse) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/helcim/transformers.rs | crate: hyperswitch_connectors | connector: helcim
use common_enums::enums;
pub fn check_currency(
currency: enums::Currency,
) -> Result<enums::Currency, errors::ConnectorError> {
{<|fim_suffix|>
<|fim_middle|>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
fn try_from(value: AirwallexWebhookEventType) -> Result<Self, Self::Error> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, RouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use common_utils::{errors::ParsingError, pii::IpAddress, request::Method};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_dat... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.