prompt
stringlengths
14
2.16k
response
stringlengths
52
115k
feat(connector): [Zen] add apple pay redirect flow support for zen connector (#1383)
Files to modify: **payments.rs** Modify existing code **zen.rs** Add: - function: private::get_default_header - function: private::build_request - function: private::build_request - impl: impl Zen **transformers.rs** Remove: - struct: pub::ZenPaymentsResponse Add: - function: private::try_from - function: private::try_from - function: private::try_from - function: private::get_checkout_signature - function: private::get_signature_data - function: private::get_customer - function: private::get_item_object - function: private::get_browser_details - function: private::try_from - function: private::try_from - struct: pub::ApiRequest - struct: pub::CheckoutRequest - struct: pub::SessionObject - impl: impl TryFrom<(&types::PaymentsAuthorizeRouterData, &Card)> for ZenPaymentsRequest - impl: impl TryFrom<(&types::PaymentsAuthorizeRouterData, &GooglePayWalletData)> for ZenPaymentsRequest - impl: impl TryFrom<( &types::PaymentsAuthorizeRouterData, &Box<ApplePayRedirectData>, )> for ZenPaymentsRequest - impl: impl TryFrom<&types::PaymentsAuthorizeRouterData> for ZenPaymentsRequest - impl: impl TryFrom<types::ResponseRouterData<F, ApiResponse, T, types::PaymentsResponseData>> for types::RouterData<F, T, types::PaymentsResponseData>
feat(connectors): [worldpayvantiv] add connector mandate support (#8546) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **transformers.rs** Remove: - function: private::extract_card_mandate_info - struct: pub::CardMandateInfo **transformers.rs** Remove: - function: private::extract_card_mandate_info - struct: pub::CardMandateInfo **utils.rs** Add: - function: private::get_card_mandate_info - struct: pub::CardMandateInfo
Docs: Updated API - ref for payments (#5172) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <[email protected]>
Files to modify: **payments.rs** Modify existing code **enums.rs** Modify existing code **payments.rs** Modify existing code
fix: remove and resolve `FIXME`s and `TODO`s from db module (#174)
Files to modify: **lib.rs** Modify existing code **errors.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 **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 **queue.rs** Modify existing code **refund.rs** Modify existing code **temp_card.rs** Modify existing code **lib.rs** Modify existing code **payment_methods.rs** Modify existing code **workflows.rs** Modify existing code **payments.rs** Modify existing code
feat: delete customer data in compliance with GDPR regulations (#64)
Files to modify: **customers.rs** Modify existing code **customers.rs** Modify existing code **types.rs** Modify existing code **errors.rs** Modify existing code **customers.rs** Modify existing code **api_error_response.rs** Modify existing code **cards.rs** Add: - function: pub::mock_delete_card **address.rs** Add: - function: private::update_address_by_merchant_id_customer_id - function: private::update_address_by_merchant_id_customer_id **locker_mock_up.rs** Add: - function: private::delete_locker_mock_up - function: private::delete_locker_mock_up **customers.rs** Modify existing code **address.rs** Add: - function: private::update_address_by_merchant_id_customer_id - function: private::update_address_by_merchant_id_customer_id **locker_mock_up.rs** Add: - function: private::delete_locker_mock_up - function: private::delete_locker_mock_up
feat(router): get filters for payments (#1600)
Files to modify: **payments.rs** Add: - struct: pub::PaymentListFilters - struct: pub::TimeRange **payments.rs** Add: - struct: pub::PaymentListFilters - struct: pub::TimeRange **transformers.rs** Add: - function: private::foreign_from - impl: impl ForeignFrom<PaymentListFilters> for api_models::payments::PaymentListFilters **payment_attempt.rs** Add: - function: private::get_filters_for_payments - function: private::get_filters_for_payments - function: private::get_filters_for_payments **payment_intent.rs** Modify existing code **app.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentListFilters - struct: pub::TimeRange **payments.rs** Add: - struct: pub::PaymentListFilters - struct: pub::TimeRange **payment_intent.rs** Modify existing code **enums.rs** Modify existing code **payment_attempt.rs** Add: - function: private::get_filters_for_payments - function: private::get_filters_for_payments - function: private::get_filters_for_payments **payment_attempt.rs** Add: - function: private::get_filters_for_payments - function: private::get_filters_for_payments - function: private::get_filters_for_payments
feat(router): added Payment link new design (#2731) Co-authored-by: Sahkal Poddar <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Kashif <[email protected]> Co-authored-by: Kashif <[email protected]>
Files to modify: **admin.rs** Modify existing code **payments.rs** Modify existing code **consts.rs** Modify existing code **payment_link.rs** Add: - function: private::validate_order_details
feat(core): google pay decrypt flow (#6991) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gnanasundari24 <[email protected]>
Files to modify: **admin.rs** Modify existing code **payments.rs** Add: - struct: pub::GooglePayWalletDetails - struct: pub::GooglePayDetails - struct: pub::GooglePayMerchantDetails - struct: pub::GooglePayMerchantInfo - struct: pub::GooglePayTokenizationSpecification - struct: pub::GooglePayTokenizationParameters - enum: pub::GooglePayProviderDetails - enum: pub::GooglePayTokenizationType **lib.rs** Modify existing code **enums.rs** Add: - enum: pub::GooglePayAuthMethod **custom_serde.rs** Add: - function: pub::serialize **lib.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 **router_data.rs** Modify existing code **secret.rs** Add: - function: private::as_ref - impl: impl AsRef<[u8]> for Secret<Vec<u8>> **secrets_transformers.rs** Add: - function: private::convert_to_raw_secret - impl: impl SecretsHandler for settings::GooglePayDecryptConfig **settings.rs** Add: - struct: pub::GooglePayDecryptConfig **validations.rs** Add: - function: pub::validate - impl: impl super::settings::GooglePayDecryptConfig **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **errors.rs** Add: - enum: pub::GooglePayDecryptionError **payments.rs** Add: - struct: pub::GooglePayWalletDetails - struct: pub::GooglePayDetails - struct: pub::GooglePayMerchantDetails - struct: pub::GooglePayMerchantInfo - struct: pub::GooglePayTokenizationSpecification - struct: pub::GooglePayTokenizationParameters - enum: pub::GooglePayProviderDetails - enum: pub::GooglePayTokenizationType **helpers.rs** Add: - function: private::check_expiration_date_is_valid - function: private::get_little_endian_format - function: private::filter_root_signing_keys - function: pub::new - function: pub::decrypt_token - function: private::verify_signature - function: private::verify_intermediate_signing_key - function: private::construct_signed_data_for_intermediate_signing_key_verification - function: private::validate_signed_key - function: private::verify_message_signature - function: private::load_public_key - function: private::construct_signed_data_for_signature_verification - function: private::get_shared_key - function: private::derive_key - function: private::verify_hmac - function: private::decrypt_message - struct: pub::GooglePayTokenDecryptor - struct: pub::EncryptedData - struct: pub::GooglePaySignedMessage - struct: pub::IntermediateSigningKey - struct: pub::GooglePaySignedKey - struct: pub::GooglePayRootSigningKey - enum: pub::GooglePayProtocolVersion - impl: impl GooglePayTokenDecryptor **tokenization.rs** Modify existing code **types.rs** Modify existing code
chore: address Rust 1.72 clippy lints (#2011) Co-authored-by: Sampras Lopes <[email protected]>
Files to modify: **errors.rs** Modify existing code **connection.rs** Modify existing code **connection.rs** Modify existing code **checkout.rs** Modify existing code **stripe.rs** Modify existing code **errors.rs** Modify existing code **cards.rs** Modify existing code **payment_status.rs** Modify existing code **refunds.rs** Modify existing code **configs.rs** Modify existing code **connector_response.rs** Modify existing code **dispute.rs** Modify existing code **events.rs** Modify existing code **locker_mock_up.rs** Modify existing code **mandate.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **payment_intent.rs** Modify existing code **payment_method.rs** Modify existing code **refund.rs** Modify existing code **app.rs** Modify existing code **payment_sync.rs** Modify existing code **services.rs** Modify existing code **request.rs** Modify existing code **adyen.rs** Modify existing code **payments.rs** Modify existing code **store.rs** Modify existing code **lib.rs** Modify existing code **connector_auth.rs** Modify existing code **selenium.rs** Modify existing code
refactor(ucs): introduce dedicated gRPC header type and enhance lineage ID handling (#9275)
Files to modify: **grpc_client.rs** Add: - function: pub::new - function: pub::get_url_encoded_string - struct: pub::GrpcHeadersUcs - struct: pub::LineageIds - impl: impl LineageIds **unified_connector_service.rs** Modify existing code **lib.rs** Modify existing code **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 **app.rs** Add: - function: pub::get_grpc_headers_ucs
feat(events): add api auth type details to events (#2760)
Files to modify: **wrap.rs** Modify existing code **api_logs.rs** Modify existing code **api.rs** Modify existing code **authentication.rs** Add: - function: pub::get_merchant_id - enum: pub::AuthenticationType - impl: impl AuthenticationType
refactor(config): change UCS connector list from array to comma-separated string (#8905)
Files to modify: **unified_connector_service.rs** Modify existing code **lib.rs** Add: - mod: pub::utils **utils.rs** Add: - function: private::deserialize_hashset_inner - function: pub::deserialize_hashset - function: private::test_deserialize_hashset_inner_success - function: private::test_deserialize_hashset_inner_with_whitespace - function: private::test_deserialize_hashset_inner_empty_string - function: private::test_deserialize_hashset_inner_single_value - function: private::test_deserialize_hashset_inner_invalid_int - function: private::test_deserialize_hashset_inner_duplicates - mod: private::tests **unified_connector_service.rs** Modify existing code
refactor(connector): [Adyen] Change country and issuer type to Optional for OpenBankingUk (#2993) Co-authored-by: Arjun Karthik <[email protected]> Co-authored-by: Prasunna Soppa <[email protected]>
Files to modify: **payments.rs** Modify existing code **transformers.rs** Modify existing code
Feat(connector): [ELAVON] Template PR (#6309) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **connectors.rs** Add: - mod: pub::elavon **elavon.rs** Add: - function: pub::new - 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::Elavon - impl: impl Elavon - impl: impl api::Payment for Elavon - impl: impl api::PaymentSession for Elavon - impl: impl api::ConnectorAccessToken for Elavon - impl: impl api::MandateSetup for Elavon - impl: impl api::PaymentAuthorize for Elavon - impl: impl api::PaymentSync for Elavon - impl: impl api::PaymentCapture for Elavon - impl: impl api::PaymentVoid for Elavon - impl: impl api::Refund for Elavon - impl: impl api::RefundExecute for Elavon - impl: impl api::RefundSync for Elavon - impl: impl api::PaymentToken for Elavon - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Elavon - impl: impl ConnectorCommonExt<Flow, Request, Response> for Elavon - impl: impl ConnectorCommon for Elavon - impl: impl ConnectorValidation for Elavon - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Elavon - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Elavon - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Elavon - impl: impl webhooks::IncomingWebhook for Elavon - mod: pub::transformers **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::ElavonRouterData - struct: pub::ElavonPaymentsRequest - struct: pub::ElavonCard - struct: pub::ElavonAuthType - struct: pub::ElavonPaymentsResponse - struct: pub::ElavonRefundRequest - struct: pub::RefundResponse - struct: pub::ElavonErrorResponse - enum: pub::ElavonPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for ElavonRouterData<T> - impl: impl TryFrom<&ElavonRouterData<&PaymentsAuthorizeRouterData>> for ElavonPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for ElavonAuthType - impl: impl From<ElavonPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, ElavonPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&ElavonRouterData<&RefundsRouterData<F>>> for ElavonRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **default_implementations.rs** Modify existing code **default_implementations_v2.rs** Modify existing code **configs.rs** Modify existing code **connector.rs** Modify existing code **connector_integration_v2_impls.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::ElavonRouterData - struct: pub::ElavonPaymentsRequest - struct: pub::ElavonCard - struct: pub::ElavonAuthType - struct: pub::ElavonPaymentsResponse - struct: pub::ElavonRefundRequest - struct: pub::RefundResponse - struct: pub::ElavonErrorResponse - enum: pub::ElavonPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for ElavonRouterData<T> - impl: impl TryFrom<&ElavonRouterData<&PaymentsAuthorizeRouterData>> for ElavonPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for ElavonAuthType - impl: impl From<ElavonPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, ElavonPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&ElavonRouterData<&RefundsRouterData<F>>> for ElavonRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **elavon.rs** Add: - function: pub::new - 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::Elavon - impl: impl Elavon - impl: impl api::Payment for Elavon - impl: impl api::PaymentSession for Elavon - impl: impl api::ConnectorAccessToken for Elavon - impl: impl api::MandateSetup for Elavon - impl: impl api::PaymentAuthorize for Elavon - impl: impl api::PaymentSync for Elavon - impl: impl api::PaymentCapture for Elavon - impl: impl api::PaymentVoid for Elavon - impl: impl api::Refund for Elavon - impl: impl api::RefundExecute for Elavon - impl: impl api::RefundSync for Elavon - impl: impl api::PaymentToken for Elavon - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Elavon - impl: impl ConnectorCommonExt<Flow, Request, Response> for Elavon - impl: impl ConnectorCommon for Elavon - impl: impl ConnectorValidation for Elavon - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Elavon - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Elavon - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Elavon - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Elavon - impl: impl webhooks::IncomingWebhook for Elavon - mod: pub::transformers **main.rs** Add: - mod: private::elavon **connector_auth.rs** Modify existing code
feat(braintree): Sessions flow for braintree and klarna (#121)
Files to modify: **payments.rs** Modify existing code **custom_serde.rs** Add: - function: pub::deserialize - mod: pub::json_string **settings.rs** Modify existing code **connector.rs** Add: - mod: pub::klarna **braintree.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::get_error_response - function: private::get_request_body - function: private::handle_response **transformers.rs** Add: - function: private::try_from - struct: pub::AuthorizationFingerprint - struct: pub::ClientToken - struct: pub::BraintreeSessionTokenResponse - impl: impl TryFrom< types::ResponseRouterData<F, BraintreeSessionTokenResponse, T, types::PaymentsResponseData>, > for types::RouterData<F, T, types::PaymentsResponseData> **klarna.rs** Add: - function: private::id - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - 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_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Klarna - impl: impl api::ConnectorCommon for Klarna - impl: impl api::Payment for Klarna - impl: impl api::PaymentAuthorize for Klarna - impl: impl api::PaymentSync for Klarna - impl: impl api::PaymentVoid for Klarna - impl: impl api::PaymentCapture for Klarna - impl: impl api::PaymentSession for Klarna - impl: impl services::ConnectorIntegration< api::Session, types::PaymentsSessionData, types::PaymentsResponseData, > for Klarna - impl: impl api::PreVerify for Klarna - impl: impl services::ConnectorIntegration< api::Verify, types::VerifyRequestData, types::PaymentsResponseData, > for Klarna - impl: impl services::ConnectorIntegration< api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData, > for Klarna - impl: impl services::ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Klarna - impl: impl services::ConnectorIntegration< api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData, > for Klarna - impl: impl services::ConnectorIntegration< api::Void, types::PaymentsCancelData, types::PaymentsResponseData, > for Klarna - impl: impl api::Refund for Klarna - impl: impl api::RefundExecute for Klarna - impl: impl api::RefundSync for Klarna - impl: impl services::ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Klarna - impl: impl services::ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Klarna - impl: impl api::IncomingWebhook for Klarna - impl: impl services::ConnectorRedirectResponse for Klarna - mod: private::transformers **transformers.rs** Add: - function: private::try_from - struct: pub::AuthorizationFingerprint - struct: pub::ClientToken - struct: pub::BraintreeSessionTokenResponse - impl: impl TryFrom< types::ResponseRouterData<F, BraintreeSessionTokenResponse, T, types::PaymentsResponseData>, > for types::RouterData<F, T, types::PaymentsResponseData> **payments.rs** Modify existing code **payment_session.rs** Modify existing code **transformers.rs** Add: - function: private::try_from - struct: pub::AuthorizationFingerprint - struct: pub::ClientToken - struct: pub::BraintreeSessionTokenResponse - impl: impl TryFrom< types::ResponseRouterData<F, BraintreeSessionTokenResponse, T, types::PaymentsResponseData>, > for types::RouterData<F, T, types::PaymentsResponseData> **app.rs** Modify existing code **types.rs** Remove: - struct: pub::PaymentsSessionResponseData Add: - struct: pub::ConnectorSessionToken - struct: pub::PaymentsSessionResponse **api.rs** Modify existing code **connector.rs** Add: - mod: pub::klarna
feat(connector): add template code for chargebee (#7036) Co-authored-by: Chikke Srujan <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **connector_enums.rs** Modify existing code **connectors.rs** Add: - mod: pub::chargebee **chargebee.rs** Add: - function: pub::new - 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::Chargebee - impl: impl Chargebee - impl: impl api::Payment for Chargebee - impl: impl api::PaymentSession for Chargebee - impl: impl api::ConnectorAccessToken for Chargebee - impl: impl api::MandateSetup for Chargebee - impl: impl api::PaymentAuthorize for Chargebee - impl: impl api::PaymentSync for Chargebee - impl: impl api::PaymentCapture for Chargebee - impl: impl api::PaymentVoid for Chargebee - impl: impl api::Refund for Chargebee - impl: impl api::RefundExecute for Chargebee - impl: impl api::RefundSync for Chargebee - impl: impl api::PaymentToken for Chargebee - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Chargebee - impl: impl ConnectorCommonExt<Flow, Request, Response> for Chargebee - impl: impl ConnectorCommon for Chargebee - impl: impl ConnectorValidation for Chargebee - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Chargebee - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Chargebee - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Chargebee - impl: impl webhooks::IncomingWebhook for Chargebee - impl: impl ConnectorSpecifications for Chargebee - mod: pub::transformers **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::ChargebeeRouterData - struct: pub::ChargebeePaymentsRequest - struct: pub::ChargebeeCard - struct: pub::ChargebeeAuthType - struct: pub::ChargebeePaymentsResponse - struct: pub::ChargebeeRefundRequest - struct: pub::RefundResponse - struct: pub::ChargebeeErrorResponse - enum: pub::ChargebeePaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for ChargebeeRouterData<T> - impl: impl TryFrom<&ChargebeeRouterData<&PaymentsAuthorizeRouterData>> for ChargebeePaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for ChargebeeAuthType - impl: impl From<ChargebeePaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, ChargebeePaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&ChargebeeRouterData<&RefundsRouterData<F>>> for ChargebeeRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **default_implementations.rs** Modify existing code **default_implementations_v2.rs** Modify existing code **configs.rs** Modify existing code **connector.rs** Modify existing code **connector_integration_v2_impls.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::ChargebeeRouterData - struct: pub::ChargebeePaymentsRequest - struct: pub::ChargebeeCard - struct: pub::ChargebeeAuthType - struct: pub::ChargebeePaymentsResponse - struct: pub::ChargebeeRefundRequest - struct: pub::RefundResponse - struct: pub::ChargebeeErrorResponse - enum: pub::ChargebeePaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for ChargebeeRouterData<T> - impl: impl TryFrom<&ChargebeeRouterData<&PaymentsAuthorizeRouterData>> for ChargebeePaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for ChargebeeAuthType - impl: impl From<ChargebeePaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, ChargebeePaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&ChargebeeRouterData<&RefundsRouterData<F>>> for ChargebeeRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **chargebee.rs** Add: - function: pub::new - 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::Chargebee - impl: impl Chargebee - impl: impl api::Payment for Chargebee - impl: impl api::PaymentSession for Chargebee - impl: impl api::ConnectorAccessToken for Chargebee - impl: impl api::MandateSetup for Chargebee - impl: impl api::PaymentAuthorize for Chargebee - impl: impl api::PaymentSync for Chargebee - impl: impl api::PaymentCapture for Chargebee - impl: impl api::PaymentVoid for Chargebee - impl: impl api::Refund for Chargebee - impl: impl api::RefundExecute for Chargebee - impl: impl api::RefundSync for Chargebee - impl: impl api::PaymentToken for Chargebee - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Chargebee - impl: impl ConnectorCommonExt<Flow, Request, Response> for Chargebee - impl: impl ConnectorCommon for Chargebee - impl: impl ConnectorValidation for Chargebee - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Chargebee - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Chargebee - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Chargebee - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Chargebee - impl: impl webhooks::IncomingWebhook for Chargebee - impl: impl ConnectorSpecifications for Chargebee - mod: pub::transformers **main.rs** Add: - mod: private::chargebee **connector_auth.rs** Modify existing code
Add a base struct for api error responses (#524) Co-authored-by: Sanchith Hegde <[email protected]>
Files to modify: **actix.rs** Add: - function: private::status_code - function: private::error_response - impl: impl actix_web::ResponseError for ApiErrorResponse **mod.rs** Add: - mod: pub::actix - mod: pub::serde - mod: pub::types **serde.rs** Add: - function: private::serialize - impl: impl Serialize for ApiErrorResponse **types.rs** Add: - function: private::fmt - function: pub::get_internal_error - function: pub::error_type - struct: pub::ApiError - enum: pub::ErrorType - enum: pub::ApiErrorResponse - impl: impl ::core::fmt::Display for ApiErrorResponse - impl: impl ApiErrorResponse **lib.rs** Add: - mod: pub::errors **errors.rs** Add: - function: private::switch - trait: pub::ReportSwitchExt - trait: pub::ErrorSwitch - impl: impl ReportSwitchExt<T, U> for Result<T, error_stack::Report<V>>
Feat(connector): [JP MORGAN] Added Template code for cards integration (#6467) Co-authored-by: Sayak Bhattacharya <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **connector_enums.rs** Modify existing code **connector_enums.rs** Modify existing code **connectors.rs** Add: - mod: pub::jpmorgan **jpmorgan.rs** Add: - function: pub::new - 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::Jpmorgan - impl: impl Jpmorgan - impl: impl api::Payment for Jpmorgan - impl: impl api::PaymentSession for Jpmorgan - impl: impl api::ConnectorAccessToken for Jpmorgan - impl: impl api::MandateSetup for Jpmorgan - impl: impl api::PaymentAuthorize for Jpmorgan - impl: impl api::PaymentSync for Jpmorgan - impl: impl api::PaymentCapture for Jpmorgan - impl: impl api::PaymentVoid for Jpmorgan - impl: impl api::Refund for Jpmorgan - impl: impl api::RefundExecute for Jpmorgan - impl: impl api::RefundSync for Jpmorgan - impl: impl api::PaymentToken for Jpmorgan - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorCommonExt<Flow, Request, Response> for Jpmorgan - impl: impl ConnectorCommon for Jpmorgan - impl: impl ConnectorValidation for Jpmorgan - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Jpmorgan - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Jpmorgan - impl: impl webhooks::IncomingWebhook for Jpmorgan - mod: pub::transformers **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::JpmorganRouterData - struct: pub::JpmorganPaymentsRequest - struct: pub::JpmorganCard - struct: pub::JpmorganAuthType - struct: pub::JpmorganPaymentsResponse - struct: pub::JpmorganRefundRequest - struct: pub::RefundResponse - struct: pub::JpmorganErrorResponse - enum: pub::JpmorganPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for JpmorganRouterData<T> - impl: impl TryFrom<&JpmorganRouterData<&PaymentsAuthorizeRouterData>> for JpmorganPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for JpmorganAuthType - impl: impl From<JpmorganPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, JpmorganPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&JpmorganRouterData<&RefundsRouterData<F>>> for JpmorganRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **default_implementations.rs** Modify existing code **default_implementations_v2.rs** Modify existing code **configs.rs** Modify existing code **connector.rs** Modify existing code **connector_integration_v2_impls.rs** Modify existing code **flows.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::JpmorganRouterData - struct: pub::JpmorganPaymentsRequest - struct: pub::JpmorganCard - struct: pub::JpmorganAuthType - struct: pub::JpmorganPaymentsResponse - struct: pub::JpmorganRefundRequest - struct: pub::RefundResponse - struct: pub::JpmorganErrorResponse - enum: pub::JpmorganPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for JpmorganRouterData<T> - impl: impl TryFrom<&JpmorganRouterData<&PaymentsAuthorizeRouterData>> for JpmorganPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for JpmorganAuthType - impl: impl From<JpmorganPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, JpmorganPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&JpmorganRouterData<&RefundsRouterData<F>>> for JpmorganRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **jpmorgan.rs** Add: - function: pub::new - 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::Jpmorgan - impl: impl Jpmorgan - impl: impl api::Payment for Jpmorgan - impl: impl api::PaymentSession for Jpmorgan - impl: impl api::ConnectorAccessToken for Jpmorgan - impl: impl api::MandateSetup for Jpmorgan - impl: impl api::PaymentAuthorize for Jpmorgan - impl: impl api::PaymentSync for Jpmorgan - impl: impl api::PaymentCapture for Jpmorgan - impl: impl api::PaymentVoid for Jpmorgan - impl: impl api::Refund for Jpmorgan - impl: impl api::RefundExecute for Jpmorgan - impl: impl api::RefundSync for Jpmorgan - impl: impl api::PaymentToken for Jpmorgan - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorCommonExt<Flow, Request, Response> for Jpmorgan - impl: impl ConnectorCommon for Jpmorgan - impl: impl ConnectorValidation for Jpmorgan - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Jpmorgan - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Jpmorgan - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Jpmorgan - impl: impl webhooks::IncomingWebhook for Jpmorgan - mod: pub::transformers **main.rs** Add: - mod: private::jpmorgan **connector_auth.rs** Modify existing code
feat(connector): [Adyen] Add support for gift cards balance (#1672)
Files to modify: **payments.rs** Add: - struct: pub::GiftCardDetails **enums.rs** Modify existing code **transformers.rs** Modify existing code **adyen.rs** Add: - function: private::execute_pretasks - 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: pub::check_for_payment_method_balance - impl: impl services::ConnectorIntegration< api::Balance, types::PaymentsAuthorizeData, types::PaymentsResponseData, > for Adyen **transformers.rs** Modify existing code **errors.rs** Modify existing code **helpers.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **openapi.rs** Modify existing code **types.rs** Add: - struct: pub::PaymentMethodBalance **payments.rs** Add: - struct: pub::GiftCardDetails **transformers.rs** Modify existing code **aci.rs** Modify existing code **utils.rs** Modify existing code
fix(connector): [Authorizedotnet]fix error deserialization incase of authentication failure (#2600) Signed-off-by: chikke srujan <[email protected]>
Files to modify: **authorizedotnet.rs** Modify existing code **transformers.rs** Remove: - struct: pub::TransactionResponse Add: - struct: pub::AuthorizedotnetTransactionResponseError - struct: pub::AuthorizedotnetTransactionResponse - enum: pub::TransactionResponse
feat: Allow payment cancels for more statuses (#1027) Co-authored-by: Sanchith Hegde <[email protected]>
Files to modify: **payment_cancel.rs** Modify existing code **payments.rs** Modify existing code
feat(core): accept merchant_connector_details in Refunds create and retrieve flow (#8441) Co-authored-by: Aishwariyaa Anand <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Remove: - struct: pub::MerchantConnectorDetails **refunds.rs** Add: - struct: pub::RefundsRetrievePayload **domain.rs** Add: - struct: pub::MerchantConnectorAuthDetails **merchant_connector_account.rs** Modify existing code **payments.rs** Remove: - struct: pub::MerchantConnectorDetails **openapi_v2.rs** Modify existing code **payments.rs** Remove: - struct: pub::MerchantConnectorDetails **helpers.rs** Modify existing code **refunds_v2.rs** Add: - function: pub::internal_trigger_refund_to_gateway - function: pub::internal_sync_refund_with_gateway **utils.rs** Modify existing code **app.rs** Modify existing code **refunds.rs** Add: - struct: pub::RefundsRetrievePayload
feat(apple_pay): add support for pre decrypted apple pay token (#2056) Co-authored-by: Sangamesh <[email protected]>
Files to modify: **payments.rs** Add: - struct: pub::SessionTokenForSimplifiedApplePay - enum: pub::ApplepaySessionTokenMetadata **settings.rs** Add: - struct: pub::ApplePayDecryptConifg **transformers.rs** Modify existing code **braintree_graphql_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 **consts.rs** Modify existing code **errors.rs** Add: - enum: pub::ApplePayDecryptionError **payments.rs** Add: - struct: pub::SessionTokenForSimplifiedApplePay - enum: pub::ApplepaySessionTokenMetadata **flows.rs** Modify existing code **approve_flow.rs** Modify existing code **authorize_flow.rs** Modify existing code **cancel_flow.rs** Modify existing code **capture_flow.rs** Modify existing code **complete_authorize_flow.rs** Modify existing code **psync_flow.rs** Modify existing code **reject_flow.rs** Modify existing code **session_flow.rs** Add: - function: private::get_session_request_for_simplified_apple_pay - function: private::get_session_request_for_manual_apple_pay - function: private::get_apple_pay_amount_info - function: private::get_apple_pay_payment_request **verify_flow.rs** Modify existing code **helpers.rs** Add: - function: pub::token_json - function: pub::decrypt - function: pub::merchant_id - function: pub::shared_secret - function: pub::symmetric_key - function: pub::decrypt_ciphertext - struct: pub::ApplePayData - struct: pub::ApplePayHeader - impl: impl ApplePayData **tokenization.rs** Modify existing code **transformers.rs** Modify existing code **types.rs** Add: - struct: pub::ApplePayPredecryptData - struct: pub::ApplePayCryptogramData - enum: pub::PaymentMethodToken **utils.rs** Modify existing code
refactor(bank-debit): remove billingdetails from bankdebit pmd (#4371) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.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** Remove: - function: private::get_billing_country - trait: pub::BankDirectDebitBillingData - impl: impl BankDirectDebitBillingData for domain::BankDebitBilling **pm_auth.rs** Modify existing code **payments.rs** Modify existing code
fix(connector): accept state abbreviation in 2 letter (#4646) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **enums.rs** Modify existing code **utils.rs** Modify existing code
feat(authentication): create authentications to fallback to ApiKeyAuth if AdminApiAuth fails (#7744) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **secrets_transformers.rs** Modify existing code **settings.rs** Add: - function: private::deserialize_merchant_ids_inner - function: private::deserialize_merchant_ids - struct: pub::FallbackMerchantIds **admin.rs** Modify existing code **api_keys.rs** Modify existing code **authentication.rs** Add: - function: private::authenticate_and_fetch - function: private::fetch_merchant_key_store_and_account - function: private::authenticate_and_fetch - struct: pub::AdminApiAuthWithApiKeyFallback - struct: pub::AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute - impl: impl AuthenticateAndFetch<(), A> for AdminApiAuthWithApiKeyFallback - impl: impl AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute - impl: impl AuthenticateAndFetch<AuthenticationData, A> for AdminApiAuthWithApiKeyFallbackAndMerchantIdFromRoute
feat(connector): [Paypal] add support for payment and refund webhooks (#2003) Signed-off-by: chikke srujan <[email protected]> Co-authored-by: Prasunna Soppa <[email protected]>
Files to modify: **paypal.rs** Remove: - function: pub::connector_transaction_id Add: - function: private::verify_webhook_source **transformers.rs** Add: - function: private::from - struct: pub::PaypalCaptureResponse - struct: pub::PaypalRefundWebhooks - struct: pub::PaypalSellerPayableBreakdown - struct: pub::PaypalCardWebhooks - struct: pub::PaypalRedirectsWebhooks - struct: pub::PaypalWebhooksPurchaseUnits - struct: pub::PaypalSupplementaryData - struct: pub::PaypalRelatedIds - struct: pub::PaypalWebooksEventType - enum: pub::PaypalWebhookEventType - enum: pub::PaypalResource - impl: impl From<PaypalWebhookEventType> for api::IncomingWebhookEvent **flows.rs** Modify existing code **transformers.rs** Add: - function: private::from - struct: pub::PaypalCaptureResponse - struct: pub::PaypalRefundWebhooks - struct: pub::PaypalSellerPayableBreakdown - struct: pub::PaypalCardWebhooks - struct: pub::PaypalRedirectsWebhooks - struct: pub::PaypalWebhooksPurchaseUnits - struct: pub::PaypalSupplementaryData - struct: pub::PaypalRelatedIds - struct: pub::PaypalWebooksEventType - enum: pub::PaypalWebhookEventType - enum: pub::PaypalResource - impl: impl From<PaypalWebhookEventType> for api::IncomingWebhookEvent
docs(openapi): Show API version selection dropdown in Mintlify (#8333)
Files to modify: **main.rs** Modify existing code
refactor(core): Refactor customer payment method list for v2 (#4856) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment.rs** Modify existing code **payment_methods.rs** Add: - struct: pub::CustomerPaymentMethodsListResponse - struct: pub::CustomerPaymentMethod - enum: pub::PaymentMethodListData **types.rs** Modify existing code **cards.rs** Add: - function: pub::list_customer_payment_method_util - function: private::get_pm_list_context - function: private::perform_surcharge_ops - function: pub::form_payments_info - function: pub::perform_payment_ops - function: private::generate_saved_pm_response - struct: private::SavedPMLPaymentsInfo - impl: impl SavedPMLPaymentsInfo **surcharge_decision_configs.rs** Modify existing code **app.rs** Add: - function: pub::server - impl: impl Payments **payment_methods.rs** Add: - struct: pub::CustomerPaymentMethodsListResponse - struct: pub::CustomerPaymentMethod - enum: pub::PaymentMethodListData **payment_methods.rs** Add: - struct: pub::CustomerPaymentMethodsListResponse - struct: pub::CustomerPaymentMethod - enum: pub::PaymentMethodListData **payment_method.rs** Modify existing code
Refactor(Connectors): [BOA] enhance response objects (#4508) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: SamraatBansal <[email protected]>
Files to modify: **transformers.rs** Add: - struct: pub::Profile - struct: pub::ConsumerAuthenticationInformation - struct: pub::SenderInformation - struct: pub::PaymentInsightsInformation - struct: pub::ResponseInsights - struct: pub::RuleResults - struct: pub::PaymentInformationResponse - struct: pub::CustomerResponseObject - struct: pub::PaymentAccountInformation - struct: pub::PaymentAccountFeatureInformation - struct: pub::PaymentAccountCardInformation - struct: pub::ProcessingInformationResponse - struct: pub::AuthorizationOptions - struct: pub::Initiator - struct: pub::MerchantInitiatedTransactionResponse - struct: pub::CardResponseObject
feat(analytics): implement currency conversion to power multi-currency aggregation (#6418) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **errors.rs** Modify existing code **accumulator.rs** Modify existing code **core.rs** Modify existing code **payment_processed_amount.rs** Modify existing code **smart_retried_amount.rs** Modify existing code **smart_retried_amount.rs** Modify existing code **accumulator.rs** Modify existing code **core.rs** Modify existing code **payment_processed_amount.rs** Modify existing code **payment_processed_amount.rs** Modify existing code **analytics.rs** Modify existing code **payment_intents.rs** Modify existing code **payments.rs** Modify existing code **analytics.rs** Modify existing code **currency.rs** Add: - function: pub::get_forex_exchange_rates **currency.rs** Add: - function: pub::get_forex_exchange_rates
feat(connector): [Adyen] Add support for PIX Payment Method (#3236) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Add: - enum: pub::QrCodeInformation **types.rs** Modify existing code **types.rs** Modify existing code **transformers.rs** Add: - struct: pub::QrCodeAdditionalData **utils.rs** Add: - function: pub::get_timestamp_in_milliseconds **transformers.rs** Add: - struct: pub::QrCodeAdditionalData
refactor: add basic counter metrics for IMC (#5006)
Files to modify: **core.rs** Modify existing code **core.rs** Modify existing code **request.rs** Remove: - function: pub::add_attributes **core.rs** Modify existing code **core.rs** Modify existing code **api.rs** Modify existing code **metrics.rs** Remove: - function: pub::add_attributes **boku.rs** Modify existing code **braintree.rs** Modify existing code **cybersource.rs** Modify existing code **noon.rs** Modify existing code **payme.rs** Modify existing code **rapyd.rs** Modify existing code **threedsecureio.rs** Modify existing code **trustpay.rs** Modify existing code **admin.rs** Modify existing code **api_keys.rs** Modify existing code **mandate.rs** Modify existing code **cards.rs** Modify existing code **vault.rs** Modify existing code **payments.rs** Modify existing code **access_token.rs** Modify existing code **customers.rs** Modify existing code **authorize_flow.rs** Modify existing code **cancel_flow.rs** Modify existing code **complete_authorize_flow.rs** Modify existing code **session_flow.rs** Modify existing code **helpers.rs** Modify existing code **tokenization.rs** Modify existing code **transformers.rs** Modify existing code **access_token.rs** Modify existing code **refunds.rs** Modify existing code **incoming.rs** Modify existing code **outgoing.rs** Modify existing code **metrics.rs** Remove: - function: pub::add_attributes **bg_metrics_collector.rs** Modify existing code **request.rs** Remove: - function: pub::add_attributes **api.rs** Modify existing code **utils.rs** Modify existing code **api_key_expiry.rs** Modify existing code **metrics.rs** Remove: - function: pub::add_attributes **metrics.rs** Remove: - function: pub::add_attributes **cache.rs** Add: - function: pub::name - function: pub::record_entry_count_metric
feat(xendit): Add Payment Webhooks (#7277)
Files to modify: **xendit.rs** Add: - function: private::get_webhook_source_verification_signature - function: private::verify_webhook_source - function: private::get_webhook_source_verification_message **transformers.rs** Add: - struct: pub::XenditWebhookEvent - struct: pub::EventDetails - enum: pub::XenditResponse - enum: pub::XenditEventType
refactor(payment_methods): revamp payment methods update endpoint (#4305) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment_methods.rs** Add: - function: pub::apply - struct: pub::CardDetailUpdate - struct: pub::Card - impl: impl CardDetailUpdate **openapi.rs** Modify existing code **cards.rs** Modify existing code **transformers.rs** Remove: - struct: pub::Card **helpers.rs** Modify existing code **tokenization.rs** Modify existing code **helpers.rs** Modify existing code **app.rs** Modify existing code **payment_methods.rs** Add: - function: pub::apply - struct: pub::CardDetailUpdate - struct: pub::Card - impl: impl CardDetailUpdate **authentication.rs** Add: - function: private::get_client_secret - impl: impl ClientSecretFetch for api_models::payment_methods::PaymentMethodUpdate
test: move Postman collections to directory structure (#1995) Co-authored-by: Pa1NarK <[email protected]>
Files to modify: **main.rs** Modify existing code
feat(connector_onboarding): Add Connector onboarding APIs (#3050) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **events.rs** Add: - mod: pub::connector_onboarding **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **lib.rs** Add: - mod: pub::connector_onboarding **kms.rs** Add: - function: private::decrypt_inner - function: private::decrypt_inner - impl: impl KmsDecrypt for settings::PayPalOnboarding - impl: impl KmsDecrypt for settings::ConnectorOnboarding **settings.rs** Add: - struct: pub::ConnectorOnboarding - struct: pub::PayPalOnboarding **core.rs** Add: - mod: pub::connector_onboarding **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **paypal.rs** Add: - function: private::build_referral_url - function: private::build_referral_request - function: pub::get_action_url_from_paypal - function: private::merchant_onboarding_status_url - function: pub::sync_merchant_onboarding_status - function: private::find_paypal_merchant_by_tracking_id - function: pub::update_mca **lib.rs** Add: - mod: pub::connector_onboarding **routes.rs** Add: - mod: pub::connector_onboarding **app.rs** Add: - function: pub::server - struct: pub::ConnectorOnboarding - impl: impl ConnectorOnboarding **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **lock_utils.rs** Modify existing code **api.rs** Add: - mod: pub::connector_onboarding **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **paypal.rs** Add: - function: private::build_referral_url - function: private::build_referral_request - function: pub::get_action_url_from_paypal - function: private::merchant_onboarding_status_url - function: pub::sync_merchant_onboarding_status - function: private::find_paypal_merchant_by_tracking_id - function: pub::update_mca **utils.rs** Add: - mod: pub::connector_onboarding **connector_onboarding.rs** Add: - struct: pub::ActionUrlRequest - struct: pub::OnboardingSyncRequest - struct: pub::PayPalActionUrlResponse - struct: pub::PayPalOnboardingDone - struct: pub::PayPalIntegrationDone - enum: pub::ActionUrlResponse - enum: pub::OnboardingStatus - enum: pub::PayPalOnboardingStatus **paypal.rs** Add: - function: private::build_referral_url - function: private::build_referral_request - function: pub::get_action_url_from_paypal - function: private::merchant_onboarding_status_url - function: pub::sync_merchant_onboarding_status - function: private::find_paypal_merchant_by_tracking_id - function: pub::update_mca **types.rs** Modify existing code
feat(payouts): add kafka events (#4264) Co-authored-by: Ivor Dsouza <[email protected]> Co-authored-by: ivor-juspay <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payout_attempt.rs** Modify existing code **payouts.rs** Modify existing code **payouts.rs** Modify existing code **helpers.rs** Modify existing code **retry.rs** Modify existing code **kafka_store.rs** Modify existing code **events.rs** Modify existing code **kafka.rs** Remove: - mod: private::payout Add: - mod: pub::payout **payout.rs** Modify existing code **payout_attempt.rs** Modify existing code **payouts.rs** Modify existing code **payout_attempt.rs** Modify existing code **payouts.rs** Modify existing code
feat(router): add integrity check for refund refund sync and capture flow with stripe as connector (#5187) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <[email protected]> Co-authored-by: Narayan Bhat <[email protected]> Co-authored-by: Sahkal Poddar <[email protected]>
Files to modify: **refund.rs** Modify existing code **router_request_types.rs** Add: - struct: pub::CaptureIntegrityObject - struct: pub::RefundIntegrityObject **integrity.rs** Add: - function: private::check_integrity - function: private::check_integrity - function: private::compare - function: private::get_response_integrity_object - function: private::get_request_integrity_object - function: private::get_response_integrity_object - function: private::get_request_integrity_object - impl: impl CheckIntegrity<Request, T> for RefundsData - impl: impl CheckIntegrity<Request, T> for PaymentsCaptureData - impl: impl FlowIntegrity for RefundIntegrityObject - impl: impl GetIntegrityObject<CaptureIntegrityObject> for PaymentsCaptureData - impl: impl GetIntegrityObject<RefundIntegrityObject> for RefundsData **stripe.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Add: - function: pub::get_capture_integrity_object **capture_flow.rs** Modify existing code **transformers.rs** Modify existing code **refunds.rs** Modify existing code **utils.rs** Add: - function: pub::get_capture_integrity_object **bambora.rs** Modify existing code **forte.rs** Modify existing code **nexinets.rs** Modify existing code **paypal.rs** Modify existing code **utils.rs** Add: - function: pub::get_capture_integrity_object **zen.rs** Modify existing code
feat(core): Add support for Void after Capture (#8839) 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 PaymentsCancelPostCaptureRequest **open_router.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **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 **worldpayvantiv.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::PaymentPostCaptureVoid for Worldpayvantiv - impl: impl ConnectorIntegration<PostCaptureVoid, PaymentsCancelPostCaptureData, PaymentsResponseData> for Worldpayvantiv **transformers.rs** Modify existing code **default_implementations.rs** Add: - impl: impl PaymentPostCaptureVoid for connectors::DummyConnector<T> - impl: impl ConnectorIntegration<PostCaptureVoid, PaymentsCancelPostCaptureData, PaymentsResponseData> for connectors::DummyConnector<T> **default_implementations_v2.rs** Add: - impl: impl PaymentPostCaptureVoidV2 for $connector **utils.rs** Modify existing code **router_data.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **router_request_types.rs** Add: - struct: pub::PaymentsCancelPostCaptureData **types.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **payments_v2.rs** Add: - trait: pub::PaymentPostCaptureVoidV2 **types.rs** Modify existing code **openapi.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **types.rs** Modify existing code **types.rs** Modify existing code **webhooks.rs** Modify existing code **utils.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **flows.rs** Add: - mod: pub::cancel_post_capture_flow **cancel_post_capture_flow.rs** Add: - function: private::construct_router_data - 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::PostCaptureVoid, types::PaymentsCancelPostCaptureData, types::PaymentsResponseData, > for PaymentData<api::PostCaptureVoid> - impl: impl Feature<api::PostCaptureVoid, types::PaymentsCancelPostCaptureData> for types::RouterData< api::PostCaptureVoid, types::PaymentsCancelPostCaptureData, types::PaymentsResponseData, > **helpers.rs** Modify existing code **operations.rs** Add: - mod: pub::payment_cancel_post_capture **payment_attempt_record.rs** Modify existing code **payment_cancel_post_capture.rs** Add: - function: private::get_trackers - function: private::get_or_create_customer_details - function: private::make_pm_data - function: private::get_connector - function: private::guard_payment_against_blocklist - function: private::update_trackers - function: private::validate_request - struct: pub::PaymentCancelPostCapture - impl: impl GetTracker<F, PaymentData<F>, api::PaymentsCancelPostCaptureRequest> for PaymentCancelPostCapture - impl: impl Domain<F, api::PaymentsCancelPostCaptureRequest, PaymentData<F>> for PaymentCancelPostCapture - impl: impl UpdateTracker<F, PaymentData<F>, api::PaymentsCancelPostCaptureRequest> for PaymentCancelPostCapture - impl: impl ValidateRequest<F, api::PaymentsCancelPostCaptureRequest, PaymentData<F>> for PaymentCancelPostCapture **payment_capture_v2.rs** Modify existing code **payment_confirm_intent.rs** Modify existing code **payment_get.rs** Modify existing code **payment_response.rs** Add: - function: private::update_tracker - impl: impl PostUpdateTracker<F, PaymentData<F>, types::PaymentsCancelPostCaptureData> for PaymentResponse **payment_session_intent.rs** Modify existing code **payment_update_intent.rs** Modify existing code **proxy_payments_intent.rs** Modify existing code **payment_methods.rs** Modify existing code **retry.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **helpers.rs** Modify existing code **app.rs** Modify existing code **lock_utils.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **api.rs** Add: - impl: impl Authenticate for api_models::payments::PaymentsCancelPostCaptureRequest **types.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentsCancelPostCaptureRequest **payments_v2.rs** Add: - trait: pub::PaymentPostCaptureVoidV2 **transformers.rs** Modify existing code **operation.rs** Modify existing code **types.rs** Modify existing code
feat(connector): add payment routes for dummy connector (#980)
Files to modify: **commands.rs** Add: - function: pub::serialize_and_set_key_with_expiry **settings.rs** Add: - struct: pub::DummyConnector **lib.rs** Modify existing code **routes.rs** Add: - mod: pub::dummy_connector **app.rs** Add: - function: pub::server - struct: pub::DummyConnector - impl: impl DummyConnector **dummy_connector.rs** Add: - function: pub::dummy_connector_payment - mod: private::errors - mod: private::types - mod: private::utils **errors.rs** Add: - function: private::fmt - function: private::switch - enum: pub::ErrorType - enum: pub::DummyConnectorErrors - impl: impl core::fmt::Display for DummyConnectorErrors - impl: impl common_utils::errors::ErrorSwitch<api_models::errors::types::ApiErrorResponse> for DummyConnectorErrors **types.rs** Add: - function: pub::new - function: private::fmt - function: pub::new - struct: pub::DummyConnectorPaymentRequest - struct: pub::DummyConnectorCard - struct: pub::DummyConnectorPaymentData - struct: pub::DummyConnectorPaymentResponse - enum: pub::Flow - enum: pub::DummyConnectorPaymentMethodData - enum: pub::DummyConnectorTransactionStatus - impl: impl FlowMetric for Flow - impl: impl DummyConnectorPaymentData - impl: impl std::fmt::Display for DummyConnectorTransactionStatus - impl: impl DummyConnectorPaymentResponse **utils.rs** Add: - function: pub::tokio_mock_sleep - function: pub::payment - function: private::store_payment_data
feat(router): add retrieve dispute evidence API (#1114)
Files to modify: **disputes.rs** Add: - struct: pub::DisputeEvidenceBlock - enum: pub::EvidenceType **files.rs** Add: - struct: pub::FileMetadataResponse **disputes.rs** Add: - struct: pub::DisputeEvidenceBlock - enum: pub::EvidenceType **transformers.rs** Add: - function: pub::get_dispute_evidence_block - function: pub::get_dispute_evidence_vec **app.rs** Modify existing code **disputes.rs** Add: - struct: pub::DisputeEvidenceBlock - enum: pub::EvidenceType **transformers.rs** Add: - function: pub::get_dispute_evidence_block - function: pub::get_dispute_evidence_vec **types.rs** Modify existing code
feat(connector): [DWOLLA] - Add template code (#8496) Co-authored-by: Vani Gupta <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **connector_enums.rs** Modify existing code **connector.rs** Modify existing code **connectors.rs** Add: - mod: pub::dwolla **dwolla.rs** Add: - function: pub::new - 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::Dwolla - impl: impl Dwolla - impl: impl api::Payment for Dwolla - impl: impl api::PaymentSession for Dwolla - impl: impl api::ConnectorAccessToken for Dwolla - impl: impl api::MandateSetup for Dwolla - impl: impl api::PaymentAuthorize for Dwolla - impl: impl api::PaymentSync for Dwolla - impl: impl api::PaymentCapture for Dwolla - impl: impl api::PaymentVoid for Dwolla - impl: impl api::Refund for Dwolla - impl: impl api::RefundExecute for Dwolla - impl: impl api::RefundSync for Dwolla - impl: impl api::PaymentToken for Dwolla - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Dwolla - impl: impl ConnectorCommonExt<Flow, Request, Response> for Dwolla - impl: impl ConnectorCommon for Dwolla - impl: impl ConnectorValidation for Dwolla - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Dwolla - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Dwolla - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Dwolla - impl: impl webhooks::IncomingWebhook for Dwolla - impl: impl ConnectorSpecifications for Dwolla - mod: pub::transformers **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::DwollaRouterData - struct: pub::DwollaPaymentsRequest - struct: pub::DwollaCard - struct: pub::DwollaAuthType - struct: pub::DwollaPaymentsResponse - struct: pub::DwollaRefundRequest - struct: pub::RefundResponse - struct: pub::DwollaErrorResponse - enum: pub::DwollaPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMajorUnit, T)> for DwollaRouterData<T> - impl: impl TryFrom<&DwollaRouterData<&PaymentsAuthorizeRouterData>> for DwollaPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for DwollaAuthType - impl: impl From<DwollaPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, DwollaPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&DwollaRouterData<&RefundsRouterData<F>>> for DwollaRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **default_implementations.rs** Modify existing code **default_implementations_v2.rs** Modify existing code **configs.rs** Modify existing code **connector.rs** Modify existing code **admin.rs** Modify existing code **api.rs** Modify existing code **transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::DwollaRouterData - struct: pub::DwollaPaymentsRequest - struct: pub::DwollaCard - struct: pub::DwollaAuthType - struct: pub::DwollaPaymentsResponse - struct: pub::DwollaRefundRequest - struct: pub::RefundResponse - struct: pub::DwollaErrorResponse - enum: pub::DwollaPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMajorUnit, T)> for DwollaRouterData<T> - impl: impl TryFrom<&DwollaRouterData<&PaymentsAuthorizeRouterData>> for DwollaPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for DwollaAuthType - impl: impl From<DwollaPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, DwollaPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&DwollaRouterData<&RefundsRouterData<F>>> for DwollaRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **dwolla.rs** Add: - function: pub::new - 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::Dwolla - impl: impl Dwolla - impl: impl api::Payment for Dwolla - impl: impl api::PaymentSession for Dwolla - impl: impl api::ConnectorAccessToken for Dwolla - impl: impl api::MandateSetup for Dwolla - impl: impl api::PaymentAuthorize for Dwolla - impl: impl api::PaymentSync for Dwolla - impl: impl api::PaymentCapture for Dwolla - impl: impl api::PaymentVoid for Dwolla - impl: impl api::Refund for Dwolla - impl: impl api::RefundExecute for Dwolla - impl: impl api::RefundSync for Dwolla - impl: impl api::PaymentToken for Dwolla - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Dwolla - impl: impl ConnectorCommonExt<Flow, Request, Response> for Dwolla - impl: impl ConnectorCommon for Dwolla - impl: impl ConnectorValidation for Dwolla - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Dwolla - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Dwolla - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Dwolla - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Dwolla - impl: impl webhooks::IncomingWebhook for Dwolla - impl: impl ConnectorSpecifications for Dwolla - mod: pub::transformers **main.rs** Add: - mod: private::dwolla **connector_auth.rs** Modify existing code
fix(router/webhooks): use api error response for returning errors from webhooks core (#1305)
Files to modify: **errors.rs** Modify existing code **transformers.rs** Modify existing code **api_error_response.rs** Modify existing code **webhooks.rs** Modify existing code **utils.rs** Add: - function: private::switch - trait: pub::WebhookApiErrorSwitch - impl: impl WebhookApiErrorSwitch<T> for errors::CustomResult<T, errors::ConnectorError>
refactor: Pass country and currency as json format in MCA (#656)
Files to modify: **admin.rs** Modify existing code **payment_methods.rs** Modify existing code **admin.rs** Modify existing code **cards.rs** Modify existing code
feat(core/connector): introduce authentication token flow and add sepa bankdebit for nordea (#8133)
Files to modify: **admin.rs** Modify existing code **connector_enums.rs** Modify existing code **lib.rs** Add: - function: pub::now_rfc7231_http_date **connector.rs** Modify existing code **nordea.rs** Remove: - function: private::get_auth_header Add: - function: pub::generate_digest_from_request - function: private::format_private_key - function: private::generate_signature - function: private::get_form_urlencoded_payload - function: private::build_request - function: private::get_http_method - function: private::get_http_method - function: private::build_request - function: private::build_request - function: private::build_request - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - function: private::authentication_token_for_token_creation - struct: private::SignatureParams - impl: impl api::ConnectorAuthenticationToken for Nordea - impl: impl api::PaymentsPreProcessing for Nordea - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Nordea - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Nordea - impl: impl ConnectorSpecifications for Nordea - mod: private::requests - mod: private::responses **requests.rs** Add: - struct: pub::NordeaRouterData - struct: pub::NordeaOAuthRequest - struct: pub::NordeaOAuthExchangeRequest - struct: pub::AccountNumber - struct: pub::CreditorAccountReference - struct: pub::NordeaAddress - struct: pub::CreditorBank - struct: pub::CreditorAccount - struct: pub::DebitorAccount - struct: pub::InstructedAmount - struct: pub::RecurringInformation - struct: pub::ThirdPartyMessages - struct: pub::NordeaPaymentsRequest - struct: pub::NordeaPaymentsConfirmRequest - enum: pub::GrantType - enum: pub::AccessScope - enum: pub::AccountType - enum: pub::RecurrenceType - enum: pub::FundsAvailabilityRequest - enum: pub::PaymentsUrgency - enum: pub::TppCategory - enum: pub::TppCode - enum: pub::NordeaAuthenticationMethod - enum: pub::NordeaConfirmLanguage **responses.rs** Add: - struct: pub::NordeaOAuthExchangeResponse - struct: pub::NordeaGroupHeader - struct: pub::NordeaResponseLinks - struct: pub::TransactionFee - struct: pub::BankFee - struct: pub::ExchangeRate - struct: pub::MessagePagination - struct: pub::NordeaPaymentsInitiateResponseData - struct: pub::NordeaPaymentsInitiateResponse - struct: pub::NordeaPaymentsConfirmErrorObject - struct: pub::NordeaPaymentsResponseWrapper - struct: pub::NordeaPaymentsConfirmResponse - struct: pub::NordeaOriginalRequest - struct: pub::NordeaFailures - struct: pub::NordeaErrorBody - struct: pub::NordeaErrorResponse - enum: pub::NordeaPaymentStatus - enum: pub::FeesType - enum: pub::ChargeBearer **transformers.rs** Remove: - function: private::try_from - struct: pub::NordeaRouterData - struct: pub::NordeaPaymentsRequest - struct: pub::NordeaCard - impl: impl TryFrom<&NordeaRouterData<&PaymentsAuthorizeRouterData>> for NordeaPaymentsRequest **default_implementations.rs** Add: - impl: impl ConnectorAuthenticationToken for connectors::DummyConnector<T> - impl: impl ConnectorIntegration< AccessTokenAuthentication, AccessTokenAuthenticationRequestData, AccessTokenAuthenticationResponse, > for connectors::DummyConnector<T> **default_implementations_v2.rs** Modify existing code **utils.rs** Add: - function: private::get_ip_address **router_data.rs** Add: - struct: pub::AccessTokenAuthenticationResponse **router_data_v2.rs** Modify existing code **flow_common_types.rs** Add: - struct: pub::AuthenticationTokenFlowData **access_token_auth.rs** Add: - struct: pub::AccessTokenAuthentication **router_request_types.rs** Add: - function: private::try_from - function: private::try_from - struct: pub::AccessTokenAuthenticationRequestData - impl: impl TryFrom<router_data::ConnectorAuthType> for AccessTokenAuthenticationRequestData - impl: impl TryFrom<( router_data::ConnectorAuthType, Option<AccessTokenAuthenticationResponse>, )> for AccessTokenRequestData **types.rs** Modify existing code **api.rs** Add: - trait: private::ConnectorAuthenticationToken - trait: pub::ConnectorAuthenticationTokenV2 **connector_integration_interface.rs** Add: - function: private::authentication_token_for_token_creation **connector_integration_v2.rs** Modify existing code **conversion_impls.rs** Add: - function: private::from_old_router_data - function: private::to_old_router_data - impl: impl RouterDataConversion<T, Req, Resp> for AuthenticationTokenFlowData **types.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code **connector_validation.rs** Modify existing code **payments.rs** Modify existing code **access_token.rs** Add: - function: pub::execute_authentication_token **approve_flow.rs** Modify existing code **authorize_flow.rs** Modify existing code **cancel_flow.rs** Modify existing code **cancel_post_capture_flow.rs** Modify existing code **capture_flow.rs** Modify existing code **complete_authorize_flow.rs** Modify existing code **incremental_authorization_flow.rs** Modify existing code **post_session_tokens_flow.rs** Modify existing code **psync_flow.rs** Modify existing code **reject_flow.rs** Modify existing code **session_flow.rs** Modify existing code **session_update_flow.rs** Modify existing code **setup_mandate_flow.rs** Modify existing code **update_metadata_flow.rs** Modify existing code **refunds.rs** Modify existing code **refunds_v2.rs** Modify existing code **api.rs** Add: - trait: private::ConnectorAuthenticationToken - trait: pub::ConnectorAuthenticationTokenV2 **types.rs** Modify existing code **api.rs** Add: - trait: private::ConnectorAuthenticationToken - trait: pub::ConnectorAuthenticationTokenV2 **connector_mapping.rs** Modify existing code **connector_transformers.rs** Modify existing code **connector_auth.rs** Modify existing code
feat(connector): introduce setup mandate flow for payload (#9110)
Files to modify: **payload.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request **transformers.rs** Remove: - impl: impl &item.data.request Add: - function: private::build_payload_cards_request_data - function: private::try_from - impl: impl TryFrom<&SetupMandateRouterData> for requests::PayloadCardsRequestData - impl: impl &item
refactor(core): remove connector response table and use payment_attempt instead (#2644)
Files to modify: **payment_attempt.rs** Modify existing code **connector_response.rs** Remove: - function: pub::apply_changeset - function: private::from - struct: pub::ConnectorResponseNew - struct: pub::ConnectorResponse - struct: pub::ConnectorResponseUpdateInternal - enum: pub::ConnectorResponseUpdate - impl: impl ConnectorResponseUpdate - impl: impl From<ConnectorResponseUpdate> for ConnectorResponseUpdateInternal **kv.rs** Remove: - struct: pub::ConnectorResponseUpdateMems **lib.rs** Remove: - mod: pub::connector_response **payment_attempt.rs** Modify existing code **query.rs** Remove: - mod: pub::connector_response **schema.rs** Modify existing code **lib.rs** Remove: - mod: pub::connector_response **payments.rs** Modify existing code **helpers.rs** Remove: - function: pub::get_or_insert_connector_response - function: pub::get_connector_response **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** Remove: - function: pub::make_connector_response **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_start.rs** Modify existing code **payment_status.rs** Modify existing code **payment_update.rs** Modify existing code **transformers.rs** Modify existing code **db.rs** Remove: - mod: pub::connector_response **connector_response.rs** Remove: - function: pub::apply_changeset - function: private::from - struct: pub::ConnectorResponseNew - struct: pub::ConnectorResponse - struct: pub::ConnectorResponseUpdateInternal - enum: pub::ConnectorResponseUpdate - impl: impl ConnectorResponseUpdate - impl: impl From<ConnectorResponseUpdate> for ConnectorResponseUpdateInternal **storage.rs** Remove: - mod: pub::connector_response **connector_response.rs** Remove: - function: pub::apply_changeset - function: private::from - struct: pub::ConnectorResponseNew - struct: pub::ConnectorResponse - struct: pub::ConnectorResponseUpdateInternal - enum: pub::ConnectorResponseUpdate - impl: impl ConnectorResponseUpdate - impl: impl From<ConnectorResponseUpdate> for ConnectorResponseUpdateInternal **kv.rs** Remove: - struct: pub::ConnectorResponseUpdateMems **connector_response.rs** Remove: - function: pub::apply_changeset - function: private::from - struct: pub::ConnectorResponseNew - struct: pub::ConnectorResponse - struct: pub::ConnectorResponseUpdateInternal - enum: pub::ConnectorResponseUpdate - impl: impl ConnectorResponseUpdate - impl: impl From<ConnectorResponseUpdate> for ConnectorResponseUpdateInternal **lib.rs** Remove: - mod: pub::connector_response **mock_db.rs** Modify existing code **payment_attempt.rs** Modify existing code
refactor(router): move db models into separate crate and refactoring around it (#125)
Files to modify: **transformers.rs** Modify existing code **admin.rs** Modify existing code **customers.rs** Modify existing code **errors.rs** Remove: - enum: pub::DatabaseError Add: - function: pub::is_db_not_found - function: pub::is_db_unique_violation **utils.rs** Modify existing code **mandate.rs** Modify existing code **cards.rs** Modify existing code **payments.rs** Modify existing code **helpers.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_response.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 **transformers.rs** Modify existing code **refunds.rs** Modify existing code **validator.rs** Modify existing code **webhooks.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 **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 **temp_card.rs** Modify existing code **lib.rs** Remove: - mod: pub::schema **consumer.rs** Modify existing code **payment_sync.rs** Modify existing code **mandates.rs** Modify existing code **payments.rs** Modify existing code **refunds.rs** Modify existing code **storage.rs** Remove: - function: private::from - function: private::build - function: private::from - function: private::build - struct: pub::DieselArray - struct: pub::OptionalDieselArray - impl: impl From<DieselArray<T>> for Vec<T> - impl: impl Queryable<Array<Nullable<U>>, Pg> for DieselArray<T> - impl: impl From<OptionalDieselArray<T>> for Option<Vec<T>> - impl: impl Queryable<Nullable<Array<Nullable<U>>>, Pg> for OptionalDieselArray<T> - mod: pub::diesel_impl **address.rs** Modify existing code **configs.rs** Modify existing code **connector_response.rs** Modify existing code **customers.rs** Modify existing code **enums.rs** Remove: - enum: pub::AttemptStatus - enum: pub::AuthenticationType - enum: pub::CaptureMethod - enum: pub::ConnectorType - enum: pub::Currency - enum: pub::EventClass - enum: pub::EventObjectType - enum: pub::EventType - enum: pub::IntentStatus - enum: pub::FutureUsage - enum: pub::MerchantStorageScheme - enum: pub::PaymentFlow - enum: pub::PaymentMethodIssuerCode - enum: pub::PaymentMethodSubType - enum: pub::PaymentMethodType - enum: pub::WalletIssuer - enum: pub::ProcessTrackerStatus - enum: pub::RefundStatus - enum: pub::RefundType - enum: pub::RoutingAlgorithm - enum: pub::MandateType - enum: pub::MandateStatus - mod: pub::diesel_exports **ephemeral_key.rs** Remove: - struct: pub::EphemeralKeyNew - struct: pub::EphemeralKey **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 **query.rs** Remove: - mod: private::address - mod: private::configs - mod: private::connector_response - mod: private::customers - mod: private::events - mod: private::generics - mod: private::locker_mock_up - mod: private::mandate - mod: private::merchant_account - mod: private::merchant_connector_account - mod: private::payment_attempt - mod: private::payment_intent - mod: private::payment_method - mod: private::process_tracker - mod: private::refund - mod: private::temp_card **payment_intent.rs** Modify existing code **refund.rs** Modify existing code **temp_card.rs** Modify existing code **transformers.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 **dispute.rs** Modify existing code **enums.rs** Remove: - enum: pub::AttemptStatus - enum: pub::AuthenticationType - enum: pub::CaptureMethod - enum: pub::ConnectorType - enum: pub::Currency - enum: pub::EventClass - enum: pub::EventObjectType - enum: pub::EventType - enum: pub::IntentStatus - enum: pub::FutureUsage - enum: pub::MerchantStorageScheme - enum: pub::PaymentFlow - enum: pub::PaymentMethodIssuerCode - enum: pub::PaymentMethodSubType - enum: pub::PaymentMethodType - enum: pub::WalletIssuer - enum: pub::ProcessTrackerStatus - enum: pub::RefundStatus - enum: pub::RefundType - enum: pub::RoutingAlgorithm - enum: pub::MandateType - enum: pub::MandateStatus - mod: pub::diesel_exports **ephemeral_key.rs** Remove: - struct: pub::EphemeralKeyNew - struct: pub::EphemeralKey **errors.rs** Remove: - enum: pub::DatabaseError Add: - function: pub::is_db_not_found - function: pub::is_db_unique_violation **events.rs** Modify existing code **lib.rs** Remove: - mod: pub::schema **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 **query.rs** Remove: - mod: private::address - mod: private::configs - mod: private::connector_response - mod: private::customers - mod: private::events - mod: private::generics - mod: private::locker_mock_up - mod: private::mandate - mod: private::merchant_account - mod: private::merchant_connector_account - mod: private::payment_attempt - mod: private::payment_intent - mod: private::payment_method - mod: private::process_tracker - mod: private::refund - mod: private::temp_card **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** Remove: - struct: pub::ExecuteQuery - struct: pub::RawQuery Add: - function: private::default - struct: pub::ExecuteQuery - struct: pub::RawQuery - impl: impl Default for ExecuteQuery<R> **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 **temp_card.rs** Modify existing code **refund.rs** Modify existing code **schema.rs** Modify existing code **temp_card.rs** Modify existing code
feat(connector): add dispute webhooks for Stripe (#918)
Files to modify: **disputes.rs** Modify existing code **enums.rs** Modify existing code **custom_serde.rs** Add: - function: pub::serialize - function: pub::deserialize - function: pub::serialize - function: pub::deserialize - mod: pub::timestamp - mod: pub::option **adyen.rs** Modify existing code **transformers.rs** Modify existing code **checkout.rs** Modify existing code **transformers.rs** Modify existing code **stripe.rs** Modify existing code **transformers.rs** Modify existing code **disputes.rs** Modify existing code **dispute.rs** Modify existing code **schema.rs** Modify existing code
feat(connector): [Fiserv] Currency Unit Conversion (#2715)
Files to modify: **fiserv.rs** Add: - function: private::get_currency_unit **transformers.rs** Add: - function: private::try_from - struct: pub::FiservRouterData - impl: impl TryFrom<( &types::api::CurrencyUnit, types::storage::enums::Currency, i64, T, )> for FiservRouterData<T>
feat(process_tracker): Task implementation for psync payments (#7178) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payments.rs** Modify existing code **process_tracker.rs** Modify existing code **lib.rs** Add: - function: private::from - impl: impl From<&payments::payment_attempt::AttemptAmountDetailsSetter> for api_models::payments::PaymentAttemptAmountDetails **merchant_connector_account.rs** Add: - function: pub::get_account_reference_id_using_payment_merchant_connector_account_id **payments.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_intent.rs** Modify existing code **errors.rs** Modify existing code **payment_attempt_record.rs** Modify existing code **proxy_payments_intent.rs** Modify existing code **revenue_recovery.rs** Add: - mod: pub::api **api.rs** Add: - function: pub::call_psync_api - function: pub::call_proxy_api - function: pub::update_payment_intent_api - function: pub::record_internal_attempt_api **transformers.rs** Remove: - impl: impl ForeignFrom<AttemptStatus> for PcrAttemptStatus Add: - impl: impl ForeignFrom<AttemptStatus> for RevenueRecoveryPaymentsAttemptStatus **types.rs** Add: - function: private::payment_sync_call - enum: pub::RevenueRecoveryPaymentsAttemptStatus **webhooks.rs** Remove: - mod: private::recovery_incoming Add: - mod: pub::recovery_incoming **recovery_incoming.rs** Add: - function: pub::get_revenue_recovery_attempt **revenue_recovery.rs** Add: - mod: pub::api **revenue_recovery.rs** Add: - mod: pub::api **errors.rs** Modify existing code
feat(router): add an api to migrate the apple pay certificates from connector metadata to `connector_wallets_details` column in merchant connector account (#4790) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <[email protected]>
Files to modify: **apple_pay_certificates_migration.rs** Add: - struct: pub::ApplePayCertificatesMigrationResponse - struct: pub::ApplePayCertificatesMigrationRequest - impl: impl common_utils::events::ApiEventMetric for ApplePayCertificatesMigrationRequest **events.rs** Add: - mod: pub::apple_pay_certificates_migration **apple_pay_certificates_migration.rs** Add: - struct: pub::ApplePayCertificatesMigrationResponse - struct: pub::ApplePayCertificatesMigrationRequest - impl: impl common_utils::events::ApiEventMetric for ApplePayCertificatesMigrationRequest **lib.rs** Add: - mod: pub::apple_pay_certificates_migration **payments.rs** Add: - struct: pub::PaymentProcessingDetails - enum: pub::PaymentProcessingDetailsAt **enums.rs** Remove: - enum: pub::ApplePayFlow **events.rs** Add: - mod: pub::apple_pay_certificates_migration **connector.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **generics.rs** Modify existing code **schema.rs** Modify existing code **payment_method_data.rs** Add: - enum: pub::ApplePayFlow **router_data.rs** Modify existing code **openapi.rs** Modify existing code **core.rs** Add: - mod: pub::apple_pay_certificates_migration **admin.rs** Modify existing code **apple_pay_certificates_migration.rs** Add: - struct: pub::ApplePayCertificatesMigrationResponse - struct: pub::ApplePayCertificatesMigrationRequest - impl: impl common_utils::events::ApiEventMetric for ApplePayCertificatesMigrationRequest **transformers.rs** Modify existing code **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 **payments.rs** Add: - struct: pub::PaymentProcessingDetails - enum: pub::PaymentProcessingDetailsAt **session_flow.rs** Modify existing code **helpers.rs** Add: - function: pub::get_connector_wallets_details - function: pub::get_encrypted_apple_pay_connector_wallets_details **tokenization.rs** Modify existing code **transformers.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code **utils.rs** Modify existing code **kafka_store.rs** Add: - function: private::update_multiple_merchant_connector_accounts **merchant_connector_account.rs** Modify existing code **lib.rs** Add: - mod: pub::apple_pay_certificates_migration **routes.rs** Add: - mod: pub::apple_pay_certificates_migration **admin.rs** Modify existing code **app.rs** Add: - function: pub::server - impl: impl ApplePayCertificatesMigration **apple_pay_certificates_migration.rs** Add: - struct: pub::ApplePayCertificatesMigrationResponse - struct: pub::ApplePayCertificatesMigrationRequest - impl: impl common_utils::events::ApiEventMetric for ApplePayCertificatesMigrationRequest **lock_utils.rs** Modify existing code **types.rs** Modify existing code **verify_connector.rs** Modify existing code **merchant_connector_account.rs** Modify existing code **payments.rs** Add: - struct: pub::PaymentProcessingDetails - enum: pub::PaymentProcessingDetailsAt **utils.rs** Modify existing code **aci.rs** Modify existing code **utils.rs** Modify existing code **types.rs** Modify existing code **errors.rs** Add: - function: private::from - impl: impl From<diesel::result::Error> for StorageError
feat: calculate surcharge for customer saved card list (#3039) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **payment_methods.rs** Add: - function: private::from - function: private::from - struct: pub::SurchargePercentage - enum: pub::SurchargeResponse - impl: impl From<Surcharge> for SurchargeResponse - impl: impl From<Percentage<SURCHARGE_PERCENTAGE_PRECISION_LENGTH>> for SurchargePercentage **cards.rs** Add: - function: pub::call_surcharge_decision_management_for_saved_card **surcharge_decision_configs.rs** Modify existing code **payments.rs** Modify existing code **helpers.rs** Modify existing code **payment_confirm.rs** Remove: - function: pub::validate_request_surcharge_details_with_session_surcharge_details - impl: impl PaymentConfirm **payment_create.rs** Modify existing code **payment_update.rs** Modify existing code **types.rs** Add: - enum: pub::SurchargeKey **utils.rs** Remove: - function: pub::persist_individual_surcharge_details_in_redis - function: pub::get_individual_surcharge_detail_from_redis **openapi.rs** Modify existing code **api.rs** Modify existing code
fix(wasm): [Adyen] update connector account configs and integration bugs (#3910)
Files to modify: **common_config.rs** Modify existing code **connector.rs** Modify existing code **response_modifier.rs** Modify existing code **transformer.rs** Modify existing code **enums.rs** Modify existing code **adyen.rs** Remove: - function: private::build_request **transformers.rs** Modify existing code
fix(router): Convert ephemeral to client secret auth list payment_method_customer (#1602) Co-authored-by: Sahkal Poddar <[email protected]> Co-authored-by: Abhishek Marrivagu <[email protected]> Co-authored-by: Narayan Bhat <[email protected]>
Files to modify: **customers.rs** Modify existing code **cards.rs** Add: - function: pub::do_list_customer_pm_fetch_customer_if_not_passed **openapi.rs** Modify existing code **app.rs** Modify existing code **payment_methods.rs** Modify existing code **authentication.rs** Modify existing code
feat(connector): [Square] Add template code for connector Square (#1834)
Files to modify: **enums.rs** Modify existing code **settings.rs** Modify existing code **connector.rs** Add: - mod: pub::square **square.rs** Add: - function: private::build_headers - function: private::id - function: private::common_get_content_type - function: private::base_url - function: private::validate_auth_type - 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::Square - impl: impl api::Payment for Square - impl: impl api::PaymentSession for Square - impl: impl api::ConnectorAccessToken for Square - impl: impl api::PreVerify for Square - impl: impl api::PaymentAuthorize for Square - impl: impl api::PaymentSync for Square - impl: impl api::PaymentCapture for Square - impl: impl api::PaymentVoid for Square - impl: impl api::Refund for Square - impl: impl api::RefundExecute for Square - impl: impl api::RefundSync for Square - impl: impl api::PaymentToken for Square - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Square - impl: impl ConnectorCommonExt<Flow, Request, Response> for Square - impl: impl ConnectorCommon for Square - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Square - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Square - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Square - impl: impl api::IncomingWebhook for Square - mod: private::transformers **transformers.rs** Add: - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::SquarePaymentsRequest - struct: pub::SquareCard - struct: pub::SquareAuthType - struct: pub::SquarePaymentsResponse - struct: pub::SquareRefundRequest - struct: pub::RefundResponse - struct: pub::SquareErrorResponse - enum: pub::SquarePaymentStatus - enum: pub::RefundStatus - impl: impl TryFrom<&types::PaymentsAuthorizeRouterData> for SquarePaymentsRequest - impl: impl TryFrom<&types::ConnectorAuthType> for SquareAuthType - impl: impl From<SquarePaymentStatus> for enums::AttemptStatus - impl: impl TryFrom<types::ResponseRouterData<F, SquarePaymentsResponse, T, types::PaymentsResponseData>> for types::RouterData<F, T, types::PaymentsResponseData> - impl: impl TryFrom<&types::RefundsRouterData<F>> for SquareRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<types::RefundsResponseRouterData<api::Execute, RefundResponse>> for types::RefundsRouterData<api::Execute> - impl: impl TryFrom<types::RefundsResponseRouterData<api::RSync, RefundResponse>> for types::RefundsRouterData<api::RSync> **flows.rs** Modify existing code **api.rs** Modify existing code **main.rs** Add: - mod: private::square **square.rs** Add: - function: private::build_headers - function: private::id - function: private::common_get_content_type - function: private::base_url - function: private::validate_auth_type - 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::Square - impl: impl api::Payment for Square - impl: impl api::PaymentSession for Square - impl: impl api::ConnectorAccessToken for Square - impl: impl api::PreVerify for Square - impl: impl api::PaymentAuthorize for Square - impl: impl api::PaymentSync for Square - impl: impl api::PaymentCapture for Square - impl: impl api::PaymentVoid for Square - impl: impl api::Refund for Square - impl: impl api::RefundExecute for Square - impl: impl api::RefundSync for Square - impl: impl api::PaymentToken for Square - impl: impl ConnectorIntegration< api::PaymentMethodToken, types::PaymentMethodTokenizationData, types::PaymentsResponseData, > for Square - impl: impl ConnectorCommonExt<Flow, Request, Response> for Square - impl: impl ConnectorCommon for Square - impl: impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::AccessTokenAuth, types::AccessTokenRequestData, types::AccessToken> for Square - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Void, types::PaymentsCancelData, types::PaymentsResponseData> for Square - impl: impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsResponseData> for Square - impl: impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponseData> for Square - impl: impl api::IncomingWebhook for Square - mod: private::transformers **connector_auth.rs** Modify existing code
feat(connector): [Novalnet] Add supported currencies (#6547)
Files to modify: **enums.rs** Modify existing code **payment_connector_required_fields.rs** Modify existing code
fix(connector): [nuvei] pass state field in the request, network handling for proxy flow (#9351) Co-authored-by: Vani Gupta <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **enums.rs** Add: - enum: pub::AustraliaStatesAbbreviation - enum: pub::JapanStatesAbbreviation - enum: pub::NewZealandStatesAbbreviation - enum: pub::SingaporeStatesAbbreviation - enum: pub::ThailandStatesAbbreviation - enum: pub::PhilippinesStatesAbbreviation - enum: pub::IndiaStatesAbbreviation **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** Add: - function: private::foreign_try_from - function: private::foreign_try_from - function: private::foreign_try_from - function: private::foreign_try_from - function: private::foreign_try_from - function: private::foreign_try_from - function: private::foreign_try_from - function: private::normalize_state - function: pub::parse_state_enum - impl: impl ForeignTryFrom<String> for AustraliaStatesAbbreviation - impl: impl ForeignTryFrom<String> for JapanStatesAbbreviation - impl: impl ForeignTryFrom<String> for ThailandStatesAbbreviation - impl: impl ForeignTryFrom<String> for NewZealandStatesAbbreviation - impl: impl ForeignTryFrom<String> for SingaporeStatesAbbreviation - impl: impl ForeignTryFrom<String> for PhilippinesStatesAbbreviation - impl: impl ForeignTryFrom<String> for IndiaStatesAbbreviation
feat(router): add unified_code, unified_message in payments response (#2918)
Files to modify: **gsm.rs** Modify existing code **payments.rs** Modify existing code **payment_attempt.rs** Modify existing code **gsm.rs** Modify existing code **payment_attempt.rs** Modify existing code **schema.rs** Modify existing code **gsm.rs** Modify existing code **helpers.rs** Add: - function: pub::get_gsm_record **payment_response.rs** Modify existing code **retry.rs** Modify existing code **transformers.rs** Modify existing code **transformers.rs** Modify existing code **payment_sync.rs** Modify existing code **payment_attempt.rs** Modify existing code **payment_attempt.rs** Modify existing code
feat(analytics): add `sessionized_metrics` for disputes analytics (#6573) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Files to modify: **clickhouse.rs** Modify existing code **accumulators.rs** Modify existing code **core.rs** Modify existing code **metrics.rs** Add: - mod: private::sessionized_metrics **dispute_status_metric.rs** Add: - function: private::load_metrics - struct: pub::DisputeStatusMetric - impl: impl super::DisputeMetric<T> for DisputeStatusMetric **mod.rs** Add: - mod: private::dispute_status_metric - mod: private::total_amount_disputed - mod: private::total_dispute_lost_amount **total_amount_disputed.rs** Add: - function: private::load_metrics - struct: pub::TotalAmountDisputed - impl: impl super::DisputeMetric<T> for TotalAmountDisputed **total_dispute_lost_amount.rs** Add: - function: private::load_metrics - struct: pub::TotalDisputeLostAmount - impl: impl super::DisputeMetric<T> for TotalDisputeLostAmount **sqlx.rs** Modify existing code **types.rs** Modify existing code **analytics.rs** Add: - struct: pub::DisputesAnalyticsMetadata - struct: pub::DisputesMetricsResponse **disputes.rs** Modify existing code **events.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for DisputesMetricsResponse<T>
feat(router): add /retrieve api for relay (#6918)
Files to modify: **relay.rs** Add: - struct: pub::RelayRetrieveBody **relay.rs** Add: - struct: pub::RelayRetrieveBody **relay.rs** Add: - struct: pub::RelayRetrieveBody **relay.rs** Add: - struct: pub::RelayRetrieveBody **relay.rs** Add: - struct: pub::RelayRetrieveBody **app.rs** Modify existing code **lock_utils.rs** Modify existing code **relay.rs** Add: - struct: pub::RelayRetrieveBody **types.rs** Modify existing code
fix(connector): handle unexpected error response from bluesnap connector (#7120) Co-authored-by: Anurag Singh <[email protected]> Co-authored-by: Gnanasundari24 <[email protected]>
Files to modify: **bluesnap.rs** Modify existing code