prompt
stringlengths
14
2.16k
response
stringlengths
52
115k
feat(connector): [Cybersource] Add payout flows for Card (#4511) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **enums.rs** Modify existing code **connector.rs** Modify existing code **cybersource.rs** Add: - function: private::get_url - function: private::get_headers - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_5xx_error_response - impl: impl api::Payouts for Cybersource - impl: impl api::PayoutFulfill for Cybersource - impl: impl ConnectorIntegration<api::PoFulfill, types::PayoutsData, types::PayoutsResponseData> for Cybersource **transformers.rs** Add: - function: private::try_from - function: private::try_from - function: private::try_from - function: private::foreign_from - function: private::try_from - struct: pub::CybersourcePayoutFulfillRequest - struct: pub::CybersourceRecipientInfo - struct: pub::CybersourceSenderInfo - struct: pub::CybersourceAccountInfo - struct: pub::CybersourceProcessingInfo - struct: pub::CybersourceFulfillResponse - enum: pub::CybersourcePayoutFundSourceType - enum: pub::CybersourcePayoutBusinessType - enum: pub::CybersourcePayoutStatus - impl: impl TryFrom<&CybersourceRouterData<&types::PayoutsRouterData<api::PoFulfill>>> for CybersourcePayoutFulfillRequest - impl: impl TryFrom<(&AddressDetails, &PhoneDetails)> for CybersourceRecipientInfo - impl: impl TryFrom<PayoutMethodData> for PaymentInformation - impl: impl ForeignFrom<CybersourcePayoutStatus> for enums::PayoutStatus - impl: impl TryFrom<types::PayoutsResponseRouterData<F, CybersourceFulfillResponse>> for types::PayoutsRouterData<F> **utils.rs** Add: - function: private::get_card_expiry_year_2_digit - function: private::get_card_issuer - function: private::get_card_expiry_month_year_2_digit_with_delimiter - function: private::get_expiry_date_as_yyyymm - function: private::get_expiry_date_as_mmyyyy - function: private::get_expiry_year_4_digit - function: private::get_expiry_date_as_yymm - function: private::get_expiry_month_as_i8 - function: private::get_expiry_year_as_i32 - impl: impl CardData for payouts::Card **flows.rs** Modify existing code
chore: move RouterData Request types to hyperswitch_domain_models crate (#4723) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **errors.rs** Add: - mod: pub::api_error_response **api_error_response.rs** Add: - function: private::fmt - function: private::fmt - function: private::switch - function: private::status_code - function: private::error_response - function: private::from - enum: pub::ErrorType - enum: pub::ApiErrorResponse - enum: pub::NotImplementedMessage - impl: impl std::fmt::Debug for NotImplementedMessage - impl: impl ::core::fmt::Display for ApiErrorResponse - impl: impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ApiErrorResponse - impl: impl actix_web::ResponseError for ApiErrorResponse - impl: impl From<ApiErrorResponse> for router_data::ErrorResponse **lib.rs** Add: - mod: pub::payment_method_data - mod: pub::router_request_types **payment_method_data.rs** Add: - function: pub::get_payment_method - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::from - struct: pub::Card - struct: pub::SamsungPayWalletData - struct: pub::GooglePayWalletData - struct: pub::ApplePayRedirectData - struct: pub::GooglePayRedirectData - struct: pub::GooglePayThirdPartySdkData - struct: pub::ApplePayThirdPartySdkData - struct: pub::WeChatPayRedirection - struct: pub::WeChatPay - struct: pub::WeChatPayQr - struct: pub::CashappQr - struct: pub::PaypalRedirection - struct: pub::AliPayQr - struct: pub::AliPayRedirection - struct: pub::AliPayHkRedirection - struct: pub::MomoRedirection - struct: pub::KakaoPayRedirection - struct: pub::GoPayRedirection - struct: pub::GcashRedirection - struct: pub::MobilePayRedirection - struct: pub::MbWayRedirection - struct: pub::GooglePayPaymentMethodInfo - struct: pub::PayPalWalletData - struct: pub::TouchNGoRedirection - struct: pub::SwishQrData - struct: pub::GpayTokenizationData - struct: pub::ApplePayWalletData - struct: pub::ApplepayPaymentMethod - struct: pub::CryptoData - struct: pub::UpiData - struct: pub::BoletoVoucherData - struct: pub::AlfamartVoucherData - struct: pub::IndomaretVoucherData - struct: pub::JCSVoucherData - struct: pub::GiftCardDetails - struct: pub::CardToken - struct: pub::SepaAndBacsBillingDetails - enum: pub::PaymentMethodData - enum: pub::CardRedirectData - enum: pub::PayLaterData - enum: pub::WalletData - enum: pub::BankRedirectData - enum: pub::VoucherData - enum: pub::GiftCardData - enum: pub::BankDebitData - enum: pub::BankTransferData - impl: impl PaymentMethodData - impl: impl From<api_models::payments::PaymentMethodData> for PaymentMethodData - impl: impl From<api_models::payments::Card> for Card - impl: impl From<api_models::payments::CardRedirectData> for CardRedirectData - impl: impl From<api_models::payments::WalletData> for WalletData - impl: impl From<api_models::payments::GooglePayWalletData> for GooglePayWalletData - impl: impl From<api_models::payments::ApplePayWalletData> for ApplePayWalletData - impl: impl From<api_models::payments::PayLaterData> for PayLaterData - impl: impl From<api_models::payments::BankRedirectData> for BankRedirectData - impl: impl From<api_models::payments::CryptoData> for CryptoData - impl: impl From<api_models::payments::UpiData> for UpiData - impl: impl From<api_models::payments::VoucherData> for VoucherData - impl: impl From<api_models::payments::GiftCardData> for GiftCardData - impl: impl From<api_models::payments::CardToken> for CardToken - impl: impl From<api_models::payments::BankDebitData> for BankDebitData - impl: impl From<api_models::payments::BankTransferData> for BankTransferData **router_request_types.rs** Add: - function: pub::get_connector_transaction_id - function: pub::is_request_surcharge_matching - function: pub::get_total_surcharge_amount - function: private::from - function: private::try_from - struct: pub::PaymentsAuthorizeData - struct: pub::PaymentsCaptureData - struct: pub::PaymentsIncrementalAuthorizationData - struct: pub::MultipleCaptureRequestData - struct: pub::AuthorizeSessionTokenData - struct: pub::ConnectorCustomerData - struct: pub::PaymentMethodTokenizationData - struct: pub::PaymentsPreProcessingData - struct: pub::CompleteAuthorizeData - struct: pub::CompleteAuthorizeRedirectResponse - struct: pub::PaymentsSyncData - struct: pub::PaymentsCancelData - struct: pub::PaymentsRejectData - struct: pub::PaymentsApproveData - struct: pub::BrowserInformation - struct: pub::SurchargeDetails - struct: pub::AuthenticationData - struct: pub::RefundsData - struct: pub::AccessTokenRequestData - struct: pub::AcceptDisputeRequestData - struct: pub::DefendDisputeRequestData - struct: pub::SubmitEvidenceRequestData - struct: pub::RetrieveFileRequestData - struct: pub::UploadFileRequestData - struct: pub::PayoutsData - struct: pub::CustomerDetails - struct: pub::VerifyWebhookSourceRequestData - enum: pub::SyncRequestType - enum: pub::ResponseId - impl: impl ResponseId - impl: impl SurchargeDetails - impl: impl From<( &RequestSurchargeDetails, &payments::payment_attempt::PaymentAttempt, )> for SurchargeDetails - impl: impl TryFrom<router_data::ConnectorAuthType> for AccessTokenRequestData - mod: pub::authentication - mod: pub::fraud_check **authentication.rs** Add: - function: pub::get_acs_url - function: pub::get_challenge_request - function: pub::get_acs_reference_number - function: pub::get_acs_trans_id - function: pub::get_acs_signed_content - function: pub::get_decoupled_authentication_type - function: private::try_from - struct: pub::ChallengeParams - struct: pub::PreAuthNRequestData - struct: pub::ConnectorAuthenticationRequestData - struct: pub::ConnectorPostAuthenticationRequestData - struct: pub::PreAuthenticationData - struct: pub::ThreeDsMethodData - struct: pub::AcquirerDetails - struct: pub::ExternalThreeDSConnectorMetadata - enum: pub::AuthenticationResponseData - enum: pub::AuthNFlowType - enum: pub::MessageCategory - impl: impl AuthNFlowType - impl: impl TryFrom<&diesel_models::authentication::Authentication> for PreAuthenticationData **fraud_check.rs** Add: - function: private::get_api_event_type - struct: pub::FraudCheckSaleData - struct: pub::FraudCheckCheckoutData - struct: pub::FraudCheckTransactionData - struct: pub::FraudCheckRecordReturnData - struct: pub::FraudCheckFulfillmentData - struct: pub::FrmFulfillmentRequest - struct: pub::Fulfillments - struct: pub::Product - struct: pub::Destination - struct: pub::Address - enum: pub::RefundMethod - enum: pub::FulfillmentStatus - impl: impl ApiEventMetric for FrmFulfillmentRequest **errors.rs** Add: - mod: pub::api_error_response **api.rs** Remove: - enum: pub::RefundMethod **worldpay.rs** Modify existing code **response.rs** Modify existing code **transformers.rs** Modify existing code **errors.rs** Add: - mod: pub::api_error_response **api_error_response.rs** Add: - function: private::fmt - function: private::fmt - function: private::switch - function: private::status_code - function: private::error_response - function: private::from - enum: pub::ErrorType - enum: pub::ApiErrorResponse - enum: pub::NotImplementedMessage - impl: impl std::fmt::Debug for NotImplementedMessage - impl: impl ::core::fmt::Display for ApiErrorResponse - impl: impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ApiErrorResponse - impl: impl actix_web::ResponseError for ApiErrorResponse - impl: impl From<ApiErrorResponse> for router_data::ErrorResponse **transformers.rs** Modify existing code **utils.rs** Modify existing code **types.rs** Modify existing code **payments.rs** Remove: - struct: pub::CustomerDetails **approve_flow.rs** Modify existing code **reject_flow.rs** Modify existing code **retry.rs** Modify existing code **types.rs** Modify existing code **retry.rs** Modify existing code **verification.rs** Modify existing code **fraud_check.rs** Add: - function: private::get_api_event_type - struct: pub::FraudCheckSaleData - struct: pub::FraudCheckCheckoutData - struct: pub::FraudCheckTransactionData - struct: pub::FraudCheckRecordReturnData - struct: pub::FraudCheckFulfillmentData - struct: pub::FrmFulfillmentRequest - struct: pub::Fulfillments - struct: pub::Product - struct: pub::Destination - struct: pub::Address - enum: pub::RefundMethod - enum: pub::FulfillmentStatus - impl: impl ApiEventMetric for FrmFulfillmentRequest **api.rs** Remove: - enum: pub::RefundMethod **types.rs** Modify existing code **authentication.rs** Add: - function: pub::get_acs_url - function: pub::get_challenge_request - function: pub::get_acs_reference_number - function: pub::get_acs_trans_id - function: pub::get_acs_signed_content - function: pub::get_decoupled_authentication_type - function: private::try_from - struct: pub::ChallengeParams - struct: pub::PreAuthNRequestData - struct: pub::ConnectorAuthenticationRequestData - struct: pub::ConnectorPostAuthenticationRequestData - struct: pub::PreAuthenticationData - struct: pub::ThreeDsMethodData - struct: pub::AcquirerDetails - struct: pub::ExternalThreeDSConnectorMetadata - enum: pub::AuthenticationResponseData - enum: pub::AuthNFlowType - enum: pub::MessageCategory - impl: impl AuthNFlowType - impl: impl TryFrom<&diesel_models::authentication::Authentication> for PreAuthenticationData **files.rs** Modify existing code **payments.rs** Remove: - struct: pub::CustomerDetails **fraud_check.rs** Add: - function: private::get_api_event_type - struct: pub::FraudCheckSaleData - struct: pub::FraudCheckCheckoutData - struct: pub::FraudCheckTransactionData - struct: pub::FraudCheckRecordReturnData - struct: pub::FraudCheckFulfillmentData - struct: pub::FrmFulfillmentRequest - struct: pub::Fulfillments - struct: pub::Product - struct: pub::Destination - struct: pub::Address - enum: pub::RefundMethod - enum: pub::FulfillmentStatus - impl: impl ApiEventMetric for FrmFulfillmentRequest **utils.rs** Modify existing code **connector_onboarding.rs** Modify existing code **custom_serde.rs** Remove: - function: pub::display_serialize **errors.rs** Add: - mod: pub::api_error_response
feat: add cors rules to actix (#3646)
Files to modify: **defaults.rs** Add: - function: private::default - impl: impl Default for super::settings::CorsSettings **settings.rs** Add: - struct: pub::CorsSettings **validations.rs** Add: - function: pub::validate - impl: impl super::settings::CorsSettings **cors.rs** Modify existing code **lib.rs** Modify existing code
fix: Map attempt_status_unspecified to None instead of Unresolved for HS<>UCS ErrorResponse (#9445) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **authorize_flow.rs** Modify existing code **external_proxy_flow.rs** Modify existing code **psync_flow.rs** Modify existing code **setup_mandate_flow.rs** Modify existing code **unified_connector_service.rs** Modify existing code **transformers.rs** Modify existing code **api.rs** Modify existing code
feat(core): add support for multiple `merchant_connector_account` (#2655) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Shanks <shashank.attarde@juspay.in>
Files to modify: **admin.rs** Add: - enum: pub::RoutableConnectorChoice **payments.rs** Modify existing code **payment_attempt.rs** Modify existing code **dispute.rs** Modify existing code **file.rs** Modify existing code **mandate.rs** Modify existing code **payment_attempt.rs** Modify existing code **payout_attempt.rs** Modify existing code **refund.rs** Modify existing code **schema.rs** Modify existing code **types.rs** Modify existing code **types.rs** Modify existing code **disputes.rs** Modify existing code **files.rs** Modify existing code **helpers.rs** Modify existing code **mandate.rs** Modify existing code **payments.rs** Modify existing code **authorize_flow.rs** Modify existing code **setup_mandate_flow.rs** Modify existing code **helpers.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_session.rs** Modify existing code **transformers.rs** Modify existing code **refunds.rs** Modify existing code **utils.rs** Modify existing code **webhooks.rs** Modify existing code **dispute.rs** Modify existing code **mandate.rs** Modify existing code **refund.rs** Modify existing code **api.rs** Modify existing code **webhooks.rs** Modify existing code **aci.rs** Modify existing code **adyen.rs** Modify existing code **airwallex.rs** Modify existing code **authorizedotnet.rs** Modify existing code **bambora.rs** Modify existing code **bitpay.rs** Modify existing code **bluesnap.rs** Modify existing code **boku.rs** Modify existing code **cashtocode.rs** Modify existing code **checkout.rs** Modify existing code **coinbase.rs** Modify existing code **cryptopay.rs** Modify existing code **cybersource.rs** Modify existing code **dlocal.rs** Modify existing code **dummyconnector.rs** Modify existing code **fiserv.rs** Modify existing code **forte.rs** Modify existing code **globalpay.rs** Modify existing code **globepay.rs** Modify existing code **gocardless.rs** Modify existing code **helcim.rs** Modify existing code **iatapay.rs** Modify existing code **mollie.rs** Modify existing code **multisafepay.rs** Modify existing code **nexinets.rs** Modify existing code **nmi.rs** Modify existing code **noon.rs** Modify existing code **nuvei.rs** Modify existing code **opayo.rs** Modify existing code **opennode.rs** Modify existing code **payeezy.rs** Modify existing code **payme.rs** Modify existing code **paypal.rs** Modify existing code **payu.rs** Modify existing code **powertranz.rs** Modify existing code **prophetpay.rs** Modify existing code **rapyd.rs** Modify existing code **shift4.rs** Modify existing code **square.rs** Modify existing code **stax.rs** Modify existing code **stripe.rs** Modify existing code **trustpay.rs** Modify existing code **tsys.rs** Modify existing code **volt.rs** Modify existing code **wise.rs** Modify existing code **worldline.rs** Modify existing code **worldpay.rs** Modify existing code **zen.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_attempt.rs** Modify existing code
feat(router): add connector_request_reference_id in router_data based on merchant config (#1627)
Files to modify: **settings.rs** Add: - struct: pub::ConnectorRequestReferenceIdConfig **helpers.rs** Modify existing code **payment_create.rs** Modify existing code **payment_method_validate.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: pub::is_merchant_enabled_for_payment_id_as_connector_request_id - function: pub::get_connector_request_reference_id **types.rs** Modify existing code **aci.rs** Modify existing code **utils.rs** Add: - function: pub::is_merchant_enabled_for_payment_id_as_connector_request_id - function: pub::get_connector_request_reference_id
fix(router): allow inferring payment method from payment token (#422)
Files to modify: **helpers.rs** Modify existing code
refactor(euclid_wasm): Update wasm config (#3222)
Files to modify: **common_config.rs** Add: - struct: pub::CardProvider - struct: pub::Provider **connector.rs** Add: - struct: pub::Classic - struct: pub::Evoucher **response_modifier.rs** Modify existing code **transformer.rs** Modify existing code
feat(connector): [Placetopay] Add Connector Template Code (#3084) Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **transformers.rs** Modify existing code **enums.rs** Modify existing code **enums.rs** Modify existing code **settings.rs** Modify existing code **connector.rs** Add: - mod: pub::placetopay **placetopay.rs** Add: - function: private::build_headers - function: private::id - function: private::get_currency_unit - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Placetopay - impl: impl api::Payment for Placetopay - impl: impl api::PaymentSession for Placetopay - impl: impl api::ConnectorAccessToken for Placetopay - impl: impl api::MandateSetup for Placetopay - impl: impl api::PaymentAuthorize for Placetopay - impl: impl api::PaymentSync for Placetopay - impl: impl api::PaymentCapture for Placetopay - impl: impl api::PaymentVoid for Placetopay - impl: impl api::Refund for Placetopay - impl: impl api::RefundExecute for Placetopay - impl: impl api::RefundSync for Placetopay - impl: impl api::PaymentToken for Placetopay - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Placetopay - impl: impl ConnectorCommonExt<Flow, Request, Response> for Placetopay - impl: impl ConnectorCommon for Placetopay - impl: impl ConnectorValidation for Placetopay - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Placetopay - impl: impl ConnectorIntegration< api::SetupMandate, types::SetupMandateRequestData, types::PaymentsResponseData, > for Placetopay - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Placetopay - impl: impl api::IncomingWebhook for Placetopay - mod: pub::transformers **transformers.rs** Modify existing code **admin.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Modify existing code **main.rs** Add: - mod: private::placetopay **placetopay.rs** Add: - function: private::build_headers - function: private::id - function: private::get_currency_unit - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Placetopay - impl: impl api::Payment for Placetopay - impl: impl api::PaymentSession for Placetopay - impl: impl api::ConnectorAccessToken for Placetopay - impl: impl api::MandateSetup for Placetopay - impl: impl api::PaymentAuthorize for Placetopay - impl: impl api::PaymentSync for Placetopay - impl: impl api::PaymentCapture for Placetopay - impl: impl api::PaymentVoid for Placetopay - impl: impl api::Refund for Placetopay - impl: impl api::RefundExecute for Placetopay - impl: impl api::RefundSync for Placetopay - impl: impl api::PaymentToken for Placetopay - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Placetopay - impl: impl ConnectorCommonExt<Flow, Request, Response> for Placetopay - impl: impl ConnectorCommon for Placetopay - impl: impl ConnectorValidation for Placetopay - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Placetopay - impl: impl ConnectorIntegration< api::SetupMandate, types::SetupMandateRequestData, types::PaymentsResponseData, > for Placetopay - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Placetopay - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Placetopay - impl: impl api::IncomingWebhook for Placetopay - mod: pub::transformers **connector_auth.rs** Modify existing code
feat(core): [Stripe] add bank debits payment method to stripe (#906)
Files to modify: **enums.rs** Modify existing code **payments.rs** Add: - struct: pub::BankDebitBilling - enum: pub::BankDebitData **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **openapi.rs** Modify existing code **enums.rs** Modify existing code
refactor(connector): [WorldPay] propagate refusal codes as error code and messages (#6392)
Files to modify: **worldpay.rs** Add: - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response **response.rs** Modify existing code **transformers.rs** Modify existing code
feat(connector): [VOLT] Implement payment flows and bank redirect payment method (#2582) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com>
Files to modify: **enums.rs** Modify existing code **volt.rs** Add: - function: private::get_url - function: private::get_content_type - function: private::get_headers - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response **transformers.rs** Remove: - function: private::try_from - struct: pub::VoltCard - struct: pub::VoltErrorResponse **admin.rs** Modify existing code **types.rs** Modify existing code **api.rs** Modify existing code
feat(connector): [Hipay] Add Card Payments Flow (#7475) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Swangi Kumari <swangi.12015941@lpu.in>
Files to modify: **connector_enums.rs** Modify existing code **connector.rs** Modify existing code **hipay.rs** Remove: - function: private::get_content_type - function: private::get_content_type - function: private::get_content_type - function: private::get_content_type - function: private::get_content_type - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Hipay - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Hipay Add: - function: pub::build_form_from_struct - function: private::get_headers - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::validate_connector_against_payment_request - function: private::get_headers - function: private::get_url - function: private::build_request - function: private::get_request_body - function: private::handle_response - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Hipay - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Hipay **transformers.rs** Remove: - function: private::from - function: private::from - struct: pub::HipayCard - struct: pub::HipayRefundRequest - enum: pub::HipayPaymentStatus - impl: impl From<HipayPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, HipayPaymentsResponse, T, PaymentsResponseData>> for [derive(Default, Debug, Serialize)] **configs.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code **admin.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Remove: - function: private::from - function: private::from - struct: pub::HipayCard - struct: pub::HipayRefundRequest - enum: pub::HipayPaymentStatus - impl: impl From<HipayPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, HipayPaymentsResponse, T, PaymentsResponseData>> for [derive(Default, Debug, Serialize)]
feat(refunds): update refunds filters (#4409) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **admin.rs** Modify existing code **refund.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for RefundListFilters **payments.rs** Modify existing code **refunds.rs** Add: - struct: pub::RefundListFilters **enums.rs** Modify existing code **openapi.rs** Modify existing code **refunds.rs** Add: - struct: pub::RefundListFilters **refund.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for RefundListFilters **app.rs** Modify existing code **lock_utils.rs** Modify existing code **refunds.rs** Add: - struct: pub::RefundListFilters **refund.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for RefundListFilters **types.rs** Modify existing code
feat(connector): [Paysafe] implement Skrill wallet Payment Method (#9396) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **common_config.rs** Modify existing code **connector.rs** Add: - struct: pub::AccountIdConfigForRedirect **paysafe.rs** Modify existing code **transformers.rs** Add: - function: pub::get_interac_account_id - function: pub::get_paysafe_gift_card_account_id - struct: pub::RedirectAccountId - struct: pub::PaysafeProfile - struct: pub::SkrillWallet - struct: pub::InteracBankRedirect - struct: pub::PaysafeGiftCard **payment_connector_required_fields.rs** Modify existing code
fix: validate refund amount with amount_captured instead of amount (#3120)
Files to modify: **errors.rs** Modify existing code **api_error_response.rs** Modify existing code **transformers.rs** Modify existing code **refunds.rs** Modify existing code **validator.rs** Modify existing code **errors.rs** Modify existing code **integration_demo.rs** Modify existing code
refactor(router): remove `pii-encryption-script` feature and use of timestamps for decryption (#1350)
Files to modify: **router.rs** Modify existing code **defaults.rs** Modify existing code **settings.rs** Modify existing code **customers.rs** Modify existing code **db.rs** Remove: - function: private::get_migration_timestamp - function: private::get_migration_timestamp **address.rs** Modify existing code **customers.rs** Modify existing code **merchant_account.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **merchant_key_store.rs** Modify existing code **lib.rs** Remove: - mod: pub::scripts **scripts.rs** Remove: - mod: pub::pii_encryption **pii_encryption.rs** Remove: - function: pub::create_merchant_key_store - function: pub::encrypt_merchant_account_fields - function: pub::encrypt_merchant_connector_account_fields - function: pub::encrypt_customer_fields - function: pub::encrypt_address_fields - function: pub::test_2_step_encryption **services.rs** Modify existing code **address.rs** Modify existing code **behaviour.rs** Modify existing code **customer.rs** Modify existing code **merchant_account.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **merchant_key_store.rs** Modify existing code **types.rs** Modify existing code
feat(core): Add visa click to pay support (#7562) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Add: - function: pub::is_network_confirmation_call_required - impl: impl CtpServiceDetails **connector_enums.rs** Modify existing code **enums.rs** Add: - enum: pub::CtpServiceProvider **connector.rs** Modify existing code **unified_authentication_service.rs** Modify existing code **transformers.rs** Remove: - function: private::try_from - struct: pub::AuthenticationInfo - struct: pub::UnifiedAuthenticationServiceAuthType - enum: pub::AuthType - impl: impl TryFrom<&ConnectorAuthType> for UnifiedAuthenticationServiceAuthType **configs.rs** Modify existing code **unified_authentication_service.rs** Modify existing code **openapi.rs** Modify existing code **openapi_v2.rs** Modify existing code **admin.rs** Modify existing code **payments.rs** Add: - function: pub::is_network_confirmation_call_required - impl: impl CtpServiceDetails **unified_authentication_service.rs** Modify existing code **types.rs** Modify existing code **utils.rs** Modify existing code **api.rs** Modify existing code **authentication.rs** Modify existing code **transformers.rs** Remove: - function: private::try_from - struct: pub::AuthenticationInfo - struct: pub::UnifiedAuthenticationServiceAuthType - enum: pub::AuthType - impl: impl TryFrom<&ConnectorAuthType> for UnifiedAuthenticationServiceAuthType
feat(disputes): add filters for disputes list (#5637) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **disputes.rs** Remove: - struct: pub::DisputeListConstraints Add: - struct: pub::DisputeListGetConstraints - struct: pub::DisputeListFilters **events.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for DisputeListFilters **enums.rs** Modify existing code **disputes.rs** Remove: - struct: pub::DisputeListConstraints Add: - struct: pub::DisputeListGetConstraints - struct: pub::DisputeListFilters **lib.rs** Add: - mod: pub::disputes **disputes.rs** Remove: - struct: pub::DisputeListConstraints Add: - struct: pub::DisputeListGetConstraints - struct: pub::DisputeListFilters **dispute.rs** Modify existing code **kafka_store.rs** Modify existing code **app.rs** Modify existing code **disputes.rs** Remove: - struct: pub::DisputeListConstraints Add: - struct: pub::DisputeListGetConstraints - struct: pub::DisputeListFilters **lock_utils.rs** Modify existing code **refunds.rs** Modify existing code **dispute.rs** Modify existing code **types.rs** Modify existing code
feat(router): Override the `setup_future_usage` to `on_session` based on the merchant config (#5016)
Files to modify: **payments.rs** Modify existing code **helpers.rs** Add: - function: pub::config_skip_saving_wallet_at_connector **tokenization.rs** Modify existing code
feat(connector): add 3DS flow for Worldpay (#6374) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment_attempt.rs** Modify existing code **router_response_types.rs** Modify existing code **worldpay.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_flow_type - impl: impl api::PaymentsCompleteAuthorize for Worldpay - impl: impl ConnectorIntegration< api::CompleteAuthorize, types::CompleteAuthorizeData, types::PaymentsResponseData, > for Worldpay - impl: impl services::ConnectorRedirectResponse for Worldpay **requests.rs** Add: - struct: pub::ThreeDSRequest - struct: pub::ThreeDSRequestDeviceData - struct: pub::ThreeDSRequestChallenge - struct: pub::WorldpayCompleteAuthorizationRequest - enum: pub::ThreeDSRequestChannel **response.rs** Remove: - function: pub::new - impl: impl PaymentsResPaymentInstrument Add: - function: private::fmt - struct: pub::ThreeDsChallengedResponse - struct: pub::AuthenticationResponse - struct: pub::ThreeDsChallenge - struct: pub::CompleteThreeDsActionLink **transformers.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code
revert: fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment (#7859)
Files to modify: **noon.rs** Modify existing code **transformers.rs** Add: - function: private::try_from - struct: pub::NoonPaypalResponse - struct: pub::NoonPaypalResponseResult - enum: pub::NoonAuthPaymentResponse - impl: impl TryFrom<ResponseRouterData<F, NoonPaypalResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
chore(connector_events_fields): added refund_id, dispute_id to connector events (#3424) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sampras Lopes <lsampras@pm.me>
Files to modify: **events.rs** Modify existing code **connector_events.rs** Remove: - enum: pub::QueryType **checkout_flow.rs** Modify existing code **fulfillment_flow.rs** Modify existing code **record_return.rs** Modify existing code **sale_flow.rs** Modify existing code **transaction_flow.rs** Modify existing code **utils.rs** Modify existing code **helpers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code **connector_api_logs.rs** Modify existing code **api.rs** Modify existing code **types.rs** Modify existing code **verify_connector.rs** Modify existing code **aci.rs** Modify existing code **utils.rs** Modify existing code
feat(connector): add auth_token_refresh for payu and some quick bug fixes (#426) Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: samraat bansal <samraat.bansal@samraat.bansal-MacBookPro> Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com>
Files to modify: **enums.rs** Modify existing code **cybersource.rs** Modify existing code **transformers.rs** Modify existing code **globalpay.rs** Modify existing code **payu.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: private::get_request_id - trait: pub::AccessTokenRequestInfo - impl: impl AccessTokenRequestInfo for types::RefreshTokenRouterData **fiserv.rs** Modify existing code **globalpay.rs** Modify existing code **payu.rs** Modify existing code **utils.rs** Add: - function: private::get_request_id - trait: pub::AccessTokenRequestInfo - impl: impl AccessTokenRequestInfo for types::RefreshTokenRouterData **worldline.rs** Modify existing code
feat(connector): [AUTHORIZEDOTNET] Implement non-zero mandates (#4758)
Files to modify: **authorizedotnet.rs** Add: - function: private::validate_mandate_payment **transformers.rs** Add: - struct: pub::CreateProfileDetails - struct: pub::CustomerDetails - enum: private::ProfileDetails
feat(users): Added get role from jwt api (#3385) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **user_role.rs** Modify existing code **user_role.rs** Modify existing code **app.rs** Modify existing code **lock_utils.rs** Modify existing code **user_role.rs** Modify existing code **info.rs** Modify existing code **permissions.rs** Modify existing code **user.rs** Modify existing code **user_role.rs** Modify existing code **types.rs** Modify existing code
feat: applepay payment request object (#519)
Files to modify: **payments.rs** Modify existing code **applepay.rs** Modify existing code **transformers.rs** Add: - function: private::from - function: private::from - function: private::from - struct: pub::ApplePayMetaData - struct: pub::PaymentObjectMetaData - struct: pub::PaymentRequest - struct: pub::AmountInfo - impl: impl From<PaymentRequest> for payments::ApplePayRequest - impl: impl From<AmountInfo> for payments::AmountInfo - impl: impl From<ApplepaySessionResponse> for payments::ApplePaySessionObject **transformers.rs** Add: - function: private::from - function: private::from - function: private::from - struct: pub::ApplePayMetaData - struct: pub::PaymentObjectMetaData - struct: pub::PaymentRequest - struct: pub::AmountInfo - impl: impl From<PaymentRequest> for payments::ApplePayRequest - impl: impl From<AmountInfo> for payments::AmountInfo - impl: impl From<ApplepaySessionResponse> for payments::ApplePaySessionObject **transformers.rs** Add: - function: private::from - function: private::from - function: private::from - struct: pub::ApplePayMetaData - struct: pub::PaymentObjectMetaData - struct: pub::PaymentRequest - struct: pub::AmountInfo - impl: impl From<PaymentRequest> for payments::ApplePayRequest - impl: impl From<AmountInfo> for payments::AmountInfo - impl: impl From<ApplepaySessionResponse> for payments::ApplePaySessionObject **session_flow.rs** Modify existing code **openapi.rs** Modify existing code
feat(router): add payments incremental authorization api (#3038) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for PaymentsIncrementalAuthorizationRequest **payments.rs** Add: - struct: pub::IncrementalAuthorizationResponse - struct: pub::PaymentsIncrementalAuthorizationRequest **enums.rs** Add: - enum: pub::AuthorizationStatus **request.rs** Modify existing code **payments.rs** Add: - struct: pub::IncrementalAuthorizationResponse - struct: pub::PaymentsIncrementalAuthorizationRequest **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **authorization.rs** Add: - function: private::from - struct: pub::Authorization - struct: pub::AuthorizationNew - struct: pub::AuthorizationUpdateInternal - enum: pub::AuthorizationUpdate - impl: impl From<AuthorizationUpdate> for AuthorizationUpdateInternal **lib.rs** Add: - mod: pub::authorization **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **query.rs** Add: - mod: pub::authorization **authorization.rs** Add: - function: private::from - struct: pub::Authorization - struct: pub::AuthorizationNew - struct: pub::AuthorizationUpdateInternal - enum: pub::AuthorizationUpdate - impl: impl From<AuthorizationUpdate> for AuthorizationUpdateInternal **schema.rs** Modify existing code **cybersource.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - impl: impl api::PaymentIncrementalAuthorization for Cybersource - impl: impl ConnectorIntegration< api::IncrementalAuthorization, types::PaymentsIncrementalAuthorizationData, types::PaymentsResponseData, > for Cybersource **transformers.rs** Add: - function: private::try_from - function: private::from - function: private::try_from - struct: pub::MerchantInitiatedTransaction - struct: pub::AdditionalAmount - struct: pub::CybersourcePaymentsIncrementalAuthorizationRequest - struct: pub::CybersourcePaymentsIncrementalAuthorizationResponse - enum: pub::CybersourceIncrementalAuthorizationStatus - impl: impl TryFrom<&CybersourceRouterData<&types::PaymentsIncrementalAuthorizationRouterData>> for CybersourcePaymentsIncrementalAuthorizationRequest - impl: impl From<CybersourceIncrementalAuthorizationStatus> for common_enums::AuthorizationStatus - impl: impl TryFrom<( types::ResponseRouterData< F, CybersourcePaymentsIncrementalAuthorizationResponse, T, types::PaymentsResponseData, >, bool, )> for types::RouterData<F, T, types::PaymentsResponseData> **payments.rs** Add: - struct: pub::IncrementalAuthorizationResponse - struct: pub::PaymentsIncrementalAuthorizationRequest **flows.rs** Add: - impl: impl api::PaymentIncrementalAuthorization for connector::DummyConnector<T> - impl: impl services::ConnectorIntegration< api::IncrementalAuthorization, types::PaymentsIncrementalAuthorizationData, types::PaymentsResponseData, > for connector::DummyConnector<T> - mod: pub::incremental_authorization_flow **incremental_authorization_flow.rs** Add: - function: private::construct_router_data - function: private::decide_flows - function: private::add_access_token - function: private::build_flow_specific_connector_request - impl: impl ConstructFlowSpecificData< api::IncrementalAuthorization, types::PaymentsIncrementalAuthorizationData, types::PaymentsResponseData, > for PaymentData<api::IncrementalAuthorization> - impl: impl Feature<api::IncrementalAuthorization, types::PaymentsIncrementalAuthorizationData> for types::RouterData< api::IncrementalAuthorization, types::PaymentsIncrementalAuthorizationData, types::PaymentsResponseData, > **helpers.rs** Add: - function: pub::validate_payment_status_against_allowed_statuses **operations.rs** Add: - mod: pub::payments_incremental_authorization **payment_approve.rs** Modify existing code **payment_cancel.rs** Modify existing code **payment_capture.rs** Modify existing code **payment_complete_authorize.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_reject.rs** Modify existing code **payment_response.rs** Add: - function: private::update_tracker - impl: impl PostUpdateTracker<F, PaymentData<F>, types::PaymentsIncrementalAuthorizationData> for PaymentResponse **payment_session.rs** Modify existing code **payment_start.rs** Modify existing code **payment_status.rs** Modify existing code **payment_update.rs** Modify existing code **payments_incremental_authorization.rs** Add: - function: private::get_trackers - function: private::update_trackers - function: private::validate_request - function: private::get_or_create_customer_details - function: private::make_pm_data - function: private::get_connector - struct: pub::PaymentIncrementalAuthorization - impl: impl GetTracker<F, payments::PaymentData<F>, PaymentsIncrementalAuthorizationRequest, Ctx> for PaymentIncrementalAuthorization - impl: impl UpdateTracker<F, payments::PaymentData<F>, PaymentsIncrementalAuthorizationRequest, Ctx> for PaymentIncrementalAuthorization - impl: impl ValidateRequest<F, PaymentsIncrementalAuthorizationRequest, Ctx> for PaymentIncrementalAuthorization - impl: impl Domain<F, PaymentsIncrementalAuthorizationRequest, Ctx> for PaymentIncrementalAuthorization **transformers.rs** Add: - function: private::try_from - function: private::from - function: private::try_from - struct: pub::MerchantInitiatedTransaction - struct: pub::AdditionalAmount - struct: pub::CybersourcePaymentsIncrementalAuthorizationRequest - struct: pub::CybersourcePaymentsIncrementalAuthorizationResponse - enum: pub::CybersourceIncrementalAuthorizationStatus - impl: impl TryFrom<&CybersourceRouterData<&types::PaymentsIncrementalAuthorizationRouterData>> for CybersourcePaymentsIncrementalAuthorizationRequest - impl: impl From<CybersourceIncrementalAuthorizationStatus> for common_enums::AuthorizationStatus - impl: impl TryFrom<( types::ResponseRouterData< F, CybersourcePaymentsIncrementalAuthorizationResponse, T, types::PaymentsResponseData, >, bool, )> for types::RouterData<F, T, types::PaymentsResponseData> **db.rs** Add: - mod: pub::authorization **authorization.rs** Add: - function: private::from - struct: pub::Authorization - struct: pub::AuthorizationNew - struct: pub::AuthorizationUpdateInternal - enum: pub::AuthorizationUpdate - impl: impl From<AuthorizationUpdate> for AuthorizationUpdateInternal **kafka_store.rs** Add: - function: private::insert_authorization - function: private::find_all_authorizations_by_merchant_id_payment_id - function: private::update_authorization_by_merchant_id_authorization_id - impl: impl AuthorizationInterface for KafkaStore **openapi.rs** Modify existing code **app.rs** Modify existing code **lock_utils.rs** Modify existing code **payments.rs** Add: - struct: pub::IncrementalAuthorizationResponse - struct: pub::PaymentsIncrementalAuthorizationRequest **api.rs** Add: - impl: impl Authenticate for api_models::payments::PaymentsIncrementalAuthorizationRequest **types.rs** Add: - struct: pub::PaymentsIncrementalAuthorizationData - impl: impl Capturable for PaymentsIncrementalAuthorizationData **payments.rs** Add: - struct: pub::IncrementalAuthorizationResponse - struct: pub::PaymentsIncrementalAuthorizationRequest **storage.rs** Add: - mod: pub::authorization **authorization.rs** Add: - function: private::from - struct: pub::Authorization - struct: pub::AuthorizationNew - struct: pub::AuthorizationUpdateInternal - enum: pub::AuthorizationUpdate - impl: impl From<AuthorizationUpdate> for AuthorizationUpdateInternal **transformers.rs** Add: - function: private::try_from - function: private::from - function: private::try_from - struct: pub::MerchantInitiatedTransaction - struct: pub::AdditionalAmount - struct: pub::CybersourcePaymentsIncrementalAuthorizationRequest - struct: pub::CybersourcePaymentsIncrementalAuthorizationResponse - enum: pub::CybersourceIncrementalAuthorizationStatus - impl: impl TryFrom<&CybersourceRouterData<&types::PaymentsIncrementalAuthorizationRouterData>> for CybersourcePaymentsIncrementalAuthorizationRequest - impl: impl From<CybersourceIncrementalAuthorizationStatus> for common_enums::AuthorizationStatus - impl: impl TryFrom<( types::ResponseRouterData< F, CybersourcePaymentsIncrementalAuthorizationResponse, T, types::PaymentsResponseData, >, bool, )> for types::RouterData<F, T, types::PaymentsResponseData> **sample_data.rs** Modify existing code **utils.rs** Modify existing code **operation.rs** Modify existing code **types.rs** Add: - struct: pub::PaymentsIncrementalAuthorizationData - impl: impl Capturable for PaymentsIncrementalAuthorizationData **payment_intent.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code
refactor(outgoing_webhooks): raise errors in the analytics pipeline in case of API client errors or non-2xx responses (#4894)
Files to modify: **outgoing.rs** Add: - function: private::update_event_if_client_error - function: private::api_client_error_handler - function: private::update_event_in_storage - function: private::increment_webhook_outgoing_received_count - function: private::success_response_handler - function: private::error_response_handler - enum: private::ScheduleWebhookRetry
fix(opensearch): handle index not present errors in search api (#4965) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: ivor-juspay <138492857+ivor-juspay@users.noreply.github.com>
Files to modify: **opensearch.rs** Modify existing code **search.rs** Modify existing code **search.rs** Modify existing code
feat(payment_request): add field `amount` to `OrderDetails` and make `order_details` a `Vec` in `payments_create` request (#964)
Files to modify: **payments.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **payment_session.rs** Modify existing code **transformers.rs** Modify existing code **payment_intent.rs** Modify existing code **types.rs** Modify existing code **zen.rs** Modify existing code **payment_intent.rs** Modify existing code **schema.rs** Modify existing code
feat(router): Add gift card balance check endpoint (v2) (#9102)
Files to modify: **payment.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for payments::GiftCardBalanceCheckResponse **payments.rs** Add: - struct: pub::GiftCardBalanceCheckResponse - struct: pub::PaymentsGiftCardBalanceCheckRequest **payment.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for payments::GiftCardBalanceCheckResponse **adyen.rs** Add: - function: private::get_headers - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_5xx_error_response - impl: impl api::PaymentsGiftCardBalanceCheck for Adyen - impl: impl ConnectorIntegration< GiftCardBalanceCheck, GiftCardBalanceCheckRequestData, GiftCardBalanceCheckResponseData, > for Adyen **transformers.rs** Add: - function: private::try_from - function: private::try_from - impl: impl TryFrom<&PaymentsGiftCardBalanceCheckRouterData> for AdyenBalanceRequest<'_> - impl: impl TryFrom< ResponseRouterData< GiftCardBalanceCheck, AdyenBalanceResponse, GiftCardBalanceCheckRequestData, GiftCardBalanceCheckResponseData, >, > for RouterData< GiftCardBalanceCheck, GiftCardBalanceCheckRequestData, GiftCardBalanceCheckResponseData, > **default_implementations.rs** Add: - impl: impl PaymentsGiftCardBalanceCheck for connectors::DummyConnector<T> - impl: impl ConnectorIntegration< GiftCardBalanceCheck, GiftCardBalanceCheckRequestData, GiftCardBalanceCheckResponseData, > for connectors::DummyConnector<T> **default_implementations_v2.rs** Add: - impl: impl PaymentsGiftCardBalanceCheckV2 for $connector - impl: impl ConnectorIntegrationV2< GiftCardBalanceCheck, GiftCardBalanceCheckFlowData, GiftCardBalanceCheckRequestData, GiftCardBalanceCheckResponseData, > for $connector **flow_common_types.rs** Add: - struct: pub::GiftCardBalanceCheckFlowData **payments.rs** Add: - struct: pub::GiftCardBalanceCheckResponse - struct: pub::PaymentsGiftCardBalanceCheckRequest **router_request_types.rs** Add: - struct: pub::GiftCardBalanceCheckRequestData **router_response_types.rs** Add: - struct: pub::GiftCardBalanceCheckResponseData **types.rs** Modify existing code **payments.rs** Add: - struct: pub::GiftCardBalanceCheckResponse - struct: pub::PaymentsGiftCardBalanceCheckRequest **payments_v2.rs** Add: - trait: pub::PaymentsGiftCardBalanceCheckV2 **conversion_impls.rs** Add: - function: private::from_old_router_data - function: private::to_old_router_data - impl: impl RouterDataConversion<T, Req, Resp> for GiftCardBalanceCheckFlowData **types.rs** Modify existing code **openapi_v2.rs** Modify existing code **payments.rs** Add: - struct: pub::GiftCardBalanceCheckResponse - struct: pub::PaymentsGiftCardBalanceCheckRequest **core.rs** Add: - mod: pub::gift_card **gift_card.rs** Add: - function: pub::payments_check_gift_card_balance_core **payment_methods.rs** Add: - function: private::store_gift_card_mca_in_redis **app.rs** Modify existing code **lock_utils.rs** Modify existing code **payments.rs** Add: - struct: pub::GiftCardBalanceCheckResponse - struct: pub::PaymentsGiftCardBalanceCheckRequest **api.rs** Modify existing code **types.rs** Modify existing code
refactor(router): send 200 response for 5xx status codes received from connector (#1440)
Files to modify: **helpers.rs** Modify existing code **payment_response.rs** Modify existing code **transformers.rs** Modify existing code **payment_attempt.rs** Modify existing code **api.rs** Add: - function: private::get_5xx_error_response **payment_attempt.rs** Modify existing code **schema.rs** Modify existing code
feat(user_roles): get user role details (#5777)
Files to modify: **user.rs** Modify existing code **user.rs** Modify existing code **user.rs** Modify existing code **app.rs** Modify existing code **user.rs** Modify existing code
feat(payments): add support for connector testing (Adyen) (#7874) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Add: - struct: pub::AdyenConnectorMetadata - struct: pub::AdyenTestingData **transformers.rs** Add: - function: private::try_from - struct: pub::AdyenTestingData - impl: impl TryFrom<common_utils::pii::SecretSerdeValue> for AdyenTestingData **utils.rs** Add: - function: private::get_connector_testing_data **router_request_types.rs** Modify existing code **openapi.rs** Modify existing code **openapi_v2.rs** Modify existing code **transformers.rs** Add: - function: private::try_from - struct: pub::AdyenTestingData - impl: impl TryFrom<common_utils::pii::SecretSerdeValue> for AdyenTestingData **types.rs** Modify existing code **verify_connector.rs** Modify existing code **utils.rs** Add: - function: private::get_connector_testing_data
fix: address non-digit character cases in card number validation (#4649)
Files to modify: **lib.rs** Modify existing code **validate.rs** Remove: - function: private::from - struct: pub::CCValError - impl: impl From<core::convert::Infallible> for CCValError Add: - function: pub::sanitize_card_number - function: pub::validate_card_number_chars - function: pub::validate_card_number_length - function: pub::luhn - function: private::invalid_card_number_length - function: private::card_number_with_non_digit_character - struct: pub::CardNumberValidationErr **utils.rs** Modify existing code **cards.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **tokenization.rs** Modify existing code **helpers.rs** Modify existing code
feat(user): add email apis and new enums for metadata (#3053) Co-authored-by: Rachit Naithani <rachit.naithani@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Rachit Naithani <81706961+racnan@users.noreply.github.com>
Files to modify: **user.rs** Modify existing code **refunds.rs** Modify existing code **user.rs** Modify existing code **dashboard_metadata.rs** Add: - struct: pub::Feedback - struct: pub::ProdIntent - enum: pub::ConfigurationType **enums.rs** Modify existing code **dashboard_metadata.rs** Add: - struct: pub::Feedback - struct: pub::ProdIntent - enum: pub::ConfigurationType **user.rs** Modify existing code **user.rs** Modify existing code **dashboard_metadata.rs** Add: - struct: pub::Feedback - struct: pub::ProdIntent - enum: pub::ConfigurationType **refund.rs** Modify existing code **app.rs** Modify existing code **lock_utils.rs** Modify existing code **user.rs** Modify existing code **types.rs** Add: - function: pub::get_email **user.rs** Modify existing code **dashboard_metadata.rs** Add: - struct: pub::Feedback - struct: pub::ProdIntent - enum: pub::ConfigurationType **refund.rs** Modify existing code **dashboard_metadata.rs** Add: - struct: pub::Feedback - struct: pub::ProdIntent - enum: pub::ConfigurationType **types.rs** Add: - function: pub::get_email
refactor(router): remove `connector_account_details` and `connector_webhook_details` in merchant_connector_account list response (#5457)
Files to modify: **admin.rs** Add: - function: pub::to_merchant_connector_info - struct: pub::MerchantConnectorListResponse - impl: impl MerchantConnectorListResponse **openapi.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **admin.rs** Add: - function: pub::to_merchant_connector_info - struct: pub::MerchantConnectorListResponse - impl: impl MerchantConnectorListResponse **transformers.rs** Add: - function: private::try_from - impl: impl TryFrom<domain::MerchantConnectorAccount> for api_models::admin::MerchantConnectorListResponse
refactor(card_details): added missing card data fields for connectors (#4571)
Files to modify: **defaults.rs** Modify existing code
feat(pm_list): add required fields for giropay (#3194) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code **defaults.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code
chore(common_utils): Apply the new type pattern for phone numbers (#1286) Co-authored-by: rishavkar <73836104+rishavkar@users.noreply.github.com> Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
Files to modify: **errors.rs** Modify existing code **pii.rs** Add: - function: private::fmt - function: private::from_str - function: private::try_from - function: private::deref - function: private::deref_mut - function: private::build - function: private::from_sql - function: private::to_sql - function: private::test_valid_phone_number_default_masking - struct: pub::PhoneNumberStrategy - struct: pub::PhoneNumber - impl: impl Strategy<T> for PhoneNumberStrategy - impl: impl FromStr for PhoneNumber - impl: impl TryFrom<String> for PhoneNumber - impl: impl ops::Deref for PhoneNumber - impl: impl ops::DerefMut for PhoneNumber - impl: impl Queryable<diesel::sql_types::Text, DB> for PhoneNumber - impl: impl FromSql<sql_types::Text, DB> for PhoneNumber - impl: impl ToSql<sql_types::Text, DB> for PhoneNumber **validation.rs** Add: - function: pub::validate_phone_number - function: private::test_validate_phone_number - function: private::test_invalid_phone_number
feat: add updated_by to tracker tables (#2604) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Files to modify: **enums.rs** Add: - enum: pub::MerchantStorageScheme **lib.rs** Remove: - enum: pub::MerchantStorageScheme **payments.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **address.rs** Modify existing code **connector_response.rs** Modify existing code **enums.rs** Add: - enum: pub::MerchantStorageScheme **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **refund.rs** Modify existing code **reverse_lookup.rs** Modify existing code **schema.rs** Modify existing code **admin.rs** Modify existing code **customers.rs** Modify existing code **helpers.rs** Modify existing code **payment_approve.rs** Modify existing code **payment_cancel.rs** Modify existing code **payment_capture.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_method_validate.rs** Modify existing code **payment_reject.rs** Modify existing code **payment_response.rs** Modify existing code **payment_session.rs** Modify existing code **payment_update.rs** Modify existing code **refunds.rs** Modify existing code **webhooks.rs** Modify existing code **address.rs** Modify existing code **connector_response.rs** Modify existing code **refund.rs** Modify existing code **reverse_lookup.rs** Modify existing code **address.rs** Modify existing code **merchant_account.rs** Modify existing code **connector_response.rs** Modify existing code **enums.rs** Add: - enum: pub::MerchantStorageScheme **utils.rs** Modify existing code **payment_sync.rs** Modify existing code **lib.rs** Remove: - enum: pub::MerchantStorageScheme **lookup.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code
feat(connector): [TrustPay] Add Google Pay support (#1515) Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
Files to modify: **payments.rs** Remove: - struct: pub::GpaySessionTokenResponse **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: private::get_payment_method_type **authorize_flow.rs** Modify existing code **session_flow.rs** Modify existing code **transformers.rs** Modify existing code **openapi.rs** Modify existing code **types.rs** Modify existing code
feat(dynamic_routing): integration of elimination routing for core flows (#6816) Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Amisha Prabhat <55580080+Aprabhat19@users.noreply.github.com> Co-authored-by: Chethan Rao <70657455+Chethan-rao@users.noreply.github.com>
Files to modify: **routing.rs** Modify existing code **enums.rs** Add: - function: pub::should_perform_elimination_routing - impl: impl ErrorCategory **errors.rs** Modify existing code **payment_response.rs** Modify existing code **routing.rs** Modify existing code **helpers.rs** Add: - function: private::get_cached_dynamic_routing_config_for_profile - function: private::refresh_dynamic_routing_cache - function: pub::update_window_for_elimination_routing - impl: impl DynamicRoutingCache for routing_types::EliminationRoutingConfig
fix(core): introduce new attempt and intent status to handle multiple partial captures (#2802) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
Files to modify: **enums.rs** Modify existing code **types.rs** Modify existing code **types.rs** Modify existing code **utils.rs** Add: - function: private::get_attempt_status_for_db_update - trait: pub::PaymentResponseRouterData - impl: impl PaymentResponseRouterData for types::RouterData<Flow, Request, Response> **payments.rs** Modify existing code **helpers.rs** Modify existing code **payment_response.rs** Modify existing code **retry.rs** Modify existing code **types.rs** Modify existing code **payment_attempt.rs** Remove: - function: private::get_intent_status **transformers.rs** Modify existing code
refactor(db): Add TenantID field to KafkaEvent struct (#4598) Co-authored-by: Sampras Lopes <sampras.lopes@juspay.in>
Files to modify: **kafka_store.rs** Modify existing code **kafka.rs** Modify existing code
feat(connector): [PayMe] Implement preprocessing flow for cards (#1904)
Files to modify: **payments.rs** Modify existing code **transformers.rs** Modify existing code **payme.rs** Remove: - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Payme - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Payme Add: - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - function: private::get_5xx_error_response - impl: impl api::PaymentsPreProcessing for Payme - impl: impl impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Payme **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: private::is_auto_capture - function: private::get_order_details - function: private::get_webhook_url - function: private::get_return_url **payments.rs** Modify existing code **flows.rs** Modify existing code **authorize_flow.rs** Modify existing code **session_flow.rs** Modify existing code **helpers.rs** Modify existing code **transformers.rs** Modify existing code **types.rs** Modify existing code
feat(connector): [Multisafepay] Add support for Ideal and Giropay (#4398)
Files to modify: **transformers.rs** Add: - function: private::try_from - struct: pub::IdealInfo - enum: pub::BankRedirectInfo - enum: pub::MultisafepayBankNames - impl: impl TryFrom<&BankNames> for MultisafepayBankNames
fix: throw 500 error when redis goes down (#531)
Files to modify: **lib.rs** Add: - function: pub::on_error **errors.rs** Modify existing code **cache.rs** Modify existing code **ephemeral_key.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **queue.rs** Modify existing code **refund.rs** Modify existing code **producer.rs** Modify existing code **utils.rs** Modify existing code **services.rs** Add: - function: pub::redis_conn
refactor: extract connector auth and metadata validation into separate module (#8501) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **core.rs** Add: - mod: pub::connector_validation **admin.rs** Remove: - function: pub::validate_auth_and_metadata_type - function: private::validate_auth_and_metadata_type_with_connector - function: private::validate_connector_auth_type - struct: private::ConnectorAuthTypeAndMetadataValidation - struct: private::ConnectorAuthTypeValidation - impl: impl ConnectorAuthTypeAndMetadataValidation<'_> - impl: impl ConnectorAuthTypeValidation<'_> **connector_validation.rs** Add: - function: pub::validate_auth_and_metadata_type - function: private::validate_auth_and_metadata_type_with_connector - function: private::validate_connector_auth_type - struct: pub::ConnectorAuthTypeAndMetadataValidation - struct: private::ConnectorAuthTypeValidation - impl: impl ConnectorAuthTypeAndMetadataValidation<'_> - impl: impl ConnectorAuthTypeValidation<'_>
feat(connector): [Payme] Add template code for Payme connector (#1486)
Files to modify: **test.rs** Remove: - function: private::should_fail_payment_for_incorrect_card_number **transformers.rs** Modify existing code **enums.rs** Modify existing code **settings.rs** Modify existing code **connector.rs** Add: - mod: pub::payme **payme.rs** Add: - function: private::build_headers - function: private::id - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Payme - impl: impl api::Payment for Payme - impl: impl api::PaymentSession for Payme - impl: impl api::ConnectorAccessToken for Payme - impl: impl api::PreVerify for Payme - impl: impl api::PaymentAuthorize for Payme - impl: impl api::PaymentSync for Payme - impl: impl api::PaymentCapture for Payme - impl: impl api::PaymentVoid for Payme - impl: impl api::Refund for Payme - impl: impl api::RefundExecute for Payme - impl: impl api::RefundSync for Payme - impl: impl api::PaymentToken for Payme - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Payme - impl: impl ConnectorCommonExt<Flow, Request, Response> for Payme - impl: impl ConnectorCommon for Payme - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Payme - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Payme - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Payme - impl: impl api::IncomingWebhook for Payme - mod: private::transformers **transformers.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **connector_auth.rs** Modify existing code **main.rs** Add: - mod: private::payme **payme.rs** Add: - function: private::build_headers - function: private::id - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Payme - impl: impl api::Payment for Payme - impl: impl api::PaymentSession for Payme - impl: impl api::ConnectorAccessToken for Payme - impl: impl api::PreVerify for Payme - impl: impl api::PaymentAuthorize for Payme - impl: impl api::PaymentSync for Payme - impl: impl api::PaymentCapture for Payme - impl: impl api::PaymentVoid for Payme - impl: impl api::Refund for Payme - impl: impl api::RefundExecute for Payme - impl: impl api::RefundSync for Payme - impl: impl api::PaymentToken for Payme - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Payme - impl: impl ConnectorCommonExt<Flow, Request, Response> for Payme - impl: impl ConnectorCommon for Payme - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Payme - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Payme - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Payme - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Payme - impl: impl api::IncomingWebhook for Payme - mod: private::transformers
feat(router): Add customer_list_saved_payment_methods endpoint to OLAP (#7241)
Files to modify: **openapi_v2.rs** Modify existing code **payment_method.rs** Add: - function: pub::list_customer_payment_method_api **payment_methods.rs** Add: - function: pub::list_saved_payment_methods_for_customer **app.rs** Modify existing code **payment_methods.rs** Add: - function: pub::list_saved_payment_methods_for_customer
feat(users): Add email domain based restriction for dashboard entry APIs (#6940)
Files to modify: **user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest **user_authentication_method.rs** Add: - function: pub::list_user_authentication_methods_for_email_domain **schema.rs** Modify existing code **schema_v2.rs** Modify existing code **user_authentication_method.rs** Add: - function: pub::list_user_authentication_methods_for_email_domain **user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest **user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest **kafka_store.rs** Add: - function: private::list_user_authentication_methods_for_email_domain **user_authentication_method.rs** Add: - function: pub::list_user_authentication_methods_for_email_domain **user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest **user_authentication_method.rs** Add: - function: pub::list_user_authentication_methods_for_email_domain **user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest
feat(router): add payment, refund routes for dummy connector (#1071)
Files to modify: **settings.rs** Modify existing code **app.rs** Modify existing code **dummy_connector.rs** Add: - function: pub::dummy_connector_payment_data - function: pub::dummy_connector_refund - function: pub::dummy_connector_refund_data **errors.rs** Modify existing code **types.rs** Remove: - enum: pub::DummyConnectorTransactionStatus Add: - struct: pub::DummyConnectorPaymentResponse - struct: pub::DummyConnectorRefundRetrieveRequest - enum: pub::DummyConnectorStatus - enum: pub::PaymentMethodType **utils.rs** Modify existing code
feat(router): Add support for confirm-intent external vault proxy flow (#8923) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **transformers.rs** Modify existing code **default_implementations.rs** Add: - impl: impl ExternalVaultProxyPaymentsCreateV1 for connectors::DummyConnector<T> - impl: impl ConnectorIntegration<ExternalVaultProxy, ExternalVaultProxyPaymentsData, PaymentsResponseData> for connectors::DummyConnector<T> **default_implementations_v2.rs** Modify existing code **utils.rs** Add: - function: private::get_split_payment_data - impl: impl SplitPaymentData for ExternalVaultProxyPaymentsData **payment_method_data.rs** Add: - function: private::from - function: private::from - struct: pub::ExternalVaultCard - enum: pub::ExternalVaultPaymentMethodData - impl: impl From<api_models::payments::ProxyPaymentMethodData> for ExternalVaultPaymentMethodData - impl: impl From<api_models::payments::ProxyCardData> for ExternalVaultCard **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **payment_attempt.rs** Add: - function: pub::external_vault_proxy_create_domain_model **router_data.rs** Add: - function: private::get_payment_intent_update - function: private::get_payment_attempt_update - function: private::get_attempt_status_for_db_update - function: private::get_amount_capturable - function: private::get_captured_amount - impl: impl TrackerPostUpdateObjects< router_flow_types::ExternalVaultProxy, router_request_types::ExternalVaultProxyPaymentsData, payments::PaymentConfirmData<router_flow_types::ExternalVaultProxy>, > for RouterData< router_flow_types::ExternalVaultProxy, router_request_types::ExternalVaultProxyPaymentsData, router_response_types::PaymentsResponseData, > **router_data_v2.rs** Modify existing code **flow_common_types.rs** Add: - struct: pub::ExternalVaultProxyFlowData **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **router_request_types.rs** Add: - function: private::try_from - function: private::try_from - function: private::try_from - struct: pub::ExternalVaultProxyPaymentsData - impl: impl TryFrom< &RouterData< flows::ExternalVaultProxy, ExternalVaultProxyPaymentsData, response_types::PaymentsResponseData, >, > for ConnectorCustomerData - impl: impl TryFrom<ExternalVaultProxyPaymentsData> for PaymentMethodTokenizationData - impl: impl TryFrom<ExternalVaultProxyPaymentsData> for CreateOrderRequestData **types.rs** Modify existing code **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **payments_v2.rs** Add: - trait: pub::ExternalVaultProxyPaymentsCreate **conversion_impls.rs** Add: - function: private::from_old_router_data - function: private::to_old_router_data - impl: impl RouterDataConversion<T, Req, Resp> for ExternalVaultProxyFlowData **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **flows.rs** Add: - mod: pub::external_proxy_flow **authorize_flow.rs** Modify existing code **external_proxy_flow.rs** Add: - function: private::construct_router_data - function: private::decide_flows - function: private::add_access_token - function: private::add_session_token - function: private::add_payment_method_token - function: private::preprocessing_steps - function: private::postprocessing_steps - function: private::create_connector_customer - function: private::build_flow_specific_connector_request - function: private::create_order_at_connector - function: private::update_router_data_with_create_order_response - function: private::call_unified_connector_service - impl: impl ConstructFlowSpecificData< api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData, types::PaymentsResponseData, > for PaymentConfirmData<api::ExternalVaultProxy> - impl: impl Feature<api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData> for types::ExternalVaultProxyPaymentsRouterData **operations.rs** Add: - mod: pub::external_vault_proxy_payment_intent **external_vault_proxy_payment_intent.rs** Add: - function: private::validate_status_for_operation - function: private::to_validate_request - function: private::to_get_tracker - function: private::to_domain - function: private::to_update_tracker - function: private::to_validate_request - function: private::to_get_tracker - function: private::to_domain - function: private::to_update_tracker - function: private::validate_request - function: private::get_trackers - function: private::get_customer_details - function: private::make_pm_data - function: private::populate_payment_data - function: private::perform_routing - function: private::update_trackers - function: private::update_tracker - struct: pub::ExternalVaultProxyPaymentIntent - impl: impl ValidateStatusForOperation for ExternalVaultProxyPaymentIntent - impl: impl Operation<F, ExternalVaultProxyPaymentsRequest> for &ExternalVaultProxyPaymentIntent - impl: impl Operation<F, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent - impl: impl ValidateRequest<F, ExternalVaultProxyPaymentsRequest, PaymentConfirmData<F>> for ExternalVaultProxyPaymentIntent - impl: impl GetTracker<F, PaymentConfirmData<F>, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent - impl: impl Domain<F, ExternalVaultProxyPaymentsRequest, PaymentConfirmData<F>> for ExternalVaultProxyPaymentIntent - impl: impl UpdateTracker<F, PaymentConfirmData<F>, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent - impl: impl PostUpdateTracker<F, PaymentConfirmData<F>, types::PaymentsAuthorizeData> for ExternalVaultProxyPaymentIntent **payment_confirm_intent.rs** Modify existing code **payment_response.rs** Add: - function: private::to_post_update_tracker - function: private::to_post_update_tracker - function: private::update_tracker - impl: impl Operation< hyperswitch_domain_models::router_flow_types::ExternalVaultProxy, hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData, > for PaymentResponse - impl: impl Operation< hyperswitch_domain_models::router_flow_types::ExternalVaultProxy, hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData, > for &PaymentResponse - impl: impl PostUpdateTracker< hyperswitch_domain_models::router_flow_types::ExternalVaultProxy, PaymentConfirmData<hyperswitch_domain_models::router_flow_types::ExternalVaultProxy>, hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData, > for PaymentResponse **proxy_payments_intent.rs** Modify existing code **transformers.rs** Modify existing code **unified_connector_service.rs** Add: - function: pub::build_unified_connector_service_payment_method_for_external_proxy **transformers.rs** Modify existing code **app.rs** Modify existing code **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData **api.rs** Add: - impl: impl Authenticate for api_models::payments::ExternalVaultProxyPaymentsRequest **types.rs** Modify existing code **payments.rs** Add: - struct: pub::ProxyPaymentMethodDataRequest - struct: pub::ProxyCardData - struct: pub::ExternalVaultProxyPaymentsRequest - enum: pub::ProxyPaymentMethodData
feat(connector): add Samsung pay mandate support for Cybersource (#7298)
Files to modify: **cybersource.rs** Modify existing code **transformers.rs** Add: - function: private::get_samsung_pay_payment_information **payment_connector_required_fields.rs** Modify existing code
feat(subscription): add support to create subscription with trial plans (#9721) Co-authored-by: Ankit Kumar Gupta <ankit.gupta.001@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gaurav Rawat <104276743+GauravRawat369@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code **subscription.rs** Modify existing code **connector_enums.rs** Modify existing code **invoice.rs** Modify existing code **invoice.rs** Modify existing code **customer.rs** Add: - function: pub::get_connector_customer_map **invoice.rs** Modify existing code **subscription.rs** Modify existing code **billing_processor_handler.rs** Modify existing code **invoice_handler.rs** Add: - function: pub::find_invoice_by_subscription_id_connector_invoice_id **payments_api_client.rs** Modify existing code **subscription_handler.rs** Add: - function: pub::update_connector_customer_id_in_customer - function: pub::update_customer **incoming.rs** Modify existing code **kafka_store.rs** Add: - function: private::find_invoice_by_subscription_id_connector_invoice_id **invoice_sync.rs** Modify existing code **invoice_sync.rs** Modify existing code **invoice.rs** Modify existing code
feat(core): add one-way TLS support with CA certificate for ArchiPEL UAT environment (#8128) Co-authored-by: Debarati Ghatak <debarati.ghatak@Debarati-Ghatak-FW569NC29L.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **request.rs** Add: - function: pub::add_ca_certificate_pem **http_client.rs** Modify existing code **client.rs** Modify existing code **archipel.rs** Modify existing code **transformers.rs** Remove: - struct: pub::ArchipelAuthType Add: - struct: pub::ArchipelAuthType **cards.rs** Modify existing code **openidconnect.rs** Modify existing code
chore: address Rust 1.84.0 clippy lints (#7021)
Files to modify: **address.rs** Modify existing code **types.rs** Modify existing code **graph.rs** Modify existing code **utils.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **transformers.rs** Modify existing code **admin.rs** Modify existing code **transformers.rs** Modify existing code **customers.rs** Modify existing code **fraud_check.rs** Modify existing code **checkout_flow.rs** Modify existing code **record_return.rs** Modify existing code **sale_flow.rs** Modify existing code **transaction_flow.rs** Modify existing code **cards.rs** Modify existing code **utils.rs** Modify existing code **payment_create.rs** Modify existing code **routing.rs** Modify existing code **helpers.rs** Modify existing code **refunds.rs** Modify existing code **utils.rs** Modify existing code **helpers.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code **dashboard_metadata.rs** Modify existing code **refund.rs** Modify existing code **blacklist.rs** Modify existing code **pm_auth.rs** Modify existing code **dashboard_metadata.rs** Modify existing code **kv_store.rs** Modify existing code
refactor(connector): remove default cases for Authorizedotnet, Braintree and Fiserv Connector (#2796) Co-authored-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com>
Files to modify: **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code
refactor: Throw 500 error on database connection error instead of panic (#527)
Files to modify: **defaults.rs** Modify existing code **settings.rs** Modify existing code **connection.rs** Modify existing code **errors.rs** Modify existing code **address.rs** Modify existing code **api_keys.rs** Modify existing code **configs.rs** Modify existing code **connector_response.rs** Modify existing code **customers.rs** Modify existing code **events.rs** Modify existing code **locker_mock_up.rs** Modify existing code **mandate.rs** Modify existing code **merchant_account.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **payment_method.rs** Modify existing code **process_tracker.rs** Modify existing code **refund.rs** Modify existing code **reverse_lookup.rs** Modify existing code
refactor: revert redis temp locker logic (#2670)
Files to modify: **payment_methods.rs** Add: - struct: pub::DeleteTokenizeByDateRequest **kms.rs** Remove: - struct: pub::KmsValue Add: - struct: pub::KmsValue **defaults.rs** Modify existing code **kms.rs** Remove: - struct: pub::KmsValue Add: - struct: pub::KmsValue **settings.rs** Modify existing code **validations.rs** Modify existing code **cards.rs** Remove: - struct: pub::TempLockerCardSupport Add: - function: private::create_payment_method_data_in_locker - struct: pub::BasiliskCardSupport - impl: impl BasiliskCardSupport **transformers.rs** Add: - function: pub::mk_crud_locker_request **vault.rs** Add: - function: pub::get_payment_method_data_from_locker - function: pub::get_payout_method_data_from_temporary_locker - function: pub::store_payout_method_data_in_locker - function: pub::store_payment_method_data_in_locker - function: pub::delete_locker_payment_method_by_lookup_key - function: pub::get_key_id - impl: impl Vault **authorize_flow.rs** Modify existing code **tokenization.rs** Modify existing code **app.rs** Modify existing code **client.rs** Modify existing code **payment_methods.rs** Add: - struct: pub::DeleteTokenizeByDateRequest **tokenized_data.rs** Add: - function: private::execute_workflow
feat(connector): implement auth and post auth flows for gpayments (#4746) Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
Files to modify: **gpayments.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response **gpayments_types.rs** Add: - function: private::from - struct: pub::GpaymentsAuthenticationRequest - struct: pub::BrowserInfoCollected - struct: pub::GpaymentsAuthenticationSuccessResponse - struct: pub::GpaymentsPostAuthenticationResponse - enum: pub::AuthenticationInd - enum: pub::AuthStatus - impl: impl From<AuthStatus> for common_enums::TransactionStatus **transformers.rs** Remove: - struct: pub::GpaymentsErrorResponse Add: - function: private::try_from - function: private::try_from - impl: impl TryFrom<&GpaymentsRouterData<&types::authentication::ConnectorAuthenticationRouterData>> for gpayments_types::GpaymentsAuthenticationRequest - impl: impl TryFrom< types::ResponseRouterData< api::Authentication, GpaymentsAuthenticationSuccessResponse, types::authentication::ConnectorAuthenticationRequestData, types::authentication::AuthenticationResponseData, >, > for types::authentication::ConnectorAuthenticationRouterData
feat: noon payme cryptopay error mapping (#3258) Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code
refactor(routing): Refactor fallback routing apis for v2 (#5592) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **business_profile.rs** Modify existing code **schema_v2.rs** Modify existing code **business_profile.rs** Modify existing code **admin.rs** Add: - function: pub::get_default_fallback_list_of_connector_under_profile - function: pub::get_default_routing_configs_from_profile - function: pub::update_default_routing_for_profile **routing.rs** Add: - function: pub::update_default_fallback_routing - function: pub::retrieve_default_fallback_algorithm_for_profile **app.rs** Modify existing code **routing.rs** Add: - function: pub::update_default_fallback_routing - function: pub::retrieve_default_fallback_algorithm_for_profile
fix(connector): [BANKOFAMERICA] Remove cards 3ds flow (#5294)
Files to modify: **bankofamerica.rs** Remove: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_error_response - function: private::get_5xx_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - impl: impl api::PaymentsPreProcessing for Bankofamerica - impl: impl api::PaymentsCompleteAuthorize for Bankofamerica - impl: impl ConnectorIntegration< api::PreProcessing, types::PaymentsPreProcessingData, types::PaymentsResponseData, > for Bankofamerica **transformers.rs** Remove: - function: private::from - function: private::from - function: private::from - function: private::try_from - function: private::try_from - function: private::try_from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::is_setup_mandate_payment - function: private::is_customer_initiated_mandate_payment - struct: pub::BankOfAmericaAuthSetupRequest - struct: pub::BankOfAmericaConsumerAuthInformationResponse - struct: pub::ClientAuthSetupInfoResponse - struct: pub::BankOfAmericaConsumerAuthInformationRequest - struct: pub::BankOfAmericaAuthEnrollmentRequest - struct: pub::BankOfAmericaRedirectionAuthResponse - struct: pub::BankOfAmericaConsumerAuthInformationValidateRequest - struct: pub::BankOfAmericaAuthValidateRequest - struct: pub::BankOfAmericaConsumerAuthValidateResponse - struct: pub::BankOfAmericaThreeDSMetadata - struct: pub::BankOfAmericaConsumerAuthInformationEnrollmentResponse - struct: pub::ClientAuthCheckInfoResponse - enum: pub::BankOfAmericaAuthSetupResponse - enum: pub::BankOfAmericaPreProcessingRequest - enum: pub::BankOfAmericaAuthEnrollmentStatus - enum: pub::BankOfAmericaPreProcessingResponse - impl: impl From<( &BankOfAmericaRouterData<&types::PaymentsCompleteAuthorizeRouterData>, BillTo, )> for OrderInformationWithBill - impl: impl From<( &BankOfAmericaRouterData<&types::PaymentsCompleteAuthorizeRouterData>, Option<PaymentSolution>, &BankOfAmericaConsumerAuthValidateResponse, )> for ProcessingInformation - impl: impl From<&BankOfAmericaRouterData<&types::PaymentsCompleteAuthorizeRouterData>> for ClientReferenceInformation - impl: impl TryFrom<( &BankOfAmericaRouterData<&types::PaymentsCompleteAuthorizeRouterData>, domain::Card, )> for BankOfAmericaPaymentsRequest - impl: impl TryFrom<(&domain::PaymentMethodData, String)> for BankOfAmericaAuthSetupRequest - impl: impl TryFrom< types::ResponseRouterData< F, BankOfAmericaAuthSetupResponse, T, types::PaymentsResponseData, >, > for types::RouterData<F, T, types::PaymentsResponseData> - impl: impl TryFrom<&BankOfAmericaRouterData<&types::PaymentsPreProcessingRouterData>> for BankOfAmericaPreProcessingRequest - impl: impl TryFrom<&BankOfAmericaRouterData<&types::PaymentsCompleteAuthorizeRouterData>> for BankOfAmericaPaymentsRequest - impl: impl From<BankOfAmericaAuthEnrollmentStatus> for enums::AttemptStatus - impl: impl TryFrom< types::ResponseRouterData< F, BankOfAmericaPreProcessingResponse, types::PaymentsPreProcessingData, types::PaymentsResponseData, >, > for types::RouterData<F, types::PaymentsPreProcessingData, types::PaymentsResponseData> - impl: impl TryFrom< types::ResponseRouterData< F, BankOfAmericaPaymentsResponse, types::CompleteAuthorizeData, types::PaymentsResponseData, >, > for types::RouterData<F, types::CompleteAuthorizeData, types::PaymentsResponseData> **payments.rs** Modify existing code **flows.rs** Modify existing code
refactor(euclid): check the authenticity of profile_id being used (#5647) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **routing.rs** Modify existing code **routing.rs** Modify existing code **utils.rs** Add: - function: private::get_profile_id - function: private::get_profile_id - function: private::get_profile_id - impl: impl GetProfileId for api_models::routing::RoutingConfigRequest - impl: impl GetProfileId for api_models::routing::RoutingConfigRequest - impl: impl GetProfileId for api_models::routing::RoutingRetrieveLinkQuery - impl: impl GetProfileId for storage::Payouts - impl: impl GetProfileId for (storage::Payouts, T, F) **app.rs** Modify existing code **routing.rs** Modify existing code **authentication.rs** Add: - function: private::authenticate_and_fetch - struct: pub::JWTAuthProfileFromRoute - impl: impl AuthenticateAndFetch<AuthenticationData, A> for JWTAuthProfileFromRoute
fix(connector): send valid sdk information in authentication flow netcetera (#4474)
Files to modify: **schema.rs** Modify existing code **netcetera_types.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: private::extract_country_code - function: private::to_state_code_as_optional
refactor: AppState trait for utility functions (#499)
Files to modify: **customers.rs** Modify existing code **payment_intents.rs** Modify existing code **refunds.rs** Modify existing code **setup_intents.rs** Modify existing code **wrap.rs** Modify existing code **admin.rs** Modify existing code **app.rs** Add: - function: private::conf - function: private::flow_name - function: private::store - trait: pub::AppStateInfo - impl: impl AppStateInfo for AppState **configs.rs** Modify existing code **customers.rs** Modify existing code **ephemeral_key.rs** Modify existing code **mandates.rs** Modify existing code **payment_methods.rs** Modify existing code **payments.rs** Modify existing code **refunds.rs** Modify existing code **webhooks.rs** Modify existing code **api.rs** Modify existing code **authentication.rs** Modify existing code
feat(connector): [Fiserv] add Refunds, Cancel and Wallets flow along with Unit Tests (#593) Co-authored-by: samraat bansal <samraat.bansal@samraat.bansal-MacBookPro> Co-authored-by: Nishant Joshi <nishant.joshi@juspay.in> Co-authored-by: Jagan <jaganelavarasan@gmail.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
Files to modify: **transformers.rs** Modify existing code **fiserv.rs** Remove: - impl: impl services::ConnectorIntegration< api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken, > for Fiserv - impl: impl services::ConnectorIntegration< api::Verify, types::VerifyRequestData, types::PaymentsResponseData, > for Fiserv - impl: impl services::ConnectorIntegration< api::Void, types::PaymentsCancelData, types::PaymentsResponseData, > for impl services::ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> Add: - function: private::build_headers - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - impl: impl ConnectorCommonExt<Flow, Request, Response> for Fiserv - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Fiserv - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Fiserv - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Fiserv - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> **transformers.rs** Modify existing code **utils.rs** Add: - function: private::get_connector_transaction_id - function: private::get_cancellation_reason - function: pub::str_to_f32 **errors.rs** Modify existing code **utils.rs** Add: - function: private::get_connector_transaction_id - function: private::get_cancellation_reason - function: pub::str_to_f32 **lib.rs** Modify existing code **fiserv.rs** Remove: - impl: impl services::ConnectorIntegration< api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken, > for Fiserv - impl: impl services::ConnectorIntegration< api::Verify, types::VerifyRequestData, types::PaymentsResponseData, > for Fiserv - impl: impl services::ConnectorIntegration< api::Void, types::PaymentsCancelData, types::PaymentsResponseData, > for impl services::ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> Add: - function: private::build_headers - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - impl: impl ConnectorCommonExt<Flow, Request, Response> for Fiserv - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Fiserv - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Fiserv - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Fiserv - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData>
chore: Updated openapi spec added labels to wallet data (#9287) Co-authored-by: Kupili Reddy <kupili.reddy@Kupili-Reddy-CXKDQRYQCF.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code
feat(payout): add unified error code and messages along with translation (#5810) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payouts.rs** Modify existing code **consts.rs** Modify existing code **types.rs** Add: - function: private::try_from - function: private::build - function: private::from_sql - function: private::to_sql - function: private::try_from - function: private::build - function: private::from_sql - function: private::to_sql - struct: pub::UnifiedCode - struct: pub::UnifiedMessage - impl: impl TryFrom<String> for UnifiedCode - impl: impl Queryable<sql_types::Text, DB> for UnifiedCode - impl: impl FromSql<sql_types::Text, DB> for UnifiedCode - impl: impl ToSql<sql_types::Text, DB> for UnifiedCode - impl: impl TryFrom<String> for UnifiedMessage - impl: impl Queryable<sql_types::Text, DB> for UnifiedMessage - impl: impl FromSql<sql_types::Text, DB> for UnifiedMessage - impl: impl ToSql<sql_types::Text, DB> for UnifiedMessage **payout_attempt.rs** Modify existing code **schema.rs** Modify existing code **schema_v2.rs** Modify existing code **payout_attempt.rs** Modify existing code **payouts.rs** Modify existing code **payout_link.rs** Modify existing code **payouts.rs** Modify existing code **helpers.rs** Add: - function: pub::get_translated_unified_code_and_message **retry.rs** Modify existing code **transformers.rs** Modify existing code **incoming.rs** Modify existing code **payouts.rs** Modify existing code **attach_payout_account_workflow.rs** Modify existing code **outgoing_webhook_retry.rs** Modify existing code **payout_attempt.rs** Modify existing code
feat(connector): [Adyen] add PMD validation in validate_capture_method method for all the implemented PM’s (#3584)
Files to modify: **adyen.rs** Modify existing code **airwallex.rs** Modify existing code **authorizedotnet.rs** Modify existing code **bambora.rs** Modify existing code **bankofamerica.rs** Modify existing code **bluesnap.rs** Modify existing code **boku.rs** Modify existing code **braintree.rs** Modify existing code **cashtocode.rs** Modify existing code **checkout.rs** Modify existing code **coinbase.rs** Modify existing code **cybersource.rs** Modify existing code **dlocal.rs** Modify existing code **dummyconnector.rs** Modify existing code **fiserv.rs** Modify existing code **forte.rs** Modify existing code **globalpay.rs** Modify existing code **gocardless.rs** Modify existing code **helcim.rs** Modify existing code **multisafepay.rs** Modify existing code **nexinets.rs** Modify existing code **nmi.rs** Modify existing code **noon.rs** Modify existing code **nuvei.rs** Modify existing code **opayo.rs** Modify existing code **payeezy.rs** Modify existing code **payme.rs** Modify existing code **paypal.rs** Modify existing code **payu.rs** Modify existing code **placetopay.rs** Modify existing code **powertranz.rs** Modify existing code **rapyd.rs** Modify existing code **shift4.rs** Modify existing code **square.rs** Modify existing code **stax.rs** Modify existing code **stripe.rs** Modify existing code **tsys.rs** Modify existing code **worldline.rs** Modify existing code **worldpay.rs** Modify existing code **errors.rs** Modify existing code **authorize_flow.rs** Modify existing code **api.rs** Modify existing code
refactor(router): add api_version and make profile_id mandatory in mca v2 (#5602) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **admin.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **schema.rs** Modify existing code **schema_v2.rs** Modify existing code **consts.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **evaluation.rs** Modify existing code **mca.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **admin.rs** Modify existing code **cards.rs** Modify existing code **helpers.rs** Modify existing code **helpers.rs** Modify existing code **utils.rs** Modify existing code **incoming.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **app.rs** Modify existing code
feat(core): billing_details inclusion in Payment Intent (#5090) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment_intent.rs** Modify existing code **schema.rs** Modify existing code **payments.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **helpers.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_update.rs** Modify existing code **payment_intent.rs** Modify existing code **payment_intent_event.rs** Modify existing code **sample_data.rs** Modify existing code **aci_ui.rs** Modify existing code **adyen_uk_ui.rs** Modify existing code **adyen_uk_wh_ui.rs** Modify existing code **airwallex_ui.rs** Modify existing code **authorizedotnet_ui.rs** Modify existing code **authorizedotnet_wh_ui.rs** Modify existing code **bambora_ui.rs** Modify existing code **bluesnap_ui.rs** Modify existing code **bluesnap_wh_ui.rs** Modify existing code **checkout_ui.rs** Modify existing code **checkout_wh_ui.rs** Modify existing code **globalpay_ui.rs** Modify existing code **mollie_ui.rs** Modify existing code **multisafepay_ui.rs** Modify existing code **nexinets_ui.rs** Modify existing code **noon_ui.rs** Modify existing code **nuvei_ui.rs** Modify existing code **paypal_ui.rs** Modify existing code **payu_ui.rs** Modify existing code **selenium.rs** Modify existing code **shift4_ui.rs** Modify existing code **stripe_ui.rs** Modify existing code **stripe_wh_ui.rs** Modify existing code **trustpay_3ds_ui.rs** Modify existing code **worldline_ui.rs** Modify existing code **zen_ui.rs** Modify existing code
chore: mirror changes from BitBucket
Files to modify: **scheduler.rs** Modify existing code **settings.rs** Add: - struct: pub::DrainerSettings **aci.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **adyen.rs** Remove: - impl: impl services::ConnectorRedirectResponse for Adyen Add: - function: private::get_headers - function: private::get_request_body - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_flow_type - impl: impl services::ConnectorRedirectResponse for Adyen **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **authorizedotnet.rs** Modify existing code **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **checkout.rs** Remove: - impl: impl services::ConnectorRedirectResponse for Checkout Add: - function: private::get_flow_type - impl: impl services::ConnectorRedirectResponse for Checkout **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **stripe.rs** Modify existing code **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **errors.rs** Modify existing code **payments.rs** Modify existing code **authorize_flow.rs** Modify existing code **helpers.rs** Add: - function: pub::check_if_operation_confirm **operations.rs** Add: - function: private::add_task_to_process_tracker **payment_status.rs** Modify existing code **transformers.rs** Remove: - struct: pub::AciPaymentsFailureResponse - struct: pub::AciErrorRefundResponse - impl: impl TryFrom<types::PaymentsResponseRouterData<AciPaymentsResponse>> for types::PaymentsRouterData Add: - function: private::try_from - struct: pub::AciCancelRequest - impl: impl TryFrom<&types::PaymentRouterCancelData> for AciCancelRequest **utils.rs** Modify existing code **webhooks.rs** Modify existing code **utils.rs** Modify existing code **payment_attempt.rs** Add: - function: private::find_payment_attempt_by_merchant_id_txn_id - function: private::find_payment_attempt_by_merchant_id_txn_id **payment_intent.rs** Modify existing code **lib.rs** Modify existing code **payments.rs** Modify existing code **scheduler.rs** Modify existing code **consumer.rs** Modify existing code **metrics.rs** Modify existing code **producer.rs** Modify existing code **options.rs** Remove: - struct: pub::Milliseconds Add: - struct: pub::Milliseconds **utils.rs** Modify existing code **services.rs** Add: - function: pub::new - function: pub::drainer_stream - struct: pub::StoreConfig - impl: impl Store **commands.rs** Modify existing code **types.rs** Modify existing code **payments.rs** Modify existing code **webhooks.rs** Modify existing code **enums.rs** Modify existing code **payment_attempt.rs** Add: - function: private::find_payment_attempt_by_merchant_id_txn_id - function: private::find_payment_attempt_by_merchant_id_txn_id **payment_intent.rs** Modify existing code **address.rs** Modify existing code **configs.rs** Modify existing code **connector_response.rs** Modify existing code **customers.rs** Modify existing code **events.rs** Modify existing code **generics.rs** Add: - function: pub::to_field_value_pairs - function: pub::new - function: private::insert - function: private::update - function: private::update_with_results - function: private::update_by_id - function: private::delete - function: private::delete_with_results - function: private::delete_one_with_result - function: private::insert - function: private::update - function: private::update_with_results - function: private::update_by_id - function: private::delete - function: private::delete_with_results - function: private::delete_one_with_result - function: private::generate_raw_query - struct: pub::RawSqlQuery - struct: pub::ExecuteQuery - struct: pub::RawQuery - trait: pub::QueryExecutionMode - impl: impl RawSqlQuery - impl: impl ExecuteQuery<R> - impl: impl QueryExecutionMode<Q> for ExecuteQuery<R> - impl: impl QueryExecutionMode<Q> for RawQuery **locker_mock_up.rs** Modify existing code **mandate.rs** Modify existing code **merchant_account.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **payment_attempt.rs** Add: - function: private::find_payment_attempt_by_merchant_id_txn_id - function: private::find_payment_attempt_by_merchant_id_txn_id **payment_intent.rs** Modify existing code **payment_method.rs** Modify existing code **process_tracker.rs** Modify existing code **refund.rs** Modify existing code **temp_card.rs** Modify existing code **utils.rs** Modify existing code **ext_traits.rs** Add: - function: private::encode_to_string_of_json **storage_partitioning.rs** Add: - function: private::partition_number - function: private::shard_key - function: private::fmt - enum: pub::PartitionKey - trait: pub::KvStorePartition - impl: impl std::fmt::Display for PartitionKey<'a> **aci.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response **authorizedotnet.rs** Modify existing code **checkout.rs** Remove: - impl: impl services::ConnectorRedirectResponse for Checkout Add: - function: private::get_flow_type - impl: impl services::ConnectorRedirectResponse for Checkout **integration_demo.rs** Modify existing code **payments.rs** Modify existing code **payments2.rs** Modify existing code **webhooks.rs** Modify existing code **operation.rs** Modify existing code
feat(connector): add webhook support for worldline connector (#721)
Files to modify: **ext_traits.rs** Modify existing code **worldline.rs** Add: - function: private::is_endpoint_verification - function: private::get_webhook_source_verification_algorithm - function: private::get_webhook_source_verification_signature - function: private::get_webhook_source_verification_message - function: private::get_webhook_source_verification_merchant_secret **transformers.rs** Add: - struct: pub::WebhookBody - enum: pub::WebhookEvent **errors.rs** Modify existing code **webhooks.rs** Modify existing code
feat: use admin_api_key auth along with merchant_id for connector list, retrieve and update apis (#5613)
Files to modify: **admin.rs** Modify existing code **authentication.rs** Add: - function: private::authenticate_and_fetch - struct: pub::AdminApiAuthWithMerchantId - impl: impl AuthenticateAndFetch<AuthenticationData, A> for AdminApiAuthWithMerchantId
feat(dummy_connector): Add 3DS Flow, Wallets and Pay Later for Dummy Connector (#1781)
Files to modify: **settings.rs** Modify existing code **dummyconnector.rs** Modify existing code **transformers.rs** Remove: - struct: pub::DummyConnectorPaymentsRequest Add: - function: pub::get_dummy_connector_id - function: private::from - function: private::try_from - function: private::try_from - function: private::get_url - struct: pub::DummyConnectorPaymentsRequest - enum: pub::DummyConnectors - enum: pub::DummyConnectorWallet - enum: pub::DummyConnectorPayLater - enum: pub::PaymentMethodType - enum: pub::DummyConnectorNextAction - impl: impl DummyConnectors - impl: impl From<u8> for DummyConnectors - impl: impl TryFrom<api_models::payments::WalletData> for DummyConnectorWallet - impl: impl TryFrom<api_models::payments::PayLaterData> for DummyConnectorPayLater - impl: impl TryFrom<&types::PaymentsAuthorizeRouterData> for DummyConnectorPaymentsRequest<T> - impl: impl DummyConnectorNextAction **app.rs** Modify existing code **dummy_connector.rs** Add: - function: pub::dummy_connector_authorize_payment - function: pub::dummy_connector_complete_payment - mod: private::consts - mod: private::core **consts.rs** Modify existing code **core.rs** Add: - function: pub::payment - function: pub::payment_data - function: pub::payment_authorize - function: pub::payment_complete - function: pub::refund_payment - function: pub::refund_data **errors.rs** Modify existing code **types.rs** Remove: - enum: pub::PaymentMethodType Add: - function: pub::get_connector_image_link - function: private::from - function: pub::build_payment_data - function: private::from - function: private::get_name - function: private::get_image_link - function: private::get_name - function: private::get_image_link - function: private::get_name - function: private::get_image_link - function: private::from - struct: pub::DummyConnectorPaymentAttempt - struct: pub::DummyConnectorPaymentConfirmRequest - struct: pub::DummyConnectorPaymentCompleteRequest - struct: pub::DummyConnectorPaymentCompleteBody - enum: pub::DummyConnectors - enum: pub::DummyConnectorPaymentMethodType - enum: pub::DummyConnectorCardFlow - enum: pub::DummyConnectorWallet - enum: pub::DummyConnectorPayLater - enum: pub::DummyConnectorNextAction - trait: pub::GetPaymentMethodDetails - impl: impl DummyConnectors - impl: impl From<DummyConnectorPaymentRequest> for DummyConnectorPaymentAttempt - impl: impl DummyConnectorPaymentAttempt - impl: impl From<DummyConnectorPaymentMethodData> for DummyConnectorPaymentMethodType - impl: impl GetPaymentMethodDetails for DummyConnectorWallet - impl: impl From<DummyConnectorPaymentData> for DummyConnectorPaymentResponse **utils.rs** Add: - function: pub::get_payment_data_by_attempt_id - function: pub::get_authorize_page - function: private::build_payment_data_from_payment_attempt - function: pub::get_flow_from_card_number - function: private::build_payment_data_from_payment_attempt - function: private::build_payment_data_from_payment_attempt - function: private::build_payment_data_from_payment_attempt - function: pub::process_payment_attempt - trait: pub::ProcessPaymentAttempt - impl: impl ProcessPaymentAttempt for types::DummyConnectorWallet - impl: impl ProcessPaymentAttempt for types::DummyConnectorPaymentMethodData
feat(connector): [Adyen] Add support for card redirection (KNET, BENEFIT) (#1816) Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
Files to modify: **payments.rs** Add: - enum: pub::CardRedirectData **enums.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **openapi.rs** Modify existing code **transformers.rs** Modify existing code
feat(connector): [Flexiti]Add support for flexiti connector (#8743) Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-V9P7D4K9V0.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code **connector_enums.rs** Modify existing code **enums.rs** Modify existing code **transformers.rs** Modify existing code **connector.rs** Modify existing code **enums.rs** Modify existing code **lowering.rs** Modify existing code **transformers.rs** Modify existing code **adyen.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **flexiti.rs** Remove: - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Flexiti Add: - function: private::get_default_header - function: private::validate_connector_against_payment_request - function: private::get_url - function: private::get_content_type - function: private::get_headers - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - impl: impl Flexiti - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Flexiti **transformers.rs** Modify existing code **klarna.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **payment_method_data.rs** Modify existing code **mca.rs** Modify existing code **transformers.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code **helpers.rs** Modify existing code **utils.rs** Modify existing code **connector_validation.rs** Modify existing code **connector_mapping.rs** Modify existing code **connector_transformers.rs** Modify existing code **transformers.rs** Modify existing code
feat(connector): [AIRWALLEX] Added Ideal & Skrill payment methods (#8535) Co-authored-by: Vani Gupta <vani.gupta@juspay.in> Co-authored-by: Sayak Bhattacharya <sayakofficial21@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code **additional_info.rs** Modify existing code **enums.rs** Modify existing code **transformers.rs** Modify existing code **enums.rs** Modify existing code **lowering.rs** Modify existing code **transformers.rs** Modify existing code **adyen.rs** Modify existing code **transformers.rs** Modify existing code **airwallex.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **klarna.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **payment_method_data.rs** Modify existing code **mca.rs** Modify existing code **transformers.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code **helpers.rs** Modify existing code **utils.rs** Modify existing code **transformers.rs** Modify existing code
refactor(dynamic_routing): add logic for creating merchant account in decision engine (#8191) Co-authored-by: Shankar Singh C <shankar.singh@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **routing.rs** Add: - function: pub::update_merchant_creation_status_in_decision_engine **admin.rs** Modify existing code **routing.rs** Add: - function: pub::update_merchant_creation_status_in_decision_engine **helpers.rs** Add: - function: pub::create_merchant_in_decision_engine_if_not_exists
feat(connector): generate connector template code for gpayments authenticaition connector (#4584) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **enums.rs** Modify existing code **connector.rs** Modify existing code **settings.rs** Modify existing code **connector.rs** Modify existing code **gpayments.rs** Add: - function: private::build_headers - function: private::id - function: private::get_currency_unit - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Gpayments - impl: impl api::Payment for Gpayments - impl: impl api::PaymentSession for Gpayments - impl: impl api::ConnectorAccessToken for Gpayments - impl: impl api::MandateSetup for Gpayments - impl: impl api::PaymentAuthorize for Gpayments - impl: impl api::PaymentSync for Gpayments - impl: impl api::PaymentCapture for Gpayments - impl: impl api::PaymentVoid for Gpayments - impl: impl api::Refund for Gpayments - impl: impl api::RefundExecute for Gpayments - impl: impl api::RefundSync for Gpayments - impl: impl api::PaymentToken for Gpayments - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Gpayments - impl: impl ConnectorCommonExt<Flow, Request, Response> for Gpayments - impl: impl ConnectorCommon for Gpayments - impl: impl ConnectorValidation for Gpayments - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Gpayments - impl: impl ConnectorIntegration< api::SetupMandate, types::SetupMandateRequestData, types::PaymentsResponseData, > for Gpayments - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Gpayments - impl: impl api::IncomingWebhook for Gpayments - impl: impl api::ExternalAuthentication for Gpayments - impl: impl api::ConnectorAuthentication for Gpayments - impl: impl api::ConnectorPreAuthentication for Gpayments - impl: impl api::ConnectorPostAuthentication for Gpayments - impl: impl ConnectorIntegration< api::Authentication, types::authentication::ConnectorAuthenticationRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - impl: impl ConnectorIntegration< api::PreAuthentication, types::authentication::PreAuthNRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - impl: impl ConnectorIntegration< api::PostAuthentication, types::authentication::ConnectorPostAuthenticationRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - mod: pub::transformers **transformers.rs** Add: - function: private::try_from - function: private::try_from - struct: pub::GpaymentsRouterData - struct: pub::GpaymentsAuthType - struct: pub::GpaymentsErrorResponse - impl: impl TryFrom<( &types::api::CurrencyUnit, types::storage::enums::Currency, i64, T, )> for GpaymentsRouterData<T> - impl: impl TryFrom<&types::ConnectorAuthType> for GpaymentsAuthType **admin.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **authentication.rs** Modify existing code **transformers.rs** Add: - function: private::try_from - function: private::try_from - struct: pub::GpaymentsRouterData - struct: pub::GpaymentsAuthType - struct: pub::GpaymentsErrorResponse - impl: impl TryFrom<( &types::api::CurrencyUnit, types::storage::enums::Currency, i64, T, )> for GpaymentsRouterData<T> - impl: impl TryFrom<&types::ConnectorAuthType> for GpaymentsAuthType **gpayments.rs** Add: - function: private::build_headers - function: private::id - function: private::get_currency_unit - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Gpayments - impl: impl api::Payment for Gpayments - impl: impl api::PaymentSession for Gpayments - impl: impl api::ConnectorAccessToken for Gpayments - impl: impl api::MandateSetup for Gpayments - impl: impl api::PaymentAuthorize for Gpayments - impl: impl api::PaymentSync for Gpayments - impl: impl api::PaymentCapture for Gpayments - impl: impl api::PaymentVoid for Gpayments - impl: impl api::Refund for Gpayments - impl: impl api::RefundExecute for Gpayments - impl: impl api::RefundSync for Gpayments - impl: impl api::PaymentToken for Gpayments - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Gpayments - impl: impl ConnectorCommonExt<Flow, Request, Response> for Gpayments - impl: impl ConnectorCommon for Gpayments - impl: impl ConnectorValidation for Gpayments - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Gpayments - impl: impl ConnectorIntegration< api::SetupMandate, types::SetupMandateRequestData, types::PaymentsResponseData, > for Gpayments - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Gpayments - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Gpayments - impl: impl api::IncomingWebhook for Gpayments - impl: impl api::ExternalAuthentication for Gpayments - impl: impl api::ConnectorAuthentication for Gpayments - impl: impl api::ConnectorPreAuthentication for Gpayments - impl: impl api::ConnectorPostAuthentication for Gpayments - impl: impl ConnectorIntegration< api::Authentication, types::authentication::ConnectorAuthenticationRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - impl: impl ConnectorIntegration< api::PreAuthentication, types::authentication::PreAuthNRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - impl: impl ConnectorIntegration< api::PostAuthentication, types::authentication::ConnectorPostAuthenticationRequestData, types::authentication::AuthenticationResponseData, > for Gpayments - mod: pub::transformers **main.rs** Add: - mod: private::gpayments **connector_auth.rs** Modify existing code
chore(wasm): add wasm changes for ctp_mastercard connector (#6838)
Files to modify: **common_config.rs** Modify existing code **connector.rs** Modify existing code
feat(dynamic_routing): Decision engine config API integration (#8044) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **open_router.rs** Add: - function: pub::update - function: pub::update - function: pub::update - function: pub::update - struct: pub::DecisionEngineConfigSetupRequest - struct: pub::DecisionEngineSuccessRateData - struct: pub::DecisionEngineSRSubLevelInputConfig - struct: pub::DecisionEngineGatewayWiseExtraScore - struct: pub::DecisionEngineEliminationData - struct: pub::MerchantAccount - struct: pub::FetchRoutingConfig - enum: pub::DecisionEngineConfigVariant - enum: pub::AlgorithmType - impl: impl DecisionEngineSuccessRateData - impl: impl DecisionEngineSRSubLevelInputConfig - impl: impl DecisionEngineGatewayWiseExtraScore - impl: impl DecisionEngineEliminationData **routing.rs** Add: - function: pub::open_router_config_default - function: pub::get_decision_engine_configs - function: pub::open_router_config_default **openapi.rs** Modify existing code **admin.rs** Modify existing code **routing.rs** Add: - function: pub::open_router_config_default - function: pub::get_decision_engine_configs - function: pub::open_router_config_default **utils.rs** Add: - function: private::send_decision_engine_request - impl: impl DecisionEngineApiHandler for EuclidApiClient **routing.rs** Add: - function: pub::open_router_config_default - function: pub::get_decision_engine_configs - function: pub::open_router_config_default **helpers.rs** Add: - function: pub::enable_decision_engine_dynamic_routing_setup - function: pub::update_decision_engine_dynamic_routing_setup - function: pub::disable_decision_engine_dynamic_routing_setup - function: pub::create_decision_engine_merchant - function: pub::delete_decision_engine_merchant
docs: standardise error types and error codes (#432)
Files to modify: **errors.rs** Modify existing code **api_error_response.rs** Modify existing code **authentication.rs** Modify existing code
refactor: shrink sizes of `VARCHAR` columns and rename some columns (#188)
Files to modify: **payment_cancel.rs** Modify existing code **payment_capture.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_session.rs** Modify existing code **payment_start.rs** Modify existing code **payment_status.rs** Modify existing code **payment_update.rs** Modify existing code **refunds.rs** Modify existing code **utils.rs** Modify existing code **connector_response.rs** Modify existing code **payment_attempt.rs** Modify existing code **refund.rs** Modify existing code **connector_response.rs** Modify existing code **mandate.rs** Modify existing code **payment_method.rs** Modify existing code **connector_response.rs** Modify existing code **payment_attempt.rs** Modify existing code **refund.rs** Modify existing code **refund.rs** Modify existing code **schema.rs** Modify existing code
fix(cache): address in-memory cache invalidation using global tenant as `key_prefix` (#6976)
Files to modify: **commands.rs** Modify existing code **admin.rs** Modify existing code **cache.rs** Modify existing code **routing.rs** Modify existing code **helpers.rs** Modify existing code **configs.rs** Modify existing code **merchant_account.rs** Modify existing code **cache.rs** Modify existing code **pub_sub.rs** Modify existing code
ci(postman): Fix Stripe collection to address check failure (#2078)
Files to modify: **ephemeral_key.rs** Modify existing code
refactor(scheduler): move scheduler to new crate to support workflows in multiple crates (#1681)
Files to modify: **ext_traits.rs** Add: - function: private::check_value_present - function: private::get_required_value - function: private::parse_enum - function: private::parse_value - function: private::update_value - trait: pub::OptionExt - impl: impl OptionExt<T> for Option<T> **lib.rs** Add: - mod: pub::macros **macros.rs** Modify existing code **logger.rs** Modify existing code **email.rs** Modify existing code **scheduler.rs** Add: - function: private::trigger_workflow - function: private::test_enum_to_string - struct: pub::WorkflowRunner - enum: pub::PTRunner - impl: impl ProcessTrackerWorkflows<routes::AppState> for WorkflowRunner - mod: private::workflow_tests **defaults.rs** Remove: - function: private::default - function: private::default - function: private::default - impl: impl Default for super::settings::SchedulerSettings - impl: impl Default for super::settings::ProducerSettings - impl: impl Default for super::settings::ConsumerSettings **settings.rs** Remove: - struct: pub::SchedulerSettings - struct: pub::ProducerSettings - struct: pub::ConsumerSettings **validations.rs** Remove: - function: pub::validate - function: pub::validate - impl: impl super::settings::SchedulerSettings - impl: impl super::settings::ProducerSettings **connection.rs** Modify existing code **utils.rs** Remove: - function: private::get_line2 Add: - function: private::get_line2 **errors.rs** Remove: - function: private::switch - function: private::into - function: private::from - function: private::from - function: pub::is_db_not_found - function: pub::is_db_unique_violation - function: private::from - function: private::from - function: private::from - function: private::error_response - function: private::status_code - function: private::error_response - function: pub::is_upstream_timeout - function: pub::is_connection_closed - enum: pub::StorageError - enum: pub::ApplicationError - enum: pub::ApiClientError - enum: pub::ProcessTrackerError - impl: impl ErrorSwitch<DataStorageError> for StorageError - impl: impl Into<DataStorageError> for &StorageError - impl: impl From<error_stack::Report<RedisError>> for StorageError - impl: impl From<error_stack::Report<storage_errors::DatabaseError>> for StorageError - impl: impl StorageError - impl: impl From<MetricsError> for ApplicationError - impl: impl From<std::io::Error> for ApplicationError - impl: impl From<ConfigError> for ApplicationError - impl: impl ResponseError for ApplicationError - impl: impl ApiClientError **api_error_response.rs** Add: - function: private::to_pt_error - impl: impl PTError for ApiErrorResponse **cards.rs** Modify existing code **vault.rs** Modify existing code **payments.rs** Modify existing code **helpers.rs** Modify existing code **refunds.rs** Modify existing code **db.rs** Remove: - function: private::get_redis_conn - struct: pub::MockDb - impl: impl StorageInterface for MockDb - impl: impl RedisConnInterface for MockDb - mod: pub::payment_intent - mod: pub::process_tracker - mod: pub::queue Add: - function: private::get_scheduler_db - impl: impl StorageInterface for MockDb **api_keys.rs** Modify existing code **dispute.rs** Modify existing code **events.rs** Modify existing code **locker_mock_up.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **merchant_key_store.rs** Modify existing code **lib.rs** Add: - mod: pub::macros **app.rs** Add: - function: private::get_db - impl: impl scheduler::SchedulerAppState for AppState **metrics.rs** Modify existing code **scheduler.rs** Add: - function: private::trigger_workflow - function: private::test_enum_to_string - struct: pub::WorkflowRunner - enum: pub::PTRunner - impl: impl ProcessTrackerWorkflows<routes::AppState> for WorkflowRunner - mod: private::workflow_tests **types.rs** Remove: - mod: pub::batch - mod: pub::config - mod: pub::flow - mod: pub::process_data - mod: pub::state **config.rs** Remove: - function: pub::new - struct: pub::SchedulerConfig - impl: impl SchedulerConfig **state.rs** Remove: - struct: pub::DummyWorkflowState - enum: pub::WorkflowState - impl: impl DummyWorkflowState **workflows.rs** Remove: - function: private::execute_workflow - function: private::success_handler - function: private::error_handler - function: private::test_enum_to_string - trait: pub::ProcessTrackerWorkflow - mod: pub::api_key_expiry - mod: pub::payment_sync - mod: pub::refund_router - mod: pub::tokenized_data - mod: private::workflow_tests **services.rs** Modify existing code **storage.rs** Remove: - mod: pub::process_tracker - mod: pub::reverse_lookup Add: - mod: pub::reverse_lookup **process_tracker.rs** Remove: - function: private::is_valid_business_status - function: private::make_process_tracker_new - function: private::reset - function: private::retry - function: private::finish_with_status - trait: pub::ProcessTrackerExt - impl: impl ProcessTrackerExt for ProcessTracker **utils.rs** Remove: - function: private::get_line2 Add: - function: private::get_line2 **workflows.rs** Remove: - function: private::execute_workflow - function: private::success_handler - function: private::error_handler - function: private::test_enum_to_string - trait: pub::ProcessTrackerWorkflow - mod: pub::api_key_expiry - mod: pub::payment_sync - mod: pub::refund_router - mod: pub::tokenized_data - mod: private::workflow_tests **api_key_expiry.rs** Modify existing code **payment_sync.rs** Add: - struct: pub::PaymentsSyncWorkflow **refund_router.rs** Remove: - impl: impl ProcessTrackerWorkflow for RefundWorkflowRouter Add: - struct: pub::RefundWorkflowRouter - impl: impl ProcessTrackerWorkflow<AppState> for RefundWorkflowRouter **tokenized_data.rs** Remove: - impl: impl ProcessTrackerWorkflow for DeleteTokenizeDataWorkflow Add: - struct: pub::DeleteTokenizeDataWorkflow - impl: impl ProcessTrackerWorkflow<AppState> for DeleteTokenizeDataWorkflow **configs.rs** Add: - mod: pub::defaults - mod: pub::settings - mod: pub::validations **defaults.rs** Remove: - function: private::default - function: private::default - function: private::default - impl: impl Default for super::settings::SchedulerSettings - impl: impl Default for super::settings::ProducerSettings - impl: impl Default for super::settings::ConsumerSettings **settings.rs** Remove: - struct: pub::SchedulerSettings - struct: pub::ProducerSettings - struct: pub::ConsumerSettings **validations.rs** Remove: - function: pub::validate - function: pub::validate - impl: impl super::settings::SchedulerSettings - impl: impl super::settings::ProducerSettings **consumer.rs** Add: - mod: pub::types - mod: pub::workflows **types.rs** Remove: - mod: pub::batch - mod: pub::config - mod: pub::flow - mod: pub::process_data - mod: pub::state **batch.rs** Modify existing code **process_data.rs** Remove: - struct: pub::ProcessData **workflows.rs** Remove: - function: private::execute_workflow - function: private::success_handler - function: private::error_handler - function: private::test_enum_to_string - trait: pub::ProcessTrackerWorkflow - mod: pub::api_key_expiry - mod: pub::payment_sync - mod: pub::refund_router - mod: pub::tokenized_data - mod: private::workflow_tests **mod.rs** Add: - mod: pub::process_tracker - mod: pub::queue **process_tracker.rs** Remove: - function: private::is_valid_business_status - function: private::make_process_tracker_new - function: private::reset - function: private::retry - function: private::finish_with_status - trait: pub::ProcessTrackerExt - impl: impl ProcessTrackerExt for ProcessTracker **queue.rs** Modify existing code **env.rs** Modify existing code **errors.rs** Remove: - function: private::switch - function: private::into - function: private::from - function: private::from - function: pub::is_db_not_found - function: pub::is_db_unique_violation - function: private::from - function: private::from - function: private::from - function: private::error_response - function: private::status_code - function: private::error_response - function: pub::is_upstream_timeout - function: pub::is_connection_closed - enum: pub::StorageError - enum: pub::ApplicationError - enum: pub::ApiClientError - enum: pub::ProcessTrackerError - impl: impl ErrorSwitch<DataStorageError> for StorageError - impl: impl Into<DataStorageError> for &StorageError - impl: impl From<error_stack::Report<RedisError>> for StorageError - impl: impl From<error_stack::Report<storage_errors::DatabaseError>> for StorageError - impl: impl StorageError - impl: impl From<MetricsError> for ApplicationError - impl: impl From<std::io::Error> for ApplicationError - impl: impl From<ConfigError> for ApplicationError - impl: impl ResponseError for ApplicationError - impl: impl ApiClientError **flow.rs** Modify existing code **lib.rs** Add: - mod: pub::macros **metrics.rs** Modify existing code **producer.rs** Modify existing code **scheduler.rs** Add: - function: private::trigger_workflow - function: private::test_enum_to_string - struct: pub::WorkflowRunner - enum: pub::PTRunner - impl: impl ProcessTrackerWorkflows<routes::AppState> for WorkflowRunner - mod: private::workflow_tests **settings.rs** Remove: - struct: pub::SchedulerSettings - struct: pub::ProducerSettings - struct: pub::ConsumerSettings **utils.rs** Remove: - function: private::get_line2 Add: - function: private::get_line2 **connection.rs** Modify existing code **errors.rs** Remove: - function: private::switch - function: private::into - function: private::from - function: private::from - function: pub::is_db_not_found - function: pub::is_db_unique_violation - function: private::from - function: private::from - function: private::from - function: private::error_response - function: private::status_code - function: private::error_response - function: pub::is_upstream_timeout - function: pub::is_connection_closed - enum: pub::StorageError - enum: pub::ApplicationError - enum: pub::ApiClientError - enum: pub::ProcessTrackerError - impl: impl ErrorSwitch<DataStorageError> for StorageError - impl: impl Into<DataStorageError> for &StorageError - impl: impl From<error_stack::Report<RedisError>> for StorageError - impl: impl From<error_stack::Report<storage_errors::DatabaseError>> for StorageError - impl: impl StorageError - impl: impl From<MetricsError> for ApplicationError - impl: impl From<std::io::Error> for ApplicationError - impl: impl From<ConfigError> for ApplicationError - impl: impl ResponseError for ApplicationError - impl: impl ApiClientError **lib.rs** Add: - mod: pub::macros **payment_intent.rs** Add: - function: private::filter_payment_intent_by_constraints - function: private::filter_payment_intents_by_time_range_constraints - function: private::get_filtered_active_attempt_ids_for_total_count - function: private::get_filtered_payment_intents_attempt - function: private::insert_payment_intent - function: private::update_payment_intent - function: private::find_payment_intent_by_payment_id_merchant_id - impl: impl PaymentIntentInterface for MockDb
refactor: removed the usage of wallet(payment method) for paypal (#23)
Files to modify: **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **transformers.rs** Modify existing code **payments.rs** Add: - struct: pub::WalletData **enums.rs** Add: - enum: pub::WalletIssuer
feat(recon): add merchant and profile IDs in auth tokens (#5643) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **recon.rs** Modify existing code **user_role.rs** Modify existing code **enums.rs** Modify existing code **secrets_transformers.rs** Modify existing code **settings.rs** Add: - struct: pub::RecipientMails **consts.rs** Modify existing code **core.rs** Add: - mod: pub::recon **recon.rs** Modify existing code **user.rs** Modify existing code **app.rs** Modify existing code **recon.rs** Modify existing code **user.rs** Modify existing code **services.rs** Remove: - mod: pub::recon **authentication.rs** Remove: - function: private::get_merchant_id - struct: pub::ReconAdmin - struct: pub::ReconJWT - struct: pub::ReconUser - impl: impl AuthenticateAndFetch<(), A> for RouterResult<((), AuthenticationType)> - impl: impl AuthInfo for ReconUser Add: - struct: pub::AuthenticationDataWithUser - struct: pub::UserFromTokenWithAuthData - impl: impl AuthenticateAndFetch<UserFromTokenWithAuthData, A> for (errors::ApiErrorResponse::InvalidJwtToken.into()) **info.rs** Modify existing code **permission_groups.rs** Modify existing code **permissions.rs** Modify existing code **predefined_roles.rs** Modify existing code **types.rs** Modify existing code **recon.rs** Modify existing code **user.rs** Modify existing code **user_role.rs** Modify existing code
chore: use generic phone numbers instead (#5142)
Files to modify: **customers.rs** Modify existing code **payments.rs** Modify existing code **payouts.rs** Modify existing code **validate.rs** Modify existing code **pii.rs** Modify existing code **validation.rs** Modify existing code **payments.rs** Modify existing code **aci.rs** Modify existing code **adyen.rs** Modify existing code **bitpay.rs** Modify existing code **coinbase.rs** Modify existing code **cryptopay.rs** Modify existing code **cybersource.rs** Modify existing code **forte.rs** Modify existing code **iatapay.rs** Modify existing code **nmi.rs** Modify existing code **opennode.rs** Modify existing code **stripe_ui.rs** Modify existing code
feat(connector): Fix FPX refunds for Fiuu (#7890)
Files to modify: **transformers.rs** Add: - function: private::try_from - enum: pub::BankCode - impl: impl TryFrom<BankNames> for BankCode **router_request_types.rs** Modify existing code **helpers.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code
feat: Session flow for Apple Pay trustpay (#1155)
Files to modify: **payments.rs** Remove: - struct: pub::ApplePaySessionResponse Add: - struct: pub::SdkNextAction - struct: pub::SecretInfoToInitiateSdk - enum: pub::NextActionCall - enum: pub::ApplePaySessionResponse **settings.rs** Add: - function: private::delayed_session_deser - struct: pub::DelayedSessionConfig **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **trustpay.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response **transformers.rs** Modify existing code **payments.rs** Remove: - struct: pub::ApplePaySessionResponse Add: - struct: pub::SdkNextAction - struct: pub::SecretInfoToInitiateSdk - enum: pub::NextActionCall - enum: pub::ApplePaySessionResponse **session_flow.rs** Add: - function: private::get_applepay_metadata - function: private::mk_applepay_session_request **payment_cancel.rs** Modify existing code **payment_capture.rs** Modify existing code **payment_complete_authorize.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_method_validate.rs** Modify existing code **payment_session.rs** Add: - function: pub::is_apple_pay_get_token_connector **payment_start.rs** Modify existing code **payment_status.rs** Modify existing code **payment_update.rs** Modify existing code **openapi.rs** Modify existing code **types.rs** Modify existing code **payment_attempt.rs** Modify existing code
feat(connectors): [Redsys] add 3D secure card payment support, including transaction capture, cancellation, and refunds (#7508) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Add: - enum: pub::IframeData **connector_enums.rs** Modify existing code **enums.rs** Add: - enum: pub::CryptoPadding **crypto.rs** Add: - function: pub::new - function: private::encode_message - struct: pub::TripleDesEde3CBC - impl: impl TripleDesEde3CBC - impl: impl EncodeMessage for TripleDesEde3CBC **errors.rs** Modify existing code **connector.rs** Modify existing code **transformers.rs** Remove: - function: private::generate_12_digit_number **redsys.rs** Remove: - function: private::get_auth_header - function: private::get_headers - function: private::get_headers - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Redsys - impl: impl ConnectorCommonExt<Flow, Request, Response> for Redsys - impl: impl ConnectorValidation for Redsys - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Redsys - impl: impl ConnectorSpecifications for Redsys Add: - function: private::build_request - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_request_body - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl api::PaymentsPreProcessing for Redsys - impl: impl api::PaymentsCompleteAuthorize for Redsys - impl: impl ConnectorCommonExt<Flow, Request, Response> for Redsys - impl: impl ConnectorValidation for Redsys - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Redsys - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Redsys - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Redsys - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Redsys - impl: impl ConnectorSpecifications for Redsys **transformers.rs** Remove: - function: private::generate_12_digit_number **default_implementations.rs** Modify existing code **utils.rs** Add: - function: private::get_card_expiry_month_2_digit - function: private::get_card_expiry_month_2_digit - function: private::get_optional_line3 - function: private::get_optional_zip - function: private::get_optional_state - function: private::get_browser_info - function: private::get_threeds_method_comp_ind - function: private::get_card_expiry_month_2_digit - function: pub::generate_12_digit_number - function: pub::normalize_string **router_request_types.rs** Modify existing code **api.rs** Modify existing code **openapi.rs** Modify existing code **openapi_v2.rs** Modify existing code **types.rs** Modify existing code **types.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code **admin.rs** Modify existing code **payments.rs** Add: - enum: pub::IframeData **payment_approve.rs** Modify existing code **payment_cancel.rs** Modify existing code **payment_capture.rs** Modify existing code **payment_complete_authorize.rs** Modify existing code **payment_confirm.rs** Modify existing code **payment_create.rs** Modify existing code **payment_post_session_tokens.rs** Modify existing code **payment_reject.rs** Modify existing code **payment_session.rs** Modify existing code **payment_start.rs** Modify existing code **payment_status.rs** Modify existing code **payment_update.rs** Modify existing code **payments_incremental_authorization.rs** Modify existing code **tax_calculation.rs** Modify existing code **transformers.rs** Remove: - function: private::generate_12_digit_number **payments.rs** Add: - enum: pub::IframeData **api.rs** Modify existing code **transformers.rs** Remove: - function: private::generate_12_digit_number
feat(business_profile): add business_profile config to enable external vault (#7876)
Files to modify: **admin.rs** Add: - struct: pub::ExternalVaultConnectorDetails **business_profile.rs** Add: - struct: pub::ExternalVaultConnectorDetails **schema_v2.rs** Modify existing code **business_profile.rs** Add: - struct: pub::ExternalVaultConnectorDetails **openapi_v2.rs** Modify existing code **admin.rs** Add: - struct: pub::ExternalVaultConnectorDetails **admin.rs** Add: - struct: pub::ExternalVaultConnectorDetails **transformers.rs** Add: - function: private::foreign_from - function: private::foreign_from - impl: impl ForeignFrom<api_models::admin::ExternalVaultConnectorDetails> for diesel_models::business_profile::ExternalVaultConnectorDetails - impl: impl ForeignFrom<diesel_models::business_profile::ExternalVaultConnectorDetails> for api_models::admin::ExternalVaultConnectorDetails
refactor(payments_v2): create customer at connector end and populate connector customer ID (#7246)
Files to modify: **customers.rs** Add: - function: private::deref - function: private::deref_mut - struct: pub::ConnectorCustomerMap - impl: impl std::ops::Deref for ConnectorCustomerMap - impl: impl std::ops::DerefMut for ConnectorCustomerMap **business_profile.rs** Modify existing code **customer.rs** Add: - function: pub::get_connector_customer_id - function: pub::get_connector_customer_id - struct: pub::CustomerGeneralUpdate **customers.rs** Add: - function: private::deref - function: private::deref_mut - struct: pub::ConnectorCustomerMap - impl: impl std::ops::Deref for ConnectorCustomerMap - impl: impl std::ops::DerefMut for ConnectorCustomerMap **payments.rs** Modify existing code **customers.rs** Add: - function: private::deref - function: private::deref_mut - struct: pub::ConnectorCustomerMap - impl: impl std::ops::Deref for ConnectorCustomerMap - impl: impl std::ops::DerefMut for ConnectorCustomerMap **payment_confirm_intent.rs** Modify existing code **transformers.rs** Modify existing code **payouts.rs** Add: - function: pub::create_recipient **helpers.rs** Modify existing code **customers.rs** Add: - function: private::deref - function: private::deref_mut - struct: pub::ConnectorCustomerMap - impl: impl std::ops::Deref for ConnectorCustomerMap - impl: impl std::ops::DerefMut for ConnectorCustomerMap
refactor(router): infer ip address for online mandates from request headers if absent (#1419)
Files to modify: **payments.rs** Modify existing code **types.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **mandates.rs** Modify existing code **payments.rs** Modify existing code