text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | crate: hyperswitch_connectors | connector: cybersource use hyperswitch_domain_models::{ address::{AddressDetails, PhoneDetails}, router_flow_types::PoFulfill, router_response_types::PayoutsResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | crate: hyperswitch_connectors | connector: cybersource merchant_defined_information, }) } } impl TryFrom<( &CybersourceRouterData<&PaymentsAuthorizeRouterData>, hyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | crate: hyperswitch_connectors | connector: cybersource use common_enums::{enums, FutureUsage}; use hyperswitch_domain_models::{ address::{AddressDetails, PhoneDetails}, router_flow_types::PoFulfill, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | crate: hyperswitch_connectors | connector: cybersource .get_required_value("samsung pay public_key_hash") .change_context(errors::ConnectorError::RequestEncodingFailed)? ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs | crate: hyperswitch_connectors | connector: cybersource } } } impl TryFrom<( &CybersourceRouterData<&PaymentsAuthorizeRouterData>, Option<PaymentSolution>, Option<String...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs | crate: hyperswitch_connectors | connector: cryptopay use common_enums::enums; use common_utils::{ pii, types::{MinorUnit, StringMajorUnit}, }; use hyperswitch_domain_models::{ payment_method_data::Pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs | crate: hyperswitch_connectors | connector: cryptopay use common_utils::{ pii, types::{MinorUnit, StringMajorUnit}, }; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs | crate: hyperswitch_connectors | connector: cryptopay fn from(item: CryptopayPaymentStatus) -> Self { { CryptopayPaymentStatus::New => Self::AuthenticationPending,<|fim_suffix|> <|fim_middle|> CryptopayPaymentSta...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/cryptopay/transformers.rs | crate: hyperswitch_connectors | connector: cryptopay fn from(item: CryptopayPaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_enums::{enums, Currency}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, PaymentMethodData}, router_data::{Connecto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_enums::{enums, Currency}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, PaymentMethodData}, router_data::{Connecto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_enums::{enums, Currency}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, PaymentMethodData}, router_data::{Connecto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_enums::{enums, Currency}; use common_utils::{pii::Email, request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ payment_method_data...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack fn from(item: PaystackWebhookEventData) -> Self { { PaystackPSyncStatus::Success => Self::PaymentIntentSuccess,<|fim_suffix|> <|fim_middle|> PaystackPSyncStatus...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack fn from(item: PaystackPSyncStatus) -> Self { { PaystackPSyncStatus::Success => Self::Charged,<|fim_suffix|> <|fim_middle|> PaystackPSyncStatus::Reversed => Self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack fn from(item: PaystackWebhookEventData) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack pub fn get_error_message(response: PaystackErrorResponse) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack fn from(item: PaystackRefundStatus) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_utils::{pii::Email, request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, PaymentMethodDat...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack fn from(item: PaystackPSyncStatus) -> Self { match item { PaystackPSyncStatus::Success => Self::Charged, PaystackPSyncStatus::Abandoned => Self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs | crate: hyperswitch_connectors | connector: paystack use common_utils::{pii::Email, request::Method, types::MinorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, PaymentMethodDat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, id_type, types::{FloatMajorUnit, StringMinorUnit}, };...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use common_enums::enums; use common_utils::types::{ConnectorTransactionId, FloatMajorUnitForConnector}; use common_utils::{ errors::CustomResult, ext_trai...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(funding: RecurlyFundingTypes) -> Self { { RecurlyFundingTypes::Credit => Self::Credit,<|fim_suffix|> <|fim_middle|> RecurlyFundingTypes::Debit => Self::De...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(status: RecurlyChargeStatus) -> Self { { RecurlyChargeStatus::Succeeded => Self::Charged,<|fim_suffix|> <|fim_middle|> RecurlyChargeStatus::Failed => Self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, id_type, types::{FloatMajorUnit, StringMinorUnit}, }; use hyperswitch_domain_m...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use hyperswitch_domain_models::{ router_flow_types::revenue_recovery as recovery_router_flows, router_request_types::revenue_recovery as recovery_request_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(funding: RecurlyPaymentObject) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(funding: RecurlyFundingTypes) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(status: RecurlyChargeStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{Ex...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use common_enums::enums; use common_utils::types::{ConnectorTransactionId, FloatMajorUnitForConnector}; use hyperswitch_domain_models::{ payment_method_data::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly fn from(item: RecurlyPaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs | crate: hyperswitch_connectors | connector: recurly use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, id_type, types::{FloatMajorUnit, StringMinorUnit}, }; use hyperswitch_domain_m...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_utils::{ consts::{PROPHETPAY_REDIRECT_URL, PROPHETPAY_TOKEN}, errors::CustomResult, request::Method, }; use hyperswitch_domain_models...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use common_utils::{ consts::{PROPHETPAY_REDIRECT_URL, PROPHETPAY_TOKEN}, errors::CustomResult, request::Method, }; use ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_enums::enums; use common_utils::{ consts::{PROPHETPAY_REDIRECT_URL, PROPHETPAY_TOKEN}, errors::CustomResult, request::Method, }; use ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_action_type(&self) -> i8 { { Self::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_card_context(&self) -> i8 { { Self:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_entry_method(&self) -> i8 { { Self:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthType, ErrorResponse, RouterD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_utils::{ consts::{PROPHETPAY_REDIRECT_URL, PROPHETPAY_TOKEN}, errors::CustomResult, request::Method, }; use hyperswitch_domain_models...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_action_type(&self) -> i8 { match self { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use hyperswitch_domain_models::{ payment_method_data::{CardRedirectData, PaymentMethodData}, router_data::{ConnectorAuthType, ErrorResponse, RouterD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use common_utils::{ consts::{PROPHETPAY_REDIRECT_URL, PROPHETPAY_TOKEN}, errors::CustomResult, request::Method, }; use hyperswitch_domain_models...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_card_context(&self) -> i8 { <|fim_s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_token_type(&self) -> i8 { <|fim_suf...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/prophetpay/transformers.rs | crate: hyperswitch_connectors | connector: prophetpay use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{self, to_connector_meta}, }; fn get_entry_method(&self) -> i8 { <|fim_s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet pub fn get_incoming_webhook_event( transaction_type: GetnetTransactionType, transaction_status: GetnetPaymentStatus, ) -> IncomingWebhookEvent { {<|fim_suff...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use hyperswitch_domain_models::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{Exec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use error_stack::ResultExt; use ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet | op: refund pub fn is_refund_event(transaction_type: &GetnetTransactionType) -> bool { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet pub notifications: NotificationContainer, #[serde(rename = "ip-address")] pub ip_address: Option<Secret<String, IpAddress>>, } #[derive(Debug, Serializ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet fn from(item: RefundStatus) -> Self { { RefundStatus::Success => Self::Success,<|fim_suffix|> <|fim_middle|> RefundStatus::InProgress => Self::Pending, } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet pub parent_transaction_id: String, pub notifications: NotificationContainer, #[serde(rename = "ip-address")] pub ip_address: Option<Secret<String, I...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use crate::{ connectors::pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use crate::{ connectors::pay...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet | op: refund pub fn is_refund_event(transaction_type: &GetnetTransactionType) -> bool { matches!( transaction_type, GetnetTransactionType::RefundPurchase | Get...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{Exec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet | op: cancel use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; pub fn cancel_status_from_transaction_state(getnet_status: GetnetPaymentStatus)...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refunds::{Exec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet | op: capture use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; pub fn capture_status_from_transaction_state(getnet_status: GetnetPaymentStatu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet | op: sync use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; pub fn psync_attempt_status_from_transaction_state( getnet_status: GetnetPaym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; pub fn authorization_attempt_status_from_transaction_state( getnet_status: GetnetPayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet fn from(item: GetnetPaymentStatus) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_enums::{enums, AttemptStatus, CaptureMethod, CountryAlpha2}; use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | crate: hyperswitch_connectors | connector: getnet use common_utils::{ consts::BASE64_ENGINE, errors::CustomResult, pii::{Email, IpAddress}, types::FloatMajorUnit, }; use hyperswitch_domain_models::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use api_models::{enums, webhooks::IncomingWebhookEvent}; use crate::{constants, types::PayoutsResponseRouterData}; use crate::{ types::{PaymentsCaptureResponseR...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_enums::enums as storage_enums; use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_enums::enums as storage_enums; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Car...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_enums::enums as storage_enums; use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use api_models::{enums, webhooks::IncomingWebhookEvent}; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankD...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use api_models::{enums, webhooks::IncomingWebhookEvent}; use common_enums::enums as storage_enums; use common_utils::{consts, errors::CustomResult, request::Method, types::StringM...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_enums::enums as storage_enums; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Car...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankD...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankR...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use api_models::{enums, webhooks::IncomingWebhookEvent}; use common_enums::enums as storage_enums; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankR...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn from(item: PaypalSourceVerificationStatus) -> Self { { PaypalSourceVerificationStatus::Success => Self::SourceVerified,<|fim_suffix|> <|fim_middle|> PaypalSource...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn from(dispute_life_cycle_stage: DisputeLifeCycleStage) -> Self { { DisputeLifeCycleStage::Inquiry => Self::PreDispute,<|fim_suffix|> <|fim_middle|> DisputeLifeCyc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn from(outcome_code: OutcomeCode) -> Self { { OutcomeCode::ResolvedBuyerFavour => Self::DisputeLost,<|fim_suffix|> <|fim_middle|> OutcomeCode::ResolvedWithPayout =...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use api_models::{enums, webhooks::IncomingWebhookEvent}; use crate::{constants, types::PayoutsResponseRouterData}; use crate::{ types::{PaymentsCaptureResponseR...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn from(error: ErrorDetails) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn from(error: OrderErrorDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; fn get_headers( header: &actix_web::http::header::HeaderMap, key:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{ BankD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; fn try_from(event: PaypalWebhookEventType) -> Result<Self, Self::Error> {...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal use common_utils::{consts, errors::CustomResult, request::Method, types::StringMajorUnit}; fn try_from(event: PaypalWebhookEventType) -> Result<Self, Self::Error> { match ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn try_from( (webhook_body, webhook_event): (PaypalRefundWebhooks, PaypalWebhookEventType), ) -> Result<Self, Self::Error> { <|fim_suffix|> <|fim_middle...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn try_from( (webhook_body, webhook_event): (PaypalRedirectsWebhooks, PaypalWebhookEventType), ) -> Result<Self, Self::Error> { {<|fim_suffix|> <|fim_mi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | crate: hyperswitch_connectors | connector: paypal fn try_from( (webhook_body, webhook_event): (PaypalCardWebhooks, PaypalWebhookEventType), ) -> Result<Self, Self::Error> { <|fim_suffix|> <|fim_middle|>...
ast_fragments