mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +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:
@ -570,6 +570,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payments::CustomerDetailsResponse,
|
||||
api_models::payments::OpenBankingData,
|
||||
api_models::payments::OpenBankingSessionToken,
|
||||
api_models::payments::PaymentsDynamicTaxCalculationRequest,
|
||||
)),
|
||||
modifiers(&SecurityAddon)
|
||||
)]
|
||||
|
||||
@ -545,3 +545,21 @@ pub fn payments_external_authentication() {}
|
||||
security(("publishable_key" = []))
|
||||
)]
|
||||
pub fn payments_complete_authorize() {}
|
||||
|
||||
/// Dynamic Tax Calculation
|
||||
///
|
||||
///
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/payments/{payment_id}/calculate_tax",
|
||||
request_body=PaymentsDynamicTaxCalculationRequest,
|
||||
responses(
|
||||
(status = 200, description = "Tax Calculation is done", body = PaymentsDynamicTaxCalculationResponse),
|
||||
(status = 400, description = "Missing mandatory fields")
|
||||
),
|
||||
tag = "Payments",
|
||||
operation_id = "Create Tax Calculation for a Payment",
|
||||
security(("publishable_key" = []))
|
||||
)]
|
||||
|
||||
pub fn payments_dynamic_tax_calculation() {}
|
||||
|
||||
Reference in New Issue
Block a user