text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use common_utils::{
errors::CustomResult,
pii::{self, Email},
request::Method,
types::StringMajorUnit,
};
type Error = error_stack::Report<error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use common_utils::{
errors::CustomResult,
pii::{self, Email},
request::Method,
types::StringMajorUnit,
};
use hyperswitch_domain_models::{
p... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use common_utils::{
errors::CustomResult,
pii::{self, Email},
request::Method,
types::StringMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use masking::{ExposeInterface, PeekInterface, Secret};
fn get_full_name(
billing_first_name: Secret<String>,
billing_last_name: Option<Secret<String>>,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, BankTransferData, Card, PaymentMethodData},
router_data::{AccessToken, Connecto... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs | crate: hyperswitch_connectors | connector: trustpay
use common_utils::{
errors::CustomResult,
pii::{self, Email},
request::Method,
types::StringMajorUnit,
};
use hyperswitch_domain_models::{
payment_method_d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
use common_utils::{pii, request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
use common_utils::{pii, request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, RouterData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_utils::{pii, request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{Conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
fn from(item: RefundStatus) -> Self {
{
RefundStatus::Succeeded => Self::Success,<|fim_suffix|>
<|fim_middle|>
RefundStatus::Pending | RefundStatus::RequiresAction ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
Ok(Self {
capture_amount: item.amount,
})
}
}
impl<F>
TryFrom<
ResponseRouterData<F, XenditPaymentResponse, PaymentsAuth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Action {
pub method: MethodType,
pub url: String,
}
#[derive(Debug, Clone, Serialize, Deseriali... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
fn map_payment_response_to_attempt_status(
response: XenditPaymentResponse,
is_auto_capture: bool,
) -> enums::AttemptStatus {
{
Pa... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
fn from(item: RefundStatus) -> Self {
match item {
RefundStatus::Succeeded => Self::Success,
RefundStatus::Failed | RefundStatus::Cancelled => Self... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_utils::{pii, request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{Conn... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
fn map_payment_response_to_attempt_status(
response: XenditPaymentResponse,
is_auto_capture: bool,
) -> enums::AttemptStatus {
{<|f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | crate: hyperswitch_connectors | connector: xendit
use common_enums::enums;
use common_utils::{pii, request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
fn from(item: JuspaythreedsserverPaymentStatus) -> Self {
{
JuspaythreedsserverPaymentStatus::Succeeded => Self::Charged,<|fim_suffix|>
<|... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
fn from(item: JuspaythreedsserverPaymentStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/transformers.rs | crate: hyperswitch_connectors | connector: juspaythreedsserver
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_enums::enums;
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterDat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
fn from(item: BitpayPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refunds::{Exe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bitpay/transformers.rs | crate: hyperswitch_connectors | connector: bitpay
use common_utils::{request::Method, types::FloatMajorUnit};
use hyperswitch_domain_models::{
router_data::{ConnectorAuthType, RouterData},
router_flow_types... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
fn from(item: MonerisPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_types:... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
fn from(item: MonerisPaymentStatus) -> Self {
match item {
MonerisPaymentStatus::Succeeded => Self::Charged,
MonerisPaymentStatus::Authorized => ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs | crate: hyperswitch_connectors | connector: moneris
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
fn from(status: VoltWebhookPaymentStatus) -> Self {
{
VoltWebhookPaymentStatus::Received => Self::Charged,<|fim_suffix|>
<|fim_middle|>
VoltWebhookPaymentStatus::Comple... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, Router... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
fn from(status: VoltWebhookBodyEventType) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use common_utils::{id_type, pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodDa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
fn from(status: VoltWebhookPaymentStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use common_enums::enums;
use common_utils::{id_type, pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankRedi... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use common_enums::enums;
fn get_attempt_status(
(item, current_status): (VoltPaymentStatus, enums::AttemptStatus),
) -> enums::AttemptStatus {
<|fim_suffix|>
<|fim_... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
rout... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodData},
router_data::{AccessToken, ConnectorAuthTy... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | crate: hyperswitch_connectors | connector: volt
use common_utils::{id_type, pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{BankRedirectData, PaymentMethodDa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
fn from(item: RefundStatus) -> Self {
{
RefundStatus::Success => Self::Success,<|fim_suffix|>
<|fim_middle|>
RefundStatus::Pending => Self::Pending,
}
} | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_enums::enums::{self, AttemptStatus};
fn get_payment_status(data: (NoonPaymentStatus, AttemptStatus)) -> AttemptStatus {
{
NoonPaymentStatus::Authorized => At... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_f... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
fn get_value_as_string(value: &serde_json::Value) -> String {
{
serde_json::Value::String(string) => string.to_owned(),<|fim_suffix|>
<|fim_middle|>
serde_json::Value::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, CardData, GooglePayWalletData, PaymentsAuthorizeRequestData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_enums::enums::{self, AttemptStatus};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{ConnectorAu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_enums::enums::{self, AttemptStatus};
fn get_payment_status(data: (NoonPaymentStatus, AttemptStatus)) -> AttemptStatus {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
fn get_value_as_string(value: &serde_json::Value) -> String {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/noon/transformers.rs | crate: hyperswitch_connectors | connector: noon
use common_utils::{ext_traits::Encode, pii, request::Method, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use crate::{
types::{
PaymentsCancelResponseRouterData, PaymentsCaptureResponseRouterData,
PaymentsSyncResponseRo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use crate::{
types::{
PaymentsCancelResponseRouterData, PaymentsCaptureResponseRouterData,
PaymentsSyncResponseRo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorRespon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorRespon... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{Con... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
fn from(item: SyncResponse) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use crate::{
types::{
PaymentsCancelResponseRouterData, PaymentsCaptureResponseRouterData,
PaymentsSyncResponseRo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
response,
..item.data
})
}
}
}
}
impl TryFrom<&DatatransRouterData<&types::Pa... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
| TransactionStatus::Failed => Self::Failure,
},
TransactionType::Payment | TransactionType::CardCheck => Self::Failur... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
fn from(item: SyncResponse) -> Self {
{
TransactionType::Payment => match item.status {
TransactionStatus::Authorized => Self::Authorized,
... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{Con... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorRespon... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_utils::{pii::Email, request::Method, types::MinorUnit};
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
ro... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs | crate: hyperswitch_connectors | connector: datatrans
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{Card, PaymentMethodData},
router_data::{ConnectorAuthType, ErrorResponse, RouterData}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use common_enums::enums::CaptureMethod;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAut... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use common_enums::enums::CaptureMethod;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAut... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan | op: refund
use common_enums::enums::CaptureMethod;
pub fn refund_status_from_transaction_state(
transaction_state: JpmorganTransactionState,
) -> common_e... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use common_enums::enums::CaptureMethod;
pub fn attempt_status_from_transaction_state(
transaction_state: JpmorganTransactionState,
) -> common_enums::Attemp... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan | op: capture
use common_enums::enums::CaptureMethod;
fn map_capture_method(
capture_method: CaptureMethod,
) -> Result<CapMethod, error_stack::Report<error... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs | crate: hyperswitch_connectors | connector: jpmorgan
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flow_type... | 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 common_utils::{
consts::{APPLEPAY_VALIDATION_URL, BASE64_ENGINE},
errors::CustomResult,
ext_traits::{ByteSliceExt, En... | ast_fragments |
<|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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.