feat(payment_methods_list): add is_tax_connector_enabled boolean value in payment_methods_list call response (#5707)

Co-authored-by: Sagnik Mitra <sagnik.mitra@sagnikmitra-JNWPH6GQ9R.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sagnik Mitra
2024-09-10 13:14:07 +05:30
committed by GitHub
parent 933cef425f
commit 3a5fb532de
17 changed files with 99 additions and 2 deletions

View File

@ -1482,6 +1482,9 @@ pub struct PaymentMethodListResponse {
/// flag that indicates whether to collect billing details from wallets or from the customer
pub collect_billing_details_from_wallets: Option<bool>,
/// flag that indicates whether to calculate tax on the order amount
pub is_tax_calculation_enabled: bool,
}
#[derive(Eq, PartialEq, Hash, Debug, serde::Deserialize, ToSchema)]

View File

@ -560,6 +560,9 @@ pub struct PaymentsRequest {
example = "Custom_Order_id_123"
)]
pub merchant_order_reference_id: Option<String>,
/// Whether to calculate tax for this payment intent
pub skip_external_tax_calculation: Option<bool>,
}
/// Checks if the inner values of two options are equal