-
Notifications
You must be signed in to change notification settings - Fork 58
[Wise] Add a field to track the recipient ID #11255
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
Conversation
f7424e0
to
b7a8a1b
Compare
ty <3 |
db/schema.rb
Outdated
@@ -11,6 +11,7 @@ | |||
# It's strongly recommended that you check this file into your version control system. | |||
|
|||
ActiveRecord::Schema[7.2].define(version: 2025_08_08_033500) do | |||
|
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 this be 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.
+1
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.
It should definitely not. I must have added it when fixing a merge conflict.
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.
lgtm!
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.
very clean!
@@ -1,6 +1,6 @@ | |||
<% if @hcb_code.wise_transfer.wise_id.present? %> | |||
<% if @hcb_code.wise_transfer.wise_url %> |
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.
nit: do we still want to call .present?
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.
We do already in the implementation of wise_url
so didn't think it necessary. Happy to add it if you think it's clearer.
db/schema.rb
Outdated
@@ -11,6 +11,7 @@ | |||
# It's strongly recommended that you check this file into your version control system. | |||
|
|||
ActiveRecord::Schema[7.2].define(version: 2025_08_08_033500) do | |||
|
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.
+1
Summary of the problem
We want to keep track of the Wise recipient ID when marking transfers as complete.
Describe your changes
wise_recipient_id
column to thewise_transfers
table (nomenclature comes from https://docs.wise.com/api-docs/api-reference/recipient#get)wise_recipient_id
field to theWiseTransfer
model (similar to Wise bug fixes part 1 #11252)