feat(core): Add Support for Payments Dynamic Tax Calculation Based on Shipping Address (#5619)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2024-09-06 19:08:15 +05:30
committed by GitHub
parent d3a1703bf5
commit a03ad53e43
75 changed files with 2932 additions and 1239 deletions

View File

@ -135,7 +135,7 @@ pub enum Connector {
Square,
Stax,
Stripe,
// Taxjar,
Taxjar,
Threedsecureio,
Trustpay,
Tsys,
@ -215,7 +215,7 @@ impl Connector {
// Add Separate authentication support for connectors
// | Self::Novalnet
// | Self::Nexixpay
// | Self::Taxjar
// | Self::Fiuu
| Self::Adyen
| Self::Adyenplatform
| Self::Airwallex
@ -264,6 +264,7 @@ impl Connector {
| Self::Shift4
| Self::Square
| Self::Stax
| Self::Taxjar
| Self::Trustpay
| Self::Tsys
| Self::Volt
@ -415,6 +416,26 @@ pub enum FrmConnectors {
Riskified,
}
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
PartialEq,
serde::Serialize,
serde::Deserialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum TaxConnectors {
Taxjar,
}
#[derive(
Clone, Debug, serde::Deserialize, serde::Serialize, strum::Display, strum::EnumString, ToSchema,
)]
@ -656,6 +677,10 @@ pub fn convert_authentication_connector(connector_name: &str) -> Option<Authenti
AuthenticationConnectors::from_str(connector_name).ok()
}
pub fn convert_tax_connector(connector_name: &str) -> Option<TaxConnectors> {
TaxConnectors::from_str(connector_name).ok()
}
#[derive(
Clone,
Debug,