text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use api_models::{
payments::{
AmountInfo, ApplePayPaymentRequest, ApplePaySessionResponse,
ApplepayCombinedSessionTokenData, ApplepaySession... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt, ValueExt},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
fn from(item: BluesnapProcessingStatus) -> Self {
{
BluesnapProcessingStatus::Success => Self::Success,<|fim_suffix|>
<|fim_middle|>
BluesnapProcessingStatus::F... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
}
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct BluesnapCaptureRequest {
card_transaction_type: BluesnapTxnType,
transactio... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
pf_token: Secret<String>,
three_d_secure: Option<BluesnapThreeDSecureInfo>,
transaction_fraud_info: Option<TransactionFraudInfo>,
card_holder_in... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use serde_json::Value;
fn convert_metadata_to_request_metadata(metadata: Value) -> Vec<RequestMetadata> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
fn from(error: ErrorDetails) -> Self {
Self {
error_code: error.code.to_string(),
error_message: error.error_name.unwrap_or(error.code),
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt,... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_enums::{enums, CountryAlpha2};
use hyperswitch_domain_models::{
address::AddressDetails,
payment_method_data::{self, PaymentMethodData, WalletData},
rou... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_enums::{enums, CountryAlpha2};
use hyperswitch_domain_models::{
address::AddressDetails,
payment_method_data::{self, PaymentMethodData, Walle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_enums::{enums, CountryAlpha2};
use hyperswitch_domain_models::{
address::AddressDetails,
payment_method_data::{self, PaymentMethodData, Walle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
fn from(item: BluesnapRefundStatus) -> Self {
{
BluesnapRefundStatus::Success => Self::Success,<|fim_suffix|>
<|fim_middle|>
BluesnapRefundStatus::Pending => Se... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
fn from(item: BluesnapProcessingStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
fn foreign_try_from(
item: (BluesnapTxnType, BluesnapProcessingStatus),
) -> Result<Self, Self::Error> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, Encode, OptionExt, StringExt, ValueExt},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use hyperswitch_domain_models::{
address::AddressDetails,
payment_method_data::{self, PaymentMethodData, WalletData},
router_data::{ConnectorAuthTyp... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs | crate: hyperswitch_connectors | connector: bluesnap
use common_enums::{enums, CountryAlpha2};
use common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{B... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
fn get_status(item: (PaymentStatus, CaptureMethod)) -> AttemptSta... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
use hyperswitch_domain_models::{
payment_method_data::{BankRe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
fn try_from(bank: &BankNames) -> Result<Self, Self::Error> {
{
Ba... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{self, CardData, RouterData as RouterDataUtils},
};
fn try_from(issuer: ut... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
use hyperswitch_domain_models::{
payment_method_data::{BankRe... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Refunded => Self::Success,
RefundStatus::Cancelled | RefundStatus::Rejected ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
fn try_from(bank: &BankNames) -> Result<Self, Self::Error> {
<|fi... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | crate: hyperswitch_connectors | connector: worldline
use common_enums::enums::{AttemptStatus, BankNames, CaptureMethod, CountryAlpha2, Currency};
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, Pay... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use common_utils::{ext_traits::ValueExt, pii::Email, types::MinorUnit};
use hyperswitch_domain_models::{
p... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
item.http_code,
)),
..item.data
})
}
}
}
impl TryFrom<RefundsResponseRouter... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
impl
TryFrom<
ResponseRouterData<
Authorize,
DeutschebankMandatePostResponse,
PaymentsAuthorizeData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use crate::{
types::{PaymentsCancelResponseRouterData, RefundsResponseRouterData, ResponseRouterData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
fn is_response_success(rc: &String) -> bool {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
fn from(item: DeutschebankSEPAMandateStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorRes... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_utils::{ext_traits::ValueExt, pii::Email, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use common_enums::{enums, PaymentMethod};
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs | crate: hyperswitch_connectors | connector: deutschebank
use hyperswitch_domain_models::{
payment_method_data::{BankDebitData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiCollectData, UpiData},
router_data::{ConnectorAuth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiColle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
pub struct PaymentGatewayResponse {
id: String,
version: i32,
}
impl<F>
TryFrom<(
&RazorpayRouterData<&types::RefundsRouterData<F>>,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn from(item: PsyncStatus) -> Self {
{
PsyncStatus::Charged => Self::Charged,<|fim_suffix|>
<|fim_middle|>
PsyncStatus::Authorizing => Self::Pending,
}
} | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn from(item: TxnStatus) -> Self {
{
TxnStatus::Authorizing => Self::Pending,<|fim_suffix|>
<|fim_middle|>
TxnStatus::Charged => Self::Charged,
}
} | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiCollectData, UpiData},
router_data::{ConnectorAuthType, RouterData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn try_from(webhook_payload: RazorpayWebhookPayload) -> Result<Self, Self::Error> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiCollectData, UpiData},
router_data::{ConnectorAuth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn from(item: PsyncStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_enums::enums;
fn from(item: enums::AttemptStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn from(item: TxnStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
fn try_from(connector_param: &Connectors) -> Result<Self, Self::Error> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiColle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_enums::enums;
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{Pa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiColle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiColle... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_enums::enums;
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | crate: hyperswitch_connectors | connector: razorpay
use common_utils::{
pii::{self, Email},
types::FloatMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, UpiColle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, PaymentMethodData, W... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_utils::{consts, errors::CustomResult, request::Method};
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_utils::{consts, errors::CustomResult, request::Method};
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, PaymentMethodData, WalletData,
},
router... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_utils::{consts, errors::CustomResult, request::Method};
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_enums::{enums, AttemptStatus};
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, CardData, Payments... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use error_stack::ResultExt;
pub fn get_order_id(
meta: &NexinetsPaymentsMetadata,
) -> Result<String, error_stack::Report<errors::ConnectorError>> {
{<|fim_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_enums::{enums, AttemptStatus};
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, CardData, Payments... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use error_stack::ResultExt;
pub fn get_transaction_id(
meta: &NexinetsPaymentsMetadata,
) -> Result<String, error_stack::Report<errors::ConnectorError>> {
<... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use error_stack::ResultExt;
pub fn get_order_id(
meta: &NexinetsPaymentsMetadata,
) -> Result<String, error_stack::Report<errors::ConnectorError>> {
let order_id = met... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, PaymentMethodData, WalletData,
},
router... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_utils::{consts, errors::CustomResult, request::Method};
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankR... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_enums::{enums, AttemptStatus};
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, Paymen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use common_enums::{enums, AttemptStatus};
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, Paymen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs | crate: hyperswitch_connectors | connector: nexinets
use hyperswitch_domain_models::{
payment_method_data::{
ApplePayWalletData, BankRedirectData, Card, PaymentMethodData, WalletData,
},
router... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use common_enums::enums;
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData, B... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData, BankRedirectData, GooglePayWalletData, Pa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use common_enums::enums;
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData, B... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use common_utils::{
crypto::{self, GenerateDigest},
date_time,
ext_traits::{Encode, OptionExt},
fp_utils,
pii::{Email, IpAddress},
request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData, BankRedirectData, GooglePa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use error_stack::ResultExt;
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use hyperswitch_domain_models::{
mandates::{MandateData, MandateDataType},
payment_method_data::{
self, ApplePayWalletData, BankRedirectData, GooglePa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei
use crate::{
types::{
PaymentsPreprocessingResponseRouterData, RefundsResponseRouterData, ResponseRouterData,
},
utils::{
self, AddressDet... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs | crate: hyperswitch_connectors | connector: nuvei | op: refund
type Error = error_stack::Report<errors::ConnectorError>;
fn foreign_try_from(browser_info: &Option<BrowserInformation>) -> Result<Self, Self::Er... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.