text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
use common_utils::{
pii,
types::{MinorUnit, StringMajorUnit},
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
... | 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 hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
}
}
#[derive(Debug, Deserialize, Serialize)]
pub struct PaymeVoidResponse {
sale_status: SaleStatus,
payme_transaction_id: Option<String>,
status_err... | 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
))?
}
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PaymeRedirectResponseData {
meta_data: String,
}
i... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
fn from(value: NotifyType) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payme/transformers.rs | crate: hyperswitch_connectors | connector: payme
fn from(value: WebhookEventDataResource) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| 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 hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
router_data... | 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
fn try_from(sale_status: SaleStatus) -> Result<Self, Self::Error> {
<|fim_suffix|>
<|fim_middle|>
}
| 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 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
fn from(item: SaleStatus) -> Self {
<|fim_suffix|>
<|fim_middle|>
}
| 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 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 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 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 |
<|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 common_utils::{
pii,
types::{MinorUnit, StringMajorUnit},
};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData},
... | 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 common_utils::{
pii,
types::{MinorUnit, StringMajorUnit},
};
use hype... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
fn from(item: ThunesPaymentStatus) -> Self {
{
ThunesPaymentStatus::Succeeded => Self::Charged,<|fim_suffix|>
<|fim_middle|>
ThunesPaymentStatus::Processing => Self... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
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/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
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/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
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/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
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/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
fn from(item: ThunesPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
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/thunes/transformers.rs | crate: hyperswitch_connectors | connector: thunes
use common_enums::enums;
use common_utils::types::StringMinorUnit;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{Co... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, StringMinorUnit, Stri... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay | op: capture
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, Min... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
provider: Some(requests::DigitalWalletProvider::PayByGoogle),
payment_token: wallet_data.get_wallet_token_as_json("Google Pay"... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
sequence: Some(match connector_mandate_id.is_some() {
true => Sequence::Subsequent,
false => Sequence:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
// Return URL handling for PayPal via Globalpay:
// - PayPal inconsistency: Return URLs work with HTTP, but cancel URLs require HTTPS
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay | op: capture
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, Min... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay | op: capture
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, Min... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay | op: capture
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, StringM... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay | op: capture
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, Min... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use crate::{
types::{PaymentsSyncResponseRouterData, RefundsResponseRouterData, ResponseRouterData},
utils::{
self, construct_captures_respons... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use crate::{
types::{PaymentsSyncResponseRouterData, RefundsResponseRouterData, ResponseRouterData},
utils::{
self, construct_captures_respons... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(item: GlobalpayRefreshTokenResponse) -> Result<Self, Self::Error> {
<|fim_suffix|>
<|fim... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use hyperswitch_domain_models::{
payment_method_data,
router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
router_flow_types:... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs | crate: hyperswitch_connectors | connector: globalpay
use common_utils::{
crypto::{self, GenerateDigest},
errors::ParsingError,
pii,
request::Method,
types::{AmountConvertor, MinorUnit, String... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
fn update_nexi_meta_data(
update_request: Up... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
connector_response_reference_id: Some(item.response.order_id.clone()),
incremental_authorization_allowed: None,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
fn from(item: NexixpayRefundResultStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
impl<F>
TryFrom<
ResponseRouterData<
F,
NexixpayPaymentsResponse,
PaymentsAuthorizeData,
PaymentsRe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
fn from(item: NexixpayPaymentStatus) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_met... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::Payme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
fn from(item: NexixpayRefundResultStatus) -> Self {
{
NexixpayRefundResultStatus::Voided
| NexixpayRefundResultStatus::Refunded
| Nexixp... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_met... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_met... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay | op: capture
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueEx... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
fn from(item: NexixpayPaymentStatus) -> Self {
{
NexixpayPaymentStatus::Declined
| NexixpayPaymentStatus::DeniedByRisk
| NexixpayPayment... | ast_fragments |
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_method_data::Payme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, ErrorResponse, RouterData},
router_flow_ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use error_stack::ResultExt;
use hyperswitch_doma... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_enums::{enums, AttemptStatus, CaptureMethod, Currency, RefundStatus};
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Me... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs | crate: hyperswitch_connectors | connector: nexixpay
use common_utils::{
errors::CustomResult, ext_traits::ValueExt, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_met... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, AddressData, AddressDetailsData, ApplePay, PaymentsAuthorize... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData as WalletDataPaymentMeth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData as WalletDataPaymentMeth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData as WalletDataPaymentMeth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData as WalletDataPaymentMeth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use hyperswitch_domain_models::{
payment_method_data::{PaymentMethodData, WalletData as WalletDataPaymentMeth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_utils::{
consts, ext_traits::OptionExt, pii::Email, request::Method, types::StringMinorUnit,
};
use hyperswitch_domain_models::{
payment_meth... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use common_utils::{
consts, ext_traits::OptionExt, pii::Email, request::Method, types::StringMinorUnit,
};
us... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
pub fn get_token(transaction_data: Option<&Self>) -> Option<String> {
{
Some(NovalnetResponsePaymentData::Card(card_data)) => {
card_data.to... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
fn from(item: NovalnetTransactionStatus) -> Self {
{
NovalnetTransactionStatus::Success | NovalnetTransactionStatus::Confirmed => {
Self::Succes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
}
}
// Auth Struct
pub struct NovalnetAuthType {
pub(super) product_activation_key: Secret<String>,
pub(super) payment_access_key: Secret<String>,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use common_enums::{enums, enums as api_enums};
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, AddressData, ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
pub fn option_to_result<T>(opt: Option<T>) -> Result<T, errors::ConnectorError> {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
use crate::{
types::{RefundsResponseRouterData, ResponseRouterData},
utils::{
self, AddressData, AddressDetailsData, ApplePay, PaymentsAuthorize... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | crate: hyperswitch_connectors | connector: novalnet
pub fn reverse_string(s: &str) -> String {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.