text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | crate: hyperswitch_connectors | connector: forte use common_enums::enums; use crate::{ types::{PaymentsCaptureResponseRouterData, RefundsResponseRouterData, ResponseRouterData}, utils::{ self, Addres...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | crate: hyperswitch_connectors | connector: forte fn from(item: FortePaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/forte/transformers.rs | crate: hyperswitch_connectors | connector: forte use crate::{ types::{PaymentsCaptureResponseRouterData, RefundsResponseRouterData, ResponseRouterData}, utils::{ self, AddressDetailsData, CardData as...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_enums::enums; use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{Bank...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci fn from(item: AciRefundStatus) -> Self { { AciRefundStatus::Succeeded => Self::Success,<|fim_suffix|> <|fim_middle|> AciRefundStatus::Pending => Self::Pending, } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLaterData, PaymentMethodData, WalletData}, router_data:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci fn from(item: AciRefundStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci fn from(item: AciPaymentStatus) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLaterData, Paymen...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use error_stack::report; use hyperswitch_domain_models::{ payment_method_data::{Bank...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLaterData, PaymentMethodData, WalletData}, router_data::{ConnectorAuthType, Rout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{id_type, pii::Email, request::Method, types::StringMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci/transformers.rs | crate: hyperswitch_connectors | connector: aci use hyperswitch_domain_models::{ payment_method_data::{BankRedirectData, Card, PayLaterData, PaymentMethodData, WalletData}, router_data::{ConnectorAuthType, Rout...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_utils::{ext_traits::ValueExt, pii, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_utils::{ext_traits::ValueExt, pii, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_f...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_enums::enums; use common_utils::{ext_traits::ValueExt, pii, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMeth...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_utils::{ext_traits::ValueExt, pii, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv fn from(item: FiservPaymentStatus) -> Self { { FiservPaymentStatus::Succeeded | FiservPaymentStatus::Authorized | FiservPaymentStatus::Captu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv fn from(item: FiservPaymentStatus) -> Self { { FiservPaymentStatus::Captured | FiservPaymentStatus::Succeeded => Self::Charged,<|fim_suffix|> <|fim_middle|> FiservP...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_f...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_f...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv fn from(item: FiservPaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv fn from(item: FiservPaymentStatus) -> Self { match item { FiservPaymentStatus::Captured | FiservPaymentStatus::Succeeded => Self::Charged, FiservPa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs | crate: hyperswitch_connectors | connector: fiserv use common_utils::{ext_traits::ValueExt, pii, types::FloatMajorUnit}; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_enums::enums; use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use hyperswitch_domain_models::{ payment_method_data::{ BankRedirectData, BankTransferData, Card as CardData, GiftCardData, PaymentMethodData, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ BankRedire...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use hyperswitch_domain_models::{ payment_method_data::{ BankRedirectData, BankTransferData, Card as CardData, GiftCardData, PaymentMethodData, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 fn from(item: Shift4RefundStatus) -> Self { { Shift4RefundStatus::Successful => Self::Success,<|fim_suffix|> <|fim_middle|> Shift4RefundStatus::Processing => Self::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_enums::enums; fn get_status( captured: bool, next_action: Option<&NextAction>, payment_status: Shift4PaymentStatus, ) -> enums::AttemptStatus...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 ) .into()) } } } } impl<T, Req> TryFrom<(&RouterData<T, Req, PaymentsResponseData>, &CardData)> for Shift4P...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 | op: refund pub fn is_refund_event(event: &Shift4WebhookEvent) -> bool { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 pub fn is_transaction_event(event: &Shift4WebhookEvent) -> bool { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 fn from(item: Shift4RefundStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_enums::enums; fn get_status( captured: bool, next_action: Option<&NextAction>, payment_status: Shift4PaymentStatus, ) -> enums::AttemptStatus...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use hyperswitch_domain_models::{ payment_method_data::{ BankRedirectData, BankTransferData, Card as CardData, GiftCardData, PaymentMethodData, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 type Error = error_stack::Report<errors::ConnectorError>; fn try_from(router_return_url: Option<String>) -> Result<Self, Self::Error> { {<|fim_suffix|> <|fim_middle...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use hyperswitch_domain_models::{ payment_method_data::{ BankRedirectData, BankTransferData, Card as CardData, GiftCardData, PaymentMethodData, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use hyperswitch_domain_models::{ payment_method_data::{ BankRedirectData, BankTransferData, Card as CardData, GiftCardData, PaymentMethodData, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ PaymentsPreprocessingResponseRouterData, Ref...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use hyperswitch_domain_models::{ payment_method_data::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_enums::enums; use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ Paym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 | op: authorize use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ PaymentsPrepr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ PaymentsPreprocessingResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ PaymentsPreprocessingResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 | op: capture use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use crate::{ types::{ PaymentsPreproc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs | crate: hyperswitch_connectors | connector: shift4 use common_utils::{ pii::{self, SecretSerdeValue}, request::Method, types::MinorUnit, }; use error_stack::ResultExt; use hyperswitch_domain_models::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen | op: refund use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_enums::enums; use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_dom...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_domain_models::{ payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_domain_models::{ payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen /// Fields should be in alphabetical order fn get_signature_data( checkout_request: &CheckoutRequest, ) -> Result<String, errors::ConnectorError> { {<|fim_suffix|> <|...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_domain_models::{ payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_domain_models::{ payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use hyperswitch_domain_models::{ payment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen fn foreign_try_from(item: (ZenPaymentStatus, Option<ZenActions>)) -> Result<Self, Self::Error> { { ZenPaymentStatus::Authorized => Self::Pending,<|fim_suffix|> <|fim_midd...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen lang: browser_info.get_language()?, screen_height: screen_height.to_string(), screen_width: screen_width.to_string(), timezone: browser_in...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen )?, line_amount_total: (f64::from(data.quantity) * utils::to_currency_base_unit_asf64( data.am...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLaterData, Paymen...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, Gi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen fn foreign_try_from(item: (ZenPaymentStatus, Option<ZenActions>)) -> Result<Self, Self::Error> { let (item_txn_status, item_action_status) = item; Ok(match item_txn_stat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use hyperswitch_domain_models::{ payment_method_data::{ BankDebitData, BankRedirectData, BankTransferData, Card, CardRedirectData, GiftCardData, PayLa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use error_stack::ResultExt; use hyperswitch_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use common_utils::{ errors::CustomResult, ext_traits::{OptionExt, ValueExt}, pii::{self}, request::Method, }; use error_stack::ResultExt; use hyperswitch_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/zen/transformers.rs | crate: hyperswitch_connectors | connector: zen use error_stack::ResultExt; use masking::{ExposeInterface, PeekInterface, Secret}; fn get_checkout_signature( checkout_request: &CheckoutRequest, session: &Wallet...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys | op: sync use common_utils::{ consts::BASE64_ENGINE, crypto::{EncodeMessage, SignMessage}, ext_traits::{Encode, ValueExt}, types::StringMinorUnit, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; type Error = error_stack::Report<errors::ConnectorError>; fn get_transaction_type( status: enums::AttemptStatus, capture_method: Op...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, ErrorResponse, Rou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, Err...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, ErrorResponse, RouterData}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use error_stack::ResultExt; use crate::{ types::{RefundsResponseRouterData, ResponseRouterData}, utils::{ self as connector...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use common_utils::{ consts::BASE64_ENGINE, crypto::{EncodeMessage, SignMessage}, ext_traits::{Encode, ValueExt}, types::Str...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use error_stack::ResultExt; use hyperswitch_domain_models::{ address::Address, payment_method_data::PaymentMethodData, router_d...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | crate: hyperswitch_connectors | connector: redsys use common_enums::enums; use common_utils::{ consts::BASE64_ENGINE, crypto::{EncodeMessage, SignMessage}, ext_traits::{Encode, ValueExt}, types::Str...
ast_fragments