text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use common_enums::enums;
use common_utils::{errors::ParsingError, pii::IpAddress, request::Method};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodD... | 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 hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Walle... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
fn from(code: AirwallexDisputeStage) -> Self {
{
AirwallexDisputeStage::Rfi => Self::PreDispute,<|fim_suffix|>
<|fim_middle|>
AirwallexDisputeStage::Arbitrati... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use common_enums::enums;
fn get_payment_status(
status: &AirwallexPaymentStatus,
next_action: &Option<AirwallexPaymentsNextAction>,
) -> enums::Attemp... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
use common_enums::enums;
use common_utils::{errors::ParsingError, pii::IpAddress, request::Method};
use hyperswitch_domain_models::{
payment_method_data::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
fn from(code: AirwallexDisputeStage) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
pub fn is_dispute_event(event_code: &AirwallexWebhookEventType) -> bool {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex | op: refund
pub fn is_refund_event(event_code: &AirwallexWebhookEventType) -> bool {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | crate: hyperswitch_connectors | connector: airwallex
pub fn is_transaction_event(event_code: &AirwallexWebhookEventType) -> bool {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
// 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, ConnectorAuthType, RouterD... | 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;
fn get_payment_status(
status: &AirwallexPaymentStatus,
next_action: &Option<AirwallexPaymentsNextAction>,
) -> enums::Attemp... | ast_fragments |
// 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},
router_flow_typ... | 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/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodTok... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
Ok(Self {
query,
variables: VariablePaymentInput {
input: PaymentInput {
payment_method_id... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
},
})
}
}
impl
TryFrom<(
&BraintreeRouterData<&types::PaymentsAuthorizeRouterData>,
BraintreeMeta,
)> for Car... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
impl<F>
TryFrom<
ResponseRouterData<
F,
BraintreeRevokeMandateResponse,
MandateRevokeRequestData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
amount: StringMajorUnit,
}
#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CaptureInputData {
transaction_id: String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use crate::{
types::{PaymentsCaptureResponseRouterData, RefundsResponseRouterData, ResponseRouterData},
unimplemented_payment... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use crate::{
types::{PaymentsCaptureResponseRouterData, RefundsResponseRouterData, ResponseRouterData},
unimplemented_payment_method,
utils::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
pub type VariableClientTokenInput = GenericVariableInput<InputClientTokenData>;
fn try_from(metadata: BraintreeMeta) -> Result<Self, Self::Error> {
<|fim_suff... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMet... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
fn from(item: BraintreeRefundStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
fn from(item: BraintreePaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, PaymentMethodToken, RouterData},
router_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs | crate: hyperswitch_connectors | connector: braintree
use common_utils::{pii, types::StringMajorUnit};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthT... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, Paymen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use common_utils::{
id_type,
pii::{Email, SecretSerdeValue},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
fn from(item: BillwerkPaymentState) -> Self {
{
BillwerkPaymentState::Created | BillwerkPaymentState::Pending => Self::Pending,<|fim_suffix|>
<|fim_middle|>
Bil... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
pub struct BillwerkPaymentsRequest {
handle: String,
amount: MinorUnit,
source: Secret<String>,
currency: common_enums::Currency,
customer: ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, RouterData}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
fn from(item: RefundState) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use common_utils::{
id_type,
pii::{Email, SecretSerdeValue},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use common_utils::{
id_type,
pii::{Email, SecretSerdeValue},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
fn from(item: BillwerkPaymentState) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, RouterData}... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk/transformers.rs | crate: hyperswitch_connectors | connector: billwerk
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, RouterData},
router_fl... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_utils::{
consts::BASE64_ENGINE,
pii::{Email, IpAddress},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_utils::{
consts::BASE64_ENGINE,
pii::{Email, IpAddress},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_utils::{
consts::BASE64_ENGINE,
pii::{Email, IpAddress},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_utils::{
consts::BASE64_ENGINE,
pii::{Email, IpAddress},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
fn from(item: OrderStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, RouterData},
router_flo... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_utils::{
consts::BASE64_ENGINE,
pii::{Email, IpAddress},
types::MinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wall... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{AccessToken, ConnectorAuthType, Ro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu/transformers.rs | crate: hyperswitch_connectors | connector: payu
fn from(item: PayuPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use common_enums::{enums, Currency};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
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/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon | op: sync
use common_enums::{enums, Currency};
fn get_sync_status(
prev_status: enums::AttemptStatus,
item: &ElavonSyncResponse,
) -> enums::AttemptStatus ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
fn from(item: &ElavonSyncResponse) -> Self {
{
SyncTransactionType::Sale => Self::Charged,<|fim_suffix|>
<|fim_middle|>
SyncTransactionType::Return => Self::Pending... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon | op: refund
use common_enums::{enums, Currency};
fn get_refund_status(
prev_status: enums::RefundStatus,
item: &ElavonSyncResponse,
) -> enums::RefundStatu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
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/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use common_enums::{enums, Currency};
fn get_payment_status(
item: &ElavonPaymentsResponse,
is_auto_capture: bool,
) -> enums::AttemptStatus {
<|fim_suffix|>... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon | op: sync
use common_enums::{enums, Currency};
fn get_sync_status(
prev_status: enums::AttemptStatus,
item: &ElavonSyncResponse,
) -> enums::AttemptStatus ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
fn from(item: &ElavonSyncResponse) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon | op: refund
use common_enums::{enums, Currency};
fn get_refund_status(
prev_status: enums::RefundStatus,
item: &ElavonSyncResponse,
) -> enums::RefundStatu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
fn from(item: &ElavonPaymentsResponse) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use common_enums::{enums, Currency};
fn map_payment_status(
item: &ElavonPaymentsResponse,
success_status: enums::AttemptStatus,
) -> enums::AttemptStatus {... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
fn is_successful(&self) -> bool {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
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/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types::refunds::{Exec... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs | crate: hyperswitch_connectors | connector: elavon
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/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use api_models::enums::{AuthenticationType, PaymentMethod};
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wal... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use api_models::enums::{AuthenticationType, PaymentMethod};
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
r... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use api_models::enums::{AuthenticationType, PaymentMethod};
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wal... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, RouterData},
r... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, Rou... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data::{ConnectorAuthType, ErrorResponse, PaymentMethodToken, Rou... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use api_models::enums::{AuthenticationType, PaymentMethod};
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, Wal... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.