mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user