mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(business_profile): add tax_connector_id column in business_profile table (#5576)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: swangi-kumari <swangi.12015941@lpu.in> Co-authored-by: Swangi Kumari <85639103+swangi-kumari@users.noreply.github.com>
This commit is contained in:
@ -3501,6 +3501,8 @@ impl BusinessProfileCreateBridge for api::BusinessProfileCreate {
|
||||
.or(Some(false)),
|
||||
outgoing_webhook_custom_http_headers: outgoing_webhook_custom_http_headers
|
||||
.map(Into::into),
|
||||
tax_connector_id: self.tax_connector_id,
|
||||
is_tax_connector_enabled: self.is_tax_connector_enabled,
|
||||
always_collect_billing_details_from_wallet_connector: self
|
||||
.always_collect_billing_details_from_wallet_connector,
|
||||
always_collect_shipping_details_from_wallet_connector: self
|
||||
@ -3605,6 +3607,8 @@ impl BusinessProfileCreateBridge for api::BusinessProfileCreate {
|
||||
.or(Some(common_utils::consts::DEFAULT_ORDER_FULFILLMENT_TIME)),
|
||||
order_fulfillment_time_origin: self.order_fulfillment_time_origin,
|
||||
default_fallback_routing: None,
|
||||
tax_connector_id: self.tax_connector_id,
|
||||
is_tax_connector_enabled: self.is_tax_connector_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -3871,6 +3875,8 @@ impl BusinessProfileUpdateBridge for api::BusinessProfileUpdate {
|
||||
.always_collect_billing_details_from_wallet_connector,
|
||||
always_collect_shipping_details_from_wallet_connector: self
|
||||
.always_collect_shipping_details_from_wallet_connector,
|
||||
tax_connector_id: self.tax_connector_id,
|
||||
is_tax_connector_enabled: self.is_tax_connector_enabled,
|
||||
},
|
||||
)))
|
||||
}
|
||||
|
||||
@ -166,6 +166,8 @@ impl ForeignTryFrom<domain::BusinessProfile> for BusinessProfileResponse {
|
||||
.always_collect_shipping_details_from_wallet_connector,
|
||||
is_connector_agnostic_mit_enabled: item.is_connector_agnostic_mit_enabled,
|
||||
outgoing_webhook_custom_http_headers,
|
||||
tax_connector_id: item.tax_connector_id,
|
||||
is_tax_connector_enabled: item.is_tax_connector_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -227,6 +229,8 @@ impl ForeignTryFrom<domain::BusinessProfile> for BusinessProfileResponse {
|
||||
outgoing_webhook_custom_http_headers,
|
||||
order_fulfillment_time,
|
||||
order_fulfillment_time_origin: item.order_fulfillment_time_origin,
|
||||
tax_connector_id: item.tax_connector_id,
|
||||
is_tax_connector_enabled: item.is_tax_connector_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -345,5 +349,7 @@ pub async fn create_business_profile_from_merchant_account(
|
||||
.always_collect_shipping_details_from_wallet_connector
|
||||
.or(Some(false)),
|
||||
outgoing_webhook_custom_http_headers: outgoing_webhook_custom_http_headers.map(Into::into),
|
||||
tax_connector_id: request.tax_connector_id,
|
||||
is_tax_connector_enabled: request.is_tax_connector_enabled,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user