-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(business_profile): add tax_connector_id column in business_profile table #5576
Conversation
crates/common_enums/src/enums.rs
Outdated
@@ -485,6 +486,8 @@ pub enum ConnectorType { | |||
PaymentMethodAuth, | |||
/// 3DS Authentication Service Providers | |||
AuthenticationProcessor, | |||
/// Tax Calculators | |||
TaxCalculator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TaxCalculator, | |
TaxProcessor |
crates/common_enums/src/enums.rs
Outdated
Taxjar, | ||
Avalara, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only add 1 which we are integrating.
Taxjar, | |
Avalara, | |
Taxjar, |
crates/router/src/core/admin.rs
Outdated
@@ -1266,7 +1266,8 @@ impl<'a> ConnectorAuthTypeAndMetadataValidation<'a> { | |||
| api_enums::Connector::DummyConnector4 | |||
| api_enums::Connector::DummyConnector5 | |||
| api_enums::Connector::DummyConnector6 | |||
| api_enums::Connector::DummyConnector7 => { | |||
| api_enums::Connector::DummyConnector7 | |||
| api_enums::Connector::Taxjar => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be under dummy_connector
feature flag
4dd3de2
to
6068625
Compare
6068625
to
bbe33cb
Compare
bbe33cb
to
8cf6bbb
Compare
b6d70ba
to
8cf6bbb
Compare
4fcb36b
to
c40dac9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ImSagnik007 Can you please add the relevant test cases in PR description please?
@@ -359,6 +364,8 @@ impl BusinessProfileUpdateInternal { | |||
frm_routing_algorithm_id, | |||
payout_routing_algorithm_id, | |||
default_fallback_routing, | |||
// default_fallback_routing, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please remove this comment?
1d4f809
to
e6a454a
Compare
|
||
/// Indicates if tax_calculator connector is enabled or not. | ||
/// If set to `true` tax_connector_id will be checked. | ||
pub is_tax_connector_enabled: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please make this an option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a serde default here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
@@ -0,0 +1,3 @@ | |||
-- Your SQL goes here | |||
ALTER TABLE business_profile ADD COLUMN IF NOT EXISTS tax_connector_id VARCHAR(64); | |||
ALTER TABLE business_profile ADD COLUMN IF NOT EXISTS is_tax_connector_enabled BOOLEAN; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may to move this migration to a new file / rename the existing migration to convey the new change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, renamed the folder
821a555
to
215216f
Compare
4f72d24
* 'main' of github.com:juspay/hyperswitch: feat(customer_v2): added list customer v2 end point (#5517) feat(business_profile): add tax_connector_id column in business_profile table (#5576) chore: create v2 route for organization (#5679) refactor(payments_response): remove setter from payments response (#5676) feat(payment_methods_v2): Payment methods v2 API models (#5564) chore(version): 2024.08.26.0
* 'main' of github.com:juspay/hyperswitch: (134 commits) refactor(open_banking): Added merchant data update in mca update (#5655) feat: add test_mode for quickly testing payout links (#5669) refactor: introduce a domain type for profile ID (#5687) ci(cypress): update paybox configs (#5664) feat(openapi): Add open api routes for routing v2 (#5686) feat(connector): [NOVALNET] Add template code (#5670) feat(user): business email update (#5674) chore(config): add production connector-configs for netcetera external 3ds flow (#5698) chore(version): 2024.08.27.0 refactor(euclid): make the disabled node's relation as negative (#5701) feat: populate payment method details in payments response (#5661) build(deps): bump `diesel` to `2.2.3` and `sqlx` to `0.8.1` (#5688) feat(customer_v2): added list customer v2 end point (#5517) feat(business_profile): add tax_connector_id column in business_profile table (#5576) chore: create v2 route for organization (#5679) refactor(payments_response): remove setter from payments response (#5676) feat(payment_methods_v2): Payment methods v2 API models (#5564) chore(version): 2024.08.26.0 feat(connector): [Adyen] add dispute flows for adyen connector (#5514) chore(version): 2024.08.23.0 ...
…-key-check * 'main' of github.com:juspay/hyperswitch: feat(core): Add mTLS certificates for each request (#5636) refactor(open_banking): Added merchant data update in mca update (#5655) feat: add test_mode for quickly testing payout links (#5669) refactor: introduce a domain type for profile ID (#5687) ci(cypress): update paybox configs (#5664) feat(openapi): Add open api routes for routing v2 (#5686) feat(connector): [NOVALNET] Add template code (#5670) feat(user): business email update (#5674) chore(config): add production connector-configs for netcetera external 3ds flow (#5698) chore(version): 2024.08.27.0 refactor(euclid): make the disabled node's relation as negative (#5701) feat: populate payment method details in payments response (#5661) build(deps): bump `diesel` to `2.2.3` and `sqlx` to `0.8.1` (#5688) feat(customer_v2): added list customer v2 end point (#5517) feat(business_profile): add tax_connector_id column in business_profile table (#5576) chore: create v2 route for organization (#5679) refactor(payments_response): remove setter from payments response (#5676) feat(payment_methods_v2): Payment methods v2 API models (#5564) chore(version): 2024.08.26.0
Type of Change
Description
Added tax_connector_id and is_tax_connector_enabled in business_profile table.
Create Curl:
Create Response:
Update Curl:
Update Response :-
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy