-
Notifications
You must be signed in to change notification settings - Fork 2.1k
refactor(router): add amount conversion framework to netcetera #6238
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
base: main
Are you sure you want to change the base?
Conversation
- minor amount field is added to `ConnectorAuthenticationRequestData` for amount framework
Changed Files
|
@@ -91,6 +91,8 @@ pub struct ConnectorAuthenticationRequestData { | |||
pub threeds_method_comp_ind: api_models::payments::ThreeDsCompletionIndicator, | |||
pub three_ds_requestor_url: String, | |||
pub webhook_url: String, | |||
|
|||
pub minor_amount: Option<MinorUnit> |
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.
wouldn't amount
be a better name for this field?
The type itself will indicate that the amount is of type MinorUnit.
And there is already an amount
field in this struct. Please use that field itself
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.
wouldn't
amount
be a better name for this field? The type itself will indicate that the amount is of type MinorUnit.And there is already an
amount
field in this struct. Please use that field itself
Sorry for the confusion here. I wanted you to change type of the amount
field here from Option<i64>
to Option<MinorUnit>
and then use it.
Please run |
2845513
to
aa4e09b
Compare
@hrithikesh026 review comments done! |
@hex1c
|
@deepanshu-iiitu sorry missed the formatting after the last refactor. Formatted the code now :) |
252c6ad
to
a13d14f
Compare
Co-authored-by: Hrithikesh <[email protected]>
a13d14f
to
8cd3afd
Compare
@hrithikesh026 there was a compilation issue fixed it now |
Hey @hex1c |
Hey @hex1c |
@deepanshu-iiitu made the changes kindly review it and let me know if there are any changes. |
Type of Change
Description
Minor refactoring to standardize
Netcetera
connector to use the conversion framework to reduce potential inconsistencies in managing amounts fixes #5930Checklist
cargo +nightly fmt --all
cargo clippy